Schemas

July 9, 2026 · View on GitHub

AgentOps exposes JSON Schemas for every inter-component contract: installable manifests, runtime artifacts, and skill frontmatter. This page catalogs them and points to the right file when you need to validate or extend a contract.

Schemas live in two places. Both are source of truth:

  • schemas/ — user-facing manifests and artifacts versioned with .v1.schema.json
  • lib/schemas/ — internal runtime contracts used by the ao CLI and swarm runners

Narrative documentation of the contracts (who writes and reads each artifact) lives under contracts/ and is indexed from contracts/index.md.

Manifests

Manifests describe installable units — skills, plugins, marketplace entries, hook bindings.

SchemaPurpose
skill-frontmatter.v1.schema.jsonYAML frontmatter block at the top of every SKILL.md. Validated by heal.sh --strict and CI.
plugin-manifest.v1.schema.jsonClaude Code plugin manifest (plugin.json).
codex-plugin-manifest.v1.schema.jsonCodex plugin manifest — thin variant used by the Codex marketplace.
codex-marketplace.v1.schema.jsonTop-level marketplace index consumed by claude plugin marketplace add.
hooks-manifest.v1.schema.jsonLegacy schema for an optional, externally-authored hooks manifest. AgentOps 3.0 ships hookless by default — see the hooks-authoring skill if you choose to author your own.

Runtime artifacts

These describe data written and consumed at runtime — handoffs between sessions, evidence for closure, quality signals.

SchemaPurpose
handoff.v1.schema.jsonSession-boundary handoff artifact written by ao session handoff, pulled explicitly by ao session bootstrap / ao inject, or consumed by opt-in lifecycle hooks.
memory-packet.v1.schema.jsonBoundary-memory packet for explicit lifecycle commands and optional externally-authored hooks.
evidence-only-closure.v1.schema.jsonProof artifact for issue closures that rely on validation or policy evidence instead of a code delta.
goal-design-intent.v1.schema.jsonYAML frontmatter for .agents/goal-design/<slug>/intent.md, the human-shaped goal-design source of truth. See Goal Design Artifacts.
goal-design-driver.v1.schema.jsonYAML frontmatter for .agents/goal-design/<slug>/driver.md, including loop routing, candidate beads, route-back rules, and intent digest integrity. See Goal Design Artifacts.
session-quality-signal.v1.schema.jsonPer-session quality signal rolled up into the knowledge flywheel.
scenario.v1.schema.jsonBehavioral validation scenarios stored in .agents/holdout/.
eval-suite.v1.schema.jsonPublic canary and private holdout evaluation suite manifests. See Eval Environment.
eval-run.v1.schema.jsonEvaluation run records, scorecards, baseline comparisons, runtime hygiene, and artifacts. See Eval Environment.
release-readiness.v1.schema.jsonRelease readiness score artifact with SIL/VIL/HIL evidence and waiver state. See Release Readiness.
routing-policy.v1.schema.jsonHistorical model/provider/runtime lane policy schema. The companion daemon routing-policy contract was removed with the daemon in 3.0; out-of-session routing is now the substrate's concern (an NTM swarm / MCP / managed-agents — AgentOps adopts, does not own).
remote-compute-target.schema.jsonProduct-neutral remote compute target configuration (the GasCity backend was retired 2026-06-11). See Remote Compute.
remote-session-event.schema.jsonRemote session events and idempotent command delivery records. See Remote Compute.
swarm-evidence.schema.jsonPermissive shape for files written by swarm workers to .agents/swarm/results/<task>.json. Companion strict schema: contracts/swarm-worker-result.schema.json.
finding.jsonCanonical finding-item schema for validation skills. Compatible subset of contracts/finding-artifact.schema.json.

Internal runtime contracts

Used by the ao CLI team runner and worker pipeline. See reference.md for the team execution model.

SchemaPurpose
lib/schemas/team-spec.jsonTeam specification consumed by lib/scripts/team-runner.sh when launching parallel workers.
lib/schemas/worker-output.jsonWorker artifact written by Codex and Claude workers; watched by watch-{codex,claude}-stream.sh.

Machine-readable schemas that live under contracts/ (narrative + schema paired in one directory):

Validating against a schema

Most schemas follow JSON Schema Draft 2020-12. Any compatible validator will work. Inside this repo:

# Validate skill frontmatter across all skills
scripts/validate-skills.sh

# Validate the legacy hooks manifest (opt-in only — AgentOps 3.0 ships zero
# hooks; you only have one if you authored it via the hooks-authoring skill)
jq -e . hooks/hooks.json           # legacy/opt-in manifest, if present

# Validate swarm evidence artifacts
scripts/validate-swarm-evidence.sh

# Validate a goal-design packet
scripts/check-goal-design-packet.sh .agents/goal-design/<slug>

CI enforces schema validity for everything shipped in a release — see CI-CD.md.

Versioning

Schemas are versioned in the filename (.v1.schema.json). Breaking changes bump the version and publish a new file; the previous version stays in place until deprecation is announced in UPGRADING.md.

If you are adding a new schema, follow the conventions in CONTRIBUTING.md and link it from this page plus contracts/index.md.