Skip to content

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