Persist review evidence and deliver audit records transactionally

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
tegwick 2026-09-10 23:27:19 +02:00
parent 0e48355b9f
commit 2cc32168ac
14 changed files with 1474 additions and 22 deletions

View file

@ -181,7 +181,7 @@ def test_agent_cannot_perform_a_binding_verb(verb):
def test_agent_may_still_comment():
memo = make_memo()
pres = render(memo, principal_sub="bot")
pres = render(memo, principal_sub=AGENT.sub)
assert record(memo, pres, Verb.COMMENT, AGENT).verb is Verb.COMMENT
@ -434,7 +434,7 @@ def test_drain_failure_leaves_the_record_pending_never_lost():
def test_drain_delivers_and_counts_reconcile_per_class():
outbox = Outbox()
memo = make_memo()
pres = render(memo, principal_sub="b").with_ack("h-1")
pres = render(memo, principal_sub=HUMAN.sub).with_ack("h-1")
outbox.append(commit_presentation(pres, custody=CUSTODY))
outbox.append(commit_disposition(record(memo, pres, Verb.ACCEPT, HUMAN), custody=CUSTODY))
sent: list[dict] = []