Working Draft for public comment. This version shall not be used to claim conformance. Full text, reference checker, schemas and tests: doi:10.5281/zenodo.23422120 · Built on ECS-1 v0.6.1 (doi:10.5281/zenodo.23416950) · Comments: [email protected]
يحمل هذا الامتدادُ سجلّاتِ معيار العُهدة المعرفيّة (ECS) داخل رسائل بروتوكول A2A الذي تتخاطب به الوكلاءُ الذكيّة. كلُّ ادّعاءٍ جوهريّ ينتقل بين وكيلين يحمل «جوازَ معلومة» يذكر مصدرَه، ونوعَه (مَقيسٌ أو مُقدَّرٌ أو مُستنتَج)، وثقتَه، وما يجهله منتِجُه، ومعه سجلُّ عُهدةٍ يُثبت الطريقَ الذي مرّ به خطوةً خطوة.
الوكيلُ المستقبِل يتحقّق من الجوازات وبصماتها قبل أن يعتمد عليها، وما لا يجتاز الفحصَ يُعامَل معاملةَ الادّعاء مجهول المصدر. وإذا طُلب من وكيلٍ عملٌ ذو أثر (شراءٌ أو دفعٌ أو توقيع) يقوم على معلومةٍ فيها مجهولٌ جوهريّ، توقّف وطلب إذنًا من شخصٍ مُسمّى أو حكمًا مستقلًّا، عبر حالات المهامّ الموجودة في البروتوكول دون أن يُضيف إليه شيئًا. الامتدادُ لا يغيّر محتوى الرسائل، والوكيلُ الذي لا يعرفه يتجاهله دون أن يتعطّل.
هذه مسوّدةٌ مطروحةٌ للتعليق، وستتبعها ترجمةٌ عربيّةٌ رسميّةٌ كاملة. التعليقات: [email protected]
| Document | ECS-A2A-1 |
| Version | 0.1, Working Draft (for public comment) |
| Date | 2026-10-16 |
| Extension URI | https://ecs-standard.org/ext/a2a/custody/v1 (this document is served there) |
| DOI | 10.5281/zenodo.23422120 |
| Status | Draft. This version SHALL NOT be used to claim conformance. |
| Built on | ECS-1 v0.6.1 (Epistemic Custody Standard, Part 1), doi:10.5281/zenodo.23416950 · A2A Protocol v1.0 |
| Thesis | Eliyan, A. (2026). Chain of Epistemic Custody (GAIBRA Whitepaper No. 3, v1.0). doi:10.5281/zenodo.23417566 |
| Editor | Abdullah Eliyan |
| Licence | Text: CC BY 4.0 |
| Reference checker | validate_ecs_a2a.py, published with this document in ecs-a2a-1-0.1-files.zip (with the schemas, the worked example and the negative tests) |
1.1 A2A lets agents built by different parties exchange messages and tasks. It authenticates agents and carries content, but it does not say what the claims in that content are worth: where each came from, whether it was measured, estimated or inferred, what its producer declares as unknown, and through whose hands it passed.
1.2 This extension carries the records of ECS-1 inside A2A, so that the claims that cross between agents keep their standing. It specifies:
1.3 This extension adds no RPC method, no task state and no field to any A2A core object. All its data sits in the metadata maps that A2A provides for extensions, as the A2A Extensions guidance requires. It is a profile extension in the terms of that guidance.
1.4 ECS-1 governs the meaning of every record carried here. Where this document and ECS-1 differ on a record's content or rules, ECS-1 governs.
| Extension | What it carries | Relation to this extension |
|---|---|---|
| Secure Passport (A2A samples) | The caller's identity, session and signed state | Different object: it describes the caller. This extension describes the claims. The two can be active together. The ECS term Information Passport is unrelated to it. |
| Traceability (A2A samples) | Call chains, steps, cost, tokens, latency | Different object: it traces operations. This extension traces the standing of claims. A trace id MAY be recorded alongside, but neither replaces the other. |
| Message-signing and transport security (mTLS, signed tokens) | Who sent a request, and that its bytes were not altered in transit | Necessary and complementary. Transport security proves the sender of a hop; it does not prove the origin or standing of a claim several hops back (§7). |
The terms of ECS-1 Clause 3 apply. In addition:
2.1 extension key — a key of an A2A metadata map defined by this extension. Every extension key starts with the extension URI followed by /.
2.2 custody-aware agent — an A2A agent that declares this extension in its AgentCard and meets §5 and §6.
2.3 sender, receiver — for one A2A message or artifact, the agent that produces it and the agent that receives it.
The key words SHALL, SHALL NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119 and RFC 8174 when they appear in bold capitals.
3.1.1 The URI of this version is https://ecs-standard.org/ext/a2a/custody/v1. This document SHALL be served at that URI.
3.1.2 A change that breaks this version SHALL use a new URI (…/v2). An agent asked to activate a version it does not support SHALL ignore the request and SHALL NOT fall back to another version, as A2A requires.
3.2.1 A custody-aware agent SHALL list this extension in capabilities.extensions of its AgentCard:
{
"uri": "https://ecs-standard.org/ext/a2a/custody/v1",
"description": "Claims carry ECS-1 Information Passports and custody entries.",
"required": false,
"params": {
"ecs_version": "ECS-1/0.6",
"agent_id": "https://agents.example/market-research",
"roles": ["producer", "forwarder"],
"signs_passports": true,
"jwks_uri": "https://agents.example/market-research/.well-known/ecs-jwks.json",
"conformance_claim": null,
"arbiter": null
}
}
3.2.2 The params object SHALL contain:
| Field | Content |
|---|---|
ecs_version |
The schema version of the records the agent emits, for example ECS-1/0.6 |
agent_id |
The identifier the agent uses in producer.id, from and to. It SHOULD be the URL of one of its supportedInterfaces |
roles |
One or more of producer, forwarder, consumer, arbiter |
signs_passports |
true if the agent signs the passports it produces (§7) |
and MAY contain jwks_uri (required when signs_passports is true), conformance_claim (a claim under ECS-1 12.3, or null), and arbiter (the identifier of an arbiter the agent uses, or null).
3.2.3 An agent SHOULD NOT mark this extension required: true. Custody is valuable to a recipient that understands it and harmless to one that does not (ECS-1 5.9.3 applies by analogy). An agent MAY mark it required for a skill that performs consequential actions (§8), and SHALL then reject requests that do not activate it, with an appropriate error.
3.3.1 A client activates this extension by listing its URI in the A2A-Extensions request header. An agent that activates it SHALL list its URI in the A2A-Extensions response header.
3.3.2 When the extension is not active on a request, the agent SHALL process the request as an ordinary A2A request, and SHALL NOT read or emit the extension keys on it.
4.1 The records are carried in the metadata map of the A2A object that contains the claims:
| A2A object | Use |
|---|---|
Message.metadata |
Claims made in the message's parts |
Artifact.metadata |
Claims made in an artifact's parts; and the Verdict Fingerprint of a judged artifact (§9) |
Task.status.message.metadata |
A clearance request (§8) |
4.2 Extension keys:
| Key | Value |
|---|---|
…/custody/v1/passports |
Array of Information Passports (ECS-1 Annex A.1) for the material claims in this object |
…/custody/v1/custody |
Array of custody entries (ECS-1 Annex A.2), in hop order for each claim_ref |
…/custody/v1/signatures |
Object mapping passport_id to a detached signature (§7) |
…/custody/v1/passport-refs |
Array of { "passport_id", "url", "integrity" } for passports carried by reference (§4.5) |
…/custody/v1/clearance-request |
A clearance request (§8.2) |
…/custody/v1/clearance |
A clearance (§8.3) |
…/custody/v1/fingerprint |
A Verdict Fingerprint (ECS-1 Annex A.4) |
where … stands for https://ecs-standard.org/ext.
4.3 Anchoring a claim. Each passport SHALL identify the claim it covers. Where the claim text is reproduced in claim.text, claim.locator SHOULD point to its place in the object, as parts[<index>]#<anchor>, where <anchor> is a marker that appears in that part's text, for example [claim-1]. Where the claim text is withheld for confidentiality, claim.locator SHALL be present.
4.4 No change to parts. The extension SHALL NOT require any change to the content of parts. Anchors are ordinary text; an agent unaware of this extension reads them as text.
4.5 By reference. Where the passports would make an object too large, the sender MAY carry them by reference: each entry of passport-refs gives the URL of the passport and its integrity value. The receiver SHALL retrieve each referenced passport and SHALL check that its recomputed integrity equals the value in passport-refs before relying on it. A passport that cannot be retrieved is treated as absent (ECS-1 5.1.3).
5.1 Passports. A custody-aware sender that offers an object as conforming SHALL carry a passport for every material claim in it (ECS-1 5.1.1), with producer.id set to the producer's agent_id where the sender produced the claim.
5.2 One custody entry per claim per hop. For each passported claim, the sender SHALL append one custody entry for the hop it is making, with from set to its own agent_id and to set to the receiver's agent_id, and with prev set to the integrity value of the previous entry for that claim, or null where the sender produced the claim.
5.3 Carry the chain. The sender SHALL carry, for each claim, every custody entry it received for that claim, followed by its own, in hop order. The receiver can then verify the chain from origin to itself.
5.4 Forwarding rules. ECS-1 Clause 6 applies to every hop. In particular, a sender SHALL NOT raise a claim's epistemic type, increase its confidence or remove a declared unknown except by supersede with new evidence (ECS-1 5.8, 6.4), and SHALL NOT restate a claim without its qualifiers (ECS-1 6.6.2).
5.5 Derived claims. A claim the sender computes from received claims SHALL carry source kind derived, list its inputs in derived_from, and inherit their material unknowns (ECS-1 6.5).
6.1 On receiving an object with this extension active, a custody-aware receiver SHALL, before relying on any passported claim:
prev and that its last entry is addressed to the receiver's agent_id;signs_passports: true, verify the signature of every passport whose producer is that sender (§7).6.2 A claim that fails any check of 6.1, or carries no passport, SHALL be treated as provided in ECS-1 5.1.3 (inferred, source unknown, confidence unknown), and the failure SHALL be recorded in the custody entry of the receiver's next hop (verification: failed or absent).
6.3 A receiver SHALL NOT reject a whole object only because some of its claims fail 6.1. It downgrades those claims and proceeds, unless a clearance rule (§8) or its own policy requires otherwise.
6.4 The reference checker validate_ecs_a2a.py implements checks a) to e).
7.1 Why. An integrity value shows that a record was not changed after it was sealed. It does not show who sealed it. A forwarder that changes a passport and recomputes its integrity value leaves a record that passes 6.1 b). Transport security does not close this gap either: it proves who sent the last hop, not who produced the claim several hops back.
7.2 A producer that declares signs_passports: true SHALL sign each passport it produces with a JWS (RFC 7515) in detached form, with an algorithm of at least the strength of ES256 or EdDSA. The signing input is the RFC 8785 canonical form of the complete passport, including its integrity field. The signature is carried in the signatures map, keyed by passport_id, as { "jws": "<header>..<signature>", "kid": "<key id>" }.
7.3 The producer SHALL publish its verification keys at the jwks_uri of its AgentCard declaration.
7.4 A forwarder SHALL forward signatures unchanged with the passports they sign. A forwarder that issues a new passport (downgrade, supersede, derive) signs that new passport as its producer, where it signs passports at all.
7.5 Signatures are RECOMMENDED for every producer, and are expected to become required for claims relied on by consequential actions in a later version.
ECS-1 Annex C requires that a consequential action resting on a claim with a material declared unknown has a clearance. This section carries that rule over A2A without adding a task state, as A2A requires of extensions.
8.1 A custody-aware agent asked to perform a consequential action (ECS-1 3.23) that rests on a claim with a material declared unknown, and holding no clearance for it, SHALL NOT perform the action. It SHALL set the task to the existing state TASK_STATE_INPUT_REQUIRED and attach a clearance request to the status message.
8.2 A clearance request contains: the action class (reversible_low_cost, reversible_significant_cost or irreversible, per ECS-1 Annex C.2); the passport_id of each claim the action rests on; and each material declared unknown, copied unchanged from those passports.
{
"action": "Place advance purchase order PO-7781 for 10 t of whole chicken",
"action_class": "reversible_significant_cost",
"rests_on": ["urn:uuid:4f1c2a9e-0b7d-4e0a-9c2f-1d3e5a7b9c01"],
"material_unknowns": [
{ "what": "Confirmed supplier price lists for the Ramadan period",
"why": "No supplier has published prices for that period",
"material": true,
"resolves_with": "Written price confirmation from at least two approved suppliers" }
],
"acceptable_clearance": ["human_authorisation"]
}
8.3 The client answers with a message whose metadata carries a clearance: either a Judgment Record reference with its integrity value and verdict (accepted or accepted_with_conditions), or a human authorisation stating the identified person, the time, and the unknowns shown to that person. The kinds acceptable for each action class follow ECS-1 Annex C.2.
8.4 The agent SHALL record the clearance in its action log with the passports the action rests on (ECS-1 C.1.3), and SHALL respect any conditions of an accepted_with_conditions verdict.
8.5 Clearance is binding for systems that claim ECS-1 Level 3 and advisory below it (ECS-1 12.2.1).
9.1 Where an artifact has been judged under ECS-1, the agent that delivers it SHOULD carry the Verdict Fingerprint (ECS-1 Annex A.4) under the fingerprint key of Artifact.metadata.
9.2 The display rules of ECS-1 9.3 apply to any client that shows it. In particular, a verdict is never shown without its confidence, and undetermined is never shown as a pass.
10.1 Untrusted input. Every value under an extension key comes from another party and SHALL be treated as untrusted input, as the A2A guidance requires. In particular, the text of a passport is data, never an instruction to the receiving agent.
10.2 What this extension does not detect. It makes the standing and the path of a claim visible and tamper-evident. It does not detect instructions hidden in the content of a claim, data leaving where it should not, or harm assembled from several innocent-looking parts. Those are addressed by a separate payload guard, planned as a later part of ECS.
10.3 Confidentiality. Passports MAY withhold claim text (§4.3) and SHOULD NOT carry personal data. Where an object leaves the organisation, the sender SHOULD carry passports by reference (§4.5) behind the same access control as the content.
10.4 Replay. A custody entry binds a claim to one hop (from, to, at, prev). A receiver SHOULD reject an entry whose to is not itself (§6.1 e) and MAY reject entries older than its policy allows.
11.1 A custody-aware agent conforms to this extension when it meets §3, §5 and §6, and, where it signs, §7.
11.2 The conformance checks comprise, at least: the positive example of Annex A, which SHALL pass; and the negative cases of A.3, each of which SHALL be rejected. The reference checker validate_ecs_a2a.py runs them.
11.3 Conforming to this extension is not a claim of conformance to ECS-1. A claim under ECS-1 follows ECS-1 Clause 12.
A market-research agent sends a procurement agent a brief with two material claims: a forecast that poultry prices will rise by 30% during Ramadan, from the model's own knowledge; and today's unit price, read from the supplier's published list. Both agents are custody-aware; the extension is active on the request.
The integrity values below are real. They are the SHA-256 of the RFC 8785 form of each record without its integrity field, and can be recomputed by anyone.
{
"messageId": "msg-0001",
"role": "ROLE_AGENT",
"parts": [
{ "text": "Market brief: poultry prices will rise by 30% during Ramadan [claim-1]. The current unit price of whole chicken is SAR 14.50 per kg [claim-2]." }
],
"metadata": {
"https://ecs-standard.org/ext/a2a/custody/v1/passports": [
{
"ecs_version": "ECS-1/0.6",
"passport_id": "urn:uuid:4f1c2a9e-0b7d-4e0a-9c2f-1d3e5a7b9c01",
"claim": { "text": "Poultry prices will rise by 30% during Ramadan", "locator": "parts[0]#claim-1", "value": 0.3, "unit": "ratio" },
"producer": { "id": "https://agents.example/market-research", "kind": "agent" },
"source": { "kind": "model_internal" },
"epistemic_type": "inferred",
"as_of": "2027-02",
"issued_at": "2026-10-16T09:00:00+03:00",
"confidence": { "level": "low" },
"declared_unknowns": [
{ "what": "Confirmed supplier price lists for the Ramadan period",
"why": "No supplier has published prices for that period",
"material": true,
"resolves_with": "Written price confirmation from at least two approved suppliers" }
],
"integrity": { "alg": "sha-256", "value": "79014fc52b2f73fcdfeb4929b68497f34eaae775c5924e7218ac68de209011b8" }
},
{
"ecs_version": "ECS-1/0.6",
"passport_id": "urn:uuid:7a0d3b52-61c4-4f8e-a2d9-0e5b8c3f1a77",
"claim": { "text": "Current unit price of whole chicken is SAR 14.50 per kg", "locator": "parts[0]#claim-2", "value": 14.5, "unit": "SAR/kg" },
"producer": { "id": "https://agents.example/market-research", "kind": "agent" },
"source": { "kind": "primary", "reference": "https://supplier.example/price-list/2026-10-15", "retrieved_at": "2026-10-16T08:40:00+03:00" },
"epistemic_type": "measured",
"as_of": "2026-10-15",
"issued_at": "2026-10-16T09:00:00+03:00",
"confidence": { "level": "high" },
"declared_unknowns": [],
"integrity": { "alg": "sha-256", "value": "08238713f624873d7312d9c75e090a3ac2510c6dded52dbfecc96234aedc64b2" }
}
],
"https://ecs-standard.org/ext/a2a/custody/v1/custody": [
{
"ecs_version": "ECS-1/0.6",
"entry_id": "urn:uuid:c1a7e0d2-0001-4b6e-9a51-3f0b2c7d9e11",
"claim_ref": "claim:poultry-ramadan-30pct",
"from": "https://agents.example/market-research",
"to": "https://agents.example/procurement",
"at": "2026-10-16T09:01:00+03:00",
"passport_in": "urn:uuid:4f1c2a9e-0b7d-4e0a-9c2f-1d3e5a7b9c01",
"passport_out": "urn:uuid:4f1c2a9e-0b7d-4e0a-9c2f-1d3e5a7b9c01",
"action": "forward",
"prev": null,
"integrity": { "alg": "sha-256", "value": "ac16d4e5d78824d368ed6188f3689b1a5d5fb262bd0cc32baa1afe2e13b2b24b" }
},
{
"ecs_version": "ECS-1/0.6",
"entry_id": "urn:uuid:c1a7e0d2-0002-4b6e-9a51-3f0b2c7d9e12",
"claim_ref": "claim:current-unit-price",
"from": "https://agents.example/market-research",
"to": "https://agents.example/procurement",
"at": "2026-10-16T09:01:00+03:00",
"passport_in": "urn:uuid:7a0d3b52-61c4-4f8e-a2d9-0e5b8c3f1a77",
"passport_out": "urn:uuid:7a0d3b52-61c4-4f8e-a2d9-0e5b8c3f1a77",
"action": "forward",
"prev": null,
"integrity": { "alg": "sha-256", "value": "89792638abada4380608eb96a6b9278d6b3277c473114b3f65649fc5090db7ae" }
}
]
}
}
What the procurement agent now knows: the forecast is inferred from the model's own knowledge, with low confidence and one material unknown; the unit price is measured from a named primary source. If it is later asked to place the advance order on the strength of the forecast, §8 applies: it answers TASK_STATE_INPUT_REQUIRED with the clearance request of §8.2, and the order waits for an identified person who sees the unknown.
Each of the following is a modification of A.2. The reference checker rejects all six; a conforming receiver SHALL reject or downgrade the affected claims as §6.2 provides.
| # | Modification | Rejected by |
|---|---|---|
| N1 | Forecast's epistemic_type changed to measured, integrity not recomputed |
§6.1 b) integrity |
| N2 | Forecast's confidence raised to high, integrity recomputed |
§6.1 c) ECS-1 5.5.3 |
| N3 | Forecast's declared unknown removed | §6.1 b) integrity |
| N4 | Custody entry of the unit price removed | §6.1 d) no hop recorded |
| N5 | First entry's to changed to another agent, integrity recomputed |
§6.1 e) not addressed to receiver |
| N6 | First entry's prev forged |
§6.1 e) chain broken |
Note: a forwarder that raises the forecast's confidence to medium and recomputes the integrity value passes checks a) to e). Only the producer's signature (§7) detects it. This is the reason §7 exists.
End of ECS-A2A-1 v0.1 Working Draft.