HomeDocumentation

Documentation

Reference for the open-source AgentCarousel CLI (agc): installation, commands, the fixture format and the registry API.

Installation

AgentCarousel ships as a single binary. The CLI is available as both agentcarousel and the short alias agc.

Linux / macOS (shell installer)

curl -fsSL https://install.agentcarousel.com | sh

macOS (Homebrew)

brew tap agentcarousel/agentcarousel
brew install agentcarousel

Rust / Cargo

cargo install agentcarousel

Windows

Download the .zip archive from the GitHub Releases page , extract, and add the binary to your PATH.

Run agc update to check for and install a newer version in-place. Use agc update --check to print availability without installing.

Quickstart

From an empty directory to an exported evidence bundle. Steps 1 and 4–6 need no API keys.

# 1. Scaffold fixtures/my-agent/ (cases.yaml, prompt.md, golden/)
agc generate --skill my-agent

# 2. Put the agent's system prompt in fixtures/my-agent/prompt.md

# 3. Draft cases from that prompt with a model, or write them by hand
#    (see Fixture Format below)
agc generate --from-prompt fixtures/my-agent/prompt.md --count 5 --model <MODEL>

# 4. Validate structure and schema (validate reads ./schemas/; fetch it once)
curl -fsSL --create-dirs -o schemas/skill-definition.schema.json \
  https://agentcarousel.com/schemas/fixture/v1.json
agc validate fixtures/my-agent/cases.yaml

# 5. Run the cases in mock mode
agc test fixtures/my-agent/cases.yaml

# 6. Export the most recent run as an evidence bundle
agc export --last 1

A freshly scaffolded cases.yaml has no cases, so validate fails until you add at least one. Use agc eval with --execution-mode live to run against a real model.

Key Concepts

Four terms used throughout this reference.

Fixture

A YAML file (cases.yaml) describing a skill or agent under test. Contains metadata and a list of cases with inputs and assertions.

Case

A single test scenario within a fixture. Has an id, input messages, and expected assertions.

Evidence Bundle

A .tar.gz produced by agc export from a run: per-case results, compliance mappings, and a MANIFEST.json of SHA-256 digests, optionally minisign-signed. Checked offline with agc verify.

Trust State

The registry-assigned status of a bundle: Experimental → CarouselCandidate → Stable → Trusted.

Fixture Layout

Each skill lives in its own directory under fixtures/. agc generate --skill <name> creates the directory, an empty cases.yaml, a prompt.md stub and golden/. Add bundle.manifest.json when you want to pack or publish the fixture.

fixtures/
  my-agent/
    cases.yaml          # test cases
    prompt.md           # system prompt (optional, published to registry)
    golden/             # golden output files
    bundle.manifest.json  # optional; needed by bundle pack and publish

CLI Reference: Fixture work

validate

Checks fixture YAML structure and schema without executing any cases. Exits 0 on success, 2 on violations. With no paths provided, scans the current directory (respecting .agentcarousel-ignore).

# Validate a single fixture
agc validate fixtures/my-agent/cases.yaml

# Strict mode: warnings become errors (recommended in CI)
agc validate fixtures/my-agent/cases.yaml --strict

# Validate all fixtures in the project
agc validate
FlagShortDescription
--strict-xTreat warnings as errors
--jsonEmit structured JSON output (global flag)
--schema <FILE>-sOverride the JSON Schema file

test

Runs cases with mock generation. No live LLM calls and no API keys required. Results are written to the local history database. Mock mode is the default.

# Run all fixtures (mock mode, default)
agc test fixtures/my-agent/cases.yaml

# Filter to smoke cases only
agc test fixtures/my-agent/cases.yaml --filter-tags smoke

# Use a custom mock directory
agc test fixtures/my-agent/cases.yaml --mock-dir mocks/

# Stop on the first case failure
agc test fixtures/my-agent/cases.yaml --fail-fast

# Machine-readable output for CI
agc test fixtures/my-agent/cases.yaml --json
FlagShortDescription
--offline <bool>-otrue | false; explicitly toggle mock responses (default: true)
--filter-tags <TAG>-gComma-separated tags; only matching cases run
--filter <GLOB>-fGlob matched against full case ids (e.g. my-agent/*)
--mock-dir <PATH>-mDirectory containing mock response files
--fail-fast-FStop on the first case failure
--jsonEmit structured JSON output (global flag)
--concurrency <N>-cNumber of cases to run in parallel
--timeout <SEC>-tPer-case timeout in seconds
--fail-on-severity <LEVEL>P0 | P1 | P2 | P3: exit 1 only for failures at or above this severity; failures in cases without a severity still fail (default: any failure fails)

eval

Runs cases with optional judge scoring. Defaults to mock mode (no API keys needed). Switch to --execution-mode live to call a real LLM. Multiple runs (--runs N) let you sample variance and detect flakiness.

# Mock eval (the default; no API keys needed)
agc eval fixtures/my-agent/cases.yaml

# Live eval with LLM-as-judge
export ANTHROPIC_API_KEY=...
export OPENAI_API_KEY=...
agc eval fixtures/my-agent/cases.yaml \
  --execution-mode live \
  --model gpt-4o \
  --judge \
  --judge-model claude-haiku-4-5-20251001 \
  --evaluator all \
  --runs 3

# Filter to judge-tagged cases only
agc eval fixtures/my-agent/cases.yaml \
  --evaluator judge --judge --filter-tags judge

# Custom HTTP endpoint (non-standard model providers)
agc eval fixtures/my-agent/cases.yaml \
  --execution-mode live --model custom \
  --generator-endpoint http://localhost:8080/v1/chat
FlagShortDescription
--execution-mode <MODE>-xmock (default), live, or batch (provider async batch API, about 50% cheaper)
--model <ID>-mGenerator model for live mode (e.g. gpt-4o, gemini-2.5-flash, custom)
--generator-endpoint <URL>Base URL for a custom agent endpoint (required when model is 'custom')
--judge-jEnable LLM-as-judge scoring for judge-scored cases
--judge-model <ID>-JModel used as judge
--evaluator <ID>-erules (default) | golden | process | judge | all
--runs <N>-nNumber of independent runs (default: 1)
--filter-tags <TAG>Comma-separated tags; only matching cases run
--filter <GLOB>-FGlob matched against full case ids
--seed <N>-sRNG seed (default: 0)
--jsonEmit structured JSON output (global flag)
--timeout <SEC>-tPer-case timeout in seconds
--concurrency <N>-cNumber of cases to run in parallel
--fail-on-severity <LEVEL>P0 | P1 | P2 | P3: exit 1 only for failures at or above this severity (default: any failure fails)
Evaluator selection: Use --evaluator rules for deterministic assertions. Use --evaluator all with --judge for mixed fixtures where some cases use judge scoring and others use rules. Use --evaluator judge only when every case should be judge-scored.
Live runs are non-deterministic. Use --runs 3 or higher and track the effectiveness score across runs rather than relying on a single pass.

generate

Drafts fixture cases with an LLM from a description or an existing system prompt. Review every generated case before you rely on it. Adversarial slots are assigned attack categories round-robin, and each generated adversarial case is tagged with the category's OWASP Top 10 for LLM Applications (2025) IDs, MITRE ATLAS technique IDs and AIUC-1 attack category name.

# Draft 10 cases from an existing system prompt
agc generate --from-prompt fixtures/my-agent/prompt.md --count 10 --model <MODEL>

# Add cases to an existing fixture, adversarial slots limited to two categories
agc generate --extend fixtures/my-agent/ --count 5 --model <MODEL> \
  --attack-categories prompt-injection-indirect,system-prompt-extraction

# Preview without writing
agc generate --skill my-agent --description "..." --model <MODEL> --dry-run
FlagDescription
--skill <NAME>Output goes to fixtures/<name>/cases.yaml
--from-prompt <PATH_OR_TEXT>System prompt to generate from (file path or inline text)
--extend <DIR>Add cases to an existing fixture directory, skipping existing ids
--count <N>, -nNumber of cases (default: 5)
--model <MODEL>LLM used for generation; omit to scaffold the directory without calling a model
--attack-categories <KEYS>prompt-injection-direct, prompt-injection-indirect, system-prompt-extraction, jailbreak-roleplay, sensitive-data-disclosure, persuasion, false-scenario (default: all)
--distribution <SPEC>Category split, e.g. happy:2,edge:3,failure:3,adversarial:2 (must sum to --count)
--dry-runPrint the generated YAML instead of writing it

CLI Reference: Results

report

Inspect persisted runs from the local history database: list runs, show case-level details, or diff two runs side-by-side.

# List recent runs
agc report list

# List with a limit
agc report list --limit 10

# Show details for a specific run
agc report show <RUN-ID>

# Render a local evidence directory or run.json file
agc report show ./reports/evidence-packs/my-agent/

# Diff two runs
agc report diff <RUN-ID-A> <RUN-ID-B>

export

Packages a completed run into an evidence bundle, a .tar.gz. MANIFEST.json lists the SHA-256 of every other file. With --sign-key, a minisign signature over it is written as MANIFEST.json.minisig. Bundles exported with agc 0.9.1 or later also include evidence.json and attestation.intoto.json, which follow the AgentCarousel Specification v0.1. System prompts are replaced by their SHA-256 digest unless you pass --include-prompt.

# Export a specific run by id
agc export <RUN-ID>

# Sign the manifest (for CI, generate the key with: minisign -G -W)
agc export <RUN-ID> --sign-key ~/.minisign/agc.key

# Export to a specific path
agc export <RUN-ID> --out ./my-bundle.tar.gz

# Export the 5 most recent runs into a directory
agc export --last 5 --out-dir ./evidence/

# List recent runs to find the id
agc report list --limit 5
FlagShortDescription
--last <N>-lExport the N most recent runs (newest first)
--out <PATH>-oOutput path for a single run export
--out-dir <DIR>-dOutput directory when using --last
--sign-key <PATH>minisign secret key; signs MANIFEST.json and writes MANIFEST.json.minisig
--minisign-bin <PATH>minisign binary name/path (default: minisign)
--include-promptInclude system prompts verbatim in run.json and report.md (default: SHA-256 digest only)
--import-ap <HREF>href of the OSCAL Assessment Plan the results answer, written to import-ap

What's in the bundle

FileContents
run.json, report.mdThe run record and a readable report
evidence.json, attestation.intoto.jsonSpecification v0.1 evidence and its in-toto statement (exported with agc 0.9.1 or later)
compliance_<framework>.mdnist-ai-rmf, eu-ai-act and iso-42001; aiuc-1 when the scored runs carry aiuc-1: tags
assessment-results.oscal.jsonOSCAL 1.1.2 Assessment Results for GRC tools
metrics.jsonInjection resistance, drift, coverage and calibration over recent runs
scope.jsonThe fixture's scope profile, when a valid scope.yaml exists
environment_fingerprint.json, fixture_bundle.lock, REDACTION_POLICY.mdEngine version, environment and redaction policy
MANIFEST.json, MANIFEST.json.minisigSHA-256 of every other file, and the optional signature

verify

Checks an evidence bundle offline. It recomputes every hash in MANIFEST.json, fails on missing, changed or unlisted files, and with --minisign-pubkey requires a valid signature. When the bundle carries evidence.json and attestation.intoto.json, it also checks them against the specification's schemas and rules. The result is verified (hashes and signature), integrity_only (hashes, no signature checked) or nonconformant.

# Hashes only
agc verify agentcarousel-evidence-<RUN-ID>.tar.gz

# Hashes and signature (requires minisign on PATH)
agc verify agentcarousel-evidence-<RUN-ID>.tar.gz --minisign-pubkey agc.pub

# An extracted bundle directory works too
agc verify ./agentcarousel-evidence-<RUN-ID>/ --minisign-pubkey agc.pub
FlagDescription
--minisign-pubkey <PATH>minisign public key file; when given, a valid MANIFEST.json.minisig is required
--minisign-bin <PATH>minisign binary name/path (default: minisign)
agc verify checks evidence bundles from agc export. Fixture bundles (with a bundle.manifest.json) are checked with agc bundle verify. An unsigned manifest proves only that the files are consistent with each other, not who produced them.

scope

A scope profile, scope.yaml next to cases.yaml, records what an evaluation covers: use cases, tools, data sensitivity, users, the instance tested, what was left out, and the planned split of test effort across risk categories. agc validate checks it too, and agc export adds a valid profile to the bundle as scope.json.

# Write a commented skeleton into fixtures/my-agent/
agc scope init --skill my-agent

# Validate it and compare planned vs actual coverage per risk category
agc scope check --skill my-agent

compliance

Scores run history against bundled OSCAL control catalogs and renders per-control attestation reports. Cases are mapped to controls via tags (for example fda-samd:fda-samd-medical-device-reporting). A control is reported satisfied only with three or more cases and effectiveness ≥ 0.80; anything less is partial evidence or a gap. Available frameworks: nist-ai-rmf, eu-ai-act, iso-42001, hipaa, fda-samd, nist-800-171, nist-800-172, nist-800-207, and aiuc-1 (control IDs, AgentCarousel's own labels and links to the standard; no requirement text). Governance and process controls are reported as Procedural: testing an agent cannot satisfy them, and tagged cases don't count as evidence for them.

# Per-control attestation report (Markdown)
agc compliance report --framework fda-samd --skill my-agent

# OSCAL Assessment Results JSON (machine-readable)
agc compliance report --framework hipaa --oscal > hipaa.oscal.json

# Link the results to the assessment plan exported from your GRC platform
agc compliance report --framework nist-ai-rmf --oscal \
  --import-ap https://grc.example.com/plans/agent-sap.json

# All frameworks, one file each
agc compliance report --framework all --out ./reports/

# Controls with no coverage, plus remediation advisories
agc compliance gaps --framework eu-ai-act

# Generate fixture cases pre-tagged with control IDs
agc compliance generate --skill my-agent \
  --tag nist-ai-rmf:nist-ai-rmf-measure-1.1 --count 3
Sub-commandDescription
reportPer-control pass/fail table with effectiveness scores; --oscal emits OSCAL Assessment Results JSON
gapsLists NotSatisfied / PartialEvidence controls with suggested case improvements
generateGenerates fixture cases pre-tagged with control IDs for a framework

The OSCAL Assessment Results artifact is also written into every agc export evidence tarball, and agc metrics --framework <id> scopes the compliance metrics table to a single framework.

CLI Reference: Bundles & Registry

The hosted registry at api.agentcarousel.com is offline while it moves to new hosting. bundle pull, publish and trust-check work against any AgentCarousel registry you point --url at; the examples keep the hosted URL.

bundle

Manages fixture bundles: distributable archives combining a manifest, fixture files, and mocks.

# Pack a bundle (updates sha256s in manifest, writes .tar.gz)
agc bundle pack fixtures/my-agent

# Pack to an explicit output path
agc bundle pack fixtures/my-agent --out my-bundle.tar.gz

# Verify bundle integrity (dir, manifest file, or .tar.gz)
agc bundle verify my-bundle.tar.gz

# Pull bundle manifest and artifacts from the registry
agc bundle pull my-agent-1.0.0 \
  --url https://api.agentcarousel.com

# Pull and immediately verify
agc bundle pull my-agent-1.0.0 \
  --url https://api.agentcarousel.com --verify
Sub-commandDescription
pack [DIR]Update manifest sha256s and write a .tar.gz (default dir: current directory)
verify [PATH]Validate a fixture bundle's structure, manifest and file checksums (dir, manifest, or .tar.gz). For evidence bundles use agc verify.
pull <BUNDLE-ID>Download manifest and artifacts from the registry into pulled-bundles/<id>/; --verify runs verify after download

publish

Registers a bundle and ingests evidence runs in one step. Reads the registry write token from config or the AGENTCAROUSEL_API_TOKEN environment variable. By default only the SHA-256 digest of prompt.md is sent. Pass --include-prompt to upload the prompt itself and include it in freshly exported evidence.

# Publish bundle + most recent matching run
agc publish fixtures/my-agent \
  --url https://api.agentcarousel.com

# Dry run: resolve values without making API writes
agc publish fixtures/my-agent \
  --url https://api.agentcarousel.com --dry-run

# Submit all matching local runs (newest first)
agc publish fixtures/my-agent \
  --url https://api.agentcarousel.com --all-runs

# Limit number of runs when using --all-runs
agc publish fixtures/my-agent \
  --url https://api.agentcarousel.com --all-runs --limit 5
The registry write token must be available as AGENTCAROUSEL_API_TOKEN. Never commit tokens to fixture files or env_overrides.

trust-check

Queries the registry for the current trust state of a bundle. By default requires trusted state; use --min-trust to lower the threshold. Optionally verifies a local attestation against a minisign public key.

# Query trust state (exits non-zero if below --min-trust, default: trusted)
agc trust-check my-agent-1.0.0 \
  --url https://api.agentcarousel.com

# Accept stable or higher
agc trust-check my-agent-1.0.0 \
  --url https://api.agentcarousel.com \
  --min-trust stable

# Verify with a local attestation file + minisign public key
agc trust-check my-agent-1.0.0 \
  --url https://api.agentcarousel.com \
  --attestation ./attestation.json \
  --minisign-pubkey ./minisign.pub
FlagDescription
--url <URL>Registry API URL (falls back to config or AGENTCAROUSEL_REGISTRY_URL env)
--min-trust <LEVEL>experimental | carousel-candidate | stable | trusted (default: trusted)
--attestation <FILE>Local attestation JSON to verify offline with minisign
--minisign-pubkey <PATH>minisign public key: local file or https:// URL (http:// is refused)
--minisign-bin <PATH>minisign binary name/path (default: minisign)

CLI Reference: Tooling

doctor

Checks your environment, configuration, and fixture setup for common issues in one pass: API keys, config file, history DB, fixtures directory, and JSON schema.

# Full environment check
agc doctor

# Machine-readable output
agc doctor --json

update

Checks GitHub for a newer release of the CLI and installs it in-place using an atomic rename. Uses the same install path as the running binary.

# Check and install if available
agc update

# Check availability without installing
agc update --check

completions

Prints a shell completion script to stdout for bash, zsh, or fish.

# Zsh
agc completions zsh > ~/.zsh/completions/_agc

# Bash
agc completions bash > /etc/bash_completion.d/agc

# Fish
agc completions fish > ~/.config/fish/completions/agc.fish

Configuration

The CLI resolves configuration in this order, with later sources taking precedence:

  1. --config <path>: explicit path flag
  2. ./agentcarousel.toml: project-level config
  3. ~/.config/agentcarousel/config.toml: user-level config

Run history is stored in a local SQLite database:

PlatformDefault path
macOS~/Library/Application Support/agentcarousel/history.db
Linux~/.local/share/agentcarousel/history.db

Override with AGENTCAROUSEL_HISTORY_DB=/path/to/history.db.

Fixture Development

Fixture Format

Fixtures are YAML files named cases.yaml inside their skill directory. The authoritative schema is schemas/skill-definition.schema.json in the repository. Scaffold one with agc generate --skill <name>.

Top-level fields

FieldRequiredDescription
schema_versionYesInteger. Current version is 1.
skill_or_agentYesKebab-case identifier for the subject under test.
bundle_idNoBundle identifier for certification tracking.
bundle_versionNoSemver. Major bumps reset the carousel iteration counter.
certification_trackNonone | candidate | stable | trusted
risk_tierNolow | medium | high
data_handlingNosynthetic-only | no-pii | pii-reviewed
agentNoAgent identity: id (required), name, version, owner, framework, runtime, risk_class, tools with scopes, external_ids. Carried into evidence.json.
defaultsNoDefault timeout_secs, tags, and evaluator applied to all cases.
casesYesArray of one or more case definitions.

Case fields

FieldRequiredDescription
idYesMust start with <skill_or_agent>/. Enforced by validate.
descriptionNo*Human-readable intent. Required by the review checklist.
tagsNoArray of tag strings for filtering.
severityNoP0 critical, P1 major, P2 significant, P3 minor. Set it when you write the case. P0 also marks the case critical.
inputYesmessages array and optional context / env_overrides.
expectedYestool_sequence, output assertions, and rubric items.
evaluator_configNoPer-case evaluator override; accepts effectiveness_threshold.
timeout_secsNoPer-case timeout. Recommended: 1.5× expected latency.
seedNoRNG seed for reproducible eval runs.

Minimal example

schema_version: 1
skill_or_agent: hello-skill
cases:
  - id: hello-skill/happy-path
    description: Responds to a greeting
    tags: [smoke, happy-path]
    input:
      messages:
        - role: user
          content: "Say hello"
    expected:
      tool_sequence: []
      output:
        - kind: contains
          value: "hello"

Output assertion kinds

kindDescription
containsOutput must contain this string (case-sensitive)
not_containsOutput must not contain this string
equalsExact match; use for structured/tool outputs, not free text
regexPCRE regular expression match
json_pathJSONPath expression applied to the output
golden_diffDiff against a known-good golden output file in the golden/ directory

Case Tags

Tags let you filter which cases run. Use --filter-tags smoke on PRs for fast feedback and run all tags on main or nightly.

TagWhen to use
smokeFast PR gate. Every fixture should have at least one smoke case.
happy-pathCore success scenario; the most important thing the skill does when everything works.
error-handlingGraceful failure behavior for invalid or missing inputs.
edge-caseBoundary or unusual-but-valid input that is still in scope.
certificationIncluded in certification-focused carousel runs.
deferredTracked placeholder for a blocked or not-yet-implemented integration.

Evaluators

Select the evaluator that requires the least complexity. Escalate only when a simpler one cannot express the assertion.

rules

Exact match, regex, JSON path, and tool sequence assertions. Deterministic, free, fast. Use this first.

golden

Diff against a known-good output file in golden/. Use when output format is stable and you have a reference. agc promote writes golden files from a saved run.

process

External evaluator script (Python, JS) via stdin/stdout JSON contract. Use for custom logic that rules cannot express.

judge

LLM-as-judge scoring for rubric items requiring language understanding. Adds cost and variance; use only when rules, golden, and process are insufficient.

Development Process

Follow these phases in order.

1

Intake

Answer four questions before writing any YAML: What is the skill_or_agent id? What user goal does this test? Are tool calls required? Is input data synthetic?

Do not proceed until you confirm: no PII in inputs, scope is bounded, mocks can be written without live network calls.

2

Scenario Design

Design one primary (happy-path) use case per fixture file. Add edge cases as separate cases entries, not separate files, unless they cover a substantially different workflow.

Pair the happy-path with at least one failure-mode case. Failure cases almost always reveal mock gaps earlier.

3

Author

Scaffold with agc generate --skill. Write mocks before assertions: draft the mock response first, then write output assertions against what the mock actually returns.

4

Self-Check

Run validate --strict, then test, then eval. All three must succeed before requesting review.

5

Peer Review

Open a PR or share the file with a reviewer. Use the review checklist (correctness, completeness, safety & data).

Certification-track fixtures require a domain reviewer in addition to a standard peer reviewer.

6

Bundle Version Bump

After review is approved: patch bump for description changes, minor bump for new cases, major bump for removed or renamed cases (resets the carousel iteration counter).

Quick self-check commands

# 1. Schema + rules validation (strict mode)
agc validate fixtures/my-agent/cases.yaml --strict

# 2. Mock test run
agc test fixtures/my-agent/cases.yaml

# 3. Eval with rubric (if rubric items exist)
agc eval fixtures/my-agent/cases.yaml

Contributing

Fixture and documentation contributions follow CONTRIBUTING.md in the CLI repository.

  1. Open a GitHub Issue first: before writing any YAML, open an issue titled Fixture proposal: <skill-or-agent-id> and fill in the fixture proposal checklist from CONTRIBUTING.md.
  2. Follow the development process: fixtures must pass validate and test --offline true, and pair at least one happy-path case with an error-handling or failure case.
  3. Security: never include real API keys, credentials, or PII in fixture inputs, mock responses, or expected outputs. See SECURITY.md .

Registry API

Authentication

Public read endpoints require no credentials. Write endpoints require a bearer token.

EndpointAuth required
GET /healthNo
GET /v1/bundlesNo
GET /v1/bundles/{bundleId}/trust-stateNo
GET /v1/bundles/{bundleId}/manifestNo
GET /v1/bundles/{bundleId}/file?path=...No
POST /v1/bundlesYes (Authorization: Bearer <token>)
POST /v1/runsYes (Authorization: Bearer <token>)
# Set the token before publishing
export AGENTCAROUSEL_API_TOKEN=<your-registry-write-token>

agc publish fixtures/my-agent \
  --url https://api.agentcarousel.com

Endpoints

Base URLs

EnvironmentBase URL
Productionhttps://api.agentcarousel.com (offline while it moves to new hosting)
Local developmenthttp://127.0.0.1:3001

GET /health

Liveness check. Returns { "ok": true }.

GET /v1/bundles

Lists all registered bundles. Returns bundle_id, bundle_version, trust_state, description, domain, created_at, and last_run_at.

GET /v1/bundles/{bundleId}/trust-state

Returns the public trust state for a bundle. No authentication required.

const bundleId = "my-agent-1.0.0";
const res = await fetch(
  `${baseUrl}/v1/bundles/${encodeURIComponent(bundleId)}/trust-state`
);
const trust = await res.json();

GET /v1/bundles/{bundleId}/file

Fetches a bundle artifact by path. The special path prompt.md serves the agent's system prompt as text/plain (stored as a DB column, not object storage). All other paths serve fixture/mock bytes from object storage.

# Fetch the agent's system prompt
GET /v1/bundles/my-agent-1.0.0/file?path=prompt.md

# Fetch a fixture file
GET /v1/bundles/my-agent-1.0.0/file?path=cases.yaml

POST /v1/bundles

Register or resolve a bundle. Idempotent. Accepts application/json or multipart/form-data. Pass a prompt field in multipart to store the agent's system prompt.

const res = await fetch(`${baseUrl}/v1/bundles`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": `Bearer ${token}`,
  },
  body: JSON.stringify({
    bundle_id: "org/my-agent",
    bundle_version: "1.0.0",
    risk_tier: "medium",
  }),
});

POST /v1/runs

Ingest a run evidence tarball produced by agc export. Accepts multipart/form-data with an evidence field containing the .tar.gz.

const form = new FormData();
form.append("evidence", evidenceFile); // .tar.gz blob
form.append("registry_bundle_id", "my-agent-1.0.0");

const res = await fetch(`${baseUrl}/v1/runs`, {
  method: "POST",
  headers: { "Authorization": `Bearer ${token}` },
  body: form,
});

Trust State

Every registered bundle has a trust state. New bundles start at Experimental and advance as qualifying runs accumulate.

Experimental

Initial state for every newly registered bundle.

CarouselCandidate

At least one qualifying passing run. The registry can promote a bundle here automatically after its first one.

Stable

The last five qualifying runs passed (pass rate ≥ 0.999) and met the effectiveness threshold for the risk tier: 0.85 high, 0.80 medium, 0.75 low.

Trusted

Highest state. Stable run history plus a domain expert's review and signed attestation.

Trust state is visible in the public Agent Registry. Use agc trust-check to query it programmatically.

For Rust crate documentation and deeper type references, see docs.rs/agentcarousel .

Found an issue? Open a GitHub issue .