Skip to content

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