Published schemas
Inspect the versioned interfaces for context, invocation, tool envelopes, decision records, and replay.
Browse the contractsThe ContextOS architecture
Keep the model and runtime you use. Define what enters a run, what it may change, and what evidence makes the result acceptable.
Compatible core · Exact control profiles · Deterministic reference
01 / Where it fits
ContextOS supplies an open specification and executable reference. Your application and infrastructure implement the controls. A managed runtime can supply parts of the system; ownership still needs to be explicit.
Your team implements the loop and its enforcement boundaries. Use the contracts to make those responsibilities inspectable.
Your runtime + protected stores
Resume revalidates current controls and preserves used/reserved budgets, operation identity, unknown effects, and fenced ownership.
Your application + data owners
Eligible sources, missing evidence, nine-stage data obligations, and owned memory/copy receipts are inspectable.
Your gateway + identity system
Every reachable effect checks current owned authority and ancestors, full action/approval quorum, active containment, and brokered credentials.
Your application + operators
Atomic claims and shared reservations precede fenced dispatch. Verify postconditions, reconcile unknown effects, and retain scoped positive/negative/utility/fault evidence.
The enforcement path must be unavoidable. Instructions to the model cannot substitute for scoped credentials and checks at the tool boundary.
02 / The five planes
Use the planes to assign ownership and inspect handoffs. They are logical responsibilities: one application can implement several. Add memory, graph retrieval, or specialist agents when a measured need justifies them.
What can the system know?
Give evidence, identity, and retained knowledge a source and a scope. Promote memory only through the required review.
What should this run see?
Select and compile relevant evidence within a budget. Keep provenance, conflicts, and omissions visible.
What counts as accepted work?
Bind work to declared outcomes. Plan, verify, and score within limits, then emit an evidence-linked decision record.
What may actually change?
Check owned/ancestor authority, full exact approval/quorum, active boundaries/data and external preconditions. Reconcile unknown effects.
How is the whole run controlled?
Apply policy, evaluation, trace, and replay requirements across the other four planes. Keep enforcement outside model judgment.
This non-executable flow connects the actual reference compiler API to deployment-owned services. Planner, executor and critic name responsibilities; no runtime loop, credential broker, sandbox or protected database is supplied by this page.
trusted ingress binds request, RunContext and ExecutionContractEnvelope
-> resolve pack refs, tenant, identity, intent, safety mode
-> negotiate exact profile/control versions and required feature support
-> verify current owned authority and all ancestor restrictions/revocation
-> new ContextPackCompiler(pack).compile(request, run_context, deps)
caller supplies eligible evidence and promoted_memory
applicable policy-expression errors stop with structured diagnostics
-> bind DecisionSpec
-> route model judgment through AI Gateway / LLM Router
-> runtime-owned planner proposes actual next action
-> independent plan review: ok | replan | reject | escalate
-> independently validate full action/evidence/pins and current approval/quorum
-> verify native risk, guardrails, active boundary/credentials/data, preconditions
-> atomically claim operation and reserve original shared capacity
-> fenced owner dispatches under verified provider semantics
-> preserve unknown effects/reservations; reconcile before unsafe retry
-> assess actual postconditions and current evidence
-> emit DecisionRecord with honest lifecycle, effects, usage and limitations
-> emit replay packet and scorecard
-> offline replay compares declared artifacts/properties, never live effectsPin the context used by a run, such as ctxpack.support@5.2.0, and retain its evidence and policy lineage. Audit replay uses recorded tool results with live effects disabled.
03 / Open engineering assets
The repository publishes the contracts, a context compiler reference, and tests. Production identity, execution, storage, tool enforcement, and outcome verification belong to your deployment.
Inspect the versioned interfaces for context, invocation, tool envelopes, decision records, and replay.
Browse the contractsInspect deterministic compilation plus authority, boundary, durable operation, exact budget and conformance validators.
Inspect the implementationInspect positive, denial and fault fixtures. Synthetic reference checks are distinct from independent deployed-control evidence.
Read the checksSchema validation checks structure. Your deployment authenticates observations and enforces actual boundaries, atomic stores, leases and generation fences. Original shared spent/reserved capacity includes children, reviews, retries and repair; cancellation does not erase unknown provider outcomes or usage. All nine data stages and derived copies need current processor/purpose/retention controls and correction/deletion receipts.
04 / Your first release
Choose a valuable task with a clear owner. Define success, prohibited effects, and required evidence before expanding the agent’s authority.
Begin with the controls the task needs. Evaluate the whole release, and remove complexity that no longer improves the result.
Follow the adoption guideEvidence to collect before expanding
The observed system state satisfies the workflow’s declared success criteria.
A forbidden or expired request is stopped before a tool changes anything.
A lost response is reconciled before retrying an operation that may have completed.
Fresh evaluation cases include failures, human effort, latency, and full cost.
Set thresholds for your workflow. Keep a release owner and tested current recovery path. Freeze candidates before bounded independent final checks; a kill switch cannot reverse effects already accepted by a provider.
Already running agents?Assess the controls and evidence around a specific release.