diff --git a/.agents/MULTI_AGENT_RULES.ko.md b/.agents/MULTI_AGENT_RULES.ko.md index 8f40267..751ec35 100644 --- a/.agents/MULTI_AGENT_RULES.ko.md +++ b/.agents/MULTI_AGENT_RULES.ko.md @@ -127,7 +127,7 @@ TMUX 환경에서 실행되는 에이전트가 화면 스크롤 한계로 인해 - *자동 경로*: 자동화 잡 런너(`multi-agent-mux-delegate-job submit`)는 잡 등록 시 `.mam/jobs//brief.md` 디렉터리에 지시서를 자동 집필하고 단일 라인 포인터 프롬프트만 에이전트 세션에 인가합니다. - **결과 안내 및 피드백**: - *수동/영구 리뷰*: 상세 리뷰 결과, 설계 제안서 등은 `.mam/reports//report-.md` 경로에 저장합니다. - - *자동화 잡 보고서*: 자동 위임된 비동기 작업의 완료 결과는 잡 디렉터리 하위인 `.mam/jobs//-reports/report-final.md` 경로에 기록해야 합니다. + - *자동화 잡 보고서*: 자동 위임된 비동기 작업의 완료 결과는 잡 디렉터리 하위인 `.mam/jobs//-reports/report-final.md` (루프/Discuss 위임 시에는 `-reports/`) 경로에 기록해야 합니다. - *버전 관리 이관*: 버전 관리가 필요한 주요 산출물(최종 설계 계획, 최종 리뷰 보고서, 보안 감사 리포트 등)은 gitignore 대상인 `.mam/` 하위가 아닌, 버전 관리 대상 경로(구체적으로 `.agents/reports//` 또는 `docs/reports/` 등)로 명시적으로 복사하여 이관 보존해야 합니다. - **디스크 정리 및 보존 정책 계약 (Cleanup & Retention)**: `.mam/jobs//` 및 `.mam/reports/` 폴더 아래의 파일들은 휘발성 감사 이력(audit-trail) 산출물입니다. 버전 관리가 필요한 문서들은 `.agents/reports/` 하위로 수동 복사하여 커밋해야 하며, `stop_session.sh` 세션 종료 스크립트는 이들 보고서 디렉터리를 자동으로 삭제하지 않으므로 수동 또는 주기적 클린업이 권장됩니다. diff --git a/.agents/MULTI_AGENT_RULES.md b/.agents/MULTI_AGENT_RULES.md index e9b83cd..06f494b 100644 --- a/.agents/MULTI_AGENT_RULES.md +++ b/.agents/MULTI_AGENT_RULES.md @@ -127,7 +127,7 @@ To ensure that agents running in TMUX environments do not lose debug logs or pre - *Automated path*: The automated job runner (`multi-agent-mux-delegate-job submit`) automatically provisions the brief at `.mam/jobs//brief.md` and sends a short pointer instruction to the agent. - **Result Reporting & Feedback**: - *Manual/Durable reviews*: Detailed reviews, design proposals, or audit reports must be saved under `.mam/reports//report-.md`. - - *Automated job reports*: Automated execution results are saved directly to `.mam/jobs//-reports/report-final.md` as transient files. + - *Automated job reports*: Automated execution results are saved directly to `.mam/jobs//-reports/report-final.md` (or `-reports/` for loops) as transient files. - *Versioned promotions*: Any final design plans, review verdicts, or security audit reports that require version control must be explicitly copied to tracked directory paths (specifically under `.agents/reports//` or `docs/reports/`). - **Cleanup & Retention Contract**: Files under `.mam/jobs//` and `.mam/reports/` are transient audit-trail artifacts. While durable outcomes are committed to version control under `.agents/reports/`, ephemeral directory trees can be cleaned up manually as needed; `stop_session.sh` does not automatically purge these report trees during session exit. diff --git a/.agents/skills/multi-agent-mux-delegate-job/multi-agent-mux-delegate-job b/.agents/skills/multi-agent-mux-delegate-job/multi-agent-mux-delegate-job index b2d67d5..589ca6b 100755 --- a/.agents/skills/multi-agent-mux-delegate-job/multi-agent-mux-delegate-job +++ b/.agents/skills/multi-agent-mux-delegate-job/multi-agent-mux-delegate-job @@ -214,17 +214,18 @@ EOF # 1-1) Provision job directory and write iteration brief.md (MAM Job Restructuring) local job_dir="$REGISTRY_DIR/$JOB_ID" + local clean_session="${current_session#tmux:}" if [[ "$DRY_RUN" != "1" ]]; then mkdir -p "$job_dir" cat < "$job_dir/brief.md" # 📋 Brief: Job $JOB_ID Delegation (Iteration $iteration) - + - **Job ID**: $JOB_ID - **Target Agent/Session**: $current_session - **Role**: $current_role - **Iteration**: $iteration -- **Output Report Path**: .mam/jobs/$JOB_ID/${current_session}-reports/report-final.md - +- **Output Report Path**: .mam/jobs/$JOB_ID/${clean_session}-reports/report-final.md + ## 🔎 Task Description $current_prompt EOF