Repository navigation
Replies: 3 comments 16 replies
|
The occurrence / evidence / acceptance split is the right cut, and the rule that a provider's On the evidence layer, there is already an IETF-track format for per-operation execution evidence. AER-1 (draft-zambo-aer1, currently at revision 26) defines a receipt per operation: the receipt id is a label outside the committed payload, the payload is a SHA-256 digest over the exact saved output bytes, and receipts chain per job, so the evidence for one occurrence can be recomputed byte-exact by anyone holding the saved output. Its outcome vocabulary keeps evaluated and unevaluated states separate: an anchor can read "verified" or "verification failed", but one nobody evaluated stays "not checked" or "absent", never silently promoted. A receipt proves the saved result was not changed after it was saved. It does not prove the answer was right, and it does not mint acceptance, which is why your third record has to exist as a separate, consumer-issued act. An acceptance record could point at an AER-1 receipt id plus its digest as the evidence reference and stay interoperable with your Agent Card extension shape. One mapping question your strawman raises: occurrence identity across retries, which your attemptId handles at the proposal level. In production, Zambo (the origin implementation) chains a receipt per call to its job, 144,152 public receipts issued as of today, so the chain itself is the occurrence history a consumer evaluates before accepting anything. If it is useful, I can map your occurrence fields to AER-1 fields in this thread. The conformance corpus is public (143 vectors, 146 checks), so any mapping gets executable tests; one independent implementer is documented passing the full corpus at 143/143. Disclosure: I work on Zambo. Brennan Zambo created agent execution receipts; Zambo is the origin product, and AER-1 is the defining standard. |
|
|
Uh oh!
There was an error while loading. Please reload this page.
Problem
A task reaching
TASK_STATE_COMPLETEDorTASK_STATE_FAILEDdoesn't say which individual metered operations inside it produced agreed deliverables.Example: a workflow has five metered steps.
FAILED, yet three candidate deliverables were produced, one operation failed, and one never ran.A2A doesn't currently standardize an interoperable per-operation record connecting a specific logical operation occurrence, its execution evidence, and whether the consumer accepted it as a metered unit.
Related work
Adjacent threads this builds on rather than replaces:
I couldn't find one that defines a per-operation identity, or a consumer's acceptance recorded separately from the provider's claim and the task's terminal state. That's the gap this proposes to fill.
Model
Three separate records:
executionStatusofrunning,completed,failedorindeterminate. An occurrence exists once execution is initiated. An operation never attempted stays in the workflow plan, not as an occurrence.acceptedorrejected, a quantity, and the contract version the occurrence was evaluated against. A pending decision is the absence of a final record. Dispute, revocation and correction can be considered separately.A provider's
completednever creates accepted usage on its own. No charge should be inferred solely from an AgentSkill description, a tool call, a completion claim, or the parent task's terminal state. Price, tax, payment methods and settlement stay out of scope.Strawman (names illustrative)
Agent Card, using the existing
capabilities.extensionsmechanism:{ "capabilities": { "extensions": [{ "uri": "https://example.org/a2a/ext/operation-receipts/v1", "description": "Operation-level execution evidence and usage acceptance records", "required": false, "params": { "operations": [{ "operationId": "support.draft_response", "operationVersion": "1", "skillId": "support", "outputSchema": "https://example.org/schemas/draft-v1.json", "unit": "accepted_response_draft" }] } }] } }The URI is a placeholder, not an assigned namespace. Operation definitions are extension configuration and don't replace
AgentSkilldeclarations.Occurrence, carried as
DataPartcontent in an Artifact with extension metadata:{ "taskId": "task-456", "occurrenceId": "occ_03", "attemptId": "attempt_01", "operationId": "support.draft_response", "operationVersion": "1", "executionStatus": "completed", "evidence": [{ "type": "a2a-artifact", "taskId": "task-456", "artifactId": "draft-01", "digest": "sha256:..." }], "contractRef": { "id": "support-services", "version": "1", "digest": "sha256:..." } }occurrenceIdidentifies one logical operation, andattemptIddistinguishes retries.Acceptance record, separate and not provider-authored:
{ "receiptId": "receipt-123", "taskId": "task-456", "occurrenceId": "occ_03", "decision": "accepted", "quantity": 1, "unit": "accepted_response_draft", "contractRef": { "id": "support-services", "version": "1", "digest": "sha256:..." } }Its issuer and trust context must be identifiable. It carries accepted quantity and references, not an invoice amount. No core fields or
TaskStatevalues change.For digests I'd reuse JCS (RFC 8785), which A2A already uses for Agent Card signing in §8.4.1, rather than add another canonicalization. The extension would need to pin the exact bytes hashed, field-presence/default handling, and exclusion of digest and signature fields.
Open questions
occurrenceIdbe derived from(taskId, stepKey), with retries reusing it and getting distinctattemptIdvalues? How should this work across resumed tasks and delegated execution?DataPartwith extension metadata, task metadata, or a dedicated event? Acceptance records shouldn't look provider-authored. Could A2A extension `https://fractalai.net.co/a2a/ext/pqc-receipt/v1`: payment-bound delivery receipts on Artifacts #2330's delivery digest be an evidence component, and SEP: Capability-based authorization #1404'sfulfillment_refpoint at an occurrence?Known risks: hashes over mutable external state, forged or replayed records, duplicate acceptance after retries, and evidence references that leak consumer data.
If there's interest, I'd like to take this through the experimental-extension path rather than the core spec. Feedback especially welcome from contributors to #1404, #1576, #2124, #2150, #2290 and #2330.
All reactions