Operations

Approvals, suspension, model permits and the circuit breaker, Bedrock invocation logging, releases, health, backup, upgrade and removal. The pnpm ac commands below have not yet been verified on AWS. Replace <region> with your installation's region (--region has no default).

Approvals

When policy returns require_approval for a tool request, ACP creates an approval bound to the exact normalised action (tool ID and adapter version, target and parameters; for email, recipient, subject and body). The agent gets 202 with actionId and approvalId.

  • Inbox: GET /api/v1/approvals lists pending requests in your business-unit scope for the approver role the rule requires (default approver). The detail view shows the exact payload, requester, agent and version, policy revision, matched rules and expiry, and hides the approve button if current policy would deny the action.
  • Decide: POST /api/v1/approvals/{id}/decision with {decision, payloadHash, comment}. A payloadHash that differs from the one you reviewed is rejected and needs a new request. Also rejected: self-approval by agent owners (unless the tool allows it), stale or duplicate decisions, expired approvals, suspended agents and actions current policy now denies.
  • Expiry: the tool's ttlSeconds (default 24 hours).

Dispatch. pending → approved is conditional; an outbox entry and queue message then trigger the dispatcher, which claims the approval exactly once (approved → dispatching), rechecks suspension, release eligibility, tool availability, payload hash and policy, and executes. Duplicate deliveries are no-ops. An ambiguous external result marks the approval and action outcome_unknown; it is not retried and an operator must reconcile. A dispatcher that stops mid-flight is marked outcome_unknown by scheduled maintenance after 15 minutes.

Suspension

POST /api/v1/agents/{id}/suspend with a reason (3–500 characters) blocks, once committed, new runs, model permits and tool calls for the agent in every stage, and cancels pending and approved-but-not-dispatched approvals. It does not stop external runtimes or in-flight work, or reverse actions already dispatched; agents may still report completion of runs already in progress (see what ACP does not guarantee). Suspension does not change IAM: the role can still invoke its approved models, but a call made without a permit trips the circuit breaker, which adds an IAM deny on ACP-owned roles. Other identity-level suspension and runtime adapters such as zero Lambda reserved concurrency are not provided.

  • Bulk: POST /api/v1/suspensions with exactly one of businessUnitId, modelRef or toolId.
  • Resume: POST /api/v1/agents/{id}/resume revalidates: the active configuration must load and neither stage role may have critical IAM drift.
  • Retire: /retire is permanent; history and metrics are kept.

Model permits and expiry

ACP never calls a model. An agent asks for a permit before each Bedrock call, makes the call with its own role and reports the usage (see integrating agents). A permit covers one call and expires after 15 minutes. Every five minutes a scheduled job charges expired, unreported permits at their full reserved amount (audited as model.permit.expired); a late report then gets 409 permit_expired. If Bedrock's log later shows the call, ACP charges only usage above that amount. Open permits count against budgets, so many unreported permits can make new ones fail with 429 budget_exceeded. Check the run's actions in the console to see each permit's status and usage source (agent report, invocation log or unreported worst case).

Circuit breaker

The model circuit breaker suspends model access for one agent stage when ACP finds a violation:

  • a Bedrock call with no permit, someone else's permit, or a second call under one permit (unpermitted_model_call);
  • usage in Bedrock's log above what the agent reported (usage_underreported);
  • usage above the permit's token limits, reported or logged (permit_exceeded);
  • an adjustment that takes spend past the budget (budget_exceeded).

Once tripped, new permits are refused with 403 model_access_suspended. For roles ACP owns, the IAM controller also applies an explicit deny on all model invocation; roles adopted from your account cannot be changed, so there only permits are refused. Calls already made are still reconciled and charged.

Investigate. GET /api/v1/agents/{id}/model-breaker shows each stage's state, reason, detail (for example the Bedrock request ID and role) and whether the IAM deny is in place. The audit log has model.breaker.trip and model.usage.violation entries. Compare the agent's code and logs with the permit and usage records before resuming.

Reset. In the console, open the agent and choose Resume model access…, or call POST /api/v1/agents/{id}/model-breaker/reset with {stage, reason}. It needs agents.suspend, is audited (model.breaker.reset), and for ACP-owned roles re-applies the role without the deny. IAM changes take a short time to propagate.

Bedrock invocation logging

ACP's independent check of model usage reads Amazon Bedrock's model invocation logs. Turn it on once per region after installing:

pnpm ac bedrock-logging --profile my-aws-profile --region <region> --name agent-control-plane          # show
pnpm ac bedrock-logging --profile my-aws-profile --region <region> --name agent-control-plane --enable # set

--enable asks for confirmation, then sets the region's logging to deliver metadata only (text, image, embedding and video delivery off) to acp-<name>-mlogs-<account>-<region>. Only Bedrock in your account may write to the bucket, and objects expire after 90 days. The setting is account-wide per region and replaces any existing configuration.

A Lambda function reads each delivered log object, keeps the caller role, model and token counts and discards anything else. It matches calls to permits through the request metadata and ignores calls by roles not bound to an ACP agent.

pnpm ac doctor checks the configuration, and the permit maintenance job records it every five minutes. If logging is turned off, pointed elsewhere or set to deliver content, ACP cannot detect calls made without a permit: model coverage drops to integrated with that limitation, and the doctor check fails. ACP cannot stop account administrators changing the setting; run --enable again to restore it.

Releases

Sandbox and production are governance stages in one installation, each with its own workload role, run namespace, budgets, fixtures and bindings. Sandbox cannot use production credentials, production write tools or real outbound email. Your pipelines build, test and deploy; ACP never executes or redeploys code. The API calls for each step are in release pipeline.

  1. Candidate: a version with artifactDigest (hex SHA-256 of the deployment package), sourceCommit and optional promptHash pins the current Agent Card revision and its model and tool grants.
  2. Test: requesting a test points the sandbox binding at the version and returns a manifest for your pipeline. Only an accepted evaluation moves it to tested.
  3. Submit: needs tested, both owners present and active, and revalidation against current configuration.
  4. Approve: a reviewer with releases.approve approves or rejects the exact manifest; submitter, creator and owners are excluded when requireIndependentReleaseApprover is true. Bind the production workload role before approval, as the manifest includes it.
  5. Evidence: after your pipeline deploys and publishes a Lambda version, it submits function ARN, version and CodeSha256. ACP calls GetFunction itself and checks the code hash against the approved digest and the execution role against the production binding.
  6. Activate: needs approval and verified evidence. The production binding moves first, so requests under the old release fail; the old release becomes superseded.

Rollback of a superseded version revalidates it against current policy, catalogue and grants and records an independent authorisation; your pipeline must redeploy that digest and submit fresh evidence before activation. Drafts never affect production: card edits create new revisions and releases pin theirs.

Verifying a release

No official release has been published yet. A release directory holds source, Lambda, console and CloudFormation archives (the templates reference CDK bootstrap assets and are not portable quick-create templates), an SDK package, a CycloneDX SBOM, a licence inventory, release notes, release-manifest.json and SHA256SUMS. Releases are immutable; a defective one is superseded by a new version, never overwritten.

pnpm ac verify-release --dir ./agent-control-plane-0.1.0 --expect-version 0.1.0 --expect-commit <40-hex-sha>
cd ./agent-control-plane-0.1.0 && sha256sum -c SHA256SUMS

verify-release checks the manifest structure, safe paths, every artifact's size and SHA-256, that no unlisted files are present and that SHA256SUMS matches; it never executes anything from the directory. A checksum is not a signature: check build provenance (linking the files to the build run and source commit) with gh attestation verify, whose command verify-release prints when provenance is present.

Health checks

pnpm ac doctor --profile my-aws-profile --region <region> --name agent-control-plane

Read-only; never applies destructive fixes; exits non-zero if any check fails. It checks stack status and resource health, the active manifest and every active document's hash, aggregation freshness, ambiguous budget reservations and pending approval dispatches, IAM controller availability, and whether Bedrock model invocation logging delivers metadata only to the installation's bucket. Administrators see the same at GET /api/v1/health.

How current the console is

The console keeps each screen up to date while its tab is visible, and refreshes it at once when you return to the tab. Nothing is requested from a hidden tab.

ScreenRefreshes every
Approvals, Sandbox & Releases, a run15 seconds
An agent's page30 seconds
Agents list, Audit, Overview dashboards, Finance60 seconds
Models & Tools, Policies, Settingsonly on return to the tab

Dashboard figures are recomputed every 5 minutes, so a dashboard that refreshes shows new numbers only that often; "Updated" on the dashboard is the time of that computation. A refresh never changes text you are typing, and it never extends a sign-in: when the session ends the console says so and stops asking. If refreshes fail, the console keeps the last data, says it may be out of date and retries less often (up to every 5 minutes) until one succeeds. The interactive demo instead refreshes as its simulation clock advances.

Troubleshooting

SymptomLikely causeWhat to do
403 unregistered_principalCalling role not bound, or call not from an assumed roleCheck the execution role matches the binding (GET /api/v1/agents/{id})
403 binding_unverifiedRole applied or adopted but not yet verifiedReconcile permissions; IAM changes propagate eventually
403 principal_id_mismatchRole deleted and recreatedRe-apply or re-adopt it so ACP records the new unique ID
403 critical_iam_driftBoundary removed, policy changed or extra policy attachedInspect drift findings, fix or re-apply the role, reconcile
403 no_eligible_releaseNo active production release, or no sandbox version under testActivate a release or request a sandbox test
403 model_not_approved / model_preflight_missing / price_unknownModel not usable yetSee when a model can be used
403 model_access_suspendedThe agent stage's model circuit breaker is trippedSee circuit breaker
Bedrock AccessDeniedException in the agentModel not approved for the stage, permissions not re-applied after a change, circuit breaker deny, or IAM still propagatingCheck GET /api/v1/agents/{id}/permissions for drift, apply permissions again, check the breaker
409 permit_expiredUsage reported more than 15 minutes after the permitThe permit was charged in full; report sooner or request permits closer to the call
403 tool_not_grantedTool not in the release's pinned Agent CardUpdate the card and create a new version
429 budget_exceededOrganisation or agent-stage monthly limit reachedReview budgets.md; reservations include open permits
409 idempotency_conflictIdempotency key reused with a different payloadUse a new key per distinct request
502 outcome_unknownTool adapter's external result ambiguousReconcile with the external system; ACP will not retry
Model coverage stays integratedBedrock invocation logging not verified, or IAM not verifiedRun pnpm ac doctor; see Bedrock invocation logging
503 config_unavailableActive configuration missing or failed verificationRun doctor; controlled actions fail closed until fixed
Dashboard shows "stale"Aggregation has not run for 15 minutesCheck the aggregates schedule and its logs
Console says a page "could not be refreshed"The API is unreachable or returning errorsCheck your network, then API health; the console retries by itself

Backup and restore

Point-in-time recovery is not a substitute for a tested restore.

pnpm ac backup --profile my-aws-profile --region <region> --name agent-control-plane --out ./backup-2026-12-02
pnpm ac restore --profile my-aws-profile --region <region> --from ./backup-2026-12-02 --to new-installation

A backup holds every item from the eight state tables (acp-<name>-registry, -config, -runs, -approvals, -ledger, -audit, -aggregates, -outbox), all configuration revision objects, and an export of the active Markdown configuration and manifest revision. It may contain approval payloads and drafted content: store it encrypted with restricted access.

Restore verifies the backup's checksums and refuses non-empty target tables unless --force (which overwrites items with the same keys). To restore:

  1. Install a fresh installation and restore into it while its tables are empty.
  2. Re-invite users; Cognito users are not backed up.
  3. Reconcile each agent so ACP re-observes its IAM roles (recreated roles have new unique IDs and need re-verifying).
  4. Rotate connector secrets.
  5. Run pnpm ac doctor.

Upgrade

pnpm ac upgrade --profile my-aws-profile --region <region> --name agent-control-plane --version X.Y.Z

Check out release tag vX.Y.Z first: the checkout's version must match --version. The upgrade shows a change plan, backs up state and configuration (--backup-dir to choose where; --skip-backup at your own risk), asks for confirmation, deploys, seeds only missing default documents (your edits are never overwritten) and runs doctor. CloudFormation rolls back a failed stack update.

  • A platform upgrade does not affect agent releases.
  • Downgrades are blocked unless you pass --allow-downgrade and confirm interactively. If a migration is irreversible, the release notes give the restore procedure.
  • Check the compatibility matrix in the release notes for API, configuration schema and application versions.
  • Consider a separate installation (for example uat) for testing upgrades.

Uninstall

pnpm ac uninstall --profile my-aws-profile --region <region> --name agent-control-plane

Removes the stacks but retains state tables, the configuration and audit bucket and keys, and lists retained resources that still cost money. Re-installing with the same --name re-adopts retained tables. --purge deletes them permanently after a second typed confirmation; back up first. Non-interactive use needs --yes --confirm-name <name> (with or without --purge).

Your agent workloads and their IAM roles are not removed. ACP-owned workload roles (/acp/<name>/workloads/) are listed for you to delete deliberately; agents bound to them can no longer get permits or make tool requests once ACP is gone. The Bedrock invocation-log bucket (acp-<name>-mlogs-<account>-<region>) is retained and listed too (--purge deletes it). The Region's invocation logging is an account-wide setting that uninstall leaves as it is and warns about: if it still delivers to this installation's bucket and nothing else relies on it, turn it off with aws bedrock delete-model-invocation-logging-configuration --region <region>. Remove the standalone example agent with its own stack (cdk destroy).

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