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