feat(tasks): define investigation report contract and history
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user