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>
This commit is contained in:
2026-07-02 17:03:42 +09:00
co-authored by Claude Opus 4.8
parent 97b7833a1b
commit b836e79ee1
527 changed files with 673036 additions and 717 deletions
@@ -0,0 +1,47 @@
from pathlib import Path
from src.phase_z2_pipeline import (
_expand_dx_effect_component,
_load_component_expansion_registry,
parse_mdx,
)
def test_t23_registry_contains_dx_effect():
registry = _load_component_expansion_registry()
entry = registry["components"]["DxEffect"]
assert entry["source_path"] == "samples/src/components/dx.astro"
assert entry["parent_policy"] == "keep_under_containing_numbered_section"
assert "persona_column" in entry["expands_to"]
def test_t23_dx_effect_expands_to_three_persona_groups():
expanded, trace = _expand_dx_effect_component("before\n<DxEffect />\nafter")
assert "<DxEffect" not in expanded
assert "before" in expanded
assert "after" in expanded
assert expanded.count("- **") == 3
assert trace[0]["component"] == "DxEffect"
assert trace[0]["status"] == "expanded"
assert trace[0]["persona_count"] == 3
assert trace[0]["body_row_count"] >= 1
def test_t23_parse_mdx02_expands_dx_effect_inside_parent_section():
mdx = next(
p for p in Path("samples/mdx").glob("02*.mdx")
if "원본" not in p.name
)
_, sections, _ = parse_mdx(mdx)
by_id = {s.section_id: s for s in sections}
section = by_id["02-2"]
assert "<DxEffect" not in section.raw_content
assert section.raw_content.count("- **") >= 3
assert section.sub_sections
assert section.sub_sections[0]["component"] == "DxEffect"
assert section.sub_sections[0]["status"] == "expanded"