Skip to content

0.4.2

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 25 Nov 08:59
· 101 commits to main since this release
cb86b8e

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 id was answered with a bare {"ack": true} and skipped the §2.1 content check entirely; an empty id produced packet_ref: "". Such packets are now rejected with packet_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/https URLs are accepted.
  • Unsanitized MCP output (R-3). mcp_a2a returned every field of a packet, including absorption.hint, which the content scan never sees; peer replies were returned verbatim. Metadata is now scanned like content, absorption is reduced to its method, and replies carry untrusted: true.

Fixed

  • A version segment longer than 9 digits raised ValueError past CPython's 4300-digit int() limit and surfaced as HTTP 500; it is now 200 + 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 now 500 + internal_error: (R-5).
  • second_impl validated the schema before the content policy, so a directive packet with a malformed id was schema_invalid: there and content_policy: in the reference receiver. Both now screen content first.

Changed

  • send_message raises TransportError on a 3xx instead of returning the redirect body.
  • MCP replies gain an untrusted key; query_experience returns absorption as {"method": …} only.

Docs

  • SPEC.md states that RFC 2119/8174 keywords apply; three non-normative docs say so in their first paragraph; DATA_POLICY.md marks 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.md corrected: R2's two arms share one parser, so its zero is an identity, not a measurement.
  • New llms.txt and AGENTS.md.

Upgrade

pip install --upgrade ai-oriented-a2a==0.4.2

No message, field or schema changed.