feat(registrar): verify file-backed record rebuilds
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a023c0-a0a3-7c03-b395-5a0d2757214d
This commit is contained in:
parent
72856a00ad
commit
6e9c93e7ca
2 changed files with 60 additions and 10 deletions
|
|
@ -219,12 +219,16 @@ def test_bootstraps_and_verifies_a_completely_empty_projection(tmp_path: Path, m
|
|||
monkeypatch.setattr(
|
||||
rr,
|
||||
"_verify_full_projection",
|
||||
lambda _api, workplans, tasks: (
|
||||
lambda _api, workplans, tasks, records: (
|
||||
{
|
||||
"expected_workplans": len(workplans),
|
||||
"expected_tasks": len(tasks),
|
||||
"expected_intakes": len(records["intake"]),
|
||||
"expected_decisions": len(records["decision"]),
|
||||
"missing_workplans": [],
|
||||
"missing_tasks": [],
|
||||
"missing_intakes": [],
|
||||
"missing_decisions": [],
|
||||
},
|
||||
None,
|
||||
),
|
||||
|
|
@ -245,7 +249,12 @@ def test_bootstraps_and_verifies_a_completely_empty_projection(tmp_path: Path, m
|
|||
)
|
||||
|
||||
assert result.status == "applied"
|
||||
assert result.evidence["bootstrap_source"] == {"workplans": 1, "tasks": 1}
|
||||
assert result.evidence["bootstrap_source"] == {
|
||||
"workplans": 1,
|
||||
"tasks": 1,
|
||||
"intakes": 0,
|
||||
"decisions": 0,
|
||||
}
|
||||
assert result.evidence["bootstrap_projection_verified"] is True
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue