docs(#9): emergency.md §7 체크리스트 실측 갱신 + PHASE_Z_ALLOW_* dead env retire

- emergency.md: P2/P2.5/P3/P5 = 구현·작동 실측 확인 표기, P4 = envelope 수정(9717898) 기록
- vite.config.ts: PHASE_Z_ALLOW_REJECT / PHASE_Z_ALLOW_RESTRUCTURE retire
  (src read 0곳 — Emergency P2 가 reject 보존을 기본 정책화하여 불필요, §4 Quick fix 결정 B)
- 검증: tsc --noEmit 0 에러

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-02 20:27:05 +09:00
co-authored by Claude Opus 4.8
parent 9717898826
commit 62df988114
2 changed files with 10 additions and 13 deletions
+4 -7
View File
@@ -895,20 +895,17 @@ function vitePluginPhaseZApi(): Plugin {
`[phase-z-api] spawn pipeline: run_id=${runId}, mdx=${mdxPath}, args=${JSON.stringify(cliArgs.slice(2))}`
);
const pythonExe = process.platform === "win32" ? "python.exe" : "python";
// 2026-05-14 — env toggle forward (보고용 일회성).
// PHASE_Z_ALLOW_RESTRUCTURE / PHASE_Z_ALLOW_REJECT : status 통과
// 2026-05-21 — IMP-38 retire PHASE_Z_MAX_RANK env (never read by backend).
// v4 fallback chain max_rank 는 templates/phase_z2/catalog/v4_fallback_policy.yaml 의
// 정식 정책 (dynamic_usable_count_based) 으로 결정 — backend src/phase_z2_pipeline.py
// 의 lookup_v4_match_with_fallback() 가 load_v4_fallback_policy() 로 적용.
// 2026-07-02 — issue #9 quick fix: PHASE_Z_ALLOW_REJECT / PHASE_Z_ALLOW_RESTRUCTURE
// retire (dead env — src 에서 read 0곳. Emergency P2 가 reject 보존을 기본
// 정책으로 만들어 env toggle 불필요 — emergency.md §4 Quick fix 결정 B).
const proc = spawn(pythonExe, cliArgs, {
cwd: DESIGN_AGENT_ROOT,
shell: false,
env: {
...process.env,
PHASE_Z_ALLOW_RESTRUCTURE: "1",
PHASE_Z_ALLOW_REJECT: "1",
},
env: { ...process.env },
});
let stdout = "";
+6 -6
View File
@@ -299,12 +299,12 @@ lookup_v4_candidates(X) → V4 에 X 직접 매칭 시도
각 priority 완료 후 이 섹션에 결과 한 줄 추가 — 작업 끝나면 정리해서 후속 Gitea issue / commit 본문 reference.
- [x] P1: Raw 후보 분포 확인 — C1 (02-2.1, 04-1 all-reject) / C2 (04-2 ↔ 04-2.1/04-2.2 split) / C3 (mdx 05 source 누락) 식별
- [ ] P2: V4 후보 보존 + 3-status 분류 (C1 처리 — reject = ai_adaptation_required)
- [ ] P2.5: Section key alignment policy (C2 처리 — child → parent pool merge, universal)
- [ ] P3: empty_shell terminal 제거 + AI adaptation + generic_fallback frame mandatory (C1/C3 처리)
- [ ] P4: AI fallback 호출 trace
- [ ] P5: Frontend candidate panel 검증 (status surface)
- [ ] Quick fix: PHASE_Z_ALLOW_REJECT wire-up 또는 retire
- [x] P2: V4 후보 보존 + 3-status 분류 (C1 처리 — reject = ai_adaptation_required) — 2026-07-02 실측 검증: mdx04 04-1 reject 후보 `ai_adaptation_required` 로 보존 (GitHub issue #9)
- [x] P2.5: Section key alignment policy (C2 처리 — child → parent pool merge, universal) — 2026-07-02 실측: 02-2 가 parent merge 로 frame 14 획득
- [x] P3: empty_shell terminal 제거 + AI adaptation + generic_fallback frame mandatory (C1/C3 처리) — 2026-07-02 실측: mdx05 GENERIC_FALLBACK 렌더, 5/5 mdx empty shell 0
- [x] P4: AI fallback 호출 trace — 2026-07-02: 호출은 됐으나 proposal envelope 불일치로 전량 ValidationError 유실 발견 → 수정 (커밋 9717898: 프롬프트 envelope 명시 + client 코어싱). 잔여: design_adaptation_plan apply 계층 미구현 (unsupported_kind — issue #7 axis)
- [x] P5: Frontend candidate panel 검증 (status surface) — FramePanel candidate_status 툴팁 + route 배지 구현 확인
- [ ] Quick fix: PHASE_Z_ALLOW_REJECT wire-up 또는 retire (미확인 — dead env var 여부 재점검 필요)
---