symfonic.agent.receipt_reconciliation¶
receipt_reconciliation ¶
Explicit, read-only recovery evidence for a receipt-backed public Agent.
The host must persist the opaque handle before invoking the Agent. A host-owned authority authenticates the current principal and declares executable versions. This module never resumes a turn, returns an AgentResult, or authorizes replay.
ReceiptReconciliation
dataclass
¶
A durable proof or uncertainty; IN_FLIGHT needs future lease evidence.
abandon_receipt_handle
async
¶
Host-authorized cancellation only before a durable claim has begun.
A source created earlier retains the pin object; its preclaim hook sees ABANDONED and refuses rather than running after cancellation.
Source code in src/symfonic/agent/receipt_reconciliation.py
prepare_receipt_handle
async
¶
prepare_receipt_handle(agent: Any, prompt: str, *, invocation: Any, authority: Any, attachments: tuple[Any, ...] = (), history: tuple[Any, ...] = (), state: Any = None, session_id: str = '', output_type: Any = None) -> str
Issue before effects; the next run/stream must use this exact request.
The host persists the returned value before calling run/stream. Its authority must be created after application authentication; the library has no default. Every provider/tool executable must have a host-declared version key. A majority read refuses IDs already claimed, including across fresh processes.
Source code in src/symfonic/agent/receipt_reconciliation.py
reconcile_receipt
async
¶
Read exact Mongo evidence; absence or uncertainty never licenses replay.