Examples
Durable principal-bound approval records and auto-approve policy
Examples
Section titled “Examples”The home example stages one pending write using native SQLite. The packed
consumer in test/stranger/runtime.mjs continues through a human answer,
application and result handoff. It observes one dispatch and one send across
sequential successful retries; it is not a real Agent transport proof.
To integrate those steps, pass answer a freshly resolved human member and the
record’s expected revision. Supply apply with an ApprovalApplyHost:
recheck reads the requester’s current authority and fence, and dispatch
calls your existing operation door. Approval does not grant missing authority.
Finally, handoff sends the result through your ordinary message API and
records its command receipt. Use the notice’s stable deliveryId for recipient
deduplication.