Capture plane
SDK processors and application adapters normalize model, tool, handoff, approval, error, and outcome events.
The architecture separates trace capture, evidence analysis, artifact construction, and runtime execution. Framework adapters stop at the typed Episode boundary; the compiler never depends on an SDK-specific trace format.
System map
Every transition is explicit and auditable. Runtime dispatch consumes only approved artifacts whose compatibility key matches the current manifest.
SDK processors and application adapters normalize model, tool, handoff, approval, error, and outcome events.
Qualification, provenance, family mining, bounded synthesis, grouped replay, exact calibration, and lifecycle packaging.
Manifest matching, hard guards, quotas, verification, staging, fallback, shadow comparison, and rollback.
An Episode is the unit of evidence, not a chat transcript.
It binds entry state, a content-addressed execution manifest, ordered events, group and partition identity, and observable outcomes. Tool calls are paired with results. Values are finite JSON. Events preserve the distinction among model boundaries, tool effects, approvals, handoffs, guardrails, failures, and commits.
Application-owned truth: the SDK cannot infer tenant isolation, principal, policy version, freshness, or whether a nominal read is speculatable. Those fields belong to the application and participate in compatibility keys.
A candidate region must begin at a supported model boundary and end after a tool result. Unknown effects are not reads. Writes, approvals, handoffs, errors, and cross-partition edges are barriers. For every argument, the provenance graph searches entry state and prior results for a unique bounded expression.
GRC emits a deterministic program in a 23-operator DSL. Unsupported loops, dynamic arguments, non-read effects, or insufficient support lead to abstention. GCS may package verified live-outs behind a task-specific projection, but it cannot manufacture application logic or change the underlying physical reads.
The dispatch score is fitted before calibration. A fixed threshold grid is tested with a simultaneous one-sided Clopper–Pearson bound. If no threshold satisfies the registered risk and support constraints, the family retires. Calibration covers the registered violation definition only; it cannot repair a dishonest effect declaration.
The staging-owning runner is the strongest integration: it owns the entry snapshot and commit boundary, so any pre-commit miss can restore byte-identical model-visible input. The narrower Agents SDK Model adapter rejects streaming, hosted tools, handoffs, and loops because it cannot guarantee clean post-emission rollback.
The reusable boundary is the Episode IR plus OptimizationPass. New capture adapters normalize foreign traces; new passes consume typed Episodes and return evidence-bearing proposals; new evaluators add registered outcomes. A pass cannot bypass the shared registry, compatibility, or promotion contracts.