Human Approval and Control Boundaries › Failure mode: ambiguous acknowledgement
Language AI HandbookAll chapters The word “yes” in a conversation may acknowledge an update or agree to keep preparing a draft. It is too ambiguous to authorize an external effect when there are several pending proposals. Resolve the displayed proposal in the UI, collect an explicit decision for its immutable intent, and send that decision through the trusted approval path. A chat turn that does not select an operation remains conversational evidence only.
PythonIn [14]Expand
ack_broker = make_broker()
print(
"plain acknowledgement:",
ack_broker.dispatch(first_intent, "publisher", 41, None).status,
)
no_id = ack_broker.decide(first_intent, "priya", 42, 342, 162, allow=False)
print(
"recorded denial:",
ack_broker.dispatch(first_intent, "publisher", 43, no_id).status,
)ConsoleOut [14]Expand
plain acknowledgement: approval-required recorded denial: denied
There is a separate ambiguity after dispatch. The caller can time out even though the remote service performed the operation. The safest next step depends on what the service can report about the original operation. If it has a stable receipt identity, look up that instance. If the service promises idempotency for the same principal, key and intent, a retry using those exact values can recover the prior result. Losing a response alone does not establish either success or failure.
The Amazon Builders’ Library account of retries describes caller-provided request identifiers associated with the same caller. It calls for recording the key and making the corresponding changes atomically and durably. That requirement closes two failure cases: creating the effect without its idempotency record, and writing the record without making the effect. This single-threaded fixture models both as one dictionary insertion. It cannot establish the guarantees of an external service.
PythonIn [15]Expand
retry_broker = make_broker()
retry_id = retry_broker.decide(first_intent, "priya", 30, 330, 150, allow=True)
unknown = retry_broker.dispatch(
first_intent, "publisher", 47, retry_id, lose_ack=True
)
known = retry_broker.lookup_receipt(first_intent, "publisher")
repeat_result = retry_broker.dispatch(first_intent, "publisher", 48, retry_id)
print("first response:", unknown.status)
print("lookup:", known.status)
print("same-key retry:", repeat_result.status)
print("simulated publications:", len(retry_broker.committed))ConsoleOut [15]Expand
first response: ack-unknown lookup: already-committed same-key retry: already-committed simulated publications: 1
The response is ambiguous because the demonstration discards the receipt returned to the caller. The committed record still exists. The unchanged retry can recover it while the current dispatch checks pass. After expiry, dispatch refuses the exact same request even when the original receipt still exists. The demo permits a separate lookup by the same requester under the current publication scope, regardless of approval expiry. Losing that scope blocks lookup while leaving the receipt in storage. A deployed service may give an audit owner separate read access. If the downstream cannot safely reconcile an uncertain attempt, keep the status uncertain and escalate it. A fresh key risks creating an independent operation.
A later denial can supersede an approval for the same operation. If the original publication already committed, a denial blocks dispatch and the authorized receipt lookup still returns that effect. In the next block no dispatch has committed yet, so replacing the decision creates a hold and produces no receipt.
PythonIn [16]Expand
decision_broker = make_broker()
allow_id = decision_broker.decide(
first_intent, "priya", 31, 331, 151, allow=True
)
denied_id = decision_broker.decide(
first_intent, "priya", 32, 332, 152, allow=False
)
print(
"superseded decision:",
decision_broker.dispatch(first_intent, "publisher", 33, allow_id).status,
)
print(
"new denial:",
decision_broker.dispatch(first_intent, "publisher", 33, denied_id).status,
)
assert not decision_broker.committedConsoleOut [16]Expand
superseded decision: decision-replaced new denial: denied
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!