Commit Graph
3 Commits
Author SHA1 Message Date
KyeongminandClaude Opus 4.8 63f4479b05 feat(#16): overflow 압력 기반 popup escalation — mdx04 최초 PASS (#98 추천 3)
구조 결함 2개 수정으로 IMP-35 popup 레버를 실동작화:

1. 트리거 모순 해소: 기존 T28.5d 트리거는 eligible_candidate_count==0 요구
   — 후보가 '존재만' 해도 미발화인데 그 후보의 자동 소비는 T19d 로 금지
   → 영구 미발화 (mdx04 재현). salvage 정책 차단 터미널
   (T19d layout / T28.5 font) 소진 시 overflow zone 을 대상으로 하는
   두 번째 트리거 추가 (salvage_exhausted_overflow_pressure).

2. 높이 실감소: slide_base 는 partial 을 그대로 렌더 + <details> 추가일 뿐
   (preview_text 는 렌더 경로 미소비 — popup 이 높이를 못 줄였음).
   _trim_slot_payload_for_overflow 로 본문 라인을 예산만큼 트리밍 —
   재귀 수집 (list-of-str + {text,indent} line-object, f13b 3중 중첩 포함),
   라인 경계만, 슬롯당 최소 1라인, label/title 무접촉.
   측정 피드백 루프 (최대 3회): 후보 렌더의 잔여 excess 로 추가 트림.
   트리밍 전문은 popup body(raw_content 원문)에 보존 — 텍스트 무손실.

실전 검증:
- mdx04: RENDERED_WITH_VISUAL_REGRESSION → **PASS** (trimmed=6, coverage missing 0,
  promoted). presentation_ready=False 는 density tight — #15 게이트 정직 판정
- mdx01/02/03/05: 오발화 0, 상태 불변
- SHA baseline 재캡처 (mdx04 final.html 정당 변경), 전체 게이트 1027 passed

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 09:17:32 +09:00
KyeongminandClaude Opus 4.8 d75c063337 fix(#10): B4 V4-evidence placement_trace 를 P4b 복구 경로에서 보존 + SHA baseline 재캡처
문제: 현재 모든 unit 이 mapper FitError → Emergency P4b verbatim/inline-AI 복구
경로로 흐르는데, 이 경로의 debug_zones 기록이 이미 계산된 placement_trace 를
누락 → PHASE_Z_B4_V4_EVIDENCE=1 에서 v4_evidence_consumed 가 전 zone 관측 불가
(u10 aggregate 테스트 red — 'flag ON이 OFF처럼 동작' silent regression 상태).

수정:
- P4b verbatim(L9107) / inline-AI(L9170) debug_zones 에 placement_trace 추가
  (debug 전용 — zones_data/final.html 영향 X. adapter_needed 경로는 기존부터 보유)
- imp95_pre_baseline_sha.json 재캡처 (capture_imp95_pre_baseline.py 정규 절차 —
  스냅샷 이후 상류 drift 로 구 baseline 무효화. 89a baseline 과 동일 패턴)

검증:
- trace fields 7/7 + SHA parity 포함 regression 14/14 passed
- tests/phase_z2 전체 709 passed / 11 failed — 실패 11건은 stash 검증으로
  본 변경과 무관한 기존 실패 확인 (layout cols/fixtures/imp88 salvage/step17 axis)

참고 (이슈 #10 전제 정정): call-site v4_candidates 배선(L8888)과 Step 11
trace hoist(L8913)는 이미 구현돼 있었음 — 실제 갭은 복구 경로의 trace 유실.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 09:41:04 +09:00
KyeongminandClaude Opus 4.8 b836e79ee1 wip: phase_z2 evidence 파이프라인 + matching 실험(phase2~26) + 프론트 trace 패널 진행분 스냅샷
- src: phase_z2 composition/mapper/pipeline/placement_planner/retry, ai_fallback(prompts/schema/validate), mdx_text_atoms 신규
- Front: PipelineTracePanel 신규, FramePanel/SlideCanvas/Home/designAgentApi 등 갱신 + 테스트 4종 추가
- templates/phase_z2: catalog(component_expansion_registry, node_slot_mapping 신규), frames, families, slide_base 갱신
- tests/matching: phase2~26 매칭 실험 스크립트·리포트·온톨로지 전체 (미커밋 진행분)
- tests: b4_v4 evidence, task5~28.5 시리즈, regression(imp95 baseline) 등 신규 테스트 대량 추가
- docs/reference: MDX 구조 인벤토리, MDX→Frame 구조 계약 문서
- scripts: mdx 계약/parity/coverage/viewport 체크, gitea comment, run sync 유틸
- .gitignore: tmp*.json, chromedriver, .orchestrator, *.pkl, Front_test* 등 임시/스냅샷 제외

미완성 작업의 보존용 스냅샷 커밋 (2026-07-02)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 17:03:42 +09:00