refine audit-core multidriver use case roles
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a02991-be07-7bb3-8b6d-e9701b5621de
This commit is contained in:
parent
1b9860a8ee
commit
e254fd2000
2 changed files with 38 additions and 16 deletions
|
|
@ -131,6 +131,17 @@ def test_intent_has_independent_provenance_and_separate_roles():
|
|||
|
||||
def test_schedule_requires_cleanup_before_finalization():
|
||||
phases = {phase.id: phase for phase in PHASE_CONTRACTS}
|
||||
assert phases["finalize-and-deliver"].requires == ("cleanup-custody",)
|
||||
assert phases["finalize-and-deliver"].requires == ("verify-cleanup",)
|
||||
assert phases["verify-cleanup"].requires == ("cleanup-custody",)
|
||||
assert phases["cleanup-custody"].requires == ("delete-runner",)
|
||||
assert phases["run-probes"].requires == ("ready-runner",)
|
||||
|
||||
|
||||
def test_every_role_participates_in_a_phase():
|
||||
declared = {role.id for role in ROLE_CONTRACTS}
|
||||
scheduled = {
|
||||
role
|
||||
for phase in PHASE_CONTRACTS
|
||||
for role in phase.driver_roles
|
||||
}
|
||||
assert scheduled == declared
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue