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,24 @@
# Component expansion registry for MDX-to-frame structure normalization.
#
# This file is introduced by #98 T21.6 as a contract artifact. T23 will wire
# the parser/normalizer to read it. Entries must describe how an opaque
# component becomes typed source nodes while preserving source text verbatim.
version: 1
components:
DxEffect:
status: planned
source_path: samples/src/components/dx.astro
expands_to:
- table_like_content
- persona_column
persona_role_labels:
- 발주자
- 시공자
- 설계자
parent_policy: keep_under_containing_numbered_section
text_policy: verbatim_from_component_source
notes:
- Initial registry entry observed in MDX 02.
- T23 must replace opaque component handling with this registry-based expansion.
@@ -31,6 +31,15 @@ three_parallel_requirements:
cardinality:
strict: 3
overflow_policy: abort_or_review
dynamic_cardinality:
repeatable: true
repeat_axis: pillars
base_items: 3
min_items: 1
max_items: null
expand_policy: card
overflow_policy: expand_then_fit
preserve_source_order: true
# 순서 기반 visual role (color_class 대체 — label 키워드 의존 제거)
role_order:
@@ -143,6 +152,18 @@ bim_issues_quadrant_four:
body_fit_pattern2: false # P2: 미적용 (Stage 2 selection)
source_shape: top_bullets
cardinality:
strict: 4
overflow_policy: abort_or_review
dynamic_cardinality:
repeatable: true
repeat_axis: quadrants
base_items: 4
min_items: 1
max_items: null
expand_policy: card
overflow_policy: expand_then_fit
preserve_source_order: true
# F16 정책 = pad_to=4 + truncate>4 (legacy 와 동일). cardinality strict 화는 본 transition 범위 외.
# 향후 normal path 안정 후 strict 적용 + 위반 시 fallback path (FitError) 검토.
@@ -213,6 +234,15 @@ three_persona_benefits:
cardinality:
strict: 3 # 3 persona = strict.
overflow_policy: abort_or_review
dynamic_cardinality:
repeatable: true
repeat_axis: personas
base_items: 3
min_items: 1
max_items: null
expand_policy: card
overflow_policy: expand_then_fit
preserve_source_order: true
# 순서 기반 color theme (Figma 원본 색).
# client = 발주자 (#285b4a 그린 계열), constructor = 시공자 (#445a2f 올리브),
@@ -285,6 +315,16 @@ construction_goals_three_circle_intersection:
# 순서 기반 visual role (3 메인 원 각자 다른 gradient — index.html L141-189).
# circle_1 = 안전(orange/red), circle_2 = 생산성(brown/grey), circle_3 = 소통(green/dark).
dynamic_cardinality:
repeatable: false
repeat_axis: circles
base_items: 3
min_items: 3
max_items: 3
expand_policy: fixed_diagram
overflow_policy: fallback_to_repeatable_frame
preserve_source_order: true
role_order:
- safety
- productivity
@@ -360,6 +400,16 @@ construction_bim_three_usage:
# 순서 기반 visual role — 3 카테고리 (model / object / position) 각자
# Figma 의 동일 brown label box + white content card 패턴. role 은
# MDX label 내용 따라 결정되므로 generic ordering name 만.
dynamic_cardinality:
repeatable: true
repeat_axis: categories
base_items: 3
min_items: 1
max_items: null
expand_policy: row
overflow_policy: expand_then_fit
preserve_source_order: true
role_order:
- category_1
- category_2
@@ -432,6 +482,16 @@ bim_dx_comparison_table:
strict: 2 # 2 columns (col_a / col_b) — NOT row count
overflow_policy: abort_or_review
dynamic_cardinality:
repeatable: true
repeat_axis: rows
base_items: 4
min_items: 1
max_items: null
expand_policy: table_row
overflow_policy: expand_then_fit
preserve_source_order: true
role_order:
- col_a
- col_b
@@ -842,6 +902,15 @@ pre_construction_model_info_stacked:
min: 4 # analysis.md min 4 / Figma 5-color cycle design floor.
max: 5 # partial `_slot_count or 5` hardcap (5-color cycle, line 175).
overflow_policy: abort_or_review
dynamic_cardinality:
repeatable: true
repeat_axis: pills
base_items: 5
min_items: 1
max_items: null
expand_policy: list_row
overflow_policy: expand_then_fit
preserve_source_order: true
visual_hints:
min_height_px: 350 # title 30 + 5 pill × ~55 + grid gap 40 + padding 30 + buffer 5.
@@ -1624,6 +1693,16 @@ sw_dependency_four_problems:
strict: 4 # 4 problem (problem_1..problem_4) — data axis. analysis.md ideal 4 / min 4 / max 4 (strict:4 = declared data slot count, peer parity with u10/u12/u13/u17/u19 ideal=min=max convention); title = fixed singleton header (non-data axis). problem_N_label + problem_N_body 평탄 = builder/parser 내부 (composite problem_N = Frame Slot 단위, per F16 precedent).
overflow_policy: abort_or_review
dynamic_cardinality:
repeatable: true
repeat_axis: problems
base_items: 4
min_items: 1
max_items: null
expand_policy: card
overflow_policy: expand_then_fit
preserve_source_order: true
role_order: [problem_1, problem_2, problem_3, problem_4]
visual_hints:
min_height_px: 350
@@ -0,0 +1,84 @@
# Node-to-slot mapping contract for Phase Z-2.
#
# This file is introduced by #98 T21.6 as a contract artifact. T25 will wire
# builders/mappers to validate that normalized source nodes have an allowed
# frame slot target before render.
version: 1
coverage_states:
covered_native:
description: Existing frame and builder can render all required source atoms verbatim.
ai_allowed: false
covered_via_expand:
description: Existing frame can render after deterministic repeat/expand without shrinking font size.
ai_allowed: false
requires_adaptation:
description: Visual motif is usable, but adapted slot schema/repeat structure is needed.
ai_allowed: true
ai_text_generation_allowed: false
unsupported:
description: No current contract path exists.
ai_allowed: false
coverage_state_resolution:
route_aware: true
fallback_paths_override_candidate_status: true
deterministic_expand_sets: covered_via_expand
font_policy: no_font_shrink
node_types:
pre_intro:
allowed_slots: [title, label, body_text_lines, popup_body]
default_unit_role: top_level_unit
numbered_section:
allowed_slots: [title, body_text_lines, image_target, table_row]
default_unit_role: body_zone_unit
subsection_decimal:
allowed_slots: [label, body_text_lines, pillar, comparison_cell, table_row, internal_context]
default_unit_role: frame_internal_group
subsection_numeric:
allowed_slots: [label, body_text_lines, pillar, internal_context]
default_unit_role: frame_internal_group
bullet_group:
allowed_slots: [body_text_lines, comparison_cell, table_row]
default_unit_role: source_atom_group
table_like_content:
allowed_slots: [table_row, comparison_cell, persona_column]
default_unit_role: source_atom_group
image_ref:
allowed_slots: [image_target]
default_unit_role: media_atom
component_ref:
allowed_slots: []
default_unit_role: expand_before_matching
details_popup:
allowed_slots: [popup_body]
default_unit_role: auxiliary_detail
summary_footer:
allowed_slots: [footer_summary]
default_unit_role: fixed_base_slide_region
slot_types:
title:
text_source: unit_title_only
label:
text_source: child_heading_or_source_label_only
body_text_lines:
text_source: source_atoms_verbatim
pillar:
text_source: child_heading_plus_child_body
persona_column:
text_source: component_expanded_persona_node
internal_context:
text_source: child_heading_plus_child_body
comparison_cell:
text_source: source_table_cell_or_bullet_group
table_row:
text_source: source_row_or_key_value_atom
image_target:
text_source: source_image_ref
popup_body:
text_source: source_details_content
footer_summary:
text_source: summary_source_only