Skip to main content

Module wire

Module wire 

Source
Expand description

Stable JSON projection for the public OCLA contract.

Constants§

MAX_OCLA_WIRE_BYTES
OCLA_AGENT_ENVELOPE_WIRE_SCHEMA_ID
OCLA_WIRE_SCHEMA_ID

Functions§

agent_envelope_schema
Source-generated public JSON Schema for the payload-free A2A admission contract. Cross-field owner and content-derived identity checks remain in decode_agent_envelope, where they can fail closed.
canonical_envelope_schema
Source-generated JSON Schema used by SDKs and checked against the committed public projection in CI. Keep this small and strict: compatibility changes require an intentional schema-version decision.
decode_agent_envelope
Decodes an A2A admission contract and rejects schema, lineage, relay-ID, or budget drift before an adapter can observe it.
decode_envelope
encode_agent_envelope
Encodes a validated A2A admission contract. The budget remains an authorization ceiling; this projection never denotes delivered tokens.
encode_envelope