Human Approval and Control Boundaries › Ownership and audit

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 49 of 67Long-Horizon Agents and Interoperability
Chapter 379Human Approval and Control Boundaries › Ownership and audit
Reading section 12 of 17 · Ownership and audit · 2 minSection 12 of 17 · 2 min

Section 12 of 17 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A record of the final decision should give an investigator enough context to answer who did what, to which resource, and whether a write actually occurred. Preserve the operation key, policy scope, approval and receipt references, and timestamps. Bind the referenced artifact to immutable bytes so the reader can inspect exactly what was approved without publishing those bytes in ordinary logs. Limit log access because audit trails can contain identifiers or operational detail.

An audit row should describe an attempted step even if it never changed the board. Recognizing a stale-plan rejection, a pause, or a denial can explain why a queue stalled. A replay that simply reads an existing receipt needs a different status from a write that created it, or a reader may count two publications for one accepted operation. Deleting denials would destroy evidence about what the worker tried, as well as about legitimate activity blocked by policy.

The demo logs the time, event, decision ID when available, actor, outcome, operation key, and digest of the attempted intent. Two rejected note variants can therefore have different digests even when both used the same approval and key. The log omits the note bytes. The demo logs accepted decision records, dispatch outcomes, and changes to interruption state. Receipt lookups and invalid issuance attempts before a decision is recorded are outside this log. A deployed service can specify separate access and logging for searches of existing receipts.

PythonIn [22]
CollapseExpand
print("stored approvals:", sorted(retry_broker.approvals))
print("committed operation keys:", sorted(retry_broker.committed))
assert sum(entry.event == "commit" for entry in retry_broker.audit) == 1
ConsoleOut [22]
CollapseExpand
stored approvals: [1]
committed operation keys: [('publisher', 'release-acorn-1.4')]
PythonIn [23]
CollapseExpand
print("retry audit:")
for entry in retry_broker.audit:
    print(
        entry.time,
        entry.event,
        entry.approval_id,
        entry.actor,
        entry.outcome,
        entry.operation_key,
        entry.intent_digest[:12],
    )
ConsoleOut [23]
CollapseExpand
retry audit:
30 decision 1 priya allow ('publisher', 'release-acorn-1.4') 7966c26d51d8
47 commit 1 publisher committed ('publisher', 'release-acorn-1.4') 7966c26d51d8
48 dispatch 1 publisher already-committed ('publisher', 'release-acorn-1.4') 7966c26d51d8

Here the simulated request created one commit row. The retry returned an existing receipt and produced a dispatch audit row. In larger systems, persist the trace together with its policy and receipt references, and restrict who can change it. A sample audit list is mutable in memory and fails to survive a process crash. Its value here is that the exact decision logic creates visible, distinct events.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy