untracked files on main: dceb101 feat(#63): IMP-34 R1 donor capacity measured bound (u1+u2)

This commit is contained in:
kmlee1 committed 2026-05-21 22:07:41 +09:00
commit 8f085a28d3
3220 files changed
+985495

No files matched your search

@@ -0,0 +1 @@
[{"id":18449,"html_url":"https://gitea.hmac.kr/Kyeongmin/C.E.L_Slide_test2/issues/9#issuecomment-18449","pull_request_url":"","issue_url":"https://gitea.hmac.kr/Kyeongmin/C.E.L_Slide_test2/issues/9","user":{"id":28,"login":"Kyeongmin","login_name":"","source_id":0,"full_name":"이경민","email":"kyeongmin@noreply.localhost","avatar_url":"https://gitea.hmac.kr/avatars/d883a35f9197b080b2a0c535c3f9357dcd5c7d40b3c42bd8f40218cb94609a8e","html_url":"https://gitea.hmac.kr/Kyeongmin","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2025-12-30T10:51:04+09:00","restricted":false,"active":false,"prohibit_login":false,"location":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":1,"username":"Kyeongmin"},"original_author":"","original_author_id":0,"body":"[Claude #1] Stage 1: Structure Analysis\n\n## 1. Issue scope — verified against code\n\n- Subject = `build_layout_css` (src/phase_z2_pipeline.py:841-927) 의 dynamic-heights 분기 확장.\n- 현재 dynamic 처리 = `horizontal-2` 1개. 나머지 7 preset (single / vertical-2 / top-1-bottom-2 / top-2-bottom-1 / left-1-right-2 / left-2-right-1 / grid-2x2) = `fr_default_from_preset` fallthrough (line 918-927).\n- `override_zone_geometries` Step D-ext branch (line 856-902) = `horizontal-2` (h ratios) + `vertical-2` (w ratios) 두 case 만. 나머지는 line 898 warning 후 default 로 떨어짐.\n\n## 2. 관련 파일 / 라인 (실측)\n\n| 역할 | 경로 | line |\n|---|---|---|\n| `build_layout_css` 본체 | `src/phase_z2_pipeline.py` | 841-927 |\n| `compute_zone_layout` (1-D heights solver) | `src/phase_z2_pipeline.py` | 775-834 |\n| layout preset catalog (yaml) | `templates/phase_z2/layouts/layouts.yaml` | 1-130 (8 entry) |\n| `LAYOUT_PRESETS` loader | `src/phase_z2_composition.py` | 41-60 |\n| `select_layout_candidates` (unit_count → candidate list) | `src/phase_z2_composition.py` | 63-104 |\n| Step 7 artifact 작성 (layout_css 소비) | `src/phase_z2_pipeline.py` | 3062-3134 |\n| Step 8 artifact 작성 (zone_heights_px_planned / zone_ratios_planned 기록) | `src/phase_z2_pipeline.py` | 3180-3274 |\n| CLI `--override-zone-geometry` parser | `src/phase_z2_pipeline.py` | 4003-4011 |\n| `SLIDE_BODY_HEIGHT=585`, `GRID_GAP=14` | `src/phase_z2_pipeline.py` | 114, 116 |\n| Kei `build_containers_type_b` (guardrail target) | `src/space_allocator.py` | 445-... |\n| Kei guardrail 호출처 | `src/pipeline.py` | 530-539 |\n\n## 3. 의존 관계 (data flow)\n\n```\nlayouts.yaml (8 entry)\n ↓ load_layout_presets()\nLAYOUT_PRESETS dict\n ↓ build_layout_css(layout_preset, zones_data, override_zone_geometries)\n ├─ horizontal-2 → compute_zone_layout(zones_data) ← content_weight + min_height_px (1-D heights)\n └─ else → preset[\"css_cols\"]/[\"css_rows\"] 그대로 (fr_default)\n ↓ layout_css {\"areas\",\"cols\",\"rows\",\"heights_px\",\"ratios\",\"dynamic_rows\",...}\n ↓ Step 7 artifact (line 3079) — layout_preset / layout_css / candidates 기록\n ↓ Step 8 artifact (line 3252) — zone_heights_px_planned = layout_css[\"heights_px\"] (현재 horizontal-2 외엔 [])\n```\n\n`build_containers_type_b` (Kei) 는 **별 pipeline** (src/pipeline.py:530 phase X-B branch, `layout_template in (\"B\",\"B'\",\"B''\")` gate). Phase Z `build_layout_css` 와 별 path — guardrail = 그 path 건드리지 않음.\n\n## 4. 이슈 가정 vs 실제\n\n| 가정 | 실측 |\n|---|---|\n| `build_layout_css` 분기 확장 필요 | ✓ 함수 존재 / horizontal-2 only dynamic |\n| Kei `build_containers_type_b` 회귀 X | ✓ Phase Q pipeline 의 별 path — phase_z2 와 격리 |\n| step08 trace 설명 가능 | ✓ Step 8 artifact 존재 — 단 현재 horizontal-2 외엔 `heights_px=[]`, `ratios=[]` 기록 |\n| dependency = none | ✓ runtime 호출처 = `build_layout_css` 1 곳 (line 3064), `select_layout_candidates` 결과 = passive artifact only |\n| cross-ref 3개 (backlog / INSIGHT / overview) | ✓ 모두 실재 — backlog row 53, INSIGHT-MAP row 84 |\n\n## 5. Gap / 깍지 (구현 시 고려할 것)\n\n1. **`compute_zone_layout` 은 1-D heights only** — T-shape (3 zone) / grid-2x2 (4 zone) 는 *2-D* (row ratios + col ratios) 가 필요. 단순 분기 확장으로 안 되고, topology-aware 2-D solver 필요. catalog `topology` 필드 활용 가능 (rows / cols / T / inverted-T / side-T-left / side-T-right / 2x2).\n2. **`override_zone_geometries` branch 도 확장 필요** — CLI flag `--override-zone-geometry` 는 8 preset 전부 지원해야 일관. 현재 horizontal-2 / vertical-2 외엔 warning 후 무시 (line 898-902).\n3. **Step 8 artifact 의 trace schema** — 현재 `zone_heights_px_planned` / `zone_ratios_planned` 두 필드. 2-D layout 에서는 `widths_px` / `col_ratios` 도 필요. schema 확장 = 별 sub-axis.\n4. **`compute_zone_layout` 일반화 시 회귀 위험** — horizontal-2 = MDX 03 의 lock target (memory `project_mdx03_fraLine truncated