Configuration

Every business definition in ACP is a Markdown document with YAML front matter: organisation, Agent Cards, roles, permissions, policies, models, tools, budgets, evaluation templates, dashboards and deployment settings. Defaults ship in config/defaults/. Operational state (runs, approvals, audit, telemetry) lives in DynamoDB, and credentials never belong in Markdown.

Each upload is validated and stored as an immutable revision; a single active manifest names the revision of each document in force, and changing it (activation) is conditional, permissioned and audited. Enforcement reads the active manifest from authoritative storage on every action and fails closed if any document cannot be verified. Run pnpm validate-config to validate config/defaults/ offline, or pnpm ac validate <dir> for any directory; both report errors and warnings by field path.

Markdown documents

The front matter is the only machine-readable part. It is validated against the JSON Schema for its kind (packages/contracts/schemas/<Kind>.schema.json, generated from packages/contracts/src/schemas.ts) with unknown fields rejected, then by semantic checks such as duplicate IDs. The body is rationale: never interpreted by a model, never executed and rendered escaped (no raw HTML). The Agent Card example shows the shape.

Parsing ruleBehaviour
Encoding and sizeUTF-8 only, at most 256 KiB per document
Duplicate keys, anchors and aliases, custom tags (!foo, !!binary, …)Rejected
Value typesJSON types only; YAML 1.2 core schema, so yes and 2026-01-01 are strings
Non-finite numbers, unsafe integers, non-string keys, __proto__Rejected
Expressions, includes, scriptsNever evaluated
schemaVersionInteger, versioned per kind (currently 1); unsupported versions rejected

Errors point to field paths, for example /rules/3/effect: must be one of: allow, deny, require_approval. IDs follow ^[a-z][a-z0-9-]{0,62}$ unless stated otherwise. Monetary values are integer micro-USD (1 USD = 1,000,000).

KindDocument IDDefault file
Organisationorganisationorganisation.md
DeploymentSettingsdeploymentdeployment.md
Rolesrolesroles.md
PermissionsBoundarypermissions-boundarypermissions-boundary.md
AgentPermissionspermissions.<id>permissions/*.md
PolicySetpolicy.<id>policy-baseline.md
ModelCataloguemodelsmodels.md
ToolCataloguetoolstools.md
Budgetsbudgetsbudgets.md
EvaluationTemplateevaluation.<id>evaluation-template.md
Dashboarddashboard.<id>dashboards/*.md
AgentCardagent-card.<id>agent-card-template.md (template only)
Release(created through the release API)—

ScenarioProfile (scenario.<id>) is accepted only in demo installations; see demo.md. An active configuration must contain every singleton above plus at least one enterprise-scope PolicySet. Agent Cards are versioned per agent through the registry API and pinned into releases, not activated in the manifest.

Revisions and activation

Each revision is hashed as SHA-256 over canonical JSON (recursively sorted keys) of the front matter and normalised body.

  1. Upload a draft: POST /api/v1/config/{id}/revisions stores an immutable object in S3 and a revision record.
  2. Validate: POST /api/v1/config/{id}/validate re-validates the candidate against the active snapshot, including referential integrity (no dangling model, tool, budget, permissions, evaluation or business unit references, including from registered Agent Cards), and returns a line diff and impact summary.
  3. Activate: POST /api/v1/config/{id}/activate with expectedManifestRevision. The manifest pointer is replaced conditionally; a concurrent change returns 409. The audit log records the actor and before/after hashes.

Rollback is a new activation of an earlier revision; history is never mutated. Activation needs config.activate, or config.activate.policy for a PolicySet, config.activate.budget for Budgets and config.activate.models for the ModelCatalogue. With requireIndependentConfigApprover, the activator must differ from the revision author.

GET /api/v1/config-export returns all active documents as Markdown (or JSON with ?format=json). The CLI offers pnpm ac export --out <dir> and pnpm ac import <dir> (--activate to activate), through the same validation and activation pipeline; these commands have not yet been verified against a live AWS installation.

Organisation and deployment settings

organisation.md (id: default) holds name, currency (always USD), timezone (IANA name or UTC; reporting only, budgets always use UTC), businessUnits (id and name, at least one) and separation-of-duties flags: requireIndependentReleaseApprover (required; the production release approver cannot be the submitter or a named owner), requireIndependentConfigApprover and requireIndependentBenefitValidator (benefits validated by someone other than the person who entered them).

deployment.md holds installationName, region, stageLabel (dev, uat, prod), inferenceMode (demo permits only the synthetic demo model; live once a Bedrock model passes preflight and budgets are confirmed), demoMode (seeds labelled demo records; default false), sesEnabled, logRetentionDays (7, 14, 30, 60, 90, 180 or 365), retention (runSummaryDays, temporaryPayloadDays, approvalPayloadDaysAfterClosure, auditDays), aggregationIntervalMinutes and staleRunMinutes. See operations.md.

Agent Cards

An Agent Card describes the business asset: purpose, owners, risk, permitted models and tools, budget and how value is measured. The agent runs on your own compute, so managedByACP is always false. Runtime state (status, metrics, coverage) is joined from ACP state and never written back into the card.

---
kind: AgentCard
schemaVersion: 1
id: invoice-review
name: Invoice Review Agent
businessUnitId: finance
businessOwnerUserId: user-123
technicalOwnerUserId: user-456
risk: medium
purpose: Review invoice data and prepare an exception summary.
runtime:
  provider: aws
  service: lambda
  managedByACP: false
accessProfile: iam-managed
permissionsRef: invoice-review-permissions
modelRefs: [demo-model]
toolRefs: [fixture-invoices, draft-email, simulated-email, record-write]
budgetRef: standard-agent
evaluationRef: invoice-review-basic
successMetric: reviewed_invoice_accepted
benefitMethod: capacity_released
---
# Invoice Review Agent
## Purpose
Review invoice data and prepare an exception summary.
## Limitations
Does not pay invoices or change accounting records.
FieldNotes
idUnique; never encodes stage; cannot change
businessUnitIdMust exist in organisation.md
businessOwnerUserId, technicalOwnerUserIdMust resolve to active users; both are required before a release can be submitted
risklow, medium, high, critical
runtimeprovider: aws; service one of lambda, ecs, agentcore, other; managedByACP: false
accessProfileregistered, iam-managed or restricted-network (see coverage levels)
permissionsRefpermissions/<id>.md used to compile the workload role (warning if missing for non-registered profiles)
modelRefs, toolRefsGrants: an action must be granted here and permitted by policy
budgetRefEntry in budgets.md; otherwise stage defaults apply
evaluationRefEvaluation template required for release
successMetric, benefitMethodValue reporting; benefitMethod is realised_cost_saving, capacity_released, revenue_uplift, avoided_cost, working_capital, quality or risk
tagsOptional, up to 20 lower-case tags

Agent states: draft → sandbox_ready → in_review → production_active, plus suspended and retired. Version states: draft, tested, submitted, approved, active, superseded, rejected, withdrawn.

Register from the console (Agents → Register) or POST /api/v1/agents; export with GET /api/v1/agents/{id}/card. Editing (PATCH /api/v1/agents/{id} with expectedRevision) creates a new card revision; each release pins the revision it was created from, so draft edits never change the active production release. See agents.md.

Roles

roles.md maps Cognito groups to a closed set of application permissions. It is not IAM and can never confer AWS credentials.

Built-in roles: ceo, cfo, cto, compliance, agent_owner, approver, administrator.

Permissions: agents.read, agents.write, agents.suspend, agents.retire, releases.submit, releases.approve, releases.activate, permissions.read, permissions.apply, config.read, config.write, config.activate, config.activate.policy, config.activate.budget, config.activate.models, approvals.read, approvals.decide, runs.read, models.manage, benefits.write, benefits.validate, audit.read, dashboards.ceo, dashboards.cfo, dashboards.cto, dashboards.compliance, users.admin, setup.admin, health.read.

roles:
  - id: agent_owner
    ownedAgentsOnly: true
    permissions: [agents.read, agents.write, releases.submit, runs.read, permissions.read, benefits.write]
groupBindings:
  - group: acp-agent-owners
    roles: [agent_owner]
    businessUnits: ['*']
  • A role may also have a description. ownedAgentsOnly limits it to agents where the user is a named owner; businessUnits limits a binding to listed units ('*' for all).
  • Scopes are enforced on the server for every object; out-of-scope objects return 404.
  • Roles are additive, but separation-of-duties checks always apply: release approvers must be independent of the submitter (and of the owners when requireIndependentReleaseApprover is set); approvals reject agent owners unless the tool allows it; benefits need an independent validator.
  • Members of acp-administrators always keep minimum recovery permissions (users.admin, setup.admin, config.read, config.write, config.activate, health.read). The last administrator cannot be removed.
  • Administrators do not approve outbound actions or validate benefits by default (validation warns if given approvals.decide or benefits.validate).

By default each acp-<role> group maps to its role (acp-agent-owners, acp-approvers and acp-administrators for the last three), and acp-compliance also gets approver. The CFO activates budgets, the CTO maintains the model allowlist and approves and activates releases, and Compliance activates policies and decides pending tool requests.

Permissions

Two documents define what an ACP-managed agent workload role (access profile iam-managed) may do. ACP compiles them into validated IAM documents; user-supplied IAM JSON is never accepted.

kind: PermissionsBoundary
schemaVersion: 1
id: workload-boundary
allowedCapabilities: [acp-agent-api, logs-write, xray-write, s3-read, dynamodb-read, sqs-consume, bedrock-invoke]
deniedServicePrefixes: [bedrock-agentcore, sagemaker, ses, sesv2, iam, organizations, aws-marketplace, secretsmanager, kms, sts]

permissions-boundary.md is the ceiling for every ACP-managed workload role; acp-agent-api is mandatory. bedrock-invoke allows synchronous model invocation (bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream, which also cover Converse and ConverseStream) on model and inference-profile resources in your account. It is a ceiling only: each role's own policy narrows it to the agent stage's approved models. The boundary must include this capability and must not deny the whole bedrock prefix; otherwise compiling the role of an agent with approved models fails. Asynchronous and batch inference, Bedrock agents and flows, knowledge-base generation, inference-profile creation and changes to invocation logging stay explicitly denied.

kind: AgentPermissions
schemaVersion: 1
id: invoice-review-permissions
agentId: invoice-review
grants:
  - capability: s3-read
    mode: direct
    resources: [arn:aws:s3:::customer-invoices]
    stages: [production]
mediated: [model.invoke, tool.invoke]
prohibited: [unapproved-model-inference, direct-email, system-of-record-write]

In permissions/<id>.md, direct grants are limited to s3-read, dynamodb-read and sqs-consume on exact ARNs of the matching service, per stage. Wildcards, ARNs outside the installation's partition, ACP's own tables, buckets and queues, and capabilities beyond the boundary are rejected. mediated lists actions that need ACP's decision first (a model permit or a tool request); prohibited records direct paths the agent must not use. Model invocation is not granted here: ACP adds it from the approved models (see models). The shipped reference agent has grants: [].

The compiled role:

  • is named acp-<installation>-<agentId>-<sbx|prod> (deterministically shortened to 64 characters), with path /acp/<installation>/workloads/ and tags acp:installation, acp:agent-id, acp:stage, acp:managed;
  • trusts lambda.amazonaws.com only, conditioned on your account (aws:SourceAccount); Lambda is the verified reference runtime, other runtimes are integration recipes;
  • allows execute-api:Invoke on the ACP agent API only, the function's own log groups, the compiled grants and synchronous model invocation on the exact foundation-model and inference-profile ARNs of the stage's approved models (the model allowlist; see models);
  • explicitly denies asynchronous and batch inference, Bedrock agents, flows and RetrieveAndGenerate, inference-profile creation, changes to Bedrock invocation logging, SageMaker endpoint invocation, IAM, role assumption, Organizations, Marketplace, SES, changes to its own Lambda code or aliases, invocation of other functions, KMS decrypt, and ACP tables, buckets, queues and secrets. Because kms:Decrypt is denied, S3 objects encrypted with customer-managed KMS keys cannot be read through a direct s3-read grant;
  • when the agent stage's model circuit breaker is tripped, carries an explicit deny on all model invocation instead of the model allowlist (see circuit breaker).

POST /api/v1/agents/{id}/permissions/apply with {stage, mode: create} asks the scoped IAM controller to create or update the ACP-owned role and binds it to the agent stage; {mode: adopt, roleArn} binds an existing customer role for verification only and ACP never modifies it. POST .../permissions/reconcile observes actual IAM and records drift without changing anything; GET /api/v1/agents/{id}/permissions shows desired and observed state, binding, drift and coverage. The desired role depends on the approved models and current policy, so after changing the model catalogue, an Agent Card's modelRefs, budgets confirmation or a model policy, apply permissions again; until then the role shows drift. The IAM controller is scoped to ACP-owned role paths and tags, requires the boundary on creation and cannot modify itself. Give your deployment pipelines iam:PassRole only for the exact workload role, conditioned on iam:PassedToService: lambda.amazonaws.com. See security.md.

Policies

Policies are PolicySet documents with structured rules. The evaluator (packages/policy) is pure and deterministic: no models, no expressions, no regular expressions. The shipped baseline is config/defaults/policy-baseline.md.

---
kind: PolicySet
schemaVersion: 1
id: enterprise-baseline
scope:
  level: enterprise
rules:
  - id: deny-record-write
    action: tool.invoke
    match: {capability: system_of_record_write}
    effect: deny
  - id: email-approval
    action: tool.invoke
    match: {capability: external_email}
    effect: require_approval
    approverRole: approver
  - id: permit-approved-read
    action: tool.invoke
    match: {capability: read_only, toolApproved: true}
    effect: allow
---

A set and each rule may have a description; scope defaults to enterprise. Rules take id, action, match, effect and, optionally, approverRole (only with require_approval), expiresAt and exceptionReference.

Actions: run.start, model.invoke, tool.invoke. Effects: allow, deny, require_approval (only for tool.invoke).

Match fields (all derived by trusted server code, never by the agent):

  • Boolean: registered, modelApproved, crossRegionInference, toolApproved, realSideEffect.
  • String: stage (sandbox/production), agentId, businessUnitId, risk, accessProfile, modelRef, modelProvider, toolId, toolAdapter, capability (read_only, draft_write, external_email, system_of_record_write), modelWeightAvailability (open, closed, unknown), modelOriginJurisdiction and modelHostingJurisdiction (ISO country, EU or unknown; hosting is unknown if more than one).

Operators: a scalar (shorthand for equals), {equals: x}, {in: [..]}, {notIn: [..]}, {exists: true|false}. All conditions in a rule must match; modelRef, toolId and businessUnitId values must exist.

Unknown values never satisfy a requirement for a known value. in never matches unknown or a missing value; exists: true requires a known value; on restrictive rules (deny, require_approval) notIn and exists: false match unknown or missing values, so restrictions fail safe.

Precedence and layering

Scopes: enterprise, business_unit (with businessUnitId), agent (with agentId, optional stage) or stage (with stage).

  1. Platform invariants run first and cannot be removed in Markdown: unregistered principals, invalid stage, unapproved tools or models, and real side effects in sandbox are always denied.
  2. The enterprise layer defines the ceiling. Among matching enterprise rules, deny > require approval > allow. An action matching no enterprise rule is denied.
  3. Lower layers can only deny or require approval. Their allow rules are recorded but never relax a decision.
  4. Separately, the model or tool must be granted in the Agent Card. Both grant and policy must permit.

An approval can never override a deny. Pending approvals are re-evaluated against current policy at decision time and again before dispatch. An approved exception is an explicit, expiring rule (expiresAt, a UTC timestamp such as 2026-12-31T23:59:59Z, with an exceptionReference) in an activated policy revision, never a bypass flag; expired rules are ignored.

Examples

Restrict to models from specific jurisdictions (unknown origin is denied), and deny closed-weight models:

- id: model-jurisdiction
  action: model.invoke
  match: {modelOriginJurisdiction: {notIn: [US, GB, EU]}}
  effect: deny
- id: open-weights-only
  action: model.invoke
  match: {modelWeightAvailability: {notIn: [open]}}
  effect: deny

Read-only access only, for one business unit; outbound approval by Compliance for one agent:

scope: {level: business_unit, businessUnitId: finance}
rules:
  - id: finance-read-only
    action: tool.invoke
    match: {capability: {notIn: [read_only]}}
    effect: deny
scope: {level: agent, agentId: invoice-review}
rules:
  - id: compliance-approves-email
    action: tool.invoke
    match: {capability: external_email}
    effect: require_approval
    approverRole: compliance

Models

models.md is the model allowlist: it maps aliases used in modelRefs to exact provider model IDs and records the metadata policies need. ACP enforces it in two places. It issues model permits only for approved models, and it grants each agent stage's workload role IAM permission to invoke only those models: their foundation-model ARNs in the inference Region and any disclosed cross-Region destinations, and their inference profile when one is set (see how model calls are governed).

A model is approved for an agent stage when all of these hold, and the same checks gate both permits and IAM grants:

  • it is enabled in the active catalogue and granted in the Agent Card (permits check the revision the release pins);
  • deployment.md has inferenceMode: live (the synthetic demo-model works only in demo);
  • an administrator has confirmed budget amounts (confirmedByAdministrator: true in budgets.md);
  • input and output prices are set;
  • preflight has passed for exactly the configured model ID and inference profile;
  • current policy allows model.invoke for that agent and stage.

A change to any of these changes the desired workload role, so apply permissions again afterwards.

models:
  - id: primary-model
    provider: aws-bedrock
    modelId: REPLACE_WITH_VERIFIED_REGION_MODEL_ID
    inferenceProfileArn: null
    inferenceRegion: us-east-1
    crossRegionInference: false
    originJurisdiction: unknown
    hostingJurisdictions: [US]
    weightAvailability: unknown
    enabled: false
    maxInputTokens: 200000
    maxOutputTokens: 4096
    pricing:
      currency: USD
      inputMicroUsdPerMillionTokens: null
      outputMicroUsdPerMillionTokens: null
      sourceUrl: null
      effectiveDate: null
FieldNotes
provideraws-bedrock or synthetic-demo
modelIdExact Bedrock model ID; an enabled model cannot keep the REPLACE_ placeholder
crossRegionInferenceWhen true, inferenceProfileArn and crossRegionDestinations (disclosed Regions) are required; the baseline denies it
originJurisdiction, hostingJurisdictionsDistinct attributes; unknown never satisfies a known-value policy
weightAvailabilityopen, closed, unknown
maxInputTokens, maxOutputTokensOptional; maxOutputTokens bounds the budget reservation
pricingInteger micro-USD per million tokens; optional cacheReadMicroUsdPerMillionTokens and cacheWriteMicroUsdPerMillionTokens; sourceUrl (https://) and effectiveDate (YYYY-MM-DD) are nullable. Unknown price ⇒ no permits and no IAM grant for the model

Optional descriptive fields: displayName, developer. demo-model (provider synthetic-demo) is not a real model: ACP issues permits for it marked synthetic, at zero cost, and the agent produces placeholder output itself. It works only with inferenceMode: demo, never for production agents, so a fresh installation can be exercised without model access or cost. Before enabling primary-model, set a model ID verified for your Region, its jurisdictions and pricing, then run the model preflight from Models & Tools. There is no automatic fallback between models.

Preflight is metadata-only: it uses Bedrock's GetFoundationModel and GetInferenceProfile, and no ACP function holds any model invocation permission. Agents request permits by alias and then choose how to call the approved model (Converse, ConverseStream, InvokeModel or InvokeModelWithResponseStream). ACP never sees or stores prompts or responses.

Tools

tools.md lists tools built on fixed adapter types with typed input schemas. There is no arbitrary HTTP fetch tool and no uploaded tool code; see config/defaults/tools.md for examples.

AdapterCapabilitySide effect
fixture-readread_onlyNone: synthetic fixtures (for example invoices)
draft-outboxdraft_writeStores a draft inside ACP; nothing is delivered
simulated-emailexternal_emailRecords the approved message; never sends
ses-emailexternal_emailReal email through Amazon SES; production only; approval required
synthetic-read, synthetic-writeread_only, draft_writeWorkspace-local mock records; demo installations only

A tool's capability may be classified more restrictively than its adapter (for example record-write uses the draft adapter but is classified system_of_record_write, which the baseline denies), never less.

Fields: id, name, adapter, adapterVersion, capability, inputSchemaRef (fixture-read-input, draft-input, email-input, record-write-input or synthetic-record-input), timeoutMs (100–60000), risk, stages, enabled, idempotent; optionally outputSchemaRef, allowedResourceIds (fixture IDs, or recipient addresses and @domain entries), fixtureSet, sender, secretArn and approval (approverRole, ttlSeconds 60–604800, allowAgentOwnerApproval). ses-email cannot be available in sandbox and needs a fixed sender, a recipient allowlist and approval; tools with connector secrets cannot be available in sandbox; fixture-read needs a fixtureSet.

POST /agent/v1/runs/{runId}/tools/{toolId} with {input, idempotencyKey}:

  • input is validated against the fixed schema (422 on failure) and resource allowlists;
  • the tool must be granted in the pinned Agent Card and available in the stage;
  • policy decides allow (executed, 200), deny (403 with a reason code) or require_approval (202 with actionId, approvalId and a status URL);
  • an unknown tool returns unsupported_tool; ACP never simulates success for unsupported tools.

To enable real email: add a ses-email tool, set sesEnabled: true in deployment.md, verify the SES identity and grant the tool to the agent. SES has no general idempotency guarantee, so an ambiguous send is recorded as outcome_unknown and never retried automatically.

Budgets

Budgets are application-level admission limits for model permits, not an AWS account spending cap.

kind: Budgets
schemaVersion: 1
confirmedByAdministrator: false
organisationMonthlyLimitMicroUsd: 100000000   # 100 USD
defaults:
  production: {monthlyLimitMicroUsd: 10000000} # 10 USD per agent
  sandbox: {monthlyLimitMicroUsd: 2000000}     # 2 USD per agent
perRun: {maxModelCalls: 20, maxToolCalls: 20, maxTotalTokens: 200000, timeoutSeconds: 900}
maxConcurrentRunsPerAgentStage: 5
dailyAlertThresholdPercent: 80
budgets:
  - id: standard-agent
    production: {monthlyLimitMicroUsd: 10000000}
    sandbox: {monthlyLimitMicroUsd: 2000000}
  • No live model gets permits or IAM grants until an administrator sets confirmedByAdministrator: true.
  • Periods are UTC calendar months; reporting uses the organisation's timezone.
  • When it issues a model permit, ACP reserves the worst-case cost against both the organisation and the agent-stage counter in one DynamoDB transaction, including outstanding reservations. The bound is the permit's maxInputTokens and maxOutputTokens at the model's prices. Over budget, the permit is refused with 429 budget_exceeded.
  • The agent's usage report settles the reservation at actual cost in one idempotent transaction (the original period is carried through month boundaries) and releases the unused amount; not_called releases all of it.
  • A permit not reported within 15 minutes is charged at the full reserved amount.
  • Bedrock's invocation logs are reconciled afterwards. A permit the agent has not reported is settled from the log. Usage above what was reported or charged, and calls made without a permit, are charged to the agent stage as adjustments; once a permit is settled, reconciliation only adds charges. A violation, or an adjustment that takes spend past the limit, trips the circuit breaker.
  • Per-run limits and concurrent run limits are enforced as counters.

Permits are issued only within the configured limits. Spend can still pass a limit for the few minutes before invocation logs show calls an agent made without a permit or under-reported (see how model calls are governed). Provider billing, infrastructure, taxes and other external costs can differ.

Evaluations

Evaluation templates define deterministic acceptance tests for a release. Your external sandbox pipeline runs the cases against its own deployment and submits results; ACP never executes test cases or agent code.

kind: EvaluationTemplate
schemaVersion: 1
id: invoice-review-basic
version: 1
evaluatorVersion: acp-eval-1
requiredHumanReview: false
acceptance:
  minPassRatePercent: 100
  minCases: 3
  requiredCaseIds: [schema-valid-summary, record-write-denied, email-requires-approval]
cases:
  - id: schema-valid-summary
    fixtureRef: invoices/inv-1001
    assertions:
      - type: schema_valid
      - type: required_fields
        values: [invoiceId, exceptions, recommendation]

Templates and cases may have a description. Assertions take a type and, as the type needs, field, value (string, number or boolean) or values. Types: schema_valid, required_fields, exact_match, contains, max_latency_ms, max_cost_micro_usd, policy_denied, approval_required, no_real_side_effects.

The agent's sandbox deployment identity submits results to POST /deploy/v1/agents/{id}/releases/{v}/evaluations against the template in the card's evaluationRef and its current version. ACP counts results for known cases and accepts the evaluation only when every required case passed, at least minCases were run, the pass rate meets minPassRatePercent and no result is unknown. Acceptance moves the version to tested; failure leaves it in draft, so it cannot be submitted. Every run is kept, marked self-reported, with the evaluator version and whether a synthetic provider was used. Model-based evaluation is not supported; if added it must be labelled probabilistic and cannot grant authority.

Dashboards

Four standard dashboards ship as Markdown: dashboard.ceo, dashboard.cfo, dashboard.cto, dashboard.compliance. Each requires the matching dashboards.<role> permission.

kind: Dashboard
schemaVersion: 1
id: cfo
requiredRole: cfo
period: last_30_days
stage: production
widgets:
  - type: kpi
    metric: model_cost_usd
    title: Model inference spend (estimate)
  - type: table
    metrics: [model_cost_usd, budget_utilisation, budget_reserved_usd]
    groupBy: agent
  • id and requiredRole must be equal (ceo, cfo, cto or compliance); title is optional.
  • period: last_7_days, last_30_days, last_90_days, month_to_date, previous_month. stage: production, sandbox or combined.
  • Widget types: kpi (one metric), line, bar, table (metric or up to 10 metrics), each with optional title and limit (1–50). Non-KPI widgets need groupBy: day, month, agent, business_unit, model, stage, reason (only where the metric supports it).
  • Only metric IDs from packages/contracts/src/metric-definitions.ts are allowed. No SQL, scripts, URLs or arbitrary queries.

Ratios are recomputed from summed numerators and denominators, never averaged across agents. Unknown values display as N/A, never zero; ROI is N/A without validated benefit and complete cost data. Model cost is an estimate (usage × configured price), marked incomplete if any usage had unknown pricing. Capacity released is reported in hours and is not cash unless Finance converts it. Agent-reported outcomes are labelled self-reported. Rollups are recomputed idempotently from immutable events about every five minutes, with a stale data warning when the last computation is older than 15 minutes. CSV export (/api/v1/metrics-export?dashboard=cfo) neutralises spreadsheet formula injection.

Docs version: 2abf6af98023 · Source: docs/configuration.md · Edit on GitHub