fix(loop): resolve P0-1 (B-7) git diff CWD isolation and untracked file capture (20/20 PASS)

This commit is contained in:
2026-08-11 09:39:57 +09:00
parent 64cde54e89
commit f8084cd927
8 changed files with 533 additions and 23 deletions
+9 -1
View File
@@ -8,7 +8,15 @@
## 📌 1. 금일 작업 내용 요약
### 1) **B-4: 시프트 `ls` 세션 생성 시각(session_created) 동적 포시스 타임스탬프 복원** — **완료**
### 1) **P0-1 (B-7): `run_loop.sh` 루프 기동 외곽 diff 누락 및 신규 미추적 파일 캡처 결함 조치** — **완료**
- **배경**: CWD 의존성으로 인해 저장소 외곽에서 `run_loop.sh` 구동 시 `git diff` 실패 및 미추적 신규 파일(Untracked Files) 누락으로 리뷰어가 빈 diff 보고 무조건 `PASS`를 남기던 무음 검증 결함 조치.
- **주요 구현**:
- [`.agents/skills/multi-agent-mux-loop/scripts/diff_collect.sh`](file:///Users/godopu16/PuKi/laa/canary_projects/multi-agent-mux/.agents/skills/multi-agent-mux-loop/scripts/diff_collect.sh): CWD 독립 `$REPO_ROOT` 이동 및 Git 인덱스 비침습 신규 파일 병합(`git ls-files -o --exclude-standard -z` + `git diff --no-index`) 구현.
- [`.agents/skills/multi-agent-mux-loop/scripts/run_loop.sh`](file:///Users/godopu16/PuKi/laa/canary_projects/multi-agent-mux/.agents/skills/multi-agent-mux-loop/scripts/run_loop.sh): `CHANGES_DIFF` 모듈화 및 500줄/30KB 상한 Truncation 경고 노출 내장.
- `tests/test_b7_diff_untracked.py`: 전용 회귀 테스트 스위트 20개 작성 및 **20/20 PASS (100%)** 달성.
- **멀티에이전트 자율 오케스트레이션**: `/multi-agent-mux-loop --plan --all-reviewer` 가동 결과 Planner(`claude`), Creator(`agy`), Reviewer(`cline`) 3자에 의해 **`[VERDICT: PASS]` (만장일치 통과)**.
### 2) **B-4: 시프트 `ls` 세션 생성 시각(session_created) 동적 포시스 타임스탬프 복원** — **완료**
- **배경**: `.agents/skills/lib.sh` 554번 라인에서 `herdr ls` 시 생성시각이 `999999`로 하드코딩되어 `reconcile.sh` drift-B 등록 시 epoch 0이 되어 `find_workspace_uuid` 재개 가드가 붕괴되던 결함 조치.
- **주요 구현**:
- [`.agents/skills/lib.sh`](file:///Users/godopu16/PuKi/laa/canary_projects/multi-agent-mux/.agents/skills/lib.sh): real herdr 및 YAML 상의 `created`/`created_at`/`created_epoch` 속성을 읽고, 미정의 시 `int(time.time())` 동적 포시스 타임스탬프를 리턴하도록 정제.