Repository navigation
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).