Skip to content

Releases

v0.4.5

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 30 Nov 07:07
cccc9c3

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 with uvx 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.json at 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.yml workflow (workflow_dispatch only) for publishing that listing after the matching package is live on PyPI.
  • An offline version-consistency step in the docs-and-examples job: server.json versions, ai_oriented_a2a.__version__, and the packaging/mcp version and ai-oriented-a2a== pin must match, and only packaging/mcp/README.md may carry the mcp-name: marker.

Changed

  • Front-door wording in README.md, keywords.txt, llms.txt, and docs/SECURITY.md: peer discovery is endpoint-based; an MCP registry listing of the bridge is distribution only.
  • docs/SECURITY.md no 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

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 29 Nov 09:23
cc8961e

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

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 28 Nov 15:05
a213689

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

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 25 Nov 08:59
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.

v0.4.1

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 23 Nov 07:01
287b27a

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.py now parses recovery parameters from packet content instead of applying a hard-coded policy, and rolls back a change with no measured gain.
  • examples/network_dual_end.py seeds the simulated regression with a stable digest of the packet id, so results match across processes.

Changed

  • experiments/timeout_recovery/run.py writes no files by default; committed results are only overwritten when you pass --results / --summary-dir / --data-dir.
  • MCP bridge requires mcp>=2,<3 and skips cleanly when the extra is missing or Python is older than 3.10.
  • CI docs-and-examples now also runs tests/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

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 21 Nov 17:01
e4077a5

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_injection MUST wrap it in documented untrusted markers below system/host instructions. Directive-like content SHOULD be rejected with content_policy: and MUST NOT be auto-absorbed.
  • On-wire version is now "0.4". SUPPORTED_MAJOR_MINOR is now ((0, 3), (0, 4)): code that compared it with == must use in.

Added

  • ai_oriented_a2a.content: wrap_untrusted, scan_directives, content_policy_rejection. Six normative forbidden directive patterns in docs/DATA_POLICY.md. Two CC0 synthetic counter-examples in datasets/content_policy/.
  • OPTIONAL verification_claim fields scenario_ref, metric, value, repro {seed, model, n}.
  • OPTIONAL Agent Profile core_constraints; targeting one is rejected with immutable_constraint:.
  • OPTIONAL negotiation_id on all negotiation messages (and target_constraint on counter). Round cap per negotiation_id, default 3; overflow gets negotiation_limit:. Per-peer rate limit SHOULD; reputation MAY only.
  • ai_oriented_a2a.negotiation: NegotiationGuard, DEFAULT_MAX_NEGOTIATION_ROUNDS = 3. second_impl has 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.py and test_core_constraints.py for 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

Choose a tag to compare

@robotmarvin0706 robotmarvin0706 released this 21 Nov 15:27
fa969fc

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_timestamp and check_replay reject them with replay_or_stale: invalid timestamp. second_impl ReplayWindow does the same, so the two implementations agree. Previously json.loads accepted NaN, the window check passed (abs(now - nan) > window is never true), and the reference raised ValueError on int(parsed) while second_impl accepted the message. Integers too large for a float are rejected the same way.
  • Replay cache updates (any(...) duplicate check, insert, and _evict) run under one threading.Lock bound to the seen set (new ReplayCache), so a ThreadingHTTPServer no longer fails with Set changed size during iteration under concurrent requests. check_replay / check_incoming still accept a bare set (optionally with a shared lock=).
  • A2ARequestHandler.seen_nonces no longer defaults to one class-level set() shared by every subclass that does not override it. make_handler injects a fresh ReplayCache per handler class, shared by all request threads; a bare set assigned by a subclass is wrapped on first use.
  • make_server (reference and second_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.py answers a negotiation message with a legal rejected Absorption Result (negotiation_unsupported:, packet_ref = offered_packet.id or "unknown") instead of {"ack": True}. Closes KNOWN_GAPS #1.

Changed

  • do_POST in ai_oriented_a2a.transport (and second_impl) wraps check_incoming and the message callback in one try. Unexpected exceptions return HTTP 500 and internal_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-large Content-Length returns HTTP 413 and a rejected Result whose reason starts with payload_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

Choose a tag to compare

@cursor cursor released this 14 Nov 09:04
e0004a4

protocol stays v0.3; library 0.3.2.

Breaking

  • BREAKING: String timestamp values MUST be ISO-8601 with a timezone. All 7 timestamp definitions in schema/ now restrict the string form to YYYY-MM-DDTHH:MM:SS, an optional 3- or 6-digit fraction, and Z or ±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, lowercase t/z, +0800, and 1- or 9-digit fractions. Numeric (JSON number) timestamps are unchanged. The pattern does not check calendar validity (2026-02-30 passes the schema and then fails timestamp parsing). ai_oriented_a2a.parse_timestamp still treats naive strings as UTC as compatibility behaviour only; strict receivers MAY reject them with schema_invalid:.
  • Replay window (behaviour tightening): check_replay now treats a nonce as a duplicate whatever its timestamp, so the same nonce with a different timestamp is rejected with replay_or_stale: duplicate nonce. Previously the key was (nonce, int(timestamp)). Matches SECURITY.md and second_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 to SEEN_TRIM_TO (800) by dropping expired entries first, then the oldest timestamps, instead of arbitrary set.pop() entries. seen is still a plain set of (nonce, str(int(timestamp))). Both constants live in ai_oriented_a2a.protocol; the replay-after-eviction caveat and smaller-window advice are in SECURITY.md and TRANSPORT.md.
  • examples/network_dual_end.py: A2AHandler now subclasses ai_oriented_a2a.transport.A2ARequestHandler, and pushes and sends through ai_oriented_a2a.transport.send_message. Its positional send_message(url, payload, sign_key=None) wrapper is kept for existing callers but is deprecated and will be removed; new code should use ai_oriented_a2a.transport.send_message with keyword arguments.
  • docs/KNOWN_GAPS.md: removed the replay-key and set.pop() eviction entries (fixed here) and renumbered the rest.
  • docs/RELEASING.md: the first PyPI upload is 0.3.2 from tag v0.3.2; 0.3.1 is not uploaded. pyproject.toml Release URL points at v0.3.2 (404 until the tag exists).

Added

  • ai_oriented_a2a.transport (stdlib only, not re-exported; import ai_oriented_a2a does not load http.server): send_message(url, message, *, timeout=30.0, sign_key=None, add_replay_fields=False), TransportError, A2ARequestHandler, make_handler, make_server, serve, and guard_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, reason internal_error: message handler failed, with no exception text, traceback, or path.
  • Tests: tests/interop/test_timestamp_replay.py and tests/interop/test_transport.py.

Also in this release (merged after 0.3.1)

  • docs/DATA_POLICY.md (non-normative): redaction, provenance.source_ref prefixes (synthetic:, local_run:, peer_absorbed:), 3-hop chain limit with content.chain_truncated, required expected_effect + replay_hint, no numeric uplift in synthetic data, CC0 for corpora. SPEC and schemas are unchanged; provenance stays 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 for datasets/** (schema, legal prefix, verification claim, chain length, no numeric uplift). The docs-and-examples workflow also requires docs/DATA_POLICY.md and datasets/README.md.
  • Prepared PyPI packaging and manual publish workflow: pyproject.toml adds Repository / Changelog URLs and license-files, and drops the legacy MIT license classifier (SPDX license = "MIT" already set). New manual-only .github/workflows/publish.yml (TestPyPI or PyPI, Trusted Publishing by default) and docs/RELEASING.md. README install section now leads with pip install ai-oriented-a2a. Not yet published; no version bump.
  • second_impl/: an independent minimal implementation (stdlib + optional jsonschema, Python 3.8+) written from SPEC and TRANSPORT, with a send / serve CLI. It does not import ai_oriented_a2a or examples/. Check order: version, hard gate, schema (on by default, --no-schema), signature, replay. Its receiver never returns absorbed: packets are isolated (isolated: no local regression available) and negotiation messages are rejected with negotiation_unsupported:. Interoperates with examples/network_dual_end.py in both directions.
  • mcp_a2a/: one-way MCP bridge (official MCP Python SDK 2.x, MCPServer) with send_packet and report_absorption tools 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 reserved reason prefixes schema_invalid: and negotiation_unsupported: (and the informative isolated:) alongside unsupported_version: and replay_or_stale:. These are reason-string conventions, not new fields; schemas are unchanged.
  • docs/COMPLIANCE.md, docs/KNOWN_GAPS.md, and tests/conformance/ (the 12 HTTP cases, parametrized over the reference, second_impl, and an external implementation via A2A_PEER_CMD / A2A_PEER_URL). New tests/interop/test_second_impl.py and tests/interop/test_cross_impl.py.
  • CI: docs-and-examples also runs tests/conformance/ and requires docs/COMPLIANCE.md and docs/KNOWN_GAPS.md. New mcp-bridge job (not a required check).

v0.3.1

Choose a tag to compare

@cursor cursor released this 13 Nov 16:08
3f7f16d

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 nonce and timestamp MUST be present and valid; missing either is rejected with replay_or_stale. When the window is off, both fields remain optional. (#34)
  • Schema: identity, when present, now requires fingerprint. An empty identity object {} is no longer valid. (#34)
  • Schema: reason MUST NOT be whitespace-only (same pattern as note). (#34)
  • SPEC.md: reason and note, when present, MUST be non-empty and MUST NOT be only whitespace, matching the schemas. (#35)
  • Receivers MUST check version before 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_a2a with pyproject.toml (hatchling). No required dependencies. Optional extra [schema] installs jsonschema. Entry point check_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.py imports 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 run check_incoming (or version_rejection) first. validate() itself is unchanged and still raises jsonschema.ValidationError on an unknown version such as "v0.3".
  • docs/SECURITY.md records the version-before-schema MUST.
  • docs/TRANSPORT.md points the first-edition library boundary at the ai_oriented_a2a package; examples/network_dual_end.py remains 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

Choose a tag to compare

@cursor cursor released this 13 Nov 13:59
0d8cb49

v0.3.0

Breaking (from v0.2)

  • Absorption hard gate (SPEC §3.1): status=absorbed now MUST carry effect_summary with a non-empty note. An absorbed result without it is a protocol violation. Detailed metrics stay OPTIONAL in effect_summary.metrics. (#31)

Added (non-breaking)

  • Optional on-wire version ("0.3", no leading v), nonce, timestamp, signature on all message schemas; optional identity on 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