Human Approval and Control Boundaries › Putting it together: a worked incident

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 49 of 67Long-Horizon Agents and Interoperability
Chapter 379Human Approval and Control Boundaries › Putting it together: a worked incident
Reading section 13 of 17 · Putting it together: a worked incident · 2 minSection 13 of 17 · 2 min

Section 13 of 17 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A designer makes a final change after Priya approves Acorn’s original note. The worker sees the changed text and stops. Before the deadline, the worker submits the original version under Priya’s existing approval. The board accepts it, but the caller does not receive the acknowledgement. The recovery path reuses the same identity and key, then returns the original receipt. Priya then approves the rewritten note. Submitting it with the consumed operation key triggers a conflict and leaves the original publication intact.

PythonIn [24]
CollapseExpand
incident_broker = make_broker()
incident_id = incident_broker.decide(
    first_intent, "priya", 30, 330, 150, allow=True
)
incident_results = [
    incident_broker.dispatch(rewritten, "publisher", 39, incident_id).status,
    incident_broker.dispatch(
        first_intent, "publisher", 40, incident_id, lose_ack=True
    ).status,
    incident_broker.lookup_receipt(first_intent, "publisher").status,
    incident_broker.dispatch(first_intent, "publisher", 41, incident_id).status,
]
replacement_id = incident_broker.decide(
    rewritten, "priya", 44, 344, 164, allow=True
)
incident_results.append(
    incident_broker.dispatch(rewritten, "publisher", 45, replacement_id).status
)
PythonIn [25]
CollapseExpand
print("incident outcomes:", incident_results)
print("simulated publications:", len(incident_broker.committed))
assert incident_results == [
    "intent-changed",
    "ack-unknown",
    "already-committed",
    "already-committed",
    "key-conflict",
]
assert len(incident_broker.committed) == 1
ConsoleOut [25]
CollapseExpand
incident outcomes: ['intent-changed', 'ack-unknown', 'already-committed', 'already-committed', 'key-conflict']
simulated publications: 1

A worker debugging this example should first reconstruct what was approved, then what reached the publish boundary, and finally what receipt exists under the original key. Retrying with a brand-new key would change the operation being reconciled. If stakeholders really want to publish a corrected note, ask them to authorize a separate action under its own key. The separate receipt can refer to the old one through application metadata without erasing it.

Here the new decision applies to a distinct key. The fixture commits it and preserves both records. Matching the new artifact digest means the second record cannot stand in for the first.

PythonIn [26]
CollapseExpand
new_operation = replace(rewritten, request_key="release-acorn-1.4-correction")
new_id = incident_broker.decide(
    new_operation, "priya", 50, 350, 170, allow=True
)
second = incident_broker.dispatch(new_operation, "publisher", 51, new_id)
assert second.status == "committed"
assert len(incident_broker.committed) == 2
assert (
    second.receipt.artifact_digest
    != incident_broker.lookup_receipt(
        first_intent, "publisher"
    ).receipt.artifact_digest
)
print("separately authorized correction:", second.status)
ConsoleOut [26]
CollapseExpand
separately authorized correction: committed

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