File Tools Telemetry
BMO’s core file primitives (view, edit, write, multiedit) emit paired structured events on every invocation:
file_tool.firedat entryfile_tool.actionfor each terminal or per-edit outcome
Events are written to slog and a process-scoped ring buffer (capacity 16) so operators and agents can inspect recent activity without scraping logs.
Bounded actions
Section titled “Bounded actions”| Action | Severity | Meaning |
|---|---|---|
applied | info | Successful mutation or read completion |
resolver_invoked | info | Model-assisted edit resolver started |
resolver_failed | warn | Resolver could not produce content |
backup_failed | warn | Pre-write backup failed; write proceeded (best-effort contract) |
history_failed | warn | File-history persistence failed |
redacted | info | Sensitive path; content not exposed |
truncated | info | Read output truncated (view) |
path_rejected | warn | Path outside configured scope |
stale_smart_apply_failed | warn | Smart-apply repair failed |
stale_clean_merge | info | Smart-apply merged stale base |
phase_error | warn | Non-fatal phase failure |
cancelled | info | Expected cancellation |
Operator surfaces
Section titled “Operator surfaces”/files (TUI)
Section titled “/files (TUI)”Aliases: /files-status, /ft. Read-only. Shows ring capacity, action histogram, and the last 10 events.
bmo config show-file-tools (CLI)
Section titled “bmo config show-file-tools (CLI)”Same snapshot as /files for the current process (CLI and TUI share the ring only when run in the same process).
Sidebar
Section titled “Sidebar”The TUI sidebar shows Files: with idle, last: <action>, or warn: <action> derived from the ring.
Agent tool
Section titled “Agent tool”list_recent_file_tool_events returns JSON { "ring_capacity", "returned", "events" } with snake_case event fields. Optional session_id filter and limit (default: full ring; capped at ring capacity, currently 16).
Redaction
Section titled “Redaction”Paths matching sensitive patterns (for example .env, credentials*, id_rsa) are labeled <redacted> in telemetry and emit a redacted action on view.