Skip to content

Sidecar 0.10 contract readiness

Sidecar 0.10.0 delivers candidate native interchange contracts, not a stable AIOS layer or the coordinated ecosystem v1.0 release. The opt-in module agentic_sidecar.contracts exports IntentContract, DecisionContract, AuditContract, ScopeContract, IntentTransfer, contract_schema and export_audit. Existing constructors and raw serialization remain supported.

Schema and migration policy

Each wrapper requires an exact sidecar.<family>/1 marker. The five families are intent, decision, audit, scope and transfer. contract_schema(kind) returns a fresh offline Draft 2020-12 schema, independent of installed siblings. Source schemas live in schemas/v1; matching copies are published under the specification repository's drafts/sidecar-contracts-v1. Tests compare every schema to the runtime model. Package versions and contract markers are independent.

Wrap an existing native object rather than inventing identities or timestamps:

from agentic_sidecar import Decision
from agentic_sidecar.contracts import DecisionContract

native = Decision(status="BLOCK", risk=None, reason="gate unavailable")
wire = DecisionContract(schema_version="sidecar.decision/1", decision=native).model_dump_json()
restored = DecisionContract.model_validate_json(wire)
assert restored.decision.decision_id == native.decision_id

AuditContract preserves AuditRecord fields; export_audit validates timezone-aware timestamps. RuntimeEvent/EventJournal hash chaining and sidecar.correlation/1 remain separate, unchanged native formats. An audit wrapper does not verify a journal; verify_events requires the complete original native chain. Decision, audit and intent payloads can include privileged arguments, reasons, goals and metadata. Authorize access before export; use BoundAgent.evidence for redacted summaries, which cannot be substituted for verifiable native evidence.

Top-level wrappers reject unknown fields and unknown markers. Existing payload models retain their historical extra-field behavior. Readers must select the family explicitly and fail on unsupported markers; no automatic downgrade is performed. During this 0.x candidate phase, incompatible wire changes require a new marker, migration documentation and compatibility fixtures. New optional fields in a /1 contract require producer/consumer coordination because strict readers reject them. No stable public API promise is made before coordinated v1.0 acceptance; existing 0.9 native APIs remain available in 0.10.

Shared and Exclusive scope semantics

ScopeContract.build runs the existing ScopedSystem validator before binding. Shared context reaches all declared agents; exclusive context reaches its assigned agent. Conflicting values fail instead of overriding. Every applicable guardrail must pass: an exclusive rule cannot weaken shared restrictions. Combined context uses the intersection of reader sets and the earliest expiry. Owners retain access subject to expiry/revocation. Delivery is an explicit host operation; context is never implicit authority or evaluator input. Updates and revocation are instance-local; exported configuration does not preserve runtime revocation state or retract delivered copies. Only trusted hosts may build configuration; never accept an agent's scope declaration as authorization.

Cross-instance and cross-agent propagation

Run uv run python examples/v0_10_contracts.py for serialized proposal/receive, separate guardian instances and live ancestor revocation. IntentTransfer.propose narrows authority; receive compares authenticated receiver identity, parent intent and grant IDs, task scope, goal, requester and causal parent metadata. The live registry then verifies unchanged inherited constraints, non-extended expiry, non-widened authority and the full ancestor revocation/expiry chain. Bindings are copied from the receiving host's parent guardian, never accepted from the wire. The child has a new intent and grant identity; ancestor revocation blocks future reservations. Reserved calls can finish, as in 0.9.

The trusted harness authenticates the agent_id supplied to receive and transports the private proposal. A proposal is neither a signed credential nor an approval. Receiving requires the same live AuthorityRegistry as the trusted parent, which may be shared by separate Sidecar/guardian instances in one host. A fresh registry rejects the unknown parent grant. Disconnected processes, durable grant replication, replay prevention and remote issuer/revocation protocols are outside this release. Receiving the same valid proposal can create multiple narrowed grants; hosts that require one-time delegation must deduplicate it. Importing a grant never resumes an old TaskRuntime or restores approvals. Check authority at dispatch through the existing governed adapter; a serialized Decision ALLOW alone permits nothing.

Compatibility and acceptance

Boundary Supported baseline Evidence / unchanged semantics
Python 3.10–3.13 CI test matrix, standalone install
AgenticLens 0.12.0 correlation/1 native reader and journal verification
Agentic Chaos 0.10.0 recovery proposals, native event identity, paired benchmark
Agentic Evals 0.12.0 validation extra; scoring separate from supervision
MCP server 0.6.0 Phase 6 bridge; native access receipts unchanged
Control Tower 0.9.0 optional Sidecar >=0.7,<1 admits 0.10; native reader
AI Operations Spec 0.7.0 non-normative mapping, draft markers unchanged
Framework SDKs See pyproject optional extras native adapter CI: AutoGen, CrewAI, OpenAI Agents, Google ADK, MCP, LangGraph

tests/test_contracts.py covers migration, marker rejection, tampering, propagation, constraints, scope conflicts, reader privacy and ancestor revocation. Existing adapter, journal, approval and failure-policy tests remain release gates. make check, make docs-check, make examples-check, make release-check and package build validate the candidate. The fixed paired supervision benchmark retains its synthetic 24-run configuration and does not establish live-provider benefit; see the v0.9 acceptance record. Authenticated provider smoke remains open. Sibling compatibility notes do not add runtime dependencies or require package patches where native readers and supported ranges are unchanged. MCP standalone image pins, if advanced, require a patch release of that sibling.