Repository navigation
0.4.2
Patch release. Wire format unchanged — schema/ is identical to 0.4.1 and SPEC.md gains only the RFC 2119/8174 boilerplate, so receivers are unaffected and 0.4.0/0.4.1 peers interoperate unchanged.
Security
Three defects that a remote peer can trigger are fixed. Upgrade if you run a receiver or use send_message.
- Unattributable absorption (R-1). A packet with a blank or missing
idwas answered with a bare{"ack": true}and skipped the §2.1 content check entirely; an emptyidproducedpacket_ref: "". Such packets are now rejected withpacket_ref: "unknown", after the content check runs. - Redirect-based allowlist bypass (R-2). urllib follows a 303 by re-issuing the request as a GET and returning the new body, so a peer could point the client at an internal URL and get its body back as the "reply". Redirects are refused and only
http/httpsURLs are accepted. - Unsanitized MCP output (R-3).
mcp_a2areturned every field of a packet, includingabsorption.hint, which the content scan never sees; peer replies were returned verbatim. Metadata is now scanned likecontent,absorptionis reduced to itsmethod, and replies carryuntrusted: true.
Fixed
- A version segment longer than 9 digits raised
ValueErrorpast CPython's 4300-digitint()limit and surfaced as HTTP 500; it is now200 + unsupported_version(R-4). - A handler returning
None, a list, a string or a bare dict produced HTTP 200 with a non-result body; it is now500 + internal_error:(R-5). second_implvalidated the schema before the content policy, so a directive packet with a malformed id wasschema_invalid:there andcontent_policy:in the reference receiver. Both now screen content first.
Changed
send_messageraisesTransportErroron a 3xx instead of returning the redirect body.- MCP replies gain an
untrustedkey;query_experiencereturnsabsorptionas{"method": …}only.
Docs
SPEC.mdstates that RFC 2119/8174 keywords apply; three non-normative docs say so in their first paragraph;DATA_POLICY.mdmarks which section is normative.docs/VERSIONING.md: the forward-compatibility rule is conditional — a receiver that does not schema-validate MUST ignore unknown OPTIONAL fields.docs/WP3_FINDINGS.mdcorrected: R2's two arms share one parser, so its zero is an identity, not a measurement.- New
llms.txtandAGENTS.md.
Upgrade
pip install --upgrade ai-oriented-a2a==0.4.2
No message, field or schema changed.