refactor(855-E L2a): M01 로직 목록 · 파일 · 분류 · 상세 이름표 · 별칭판 · 조합 알약을 수식 문서에서 읽음

- 관문 `M01_MasterData_Doc.logic_files` — 수식 문서 파일을 옛 로직 파일 이름으로(머리 원문 · 부문 · 차례 · 줄 = 문서) · docs() 도 같은 읽기
- /logics · /groups/로직/files · /subs?group=로직 · /elements?group=로직 · /logic 이름표 · 목록 덧칸(인재경 = 문서 금액 줄 · 작업량 = 문서 결과) · /alias 로직 줄 · 조합 알약 · 담은 로직 요약 = 문서
- 남김(쓰기 짝 · L3) — /logic 셈 칸 · prices(옛 상세 몸) · 파일 판(해) · version(저장 409)
- 쓰기 마무리 — 더한 로직 줄은 문서부터(Doc.ensure · 못 지으면 빈 문서 + 머리) · 새 문서 파일 머리 = 짝 로직 파일 머리 · sync_tags 가 이름 · 결과단위 · 출처 · 부품도 같게
- 서버 답 전후 243 건 다름 0 · 조합 알약 1,558 건 다름 0
- 시험 6 파일: 마스터만 임시 사본으로 바꾸던 준비에 수식 문서 사본도(목록이 문서에서 읽으므로 사본 저장이 보이게) · test_m01_cache 한 시험의 겹친 사본 걷음

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 01:42:27 +09:00
co-authored by Claude Opus 5.5
parent c0daf9663b
commit cb729416a3
12 changed files with 184 additions and 64 deletions
+2 -3
View File
@@ -100,7 +100,7 @@ def _brief(whole, row: dict) -> list[dict]:
key = str(one.get("로직") or "") if isinstance(one, dict) else ""
head = {"차례": at, "로직": key, "메모": one.get("메모") if isinstance(one, dict) else None}
try:
got = whole.logic(key)
got = store._docs().head(key) # 수식 문서 머리(855 L2 ⓐ)
except cm.mf.FormulaError as e:
out.append({**head, "ok": False, "까닭": str(e)})
continue
@@ -173,12 +173,11 @@ def combo_inputs(key: str) -> dict:
def combo_pills(row: dict) -> dict:
"""조합 줄 하나(어느 층이든 · M02 조합 층 저장소가 부름)의 알약 — 규칙은 `combo_inputs`."""
whole = store.loaded()[1]
pills: dict[tuple[str, str], dict] = {}
for one in mcb.items(row):
code = str(one.get("로직") or "") if isinstance(one, dict) else ""
try:
got = whole.logic(code)
got = store._docs().head(code) # 수식 문서 머리(855 L2 ⓐ)
except cm.mf.FormulaError:
continue
per = mu.per(got.get("결과단위")) # 결과단위 배 읽기 한 벌(712-2)