feat: DGR-005A dense Llama owned range loader

This commit is contained in:
Dobromir Popov
2026-07-14 11:01:28 +03:00
parent 3d8f93f4aa
commit 252d131e7d
6 changed files with 385 additions and 9 deletions

View File

@@ -151,10 +151,11 @@ def _verify_patched_source(source: pathlib.Path, lock: dict[str, Any]) -> None:
raise DependencyError(f"patched paths drifted: expected {lock['patched_paths']}, got {changed_paths}")
if _git(source, "write-tree") != lock["patched_tree"]:
raise DependencyError("patched source tree differs from the locked patch stack")
status = _git(source, "status", "--porcelain", "--untracked-files=all").splitlines()
expected_status = [f"M {path}" if path == "CMakeLists.txt" else f"A {path}" for path in lock["patched_paths"]]
if status != expected_status:
raise DependencyError(f"local edits detected after applying patch stack: {status}")
if _git(source, "diff", "--name-only"):
raise DependencyError("local unstaged edits detected after applying patch stack")
untracked = _git(source, "ls-files", "--others", "--exclude-standard").splitlines()
if untracked:
raise DependencyError(f"untracked files detected after applying patch stack: {untracked}")
def build(source: pathlib.Path, build_dir: pathlib.Path) -> pathlib.Path: