fix(848-7): 엑셀 판 제어 구역 연결 문서 · 값 화면 캐시에 · 방식 없는 위 층(가져온 값) 변수 물려받음

- M02_Doc_Import.record — 엑셀 판도 기계 식 문서 · 값을 기록(없으면 제어 구역이 안 열림 · ORCA 에서 찾음)
- prune_work_layer ↔ pruneWorkLayer — 위 층에 방식 없이 식 · 변수만 있어도 같은 식이면 물려받음
  (저장 뒤 손대지 않은 경쟁사 값이 내 고침 · 파랑으로 남던 것)
- 시험 test_848_7 방식 없는 위 층 거울 · 관련 시험 442 통과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 01:11:01 +09:00
co-authored by Claude Opus 5.5
parent a4a7d80885
commit c9df064389
4 changed files with 50 additions and 2 deletions
@@ -239,7 +239,10 @@ def prune_work_layer(want, base: dict | None = None, upper: dict | None = None)
form = str(want.get("식") or "") or up_form
if form != up_form:
out["식"] = form
held = {**(base or {}), **((up.get("변수") or {}) if form == up_form else {})}
same = form == str(
up.get("식") or ""
) # 848-7 방식 없는 위 층(가져온 값)도 같은 식이면 변수 물려받음
held = {**(base or {}), **((up.get("변수") or {}) if same else {})}
got = {
k: v
for k, v in (want.get("변수") or {}).items()