Skip to content

About

AI Operations Specifications

Resources

Contributing

Stars

92 stars

Watchers

0 watching

Forks

Repository files navigation

AI Operations Specification

The AI Operations Specification (AIOS) is a vendor-neutral contract for describing what happens when an AI or agentic system runs.

It gives instrumentation, observability, evaluation, safety, and reliability tools a shared vocabulary and portable JSON artifacts for Runs, Steps, model interactions, tool calls, retrieval, memory, evaluations, signals, and incidents.

This repository defines the contract. It does not run agents, collect telemetry, host dashboards, or provide an SDK. It also does not own the primary end-user CLI for conformance checks; implementation repositories may provide that convenience on top of the normative rules defined here.

Why it exists

Without a shared contract, every framework exports different names and structures for the same runtime behavior. AIOS separates the standard from its implementations so producers and consumers can interoperate without importing a DeepAgentLabs package.

AI frameworks and instrumentation
              |
              v
   AI Operations Specification
              |
              v
observability, evaluation, safety, and operations tools

DeepAgentLabs stewards the specification today and is its sole editor. AgenticLens, Agentic Chaos, Agentic Sidecar, DeepAgent MCP, and AgenticOps Control Tower may implement or consume it, but none of them owns the contract. Vendor-neutrality is the design goal, not yet an established fact: several acceptance gates — independent implementer review, validation against artifacts from at least two unrelated producers — remain open (see each milestone's acceptance criteria and the roadmap). Treat "vendor-neutral" as the intended end state until those gates close.

Current maturity

Pre-release draft. Do not claim stable conformance.

Release Status

  • v0.1 🏗️ In review — Core runtime concepts and boundaries
  • v0.2 🚧 Exploratory draft — Relationships and execution graphs
  • v0.3 🚧 Exploratory draft — Transport-neutral semantic events
  • v0.4 🚧 Exploratory draft — JSON Schema artifacts
  • v0.5 🚧 Exploratory draft — Versioning and compatibility rules
  • v0.6 🚧 Exploratory draft — Canonical examples and extension model
  • v0.6.x 🚧 Planned — Provenance, evidence, and operational artifacts
  • v1.0 🚧 Planned — Stable specification

Next Steps

  • Close the remaining v0.1 external review gate so later layers can move toward freeze.
  • Validate the v0.4 draft artifacts against at least two independent implementations.
  • Validate the v0.5 compatibility rules against a real version transition once one exists; the version-marker grammar and change classification are drafted, but no frozen version has yet been superseded.
  • Standardize provenance/evidence concepts and publish producer-independent conformance fixtures and rules.

The six milestone layers form one cumulative specification:

Layer Defines Status
v0.1 Core runtime concepts and boundaries Draft; external review pending
v0.2 Relationships and execution graphs Exploratory draft
v0.3 Transport-neutral semantic events Exploratory draft
v0.4 JSON Schema artifacts Exploratory draft
v0.5 Versioning and compatibility rules Exploratory draft
v0.6 Canonical examples and extension model Exploratory draft

Later layers depend on earlier ones. They are available for design feedback and prototype implementations; acceptance of a later layer does not bypass open review gates in an earlier layer.

Conformance should be understood in two layers:

  • AIOS defines the normative rules: schemas, conformance requirements, canonical fixtures, and expected validation behavior
  • implementations may provide tooling: for example, AgenticLens can expose a practical conformance CLI over those rules without owning the standard

Two machine-readable catalogs mirror the normative text for tooling, so validators can cite the rule an issue violates instead of inventing their own labels:

The Markdown documents stay normative; tests fail if a catalog drifts from them.

Choose a path

Minimal artifact

{
  "spec_version": "0.4-draft",
  "artifact_type": "run",
  "id": "run-001",
  "started_at": "2026-07-21T06:00:00Z",
  "status": "completed",
  "requests": [],
  "steps": [],
  "relationships": []
}

Schema validation establishes structural validity only. It does not prove that recorded claims are true, safe, reliable, or high quality.

Repository layout

specification/   current milestone drafts
drafts/          superseded or premature experiments
tests/           document, schema, fixture, and graph checks

The early workflow schema under drafts/v0.4/ is retained for history and is not the current v0.4 design.

Validation

A Makefile provides shorthand for common tasks:

make install     # install dependencies
make test        # run schema validation tests
make check       # run all quality gates
make help        # list all available targets

Or run directly:

uv sync --extra dev
uv run pytest

Scope

AIOS defines shared meaning, relationships, events, and exchange artifacts. SDK behavior, dashboards, provider catalogs, recommendation logic, storage, and transport exporters belong in implementation repositories.

That same boundary applies to conformance: the specification owns the rules and expected behavior, while implementation repositories may offer user-facing commands that execute those checks.

See SPECIFICATION.md for the complete reading order and maturity rules, or CONTRIBUTING.md to propose a change.

What's Next

Upcoming specification work (see ROADMAP.md):

  • Provenance and evidence concepts — standardize source references, evidence lineage, and derived findings as first-class spec objects
  • Conformance test suite — producers can validate artifacts against the spec independently, while implementation repositories can expose convenient CLIs on top
  • Naming conventions — lock down field naming rules, casing, and abbreviation policy
  • Migration guides — clear upgrade paths between spec versions

Control Tower integration boundary

AgenticOps Control Tower owns deployment registration, heartbeat, fleet inventory and operator workflows. AgenticLens owns observability and analysis; Agentic Evals owns scoring and release-gate computation; Agentic Sidecar owns decision supervision (SUPERVISE); Agentic Chaos owns fault injection and resilience experiments. AI Operations Specification owns shared semantics and is currently draft.

Tower's native artifact readers consume existing producer outputs using an explicit deployment/evidence link. They do not change producer behavior or convert a failed run, failed gate, blocked action or injected fault into fleet health. This link is a Tower-local contract, not a normative AIOS schema. See Control Tower's evidence contract. Tower 0.5 introduced pushed evidence posture; 0.6.0 adds cited investigation and approved deterministic staging recovery. Pull collection and production runtime adapters remain planned; native interoperability does not establish stable AIOS conformance.

Sidecar 0.8 interoperability

The native sidecar.correlation/1 convention is recorded in drafts/sidecar-correlation-v1, with a validated producer/consumer fixture. This is non-normative and does not promote AIOS maturity or add a runtime dependency.

Sidecar 0.8 provides Shared/Exclusive context-only, guardrails-only or combined configuration, explicit host context delivery and mandatory guardrail composition. Exclusive rules cannot weaken shared restrictions. Cross-framework privacy, revocation and delegated authority remain v0.9 validation; stable schemas remain v1.0. Native correlated Lens readback requires Lens 0.7.1. All sibling packages stay optional; no dependency floor is increased without a runtime requirement. See the Sidecar integration contract.

Control Tower 0.6.0 integration

Tower Phase 6 and 6A ship together in 0.6.0 with MCP 0.3.6: evidence-cited investigation, exact-preview human approval and verified deterministic staging recovery. Native producer outcomes and package ownership remain unchanged. See compatibility, examples and dependency matrix. This is documentation alignment; no package release or dependency bump is needed.

Evals 0.7.2 report contract

Agentic Evals 0.7.2 publishes native report (schema_version: "1.0") and gate-decision JSON Schemas, with offline report_schema() and gate_decision_schema() accessors. Contract 1.x evolves additively; readers should tolerate unknown fields. These package-local schemas are not normative AIOS contracts and do not establish AIOS conformance. The future evaluation-evidence mapping remains Evals v0.10 work.

See the contract, examples and compatibility policy. Existing dependency ranges remain sufficient; using the new accessors directly requires agentic-evals>=0.7.2. This documentation alignment needs no sibling patch release.

AgenticLens 0.8.0 suite management

AgenticLens 0.8.0 delivers its v0.6 milestone: agenticlens.suites and agenticlens suite build regression suites from CSV/JSON imports, production traces and user feedback. It masks PII by default before storage (--no-mask opts out), detects duplicates and conflicting labels, adds synthetic variations and stable splits, records reviews, and approves suites into immutable, hash-verified versions that CI verifies, exports and evaluates. Suites stay plain agentic-evals TestSuite files.

The suite-version, feedback-batch, duplicate-report and masking-report schemas are Lens-local (schemas/suites/ in AgenticLens), not AIOS objects, and make no conformance claim. No normative change or spec release is needed; a shared evaluation-dataset object would be proposed here first.

See the suite management guide.

AgenticLens 0.9.0 ModelFit

AgenticLens 0.9.0 delivers its v0.7 milestone: agenticlens.modelfit and agenticlens modelfit recommend a model per task category from recorded experiment reports, under hard quality, cost, latency, safety, provider and deployment constraints that fail closed. Each recommendation carries a confidence level with reasons, an explanation, alternatives, a fallback (on a different provider when one is feasible), savings against a reference variant tied to the experiment evidence, and quality risks, plus a task-level model matrix.

The ModelFit config and report schemas are Lens-local (schemas/modelfit/ in AgenticLens), not AIOS objects, and make no conformance claim. No normative change or spec release is needed; a shared model-selection or routing-decision object would be proposed here first, alongside Lens v0.8 advisory routing.

See the ModelFit guide.

Evals 0.8.0 CLI interoperability

Evals 0.8.0 adds a declarative evaluation and release-gate CLI with native JSON, JUnit and Markdown output. These outputs are package-local artifacts, not AIOS evaluation evidence or conformance claims. Normative evaluation evidence export remains Evals v0.10 work; no specification or schema change is required.

See CLI usage and compatibility.

Chaos 0.7.0 interoperability

Chaos 0.7.0 adds sequential fault cascades, deterministic monotonic breaking-point search, synthetic response poisoning (including prompt/tool-response instruction and policy-bypass payloads), and explicit-price retry cost estimates. Native child event IDs and fault types remain intact; cascade IDs/stages and poisoning strategy/payload/seed are additive event detail. Existing report readers and AIOS exports remain compatible.

See the v0.7 guide and offline synthetic example. The example includes observed synthetic dispatches and a bypassed negative control. Injection or recovery alone does not prove containment. No new shared schema, automatic adapter, hosted execution capability or containment guarantee is introduced.

These are producer-local extensions, not normative concepts or schema changes. Existing AIOS Run mappings preserve native evidence; specification maturity and conformance claims remain unchanged. No spec release is needed.

Control Tower 0.7.0 fleet operations

Tower 0.7.0 adds frozen environment/capability targeting, bulk desired settings, separate approval, durable per-target results and bounded stop/MCP-revocation acknowledgement through Python, HTTP and CLI. No fleet atomicity or automatic rollback/resume is claimed. Timed-out/requested commands need host reconciliation.

Bulk selectors, approvals, command IDs and receipts remain Tower-local implementation contracts. This integration creates no normative AIOS schema or conformance claim; shared command semantics remain draft.

Existing optional dependency ranges remain sufficient. No sibling runtime or native evidence schema changes are required; this documentation alignment needs no patch release. See the operator guide.

See the local Tower compatibility guide for the operator workflow and package boundaries.

AgenticLens 0.10.0 routing compatibility

See the local integration boundary guide.

AgenticLens 0.10.0 implements roadmap v0.8: evidence-based runtime model selection, fail-closed routing constraints, bounded provider failover, confidence/escalation handoffs, shadow/canary modes and a local routing journal. The default is advisory; execution uses explicit caller-owned callbacks. MCP 0.3.12 exposes read-only lens.routing_decide and pins hosted Lens 0.10.0. See the routing guide and offline example.

Lens routing decisions/results/policies and schema version 1.0 are package-local implementation artifacts, not a normative AIOS extension or conformance claim. No shared event meaning, schema version or reviewed specification layer changes. There is no Python dependency or specification release required for this alignment.

Chaos 0.8.0 interoperability

Chaos 0.8.0 adds:

  • multi-stage chaos workflows: steps, steady-state health checks, parallel branches, approval gates that can be resumed, and reusable templates
  • declarative YAML/JSON/TOML experiments, with validation that never executes targets and cron schedule previews
  • Scope explosion-radius control (steps, providers and exclusions) on every built-in fault and cascade(); custom faults get it by calling BaseFault.__init__, setting scope or overriding in_scope()
  • a topology fuzzer that weights fault placement by fan-out

Native event IDs and fault types are unchanged. Workflow provenance (detail.workflow) and an optional ChaosReport.workflow summary are additive. A workflow's steps merge into one native report for contracts and AIOS export.

See the v0.8 guide and the offline examples. Workflow statuses, health checks and fuzz outcomes are resilience evidence. They are not scores, release gates or proof of containment. No new shared schema, automatic adapter or hosted execution capability is introduced.

Merged workflow exports validate against the v0.4 Run schema and semantic checker. The workflow summary is a producer-local extension member, not a normative Workflow object or a schema change. Specification maturity and conformance claims are unchanged. No spec release is needed.

Evals 0.9.0 judge reliability and live resilience

Evals 0.9.0 adds optional judge (cost, unavailable judgments, agreement) and live-target (timed_out, error) fields to its package-local report contract. They are not AIOS evaluation evidence. They inform the planned Evals v0.10 export, which must not export an unavailable judgment as a pass. No specification or schema change is required. See the compatibility note.

MCP 0.4.0 unified release checks

MCP 0.4.0 completes Phase 4 with its unified workflows: core.compare_runs, a fail-closed core.release_check, core.incident_summary and core.export_report. MCP judges nothing itself; it composes Lens comparisons, the Evals release gate and Chaos run reports. Malformed or failed-call evidence always blocks readiness, and so does missing evidence of a required kind; all three kinds are required by default and required_evidence narrows that.

core.export_report returns an MCP-local mcp.unified-report.v1 envelope. It is not an AIOS artifact, and spec.validate_artifact does not accept it. Its embedded sections keep their producers' shapes. A shared release-evidence artifact would be specified here first. No specification change or release is needed. See the compatibility guide.

Sidecar 0.9.0 interoperability

Task-authority/delegation and reader-safe summaries are available in Sidecar. See compatibility and ownership boundaries. Existing native decisions/correlation stay compatible; no new normative schema is claimed.

v0.6 canonical examples and extensions

Repository v0.6.0 adds the exploratory v0.6 layer: minimal and advanced artifacts, retry evidence, negative controls, namespace and third-party extension guidance. Run make check for offline validation. Artifacts still use 0.4-draft; earlier independent-review gates remain open. See the sibling compatibility matrix.

Control Tower 0.8.0 live operations

See operator compatibility and ownership for periodic detection, durable alerts, acknowledgements and joined incident console views. Existing native contracts and optional dependency ranges remain compatible; no runtime or patch release is required here.

About

AI Operations Specifications

Resources

Contributing

Stars

92 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages