Operate AgentWorks runtimes and recover work
This page describes 1.14.0. Before upgrading, select the newer documentation version and follow Upgrade DVARA: 1.15.0 requires explicit Gateway clusters and workspace environment assignments.
Operate a standalone service through its health endpoints, metrics, API, and CLI. In a Flightdeck-managed topology, Fleet also shows enrolled Runtime identity, version, health, last heartbeat, assignment version, workspaces, and active runs.
Monitor every runtime
At minimum, alert on:
- readiness and liveness;
- worker availability and queue depth;
- lease renewal and recovered runs;
- assignment version and last successful poll;
- certificate expiry and revocation;
- buffered or rejected run and audit records;
- interactions or effects waiting for operator attention; and
- model, MCP, and A2A failures on the governed path.
A healthy process is not enough. Exercise a representative run and verify its result, events, audit evidence, and usage records.
Drain before maintenance
Drain stops admission of new root runs while allowing work already assigned to continue. Wait for quiescence or inspect the blockers before stopping the process. A human interaction, scheduled wake-up, child run, or uncertain external effect can keep a release or Runtime from becoming safe to retire.
For a standalone deployment, use the lifecycle API or CLI operations for deployment suspension, quiescence, and retirement. For an enrolled Runtime, use Flightdeck's fleet control.
Revoke an untrusted runtime
Revoke when a Runtime identity, certificate, or durable volume can no longer be trusted. A revoked Runtime loses its Flightdeck-provided credentials and assignments. Revocation is not a graceful maintenance operation; drain healthy work first when possible.
Re-enrolment after revocation requires a new one-time token made after the revocation. Do not restore the old runtime identity from an untrusted copy of its volume.
Continue through an outage
A production standalone control plane relies on its configured durable database. If that database is unavailable, fail readiness and restore it rather than accepting work that cannot be recorded. The loopback quickstart instead uses disposable embedded H2.
An enrolled runtime can continue from its last verified assignment during a temporary Flightdeck outage. It buffers records on its durable volume and retries on a bounded schedule. It cannot accept a first deployment without a verified assignment.
Recover compatible work
AgentWorks can continue a run from recorded state when a compatible worker or replacement Runtime has the required release, executor, event history, checkpoint, and effect records. In a Flightdeck-managed fleet this is effect-safe run adoption: the replacement Runtime restores the accepted state and reuses committed external-action results instead of performing them again. Recovery refuses stale ownership, corrupt history, an incompatible checkpoint, a missing executor, or an unsafe external-effect boundary.
Do not describe every interrupted run as automatically recoverable. A run without a safe checkpoint or complete accepted evidence remains visible for operator attention. Never manufacture a successful result or repeat an uncertain external action merely to clear the run.
Back up and restore
For a production standalone control plane, back up its configured database and every external artifact store as one documented recovery set. For a Flightdeck-managed Runtime, preserve its SQLite run store and enrolment directory according to the recovery policy. That Runtime has no PostgreSQL credentials. Restoring only one part can leave assignments, run history, or credentials inconsistent.
Rehearse restore and rollback before production. Application rollback does not undo forward database migrations.