feat(M02): 옛 표 틀 새 판으로 갱신 — Migrate --refresh-tables · 손 값 · 변수 · 보기 지킴 · _initial 도 같은 판 (브레인 최종 확인)

- 계산 열에 바인딩이 붙은 옛 틀만 골라 시스템 새 판으로
- 손댄 것이 없으면 시스템 파일 그대로 복사(판이 시스템과 같음) · 있으면 고쳐 쓰고 manifest 에 출처 판
- 기존 프로젝트 6개 작업본 · _initial 갱신 완료

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LuapLYqN1GGFD8Y1PStD5
This commit is contained in:
2026-09-25 12:03:10 +09:00
co-authored by Claude Opus 5.5
parent abd0d4b126
commit 07953fa523
3 changed files with 112 additions and 8 deletions
@@ -209,6 +209,15 @@ def _write_manifest(layer_dir: str | Path, entries: dict[str, Any]) -> None:
atomic_write_json(Path(layer_dir) / MANIFEST_NAME, {"양식": entries})
def note_source(
layer_dir: str | Path, kind: str, name: str, source_layer: str, version: str
) -> None:
"""manifest 한 줄 — 복사가 아니라 고쳐 쓴 양식의 출처 · 판."""
manifest = read_manifest(layer_dir)
manifest[f"{kind}/{name}"] = _stamp(source_layer, name, version)
_write_manifest(layer_dir, manifest)
def _stamp(layer: str, name: str, version: str | None, **extra: Any) -> dict[str, Any]:
entry = {
"층": layer,