feat(tasks): define investigation report contract and history

This commit is contained in:
2026-10-10 16:02:46 +08:00
parent 4a63fcd7ff
commit 2b6fc5aa52
12 changed files with 1380 additions and 52 deletions
@@ -53,8 +53,12 @@ async def test_dry_run_validates_historical_schema_before_any_network_access(tmp
args = argparse.Namespace(session_id="ses_test", agent_data=tmp_path, dry_run=True)
await run(args)
assert "2 nodes and 1 synthetic evidence records; no writes" in capsys.readouterr().out
args.dry_run = False
with pytest.raises(ValidationError):
await run(args)
args.dry_run = True
state["nodes"][1]["status"] = "invented_status"
state_path.write_text(json.dumps({"executionPlans": [state]}))
with pytest.raises(ValidationError):
await run(args)
assert "Ready" not in capsys.readouterr().out
assert "Validated" not in capsys.readouterr().out