Link security knowledge to human decisions and guided runbooks
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a101af-e240-7882-a1e3-e37720cbdbea
This commit is contained in:
parent
1d2d2cdeb8
commit
445179edfa
23 changed files with 1031 additions and 16 deletions
|
|
@ -223,3 +223,16 @@ def test_resume_reload_rechecks_sources_instead_of_reusing_a_verdict(bundle):
|
|||
second = Knowledge(bundle).retrieve("start", today=TODAY)
|
||||
assert second["status"] == "withheld"
|
||||
assert first["package_digest"] != second["package_digest"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize('owner,card', [('informed-decision', 'decisions'), ('runbook-tutorials', 'runbooks')])
|
||||
def test_withdrawn_handoff_owner_withholds_journey_and_startup(bundle, owner, card):
|
||||
sources = read_yaml(bundle / 'sources.yaml')
|
||||
next(s for s in sources['sources'] if s['id'] == owner)['status'] = 'withdrawn'
|
||||
write_yaml(bundle / 'sources.yaml', sources)
|
||||
seal(bundle)
|
||||
package = Knowledge(bundle)
|
||||
for name in (card, 'start'):
|
||||
result = package.retrieve(name, today=TODAY)
|
||||
assert result['status'] == 'withheld' and result['content'] == ''
|
||||
assert package.retrieve('root', today=TODAY)['content']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue