Repository navigation
Releases
v0.4.5
Release built from tag v0.4.5. The wire protocol is unchanged (v0.4, on-wire "0.4"), and the ai_oriented_a2a package code is unchanged since 0.4.3. New: a separate distribution, ai-oriented-a2a-mcp, that ships the MCP bridge (mcp_a2a) with its protocol core and a small CC0 seed corpus, so an MCP host can start it with one line (uvx ai-oriented-a2a-mcp); a fourth MCP tool, verify_packet, which checks a packet locally without sending it; and the non-normative docs/MAPPING_A2A_MCP.md. Front-door docs now say that peer discovery is endpoint-based and that an MCP registry listing is distribution only, and no longer say that a signature proves who sent a message.
Added
- A separately published distribution,
ai-oriented-a2a-mcp(packaging/mcp/), that ships the MCP bridge, its protocol core, and a small CC0 seed corpus so an MCP host can start it withuvx ai-oriented-a2a-mcp. verify_packet, a fourth MCP tool that checks a message locally against the reference receiver's checks and never sends anything.- Non-normative docs/MAPPING_A2A_MCP.md.
server.jsonat the repository root for an optional MCP Registry listing of the bridge (io.github.robotmarvin0706/ai-oriented-a2a). The listing is a distribution channel for MCP hosts, not peer discovery and not a trust signal.- A manual-only
.github/workflows/mcp-registry.ymlworkflow (workflow_dispatchonly) for publishing that listing after the matching package is live on PyPI. - An offline version-consistency step in the
docs-and-examplesjob:server.jsonversions,ai_oriented_a2a.__version__, and thepackaging/mcpversion andai-oriented-a2a==pin must match, and onlypackaging/mcp/README.mdmay carry themcp-name:marker.
Changed
- Front-door wording in
README.md,keywords.txt,llms.txt, anddocs/SECURITY.md: peer discovery is endpoint-based; an MCP registry listing of the bridge is distribution only. docs/SECURITY.mdno longer says a valid signature proves who sent a packet. A valid signature shows the message was signed by a holder of the key (with shared HMAC, any group member), not that its content is safe to follow.
v0.4.4
Library patch release, built from tag v0.4.4. The wire protocol is unchanged (v0.4, on-wire "0.4"), and the ai_oriented_a2a package code is unchanged since 0.4.3. This release tags work already on main: experiment 4 (a pre-registered one-model LLM-host replication of experiment 3; registered verdict R1a), the Go expiry and repro parity helpers in impls/go/, the MCP packet-exchange demo in examples/mcp_packet_exchange/, the experiment 4 tooling fixes, and the front-door docs refresh.
Full notes: CHANGELOG 0.4.4
v0.4.3
Library 0.4.3 (protocol still v0.4, on-wire "0.4"). This is a library patch release. It collects experiments 1–3, impls/go/, and the go-second-impl CI job already on main. The wire protocol is unchanged: no new fields, and SPEC.md / schema/ are not modified in this release.
Full details: CHANGELOG.md § 0.4.3 · Compare v0.4.2...v0.4.3
Install: pip install ai-oriented-a2a==0.4.3 (after PyPI publish).
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.
v0.4.1
Library 0.4.1 (protocol still v0.4, on-wire "0.4"). Collects #51 (timeout-recovery experiment), #52 (CI runs tests/experiments/), and #53 (WP0 hygiene, WP1 fair comparison, MCP requirement mcp>=2,<3). No wire-protocol change, no new fields, SPEC.md unchanged.
Fixed
examples/minimal_dual_end.pynow parses recovery parameters from packetcontentinstead of applying a hard-coded policy, and rolls back a change with no measured gain.examples/network_dual_end.pyseeds the simulated regression with a stable digest of the packet id, so results match across processes.
Changed
experiments/timeout_recovery/run.pywrites no files by default; committed results are only overwritten when you pass--results/--summary-dir/--data-dir.- MCP bridge requires
mcp>=2,<3and skips cleanly when the extra is missing or Python is older than 3.10. - CI
docs-and-examplesnow also runstests/experiments/.
Added
- Fair-comparison experiment changes (own_history search, mediocre_packet arm, token views A/B, WP3 decision rules R1–R4 pre-registered). Shared helpers live in
ai_oriented_a2a.recovery(non-normative).
Install: pip install ai-oriented-a2a==0.4.1 (after PyPI publish).
Full details: CHANGELOG.md · Compare v0.4.0...v0.4.1
v0.4.0
Protocol v0.4 and library 0.4.0. Collects #47 (untrusted content) and #48 (core constraints). 0.4 receivers still accept on-wire "0.3" and an omitted version.
Breaking (specification tightening)
- SPEC §2.1 Untrusted content: packet
content(and nested packets) is untrusted data, never instructions.prompt_injectionMUST wrap it in documented untrusted markers below system/host instructions. Directive-like content SHOULD be rejected withcontent_policy:and MUST NOT be auto-absorbed. - On-wire
versionis now"0.4".SUPPORTED_MAJOR_MINORis now((0, 3), (0, 4)): code that compared it with==must usein.
Added
ai_oriented_a2a.content:wrap_untrusted,scan_directives,content_policy_rejection. Six normative forbidden directive patterns indocs/DATA_POLICY.md. Two CC0 synthetic counter-examples indatasets/content_policy/.- OPTIONAL
verification_claimfieldsscenario_ref,metric,value,repro {seed, model, n}. - OPTIONAL Agent Profile
core_constraints; targeting one is rejected withimmutable_constraint:. - OPTIONAL
negotiation_idon all negotiation messages (andtarget_constrainton counter). Round cap pernegotiation_id, default 3; overflow getsnegotiation_limit:. Per-peer rate limit SHOULD; reputation MAY only. ai_oriented_a2a.negotiation:NegotiationGuard,DEFAULT_MAX_NEGOTIATION_ROUNDS = 3.second_implhas independent equivalents.- Rejection order when several apply:
content_policy:→negotiation_limit:→immutable_constraint:→negotiation_unsupported:. New prefixes registered in TRANSPORT.md. - New conformance suites
test_untrusted_content.pyandtest_core_constraints.pyfor both implementations.
Install: pip install ai-oriented-a2a==0.4.0 (after PyPI publish).
Full details: CHANGELOG.md · Compare v0.3.3...v0.4.0
v0.3.3
Library 0.3.3 — robustness fixes. Protocol unchanged (v0.3).
Install: pip install ai-oriented-a2a==0.3.3 (after PyPI publish).
Fixed
- Non-finite numeric timestamps (
NaN,Infinity,-Infinity):parse_timestampandcheck_replayreject them withreplay_or_stale: invalid timestamp.second_implReplayWindowdoes the same, so the two implementations agree. Previouslyjson.loadsacceptedNaN, the window check passed (abs(now - nan) > windowis never true), and the reference raisedValueErroronint(parsed)whilesecond_implaccepted the message. Integers too large for a float are rejected the same way. - Replay cache updates (
any(...)duplicate check, insert, and_evict) run under onethreading.Lockbound to the seen set (newReplayCache), so aThreadingHTTPServerno longer fails withSet changed size during iterationunder concurrent requests.check_replay/check_incomingstill accept a bare set (optionally with a sharedlock=). A2ARequestHandler.seen_noncesno longer defaults to one class-levelset()shared by every subclass that does not override it.make_handlerinjects a freshReplayCacheper handler class, shared by all request threads; a bare set assigned by a subclass is wrapped on first use.make_server(reference andsecond_impl) listens with a backlog of 128 instead of socketserver's 5, so a burst of 16 concurrent peers no longer sees connection resets.examples/network_dual_end.pyanswers a negotiation message with a legal rejected Absorption Result (negotiation_unsupported:,packet_ref=offered_packet.idor"unknown") instead of{"ack": True}. Closes KNOWN_GAPS #1.
Changed
do_POSTinai_oriented_a2a.transport(andsecond_impl) wrapscheck_incomingand the message callback in onetry. Unexpected exceptions return HTTP 500 andinternal_error: message handler failed, with no traceback, path, or exception text.- Request bodies are capped at
MAX_BODY_BYTES(1_048_576). Missing, invalid, or too-largeContent-Lengthreturns HTTP 413 and a rejected Result whose reason starts withpayload_too_large:, decided before the body is read. Prefix registered in TRANSPORT.md. - Package docstring no longer says "no HTTP server". TRANSPORT.md says the example uses
ai_oriented_a2a.transport. README links to SPEC, CHANGELOG, and docs use absolute GitHub URLs so they work on the PyPI project page. - New conformance cases in
tests/conformance/test_robustness.py(both implementations): non-finite timestamps, the 413 limit, negotiation rejection, and 16 concurrent requests against a threaded server.
Full changelog: v0.3.2...v0.3.3
v0.3.2
protocol stays v0.3; library 0.3.2.
Breaking
- BREAKING: String
timestampvalues MUST be ISO-8601 with a timezone. All 7timestampdefinitions inschema/now restrict the string form toYYYY-MM-DDTHH:MM:SS, an optional 3- or 6-digit fraction, andZor±HH:MM. Messages that used other strings now fail schema validation, for example"1731480000"(numeric string) and"2026-11-14T08:00:00"(no timezone); also date-only, space separator, lowercaset/z,+0800, and 1- or 9-digit fractions. Numeric (JSON number) timestamps are unchanged. The pattern does not check calendar validity (2026-02-30passes the schema and then fails timestamp parsing).ai_oriented_a2a.parse_timestampstill treats naive strings as UTC as compatibility behaviour only; strict receivers MAY reject them withschema_invalid:. - Replay window (behaviour tightening):
check_replaynow treats a nonce as a duplicate whatever itstimestamp, so the same nonce with a different timestamp is rejected withreplay_or_stale: duplicate nonce. Previously the key was(nonce, int(timestamp)). Matches SECURITY.md andsecond_impl/.
[0.3.2] - 2026-11-14
Library and documentation release. The protocol version is unchanged (v0.3, on-wire "0.3"). This is the first version intended for PyPI (from tag v0.3.2, created after merge).
Changed
- Replay set eviction: past
SEEN_MAX(1000) entries the seen set is trimmed toSEEN_TRIM_TO(800) by dropping expired entries first, then the oldest timestamps, instead of arbitraryset.pop()entries.seenis still a plainsetof(nonce, str(int(timestamp))). Both constants live inai_oriented_a2a.protocol; the replay-after-eviction caveat and smaller-window advice are in SECURITY.md and TRANSPORT.md. examples/network_dual_end.py:A2AHandlernow subclassesai_oriented_a2a.transport.A2ARequestHandler, and pushes and sends throughai_oriented_a2a.transport.send_message. Its positionalsend_message(url, payload, sign_key=None)wrapper is kept for existing callers but is deprecated and will be removed; new code should useai_oriented_a2a.transport.send_messagewith keyword arguments.docs/KNOWN_GAPS.md: removed the replay-key andset.pop()eviction entries (fixed here) and renumbered the rest.docs/RELEASING.md: the first PyPI upload is0.3.2from tagv0.3.2;0.3.1is not uploaded.pyproject.tomlReleaseURL points atv0.3.2(404 until the tag exists).
Added
ai_oriented_a2a.transport(stdlib only, not re-exported;import ai_oriented_a2adoes not loadhttp.server):send_message(url, message, *, timeout=30.0, sign_key=None, add_replay_fields=False),TransportError,A2ARequestHandler,make_handler,make_server,serve, andguard_result(the absorption hard gate on replies).- Reserved reason prefix
internal_error:(TRANSPORT.md). The reference handler answers a handler exception with HTTP 500 and a valid rejected Absorption Result, reasoninternal_error: message handler failed, with no exception text, traceback, or path. - Tests:
tests/interop/test_timestamp_replay.pyandtests/interop/test_transport.py.
Also in this release (merged after 0.3.1)
docs/DATA_POLICY.md(non-normative): redaction,provenance.source_refprefixes (synthetic:,local_run:,peer_absorbed:), 3-hop chain limit withcontent.chain_truncated, requiredexpected_effect+replay_hint, no numeric uplift in synthetic data, CC0 for corpora. SPEC and schemas are unchanged;provenancestays OPTIONAL on the wire.datasets/timeout_recovery/: 8 synthetic Experience Packets and 2 Absorption Results for the tool-call timeout / failure-recovery task, under CC0 1.0 (datasets/LICENSE).tests/interop/test_datasets.py: CI checks fordatasets/**(schema, legal prefix, verification claim, chain length, no numeric uplift). Thedocs-and-examplesworkflow also requiresdocs/DATA_POLICY.mdanddatasets/README.md.- Prepared PyPI packaging and manual publish workflow:
pyproject.tomladdsRepository/ChangelogURLs andlicense-files, and drops the legacy MIT license classifier (SPDXlicense = "MIT"already set). New manual-only.github/workflows/publish.yml(TestPyPI or PyPI, Trusted Publishing by default) anddocs/RELEASING.md. README install section now leads withpip install ai-oriented-a2a. Not yet published; no version bump. second_impl/: an independent minimal implementation (stdlib + optionaljsonschema, Python 3.8+) written from SPEC and TRANSPORT, with asend/serveCLI. It does not importai_oriented_a2aorexamples/. Check order: version, hard gate, schema (on by default,--no-schema), signature, replay. Its receiver never returnsabsorbed: packets areisolated(isolated: no local regression available) and negotiation messages are rejected withnegotiation_unsupported:. Interoperates withexamples/network_dual_end.pyin both directions.mcp_a2a/: one-way MCP bridge (official MCP Python SDK 2.x,MCPServer) withsend_packetandreport_absorptiontools that return the peer's reply unchanged and raise tool errors on local, transport, or protocol failures. New optional extra[mcp](mcp>=2,<3, Python ≥ 3.10); the core package still requires Python ≥ 3.8 and has no required dependencies.docs/TRANSPORT.md: registers reservedreasonprefixesschema_invalid:andnegotiation_unsupported:(and the informativeisolated:) alongsideunsupported_version:andreplay_or_stale:. These are reason-string conventions, not new fields; schemas are unchanged.docs/COMPLIANCE.md,docs/KNOWN_GAPS.md, andtests/conformance/(the 12 HTTP cases, parametrized over the reference,second_impl, and an external implementation viaA2A_PEER_CMD/A2A_PEER_URL). Newtests/interop/test_second_impl.pyandtests/interop/test_cross_impl.py.- CI:
docs-and-examplesalso runstests/conformance/and requiresdocs/COMPLIANCE.mdanddocs/KNOWN_GAPS.md. Newmcp-bridgejob (not a required check).
v0.3.1
v0.3.1
Library and documentation release. The protocol version is unchanged (v0.3, on-wire "0.3"). The tightenings below only reject previously-malformed messages, or messages that omit required fields when an opt-in check (the replay window) is enabled. Messages that were valid under v0.3 and that do not enable those checks remain valid.
Changed (already on main via #34 and #35)
- Replay window: when a receiver has enabled the window, both
nonceandtimestampMUST be present and valid; missing either is rejected withreplay_or_stale. When the window is off, both fields remain optional. (#34) - Schema:
identity, when present, now requiresfingerprint. An emptyidentityobject{}is no longer valid. (#34) - Schema:
reasonMUST NOT be whitespace-only (same pattern asnote). (#34) - SPEC.md:
reasonandnote, when present, MUST be non-empty and MUST NOT be only whitespace, matching the schemas. (#35) - Receivers MUST check
versionbefore full schema validation. Unknown versions (including"v0.3") return a valid Absorption Result (rejected+unsupported_version), not a schema-pattern error. (#34)
Added (already on main via #36)
- Installable stdlib package
ai_oriented_a2awithpyproject.toml(hatchling). No required dependencies. Optional extra[schema]installsjsonschema. Entry pointcheck_incoming(msg, sign_key=None, replay_window=None, seen=None)keeps signature and replay checks off unless arguments are passed. (#36) examples/network_dual_end.pyimports core functions from the package and keeps the same HTTP demo behaviour. CI installs the package before tests. (#36)
Docs in this release
- New CHANGELOG.md.
validate()is documented as a full schema check: callers MUST runcheck_incoming(orversion_rejection) first.validate()itself is unchanged and still raisesjsonschema.ValidationErroron an unknown version such as"v0.3".docs/SECURITY.mdrecords the version-before-schema MUST.docs/TRANSPORT.mdpoints the first-edition library boundary at theai_oriented_a2apackage;examples/network_dual_end.pyremains the demo HTTP server.
Install from the tag (not yet on PyPI):
pip install "git+https://github.com/robotmarvin0706/ai-oriented-a2a.git@v0.3.1"Full diff: v0.3.0...v0.3.1
v0.3.0
v0.3.0
Breaking (from v0.2)
- Absorption hard gate (SPEC §3.1):
status=absorbednow MUST carryeffect_summarywith a non-emptynote. An absorbed result without it is a protocol violation. Detailed metrics stay OPTIONAL ineffect_summary.metrics. (#31)
Added (non-breaking)
- Optional on-wire
version("0.3", no leading v),nonce,timestamp,signatureon all message schemas; optionalidentityon Agent Profile. Old messages remain valid. (#32) - Unknown versions (including "v0.3") MUST be rejected with
unsupported_version, not isolated. - Legal error responses: signature failure, replay rejection, unknown version, and hard-gate failure return HTTP 200 + a valid Absorption Result; early failures without an id use the reserved
packet_ref"unknown". - New docs: docs/VERSIONING.md, docs/TRANSPORT.md.
- Reference
examples/network_dual_end.py: HMAC verification and replay window are each opt-in (--sign-key,--replay-window); canonical JSON signing; 30s client timeout.
Not included
- Redaction and provenance implementation (docs first, later).
Full diff: v0.2.0...v0.3.0