fix(715-2): 단가산출 셈 길도 저장 전 문서 참조를 위 층만 · 있는 문서 · 순환 검사(남의 개인 층 읽기 막음)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 15:00:44 +09:00
co-authored by Claude Opus 5.5
parent 0b50669d4e
commit 368216594f
+1
View File
@@ -222,6 +222,7 @@ def calc_doc(doc: Any, given: dict | None = None) -> dict[str, Any]:
whole = m01.loaded()[1]
try:
clean = sd.clean(doc, None, whole)
_check_refs(clean, refs.here()) # 저장 전 문서도 위 층만 · 있는 문서 · 순환 422
me = refs.ref_id({"층": refs.here()[0], "주인": refs.here()[1], "키": clean["키"]})
got = run(clean, whole, given, trail=(me,))
except sd.DocError as e: