FrankenTerm

Operator Playbook Excerpts

406 words2 min read7 subsectionsFrom the README at ft 0.15.21

On this page7
"I see exit 143 from cargo""I think there's a memory leak""A pane is stuck""The watcher won't start — watcher lock held""Pattern detection isn't firing for a new agent version""I need to swap to a different rule pack temporarily""I need to debug what the operating envelope is denying"

Curated runbook fragments. The full operator playbook lives in docs/operator-playbook.md; these excerpts are the highest-frequency ones.

"I see exit 143 from cargo"

That's an RCH (Remote Compilation Helper) SIGTERM with no diagnostic. Treat it as a blocked remote proof lane, not as permission to run Cargo locally:

bash
rch doctor
rch workers probe --all

Record the exact command that failed, the RCH health output, and the worker or admission reason code in the bead. Keep proof-required beads open or blocked until a remote RCH run reaches Cargo/test execution. While RCH is unavailable, use static/read-only checks only. Do not use local Cargo as an exit-143 bypass; if a human explicitly requests an emergency local diagnostic, record it as non-closeout context only and wait for retained RCH proof before closing the bead.

"I think there's a memory leak"

Don't. First classify residency:

bash
ft doctor --json | jq .swarm_capacity.resource_cockpit.residency_buckets

The cockpit separates rust_heap, mmap_file_backed, sqlite_page_cache, graphics_media, scrollback_cache, child_processes, and unknown. Only after classification should you call something a leak. The unknown class being non-zero is the only one that's an immediate yellow flag.

"A pane is stuck"

Codex panes display rotating idle suggestions ("Find and fix a bug in @", "Explain this codebase", …) when waiting for input. These are placeholder hints, not stuck-pane evidence. Real stuck-pane evidence requires all of:

  • Identical TOOL-OUTPUT lines across consecutive ticks
  • Zero new commits attributable to the pane
  • No br update activity from the pane's assignee

"The watcher won't start — watcher lock held"

Run ft status and identify the exact workspace and watcher owner. Do not force-stop a shared or unidentified process and do not manually remove its lock. If an explicitly owned disposable watcher is confirmed stale, coordinate with its operator and use that instance's normal lifecycle path.

"Pattern detection isn't firing for a new agent version"

Follow the rule-drift workflow:

  1. Capture: ft robot get-text <pane_id> --tail 500 > /tmp/new_output.txt
  2. Add fixture under crates/frankenterm-core/tests/corpus/<agent>/<event>.txt
  3. cargo test corpus_fixtures_match_expected to see the diff
  4. Update rule anchors/regex
  5. ft robot rules lint --fixtures --strict to validate
  6. Commit fixture + rule changes together

"I need to swap to a different rule pack temporarily"

toml
[patterns]
packs = ["builtin:core", "file:/path/to/my_lab_pack.toml"]

The daemon can hot-reload config on SIGHUP, but address only an exact, operator-owned watcher instance through its supervised lifecycle. Never use a broad process-name match on a shared host. ft rules list --verbose confirms the active set.

"I need to debug what the operating envelope is denying"

bash
ft swarm envelope
ft swarm envelope --surface explain --explain-reason <code>

The envelope shows reason codes (telemetry.stale, capacity.red, capacity.black, capacity.target_class_unproven, etc.) and per-input verdicts.