feat: advance repository records and provenance

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a023c0-a0a3-7c03-b395-5a0d2757214d
This commit is contained in:
tegwick 2026-08-21 22:07:48 +02:00
parent 329af60753
commit 35e86d7b85
24 changed files with 1618 additions and 51 deletions

View file

@ -47,6 +47,18 @@ def test_durable_scaffold_writes_intent(tmp_path: Path):
assert report.ok, report.to_dict()
def test_scaffold_rerun_is_an_applied_noop(tmp_path: Path):
dest = tmp_path / "stable-tool"
first = scaffold_repository(dest, flavor="tooling", commit=False)
before = {path.relative_to(dest): path.read_bytes() for path in dest.rglob("*") if path.is_file()}
second = scaffold_repository(dest, flavor="tooling", commit=False)
after = {path.relative_to(dest): path.read_bytes() for path in dest.rglob("*") if path.is_file()}
assert first.status == second.status == "applied"
assert second.evidence["noop"] is True
assert second.evidence["written"] == []
assert after == before
def test_cli_scaffold(tmp_path: Path):
dest = tmp_path / "cli-tool"
assert (