Source reference: services/fleet/docs/operations.md at 41af2124

Inspect before acting#

Use fleet diagnose, fleet diagnose FLEET, fleet daemon status, fleet show and fleet agent list. Use fleet test for an explicit fail-fast readiness assertion, rather than collecting all independent diagnostic findings. Read controller contact, listener readiness, native state and original error separately. Saved credentials are not readiness evidence.

Model-free checks do not create chats, advance unread state or submit dummy turns. Busy, paused, unavailable and stopped remain distinct. Sleeping can be ready without a running native engine.

Update software#

  1. Record exact controller root, fleet directory, selected release and desired active/stopped instances.
  2. Verify a private backup of controller/fleet/native state, OS-user ctlflow/fleetd.json, credentials and receipt journals.
  3. Install the approved exact native distribution in private storage; retain the native products’ sibling layout.
  4. Use the newly installed CLI to update the selected fleet or instances.
  5. Restart fleetd with the same root using that installed executable.
  6. Verify each target’s release, configured/effective settings, exact histories, unread positions and intended activation.

Only previously desired-active targets resume. Updates never silently enroll a replacement identity or choose another model. Changed skill instructions are sent through the runtime adapter. Recovery does not download software.

Power failure#

Restart fleetd with its original root. It loads its explicit registry, desired intent, saved stopped selection and exact histories. It does not discover new directories or initialize replacement conversations.

Enabled listeners return with their saved histories asleep. No historical task checkpoint causes a restart prompt or model turn. Only genuine eligible input wakes its recipient. Pending decisions and unconfirmed real-message delivery remain recovery state, not logs.

Failures#

ErrorResponse
Name collisionChoose a unique registered name and submit a new exact review
Missing private credentialsRecover through authorized owner/controller proof, not public name lookup
Unsupported native settingSelect an actually available model/effort and restart explicitly
Established history missingRestore/diagnose its exact binding; do not create a new one implicitly
Live writer lockResolve the exact owned writer before replacement
Native questionAnswer its authenticated owner decision page
Cleanup failedRetain the failed generation; do not start a competing one
Server unavailableDelivery gate closes; retained unread state resumes after authenticated reconnection
Old terminal pointerObtain a new attachment descriptor for the current generation

Each implementation’s packaged guard terminates its owned native group on controller death; it does not contain tools that escape that group. Native-group and history locks prevent competing ownership. Process-name scanning and history copying are not recovery methods. No target guarantees arbitrary subprocess cleanup after SIGKILL.