Repository navigation
v0.4.0
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_injectionMUST wrap it in documented untrusted markers below system/host instructions. Directive-like content SHOULD be rejected withcontent_policy:and MUST NOT be auto-absorbed. - On-wire
versionis now"0.4".SUPPORTED_MAJOR_MINORis now((0, 3), (0, 4)): code that compared it with==must usein.
Added
ai_oriented_a2a.content:wrap_untrusted,scan_directives,content_policy_rejection. Six normative forbidden directive patterns indocs/DATA_POLICY.md. Two CC0 synthetic counter-examples indatasets/content_policy/.- OPTIONAL
verification_claimfieldsscenario_ref,metric,value,repro {seed, model, n}. - OPTIONAL Agent Profile
core_constraints; targeting one is rejected withimmutable_constraint:. - OPTIONAL
negotiation_idon all negotiation messages (andtarget_constrainton counter). Round cap pernegotiation_id, default 3; overflow getsnegotiation_limit:. Per-peer rate limit SHOULD; reputation MAY only. ai_oriented_a2a.negotiation:NegotiationGuard,DEFAULT_MAX_NEGOTIATION_ROUNDS = 3.second_implhas 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.pyandtest_core_constraints.pyfor 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