FrankenTerm

Incident Bundles

229 words1 min readFrom the README at ft 0.15.21

When something goes wrong (a crash, a stuck pane, a fleet-wide degradation), ft packages what it knows into an incident bundle. ft reproduce export runs as its own process, so sources that only a running watcher publishes (tailer health, resource pressure, live robot state) are recorded as unavailable rather than invented.

Collected today:

  • Recent events (last 50)
  • Pane/mux state from stored pane rows (not a live mux query)
  • SQLite metadata (journal mode, size, schema version, row counts)
  • Redacted config, git status, and the latest crash report
  • Audit-trail tail: recent policy decisions and results from audit_actions (no free-text summaries)
  • Process tree: a bounded, redacted ps snapshot when you pass --process-sample
  • Beads coordination snapshot from .beads/issues.jsonl (ft-tkkqx)

Not yet on the production path: GPU state, render-state snapshots, SynchronizedOutput (BSU/ESU) drain telemetry, and WAL checkpoint detail.

Producer side: the swarm wire protocol carries publish-side bundle source notifications (ft-9sy9e family) so distributed incidents include each participating agent's local view.

Consumer side: ft reproduce export --kind crash --out DIR exports the latest crash bundle for external forensic tools; ft robot incidents autopsy compiles a redacted post-mortem from a flight-recorder source set.

Replay side: ft robot incidents list/show/explain/replay reads persisted flight-recorder source sets and classifies proof evidence without mutating panes, Beads, RCH, Agent Mail, or git. Use docs/operator-runbook.md#2d-flight-recorder-incident-replay-runbook for source failures, RCH infrastructure blocks, dirty-tree contamination, policy denials, communication outages, operator cancellations, and proof-incomplete closeouts.