Troubleshooting#
Every message bin/doctor.sh can print, what it means and how to fix it. FIX lines make the doctor exit 1; note lines are information. <...> stands for a name, path or number the doctor fills in. Run the doctor again after a fix. The ID names the check: cabinet doctor --json gives it with each result, and it stays the same when a message is reworded, so scripts and agents match on the ID, never on the text.
Find a fix
Tools#
| Message | ID | Cause | Fix |
|---|---|---|---|
ok the tools cabinet needs are here (<...>) | deps.required | git, node and npm are all found. | Nothing. |
ok Node.js is 18 or newer | deps.node | The Node.js found can run the scripts' JavaScript. | Nothing. |
FIX cabinet needs Node.js 18 or newer; this is <...> (<...>) | deps.node | The Node.js found is too old for the scripts' JavaScript, so most commands stop with the same message. Ubuntu 22.04 and Debian 11 install an older one. | brew upgrade node on macOS; on Linux, a current Node.js from nodejs.org. cabinet new, init and bootstrap stop with this message before changing anything. |
FIX cabinet needs <...>, not found (<...>; cabinet doctor --fix runs it, asking first) | deps.required | A tool Cabinet needs is missing. The message names the install command for this machine (brew, apt-get, dnf or pacman), or where to get a package manager. | cabinet doctor --fix in a terminal, or run the command yourself. |
FIX backups need <...>, not found (<...>; cabinet doctor --fix runs it, asking first) | deps.backups | Backups are on, and openssl (or, on Linux, secret-tool, unless CABINET_BACKUP_PASSPHRASE is set) is missing. | The same. |
Settings and job files#
cabinet.env and the job files are read as text. An unreadable cabinet.env stops the doctor itself, as it stops every command, with cabinet.env:<line>: not a literal value; cabinet reads this file as text and runs nothing in it: write that line's value out, then run it again. A CABINET_SLUG that is not a slugSlug The workspace's short name (acme). It names its schedules, logs, backups and backup key, so projects on one machine never collide. stops it the same way (cabinet.env:<line>: CABINET_SLUG "<...>" is not a slug (lowercase letters, digits and -)).
| Message | ID | Cause | Fix |
|---|---|---|---|
ok cabinet.env and the job files hold literal values only | settings.literal | Every line is a literal value of a key cabinet reads. | Nothing. |
FIX jobs/<...>.job: cannot be read (<...>): make it a file this user can read, or remove it | settings.literal | The job file is a link to a file that is not there, or this user cannot read it. That job does not run, and its schedule is left as it is; the other jobs are not affected. | Make it a plain file this user can read, or remove it, then bin/bootstrap.sh. |
FIX jobs/<...>.job:<...>: not a literal value; cabinet reads this file as text and runs nothing in it (write the value out, or fix the line) | settings.literal | A line of the job file uses $(...), $VAR, a backtick, an unquoted space, export or another form that is not a literal value. The job does not run, and its schedule is left as it is. | Write the value out at that line (the format), then bin/bootstrap.sh. |
note <...>:<...>: <...> is not a setting cabinet reads; ignored | settings.unknown | cabinet.env or a job file sets a key cabinet does not read (a typo, or a line such as PATH=...). It is never set. | Remove the line, or fix the key's name. |
FIX jobs/<...> is not a job name (letters, digits and . _ -, not starting with -), so it is never listed or scheduled: rename it | jobs.name | A file in jobs/ has a name with a space or another character, or starts with -. | Rename it (jobs/<name>.job), then bin/bootstrap.sh. |
FIX <...> in <...> is not approved on this machine: run cabinet bootstrap at a terminal to see it and approve it | commands.approved | CABINET_RUNNER_CMD, or a job's COMMAND or AFTER, was not set on this machine, or changed since it was approved (a teammate's commit, say). It does not run here until approved (commands in the files). | Read the command, then cabinet bootstrap at your terminal and answer y if you want it to run. |
FIX cabinet.local.env is tracked by git, so no approval in it counts: git rm --cached cabinet.local.env, then approve again | settings.local-tracked | cabinet.local.env was committed, so its approvals could come from anyone: none of them counts. | git rm --cached cabinet.local.env, commit, then cabinet bootstrap at your terminal. |
Product repos#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX <...>: no repo at <...> (run bin/bootstrap.sh) | repos.present | A repo in repos.tsv is not where its row says. | bin/bootstrap.sh clones it (it needs a clone URL in the row), or fix the path column. |
FIX repos.tsv: <repo>: skipped the local-only file "<entry>" (not a plain path inside the repo): list it as a path inside the repo | repos.local-path | A local-only file in repos.tsv is not a plain path inside its repo (such as ../x, /etc/x or *.env), so snapshot and bootstrap skip it. | Give the path inside the repo, as config/local.json (repos.tsv). |
FIX <...>/<...>: a symlink on the way, in the repo or in local/, so snapshot and bootstrap skip it: remove the link | repos.local-path | A folder on the way to a local-only file, in the repo or under local/ (local/ itself included), is a symlink, so a copy there could land outside the repo or the workspaceWorkspace The folder that holds the team's files (CABINET.md, AGENTS.md, HANDOFFS.md, roles, specs, notes) and usually the product repos. It is its own private git repo.. Snapshot and bootstrap skip that file. | Replace the link with a real folder, or take the file out of the row's local-only list (repos.tsv). |
FIX <...>/<...> missing | repos.local-file | A local-only file listed in repos.tsv is not in the repo. | bin/bootstrap.sh restores it from local/<repo>/. |
FIX <...>/<...> not in snapshot (run bin/repo.sh snapshot) | repos.snapshot | A local-only file has no copy in local/<repo>/. | bin/repo.sh snapshot, then commit the workspace. |
note <...>/<...> changed since last snapshot | repos.snapshot | A local-only file differs from its copy. | bin/repo.sh snapshot when the change is finished, then commit. |
FIX <...>/<...> is tracked in the product repo but listed as local-only | repos.local-file-tracked | The file is committed in the product repo, but repos.tsv says it lives outside git there. | Remove it from that repo's git (git rm --cached), or from the row's local-only list. |
FIX <...>/CLAUDE.md is not a link to AGENTS.md | repos.claude-link | A repo whose row says yes to the link has no CLAUDE.md link. | bin/bootstrap.sh creates it (when the repo has an AGENTS.md and no CLAUDE.md). |
FIX <...>: instruction files show as untracked (missing exclude entry) | repos.instructions-excluded | A repo's local AGENTS.md or CLAUDE.md shows in its git status. | Add them to that repo's .git/info/exclude (keep the entries in local/<repo>/git-info-exclude). |
note <...>: the folder of session <...> is gone (<...>): git -C <...> worktree prune | sessions.gone | A session's folder was deleted by hand; git keeps it listed until a prune. Its branch and commits are kept. | Run the git worktree prune it names. |
repos.tsv: skipped the row named "<...>" (not a plain folder name) | - | A row's name has spaces or other characters. | Rename it to letters, digits, ., _ or -. |
Kit and roles#
| Message | ID | Cause | Fix |
|---|---|---|---|
note cabinet <...> is out; this workspace runs <...>. Run<...>: <...> | kit.newer | A newer Cabinet is on the registry (the release notice, at most one check a day). A note, never a problem. | Run the command it gives when you choose; cabinet config --update-check off turns the notice off. |
FIX kit files edited here (an update will refuse them; move the change to a project file or into the kit): <...> | kit.unedited | A file the kit owns (CABINET.md, bin/, .cabinet/) was changed in the workspace. | Move your change to a project file (AGENTS.md, roles/, jobs/), then git checkout -- <file>. |
FIX workspace CLAUDE.md link missing (run bin/bootstrap.sh) | kit.claude-link | The workspace's CLAUDE.md link to AGENTS.md is gone. | bin/bootstrap.sh. |
FIX HANDOFFS.md missing | kit.handoffs-file | The handoffHandoff One entry in HANDOFFS.md: who it is for, what changed, what they need to do. The only channel between agents. log was deleted. | Restore it from git. |
note the <...> role is not drafted yet (cabinet role draft <...>, or ask your agent to draft the <...> role) | roles.drafted | cabinet role add made the roleRole An agent's job description: what it owns, decides, escalates and may write. Kit roles live in .cabinet/roles/; a project adds notes in roles/. from your brief, and no agent has drafted it yet. Until then it does only what the brief asks. | cabinet role draft <role>, or ask your agent to draft it (recipes). |
note project roles behind the workflow: <...> (redraft each: cabinet role draft <role>, which keeps what you confirmed) | roles.workflow | A drafted role of the project's own misses part of the workflow its job touches, usually because it was drafted before the kit added it: it never sends the agent to CABINET.md; it talks of PASS, BLOCK or CHANGES without bin/handoff.sh record; it says nothing of how a disagreement with a neighbouring role is settled; or it owns a repo and says nothing of its plan or its evidence. Each role is named with what it misses. These are text checks for known gaps, not a judgment of the role. | cabinet role draft <role> redrafts it under the current rules, keeping your brief and what you confirmed; or add the missing part to roles/<role>.md yourself. |
note project roles that may write another role's area: <...> (narrow the role's "What you may write", or change the team table) | roles.writes | A role of the project's own lists, under "What you may write", a path the team table gives another role (the most specific row decides). HANDOFFS.md and specs/evidence/ are shared and never count. | Narrow the role's "What you may write" to its own areas (redraft it, or edit roles/<role>.md), or give it the area in the team table if that is what you want. |
note roles/<...>.md is a whole role and the kit also has a <...> role: yours is used, not the kit's (rename yours, or remove its frontmatter to add notes to the kit's role) | roles.shadows | A role file of yours with frontmatter has a kit role's name, for example one a later kit added. Yours is built as it is; the two are never mixed. | Keep it if that is what you want. To use the kit's role, rename yours (and its name in CABINET_ROLES), or turn yours into notes by removing its frontmatter. |
FIX <...> is not a role name (lowercase letters, digits and -), skipped: fix CABINET_ROLES in cabinet.env, or the team table in AGENTS.md | roles.name | A word in CABINET_ROLES, or an owner in the team table, is not a role name (such as * or ../x). Every command that uses the team skips it, and bin/role.sh build writes no file for it and exits 1. | Fix the word, then bin/role.sh build. |
FIX <...> (run bin/role.sh build) | kit.roles | A built role is missing or out of date (for example after editing roles/ or CABINET_ROLES). | bin/role.sh build. |
Push guardrails#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX git push gate not installed (run bin/bootstrap.sh) | guardrails.push-gate | No pre-push hook in the global hooks path. | bin/bootstrap.sh. |
FIX the push gate at <...>/pre-push is not executable, so git does not run it (run bin/bootstrap.sh) | guardrails.push-gate | The global pre-push is there but cannot run, so git pushes without it. | bin/bootstrap.sh, which makes every hook in the global hooks folder executable. |
FIX <...>/pre-push is not the kit's push gate, so the doctor cannot check that it asks before a push (to use the kit's: move that hook into each repo's own .git/hooks, where the kit's gate runs it, remove it from <...>, then run cabinet bootstrap) | guardrails.push-gate | The global hooks folder holds a pre-push that is not byte for byte the kit's: one of your own, an edited copy, an older kit's gate, or a stub. The doctor reads a hook and never runs it, so it cannot vouch for one it does not know. | Move your hook into each repo's own .git/hooks (the kit's gate runs it from there), delete the global one, and run cabinet bootstrap. When its line 2 reads # cabinet push gate v<N> with a higher N than this workspace's .cabinet/guardrails/pre-push, another workspace with a newer kit placed it: run cabinet update here, then cabinet bootstrap, and move nothing. |
note the kit's push gate at <...> is without its helper cabinet-push-gate.js, so it asks before every push in every repo, not only Cabinet's (run cabinet bootstrap) | guardrails.push-gate | The kit's gate is there, but its helper beside it, which finds Cabinet's repos, is missing or not the kit's. The gate asks whenever the helper cannot answer. | cabinet bootstrap. |
ok the kit's push gate at <...>, which asks in Cabinet's repos | guardrails.push-gate | The global pre-push and its helper are the kit's copies, and the hook is executable. | Nothing. |
note the slug '<...>' is still held by a workspace at <...>, which no longer exists, so the push gate asks in every repo. To free it: for each of its schedules, <...>; then delete <...>/<...>/workspace | guardrails.stale-claim | A workspace folder was deleted or moved by hand, without cabinet remove or cabinet move. The push gate cannot read that workspace's repos, so it asks before every push, in every repo. | The commands in the message. |
ok this workspace holds its claim in <...>, so the push gate asks in its repos | guardrails.claim | The claim names this workspace, and the global pre-push is the kit's gate. | Nothing. |
ok this workspace holds its claim in <...>, which only the kit's push gate reads (see guardrails.push-gate) | guardrails.claim | The claim names this workspace, but the global pre-push is not the kit's gate, so nothing says it reads the claim. | See guardrails.push-gate. |
FIX no claim in <...> names this workspace, so the push gate does not ask in its repos (run bin/bootstrap.sh) | guardrails.claim | The push gate knows a workspace only from the workspace file in its slug's log folder, and none names this one: it was set up on this machine with no claim written, or the claim was deleted. While another workspace on the machine is recorded, pushes from this workspace and its repos go through without asking. | bin/bootstrap.sh (or cabinet doctor --fix), which writes the claim. |
FIX the slug '<...>' is held by the workspace at <...> and no claim in <...> names this one, so the push gate does not ask in its repos (run bin/bootstrap.sh, then give this one its own slug: cabinet config --slug <name>) | guardrails.claim | Another workspace on this machine has the same slug (a second copy of a workspace, for example), and bootstrap has not run here since. | bin/bootstrap.sh, which lists this workspace beside the other's claim so the gate asks in its repos; then cabinet config --slug <name>. |
FIX the slug '<...>' is held by the workspace at <...>: the push gate still asks in this workspace's repos, but its schedules and log folder are that workspace's (give this one its own slug: cabinet config --slug <name>) | guardrails.claim | Another workspace on this machine has the same slug. Bootstrap listed this one in the shared file beside the other's claim, so the gate asks in its repos, but its schedules are not installed and its logs would mix with the other's. | cabinet config --slug <name>, then cabinet bootstrap. |
ok repos' own hooks still run (the kit's pass-through stubs in <...>) | guardrails.hook-passthrough | Each of the 14 hooks bootstrap gives the stub holds the kit's stub, executable. | Nothing. |
note repos' own git hooks may not run under the global hooks path: in <...>, <...> are missing or not the kit's pass-through stub (run bin/bootstrap.sh; a hook of your own there must run the repo's own hook itself) | guardrails.hook-passthrough | With a global hooks path, git runs only the hooks in that folder. Each name listed is missing, not executable, or not the kit's stub, which passes the call on to the repo's own hook. | bin/bootstrap.sh places a missing stub. A hook of your own there is left as is: it must run .git/hooks/<name> of the repo itself, or the repo's own hook never runs. |
FIX <...> uses core.hooksPath <...>, set in <...>, so the push gate does not run there: unset it (git -C <...> config --file <...> --unset core.hooksPath), or add a pre-push in <...> that runs the global push gate[ (<...>/pre-push)] | guardrails.repo-hookspath | In the workspace, a repo it lists or a sessionSession A folder of its own for one agent session in a repo (a git worktree on a branch session/<name>), so several sessions work at once without touching each other's changes: cabinet session start. You merge its work. cabinet session end lists what deleting its folder would lose and refuses work that exists nowhere else, changing nothing; --force deletes it after asking at a terminal. See sessions. worktree, git uses a hooks folder other than the global one, set in the repo, a worktree, a file its config includes, or the system config (husky sets one). The gate is skipped there. | The command in the message, or a pre-push in that folder that runs the global one. |
ok Cabinet runs are refused an amend or a rebase (the kit's hooks in <...>) | guardrails.run-refusal | The global hooks folder holds the kit's prepare-commit-msg and pre-rebase, which refuse an amend and a rebase in a Cabinet run (guardrails). | Nothing. |
note the run refusal is not installed: <...> in <...> is missing or not the kit's, so a Cabinet run is not refused that (run bin/bootstrap.sh; it leaves a hook of your own as it is: move yours into each repo's own .git/hooks first) | guardrails.run-refusal | A hook of your own (or an edited copy) is in the global hooks folder, or bootstrap has not run since the kit added the refusal. | bin/bootstrap.sh; for a hook of your own, move it into each repo's .git/hooks first (the kit's hook runs it from there). |
FIX Claude Code is missing <...> deny rule(s) (run bin/bootstrap.sh) | guardrails.claude | ~/.claude/settings.json lacks some of the kit's rules. | bin/bootstrap.sh. If it says the file is not plain JSON, fix the file first. |
FIX Codex is missing <...> kit rule(s) in ~/.codex/rules/default.rules (run cabinet bootstrap) | guardrails.codex | The Codex rules file is missing, or an older copy lacks rules a newer kit added. | cabinet bootstrap adds them at the end, after a backup. If it says the result does not check out, add the lines it lists by hand. |
FIX Codex push rule missing (run bin/bootstrap.sh) | guardrails.codex | Every kit rule is in the file, yet codex execpolicy check does not forbid git push: a rule of yours, or another rules file, allows it. | Find the rule that allows it, then cabinet doctor again. |
ok <...> sets approval_policy = "on-request", so Codex asks before commands outside its sandbox (a trusted project's .codex/config.toml, a --profile file or a flag can set another for the runs it applies to) | guardrails.codex-approval | The top level of ~/.codex/config.toml sets approval_policy = "on-request", and selects no profile. Only that file is read: a run started with a flag, a --profile file or a trusted project's .codex/config.toml can still set another value. | Nothing. |
FIX CODEX_HOME is <...>, so Codex reads its settings there, not <...>: the doctor did not check them (unset CODEX_HOME, then run cabinet bootstrap) | guardrails.codex-approval | CODEX_HOME points to another folder, where Codex keeps its settings and rules; the kit places and checks them in ~/.codex only. | Unset CODEX_HOME (in your shell's startup file too), then cabinet bootstrap. |
FIX there is no <...>, so Codex's approval_policy is not set (run cabinet bootstrap) | guardrails.codex-approval | Codex is here (~/.codex, or codex on PATH) but has no settings file, so it runs with its own default. | cabinet bootstrap creates it holding only approval_policy = "on-request". |
FIX <...> could not be read safely, so its approval_policy was not checked (add approval_policy = "on-request" above its first [table] by hand) | guardrails.codex-approval | The doctor reads the lines before the first [table] one at a time, and found one it does not take for certain: a multi-line string or array there, approval_policy or profile set twice, a quoted key with a backslash, a dotted key under either, or a file it cannot read (a link to nothing included). Bootstrap leaves such a file as it is. | Add the line by hand above the first [table], or move the multi-line value below it. |
FIX <...> sets no top-level approval_policy (run cabinet bootstrap) | guardrails.codex-approval | The file sets no approval_policy before its first [table]. One inside a [profiles.<name>] table does not count. | cabinet bootstrap adds the line just above the first [table], after a backup. |
FIX <...> sets approval_policy = <...>, not "on-request" (bootstrap leaves a value of yours as it is: change it by hand) | guardrails.codex-approval | The top level sets another value. Only "on-request" is the kit's guardrail: Codex then asks before commands outside its sandbox. | Change it to approval_policy = "on-request" by hand. |
FIX <...> selects the profile <...>, whose approval_policy Codex before 0.134.0 uses in place of the top-level one: the doctor did not check it (remove that line; Codex 0.134.0 and later ignore it) | guardrails.codex-approval | A top-level profile = "<name>" line. Codex before 0.134.0 takes approval_policy from that profile's table, which the doctor does not read. | Remove the profile line (choose a profile per run with --profile instead). |
FIX agy is missing <...> deny rule(s) in ~/.gemini/antigravity-cli/settings.json (run cabinet bootstrap) | guardrails.agy | Antigravity's settings lack some of the kit's deny rules. | cabinet bootstrap. |
FIX Gemini CLI is missing <...> kit rule(s) in ~/.gemini/policies/owner-control.toml (run cabinet bootstrap) | guardrails.gemini | The Gemini CLI policy is missing, or an older copy lacks rules a newer kit added (a rule counts when the file has one with the same tool, decision, and command prefix or pattern). | cabinet bootstrap adds them at the end, after a backup. |
FIX Qwen Code is missing <...> deny rule(s) (run bin/bootstrap.sh) | guardrails.qwen | ~/.qwen/settings.json lacks some of the kit's rules. | bin/bootstrap.sh. |
FIX Cursor CLI is missing <...> deny rule(s) in ~/.cursor/cli-config.json (run bin/bootstrap.sh) | guardrails.cursor | The Cursor CLI's config lacks some of the kit's rules. | bin/bootstrap.sh. |
note the Cursor editor keeps its agent's command rules in its own settings, which the kit does not set: only the git push gate applies there | guardrails.cursor-editor | Information: the kit cannot set the editor's rules. | Set its command denylist in the Cursor editor's settings if you want more than the push gate. |
FIX Grok does not load the rules in ~/.claude/settings.json (check: grok inspect) | guardrails.grok | Grok is not reading the Claude Code rules (its Claude compatibility may be off). | Turn it on in Grok, or add the rules to ~/.grok/config.toml by hand. |
FIX opencode does not deny: <...> (run bin/bootstrap.sh; a rule in opencode.jsonc comes last and wins) | guardrails.opencode | On opencode 1.x, the resolved rules do not end with the kit's denies. | bin/bootstrap.sh; if it still fails, remove the overriding rule from opencode.jsonc. |
FIX opencode's rules could not be read, so its denies are unchecked: confirm them by hand (run bin/bootstrap.sh; the kit's rules are in ~/.config/opencode/opencode.json) | guardrails.opencode | On opencode 1.x, the rules it printed are not in the shape the doctor reads, so it cannot tell whether they deny push and publish. | bin/bootstrap.sh, then cabinet doctor; if it still fails, check in opencode that it refuses git push. |
note [<version> of ]opencode cannot be checked from here: confirm its permission settings by hand (the kit's rules are in ~/.config/opencode/opencode.json) | guardrails.opencode | opencode 2.x has no command to print its resolved rules. The version leads the note when opencode --version prints one. | Check in opencode that it refuses git push. |
note <...> is <...>, which can loosen the kit's rules for <...> there: the doctor checks only the global rules, so read it before you run <...> in that folder | guardrails.clone-settings | The workspace, or a repo it lists, holds an opencode project config (opencode.json, opencode.jsonc, the .opencode/ folder), Qwen Code workspace settings (.qwen/settings.json), or a project file of Claude Code (.mcp.json, .claude/settings.json, .claude/settings.local.json), Codex (.codex/config.toml), Gemini CLI (.gemini/settings.json), Cursor (.cursor/mcp.json, .cursor/cli.json) or Antigravity (the .agents/, .agent/ and .antigravity/ folders). Each can allow what the kit's global rules deny, or add an MCP server or a hook, in that folder; a cloned project can bring one. | Read the file. Remove what loosens the rules, or keep it if you put it there. |
note <...>: MCP server <...> in ~/<...>; <...> (the kit's runs load it (approved), the kit's runs do not load it, or the kit's runs load every server this tool has configured (no switch)) | guardrails.mcp | Information: an MCP server the tool has configured in its own config file. Claude Code and Qwen Code runs load only the servers in an approved CABINET_RUN_MCP_SERVERS; Gemini CLI never runs as a runner; Codex and Cursor runs load every server they have, as do opencode runs, though the doctor reads no opencode file (outside the shell). | For a server that can write (GitHub, deploys, mail): keep it out of runs, limit its token to read, or take it out of a tool with no switch. |
note ~/<...> is unreadable; left as it is (the doctor could not list <...>'s MCP servers in it) | guardrails.mcp | The file is not plain JSON (or TOML for Codex) the doctor can read. It was not changed. | Fix the file, or check that tool's servers by hand. |
note account connectors are in no file the doctor can read: one added in a tool's app or account is not listed here, so check each tool's own list (docs/guardrails.md, "Outside the shell") | guardrails.mcp | Information: a connector attached to your account (not a file) is invisible to the doctor and writes with its own token. | Check each tool's connector list; limit each connector to read where you can. |
note <...> runs start with every MCP server its config holds (no switch): take any server that can write out of that tool's config, or run with claude or qwen | guardrails.mcp | The runner has no switch the kit uses to limit MCP servers in its runs. | Remove the servers that can write from that tool's config, or cabinet config --runner claude. |
note <...> is installed and cabinet has no guardrails for it: only the git push gate above applies | guardrails.unguarded-tool | An agent tool the kit does not cover. | Use it for reading and local edits, or add its own deny rules by hand. |
FIX scheduled jobs cannot find the runner '<...>' (install it, or fix CABINET_RUNNER / CABINET_RUNNER_CMD, then run bin/bootstrap.sh) | runner.found | The runner is not on the PATH scheduled jobs get. | Install it, or fix the setting; then bin/bootstrap.sh from a shell where it is on your PATH, so the schedule gets its folder. |
FIX scheduled jobs find <...> but not node, which it needs (run bin/bootstrap.sh after installing node) | runner.node | The runner is a Node script and Node is not on the scheduled PATH. | Install Node, then bin/bootstrap.sh. |
ok scheduled jobs find node | schedules.node | Node is on the PATH scheduled jobs get, so the workspace scripts' JavaScript (bin/lib.js) runs in them. | Nothing. |
FIX scheduled jobs cannot find node, which the workspace scripts need (install Node.js, then run bin/bootstrap.sh) | schedules.node | Node is not on the PATH scheduled jobs get (the PATH found when bin/bootstrap.sh last ran), so the brief, handoff and specSpec One file per feature in specs/: the problem, the rules, testable acceptance criteria, your decisions, and the builders' plan. Work bigger than a small task is built only from a spec that is ready. steps of a job would fail. | Install Node.js where your shell finds it, then bin/bootstrap.sh saves the new PATH into the schedules. |
note the custom runner '<...>' has no cabinet guardrails: only the git push gate covers its scheduled runs | runner.custom-unguarded | A custom runner the kit does not know. | Add its own deny rules by hand. |
FIX the model '<...>' in <...> is not a model name (letters, digits and . _ : / @ -, up to 100, not starting with -), so no run starts with it: fix it, or cabinet config --model off | model.name | CABINET_MODEL in cabinet.env, or MODEL in a job file, holds something other than a model name (a space, a quote, $, ;, a leading -). Every run with it is refused before the agent tool starts. | cabinet config --model <name>|off, or fix the MODEL line in the job file. |
ok <...> (<...>) is one of <...>'s models | model.exists | The agent tool lists the model, without a run. | Nothing. |
FIX <...> in <...> is not in <...>'s model list (<...>): fix the name (<...>) | model.exists | The tool lists its models for free and this name is not among them: a run with it would likely fail. | Correct the name, or turn it off. It stays a problem until the tool lists it. |
note not checked: <...> cannot list its models without a run (<...>) | model.exists | Claude Code and Qwen Code have no free model list, and Cabinet never pays for a run to check one. | Nothing; a mistyped model shows as a failed run. |
note not checked: <...>'s model list could not be read (<...>), for <...> | model.exists | The tool's list command failed (no network, not logged in). | Run the command it names yourself to see why. |
note not checked: the custom runner cannot list its models without a run (<...>) | model.exists | A custom runner has no known model list. | Nothing. |
FIX the light model '<...>' in <...> is not a model name (letters, digits and . _ : / @ -, up to 100, not starting with -), so no run starts with it: fix it, or cabinet config --model-light off | model-light.name | CABINET_MODEL_LIGHT holds something other than a model name. Runs of the roles in CABINET_LIGHT_ROLES are refused before the agent tool starts; other roles run as before. | cabinet config --model-light <name>|off. |
Each model.exists message, for the light model | model-light.exists | The same check as model.exists, for CABINET_MODEL_LIGHT. | As for model.exists, with cabinet config --model-light <name>|off. |
note CABINET_LIGHT_ROLES names <...>, not on the team, so it changes nothing: to drop it, cabinet config --light-roles "<...>" | model-light.roles | A role in the list is not on the team (removed, or never added). Never a problem: the list is kept for when it comes back. | The command it gives, or nothing. |
ok the light model runs for: <...> | model-light.roles | Every role in the list is on the team. | Nothing. |
fix CABINET_TIER_<TIER> "<value>" in cabinet.env is not "<model>[ <effort>]" (each letters, digits and . _ : / @ -, not starting with -), so no run starts with it: cabinet config --tier <tier> "<model>[ <effort>]", or cabinet config --tier <tier> off | tier.exists | A tier's value, edited by hand, is not a model name and an optional effort, one space between, so no run starts with it. | cabinet config --tier <tier> "<model>[ <effort>]", or cabinet config --tier <tier> off. |
fix <model> (CABINET_TIER_<TIER> in cabinet.env) is not in <runner>'s model list (<list command>): fix the name (cabinet config --tier <tier> "<model>[ <effort>]") | tier.exists | The tool lists its models without a run, and a tier's model is not among them. | Fix the name: cabinet config --tier <tier> "<model>[ <effort>]". |
note not checked: ... | tier.exists | The tool cannot list its models without a run, or its list could not be read: the tier's model is not checked. | Nothing; a run with a wrong name fails and says so. |
ok every tier's model is one of <runner>'s models | tier.exists | Every tier you set names a model the tool lists. | Nothing. |
note <runner> has no effort setting: the effort in <tier> is not used | tier.effort | The tier names an effort, and the agent tool has no effort option (agent setup): its runs use the tool's own effort. | Nothing, or drop the effort: cabinet config --tier <tier> "<model>". |
Credit roles#
| Message | ID | Cause | Fix |
|---|---|---|---|
ok credit roles: <...> | credit.setting | The setting is on or off (credit roles). | Nothing. |
FIX CABINET_CREDIT_ROLES is "<...>", not off or on, so no commit is credited (cabinet config --credit-roles on, or off) | credit.setting | cabinet.env (or this machine's cabinet.local.env) holds another value, often edited by hand. Only an exact on turns credit on. | cabinet config --credit-roles off or on. |
note credit roles: off, because the project's setting is <...>: this machine says on, which counts only while the project's setting is on (cabinet config --credit-roles on) | credit.setting | A shared cabinet/ whose committed setting is off or not set: off for everyone wins, so this machine's on credits nothing. | Nothing, or cabinet config --credit-roles on to turn it on for everyone. |
note this machine has not answered whether its Cabinet runs credit their roles, so they do not yet (cabinet config --this-machine --credit-roles on, or off) | credit.setting | A shared cabinet/ cloned on this machine: each machine answers for itself. | cabinet config --this-machine --credit-roles off or on. |
note credit roles not set, so no commit is credited until you answer (cabinet config --credit-roles on, or off) | credit.setting | A workspace from before credit roles. | cabinet config --credit-roles off or on. |
ok credit names the GitHub identity of <...> | credit.email | CABINET_CREDIT_EMAIL names your own GitHub account or App. | Nothing. |
FIX CABINET_CREDIT_EMAIL is not a GitHub noreply email with its ID, so no commit is credited (cabinet config --credit-email <email>, or off) | credit.email | The email is not <user ID>+<login>@users.noreply.github.com (capitals in the login are fine) or <user ID>+<app>[bot]@users.noreply.github.com (lower case) exactly. | cabinet config --credit-email <email>, or off for the Cabinet Team account. |
ok credit installed: the credit hook is at <...> | credit.hook | The global hooks folder holds the kit's credit hook. | Nothing. |
note credit not installed: git has no global hooks path (run bin/bootstrap.sh) | credit.hook | Bootstrap has not run on this machine. | bin/bootstrap.sh. |
note credit not installed: the global hooks path is <...>, which bootstrap leaves as it is, and it holds no credit hook | credit.hook | Your global core.hooksPath points to a folder of your own. | Keep it (no credit on this machine), or copy .cabinet/guardrails/prepare-commit-msg into that folder yourself. |
note credit not installed: no prepare-commit-msg in <...> (run bin/bootstrap.sh) | credit.hook | The hook is missing. | bin/bootstrap.sh. |
note credit hook out of date: <...> is an earlier version of the kit's (run bin/bootstrap.sh, which replaces it) | credit.hook | The kit's credit hook changed since bootstrap last ran on this machine. | bin/bootstrap.sh. |
note credit not installed: <...> is not the kit's credit hook, and bootstrap leaves it as it is (to credit roles, move your hook into each repo's own .git/hooks and remove it from <...>, then run bin/bootstrap.sh) | credit.hook | A prepare-commit-msg of your own, or an edited copy of the kit's, is in the global hooks folder. Bootstrap never replaces it. | Keep it (no credit on this machine), or move it as the message says and run bin/bootstrap.sh. |
Skills and plugins#
| Message | ID | Cause | Fix |
|---|---|---|---|
note skill '<...>' not installed | skills.skill | A skill in CABINET_SKILLS is not in ~/.claude/skills/. | Install it, or remove it from CABINET_SKILLS. |
note plugin '<...>' not installed | skills.plugin | A plugin in CABINET_PLUGINS is not installed in Claude Code. | Install it, or remove it from CABINET_PLUGINS. |
Guides#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX guides/<...> has no row in the Guides table of AGENTS.md, so agents never read it | guides.listed | A file was added to guides/ without a row in the "Guides" table. | Add a row: `guides/<file>`, what it covers, who follows it. See recipes. |
FIX AGENTS.md lists <...>, which does not exist | guides.exists | A row in the "Guides" table names a file that is not in guides/. | Restore the file, fix the path, or delete the row. |
Manual and handoffs#
| Message | ID | Cause | Fix |
|---|---|---|---|
note OPERATIONS.html is older than OPERATIONS.md, or missing (cabinet manual build; the brief rebuilds it each morning) | manual.page | OPERATIONS.md changed since the page was built (agents update the manual whenever they change a script, job or role), or the page was never built. | cabinet manual build, or wait for the next brief. |
FIX OPERATIONS.md does not mention: <...> | manual.complete | The manual has fallen behind a script (the kit's in bin/, or the project's own in tools/), a job or a role. | Add it to OPERATIONS.md (cabinet config --roles adds role rows for you). |
FIX handoffs with a status word the kit does not know: <...> (rewrite each status line as one of open, acknowledged, done or rejected) | handoffs.status | An open entry's status word (the first word of its first - Status: line) is not exactly open, acknowledged, done or rejected: Done, closed, in-progress, or no status line at all. Each is named with its ID and the line as written. handoff run stops on such an entry, and archive keeps it. | Rewrite the status line with one of the four words, in lower case, and commit HANDOFFS.md. |
ok HANDOFFS.md is <bytes> bytes, within 100000 | handoffs.size | HANDOFFS.md is 100000 bytes or smaller. The limit is fixed in the kit, with no setting. | Nothing. |
note HANDOFFS.md is <bytes> bytes, over 100000: <c> closed entries (run bin/handoff.sh archive); <o> open, most to <name> (<n>), <name> (<n>), <name> (<n>) (each closes the entries whose work is finished or recorded elsewhere, with the reason) | handoffs.size | HANDOFFS.md is larger than 100000 bytes, which costs anyone who reads it whole. The note splits it: closed entries (status done or rejected) still in the file, and open entries (every other status word, unknown ones too, since archive keeps them) with the three addressees holding the most. A part that would read zero is left out. When HANDOFFS.md has uncommitted lines, the closed part says (commit HANDOFFS.md, then archive). It is a note: the doctor still exits as before. | Closed entries: run bin/handoff.sh archive (commit HANDOFFS.md first when it has uncommitted lines). Open entries: each addressee named closes its entries whose work is finished or recorded elsewhere, with the reason. |
FIX these handoff IDs are used more than once: <...>(file the next free number) | handoffs.unique-ids | Two entries share an ID. | Give the later one the next free number, or mark it with a - Note: duplicate ID line. |
FIX verdicts not in the format, or naming a note that does not exist: <...> (rewrite each as - Verdict: <role> <verdict> <YYYY-MM-DD> <commits> <note under specs/>, and commit its note) | handoffs.verdicts | An open entry has a - Verdict: line in another shape (the verdict is PASS, BLOCK or CHANGES), or its note is not in the workspace. Each entry is named by its ID. | Have the reviewer commit the note and record the verdict again with cabinet handoff record, which writes the verdict format. |
ok every verdict line was written by bin/handoff.sh record or bin/spec.sh record | handoffs.verdict-origin | Each - Verdict: line in HANDOFFS.md (not the example in its format block) and under a spec's "## Reviews" was added by a commit of record, read with git blame. | Nothing. |
note not written by record: <...> (a reviewer records a verdict with bin/handoff.sh record or bin/spec.sh record; a commit summary can be copied, so this finds mistakes, not forgeries) | handoffs.verdict-origin | These verdict lines were added by a commit whose summary is not record's (handoffs: <ID> <role> <VERDICT>, or specs: <file> <role> <VERDICT>): written by hand, or committed with other lines. A line not committed yet is left for its commit. | The reviewer records the verdict again with record. It changes neither the doctor's result nor the brief's. |
note who wrote each verdict line cannot be checked: the workspace has no git history to read | handoffs.verdict-origin | The workspace has no commit, so git blame has nothing to read. | Commit the workspace. |
note PASS, BLOCK or CHANGES written outside a Verdict line, so not counted: <...> (the reviewer records it with bin/handoff.sh record) | handoffs.unread-verdicts | An open entry has a verdict written in prose, usually on its status line ("qa PASS"), which readiness never reads, so that work does not show as ready. Each entry is named by its ID. The status line and any line other than the title and the sender's (From, Changed, Needed, Depends on, Way back, Evidence, Spec, Size) are read, so a Needed line asking for a PASS or a BLOCK is not named. | Have the reviewer record it with cabinet handoff record, and set the status line back to a status. |
note done with no review, though their commits change a critical area: <...> (the role that did it hands on with bin/handoff.sh add --to <reviewers> --depends-on <ID>) | handoffs.unreviewed | Work cabinet handoff run takes for a role that is not a builder (one addressee on the team, filed --small or --spec, not a review) is done, and the commits its status line names change a critical area, but no review entry depends on it. Each is named with its areas and their reviewers. Only HANDOFFS.md is read, never the archives; cabinet handoff archive leaves such an entry under Open. | The role that did the work files the review: bin/handoff.sh add --from <role> --to <reviewers> --depends-on <ID> with its evidence. The note clears as soon as a review entry depends on it. |
FIX handoffs marked small that were not: <...> (route the work again from a spec) | handoffs.small | A handoff filed with --small has a PASS, but its commits span more than one repo, are in no repo on this machine, or change a path AGENTS.md guards (a contract's files, "Hard to undo"). Each is named with the reason. | Route the work again from a spec (ready to build); the reviewer records BLOCK meanwhile. A commit in no repo here: clone or fetch that repo. |
FIX qa PASS on handoffs with no evidence: <...> (the builder adds an Evidence line, or qa changes its verdict to BLOCK) | handoffs.evidence | qa passed work whose entry has no - Evidence: line, so you would approve it without seeing it. | The builder adds evidence with cabinet handoff attach <ID> <file or URL> --from <builder>, or qa records BLOCK. |
Critical areas#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX critical areas in AGENTS.md that cannot hold: <...> (fix its row) | areas.declared | A row under "Critical areas" names no paths, a path in a repo not in repos.tsv or that does not exist there, no reviewer or one not on the team, or a check that is not a command in tools/ that can run. Work in that area waits on a reviewer who cannot come, or a check that cannot run. Each problem is named. | Fix the row in AGENTS.md: the paths, the reviewers (or turn the role on), or the check (put it in tools/, chmod +x). |
Specs#
| Message | ID | Cause | Fix |
|---|---|---|---|
note AGENTS.md lists no paths that are hard to undo, so a small task is checked only for staying in one repo (cabinet config --hard-to-undo "<repo>/<path> ...", or off when there are none; cabinet config suggests some) | agents.hard-to-undo | The workspace has repos, and the "Hard to undo" section of AGENTS.md is missing or still says none yet. | cabinet config asks, with suggestions from the repos; or cabinet config --hard-to-undo "api/migrations/", or off when nothing is. |
FIX specs not ready for their status: <...> (fix each, or set it back to draft; cabinet spec check) | specs.ready | A spec marked ready or building lacks what that status needs: testable criteria with a qa PASS, no TBD in "Rules", every decision answered, its repos, and for building a plan (with an architect PASS for more than one repo or any critical area). A PASS no longer counts when the part it reviewed changed. Each spec is named with its problems. | Fix what is named and ask for the review again, or set the spec's status back to draft (or ready) until it is. See ready to build. |
note <...> is in <...> <...>, released: set it to shipped | specs.released | A building spec's work is out in a version tag: every entry naming it on a - Spec: line is done or rejected, and in each of its repos the commits on its Verdict lines are all in a version tag (v1.2.3 or 1.2.3). It is left out of specs.ready. A note, never a problem. Work tracked in an entry with no - Spec: line is not seen, so the note can come before that work is done. | Check that no open entry still holds work for it, then set the spec's status to shipped. cabinet spec list --released <repo> lists what a release ships. |
Secrets#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX bin/secret.sh is missing or not executable, so neither the doctor nor the commit hook can check for secrets (chmod +x bin/secret.sh; if it is missing, kit.unedited names it) | secrets.none | The scanner cannot run. The kit's commit hook then refuses every commit in the workspace, with commit refused: bin/secret.sh is missing or not executable, so this commit cannot be checked for secrets (run bin/doctor.sh). | chmod +x bin/secret.sh. If it is missing, cabinet update puts it back. |
FIX possible secrets in the workspace's files (remove each and rotate any real key; a false alarm: add not-a-secret to its line): <...> | secrets.none | A line looks like a key, token or password (file and line are named; the value never is). | Remove it, and rotate the key if it was real: it may already be in git history and backups. A false alarm: add not-a-secret to its line. |
ok commits are checked for secrets (the kit's hook at <...>) | secrets.hook | The pre-commit git runs for a commit in the workspace (through the global pass-through stub, or the one in a core.hooksPath set for the workspace) is the kit's secret hook, executable. | Nothing. |
note commits are not checked for secrets: the workspace has no pre-commit hook running bin/secret.sh (run bin/bootstrap.sh; a hook of your own can call bin/secret.sh check --staged) | secrets.hook | Bootstrap has not run, or the hook git runs is missing or not executable. | bin/bootstrap.sh, or call bin/secret.sh check --staged from your hook. |
note commits are not checked for secrets when bin/secret.sh cannot run: <...> is the kit's earlier secret hook, which lets such a commit through (run bin/bootstrap.sh) | secrets.hook | The workspace hook is the copy Cabinet 0.1.0 to 0.5.0 placed, which let a commit through when bin/secret.sh was missing or not executable. cabinet update does not change it. | bin/bootstrap.sh, which replaces it with the current hook. |
note <...> is not the kit's secret hook, so the doctor cannot check that commits are checked for secrets (a hook of your own should run bin/secret.sh check --staged and stop the commit when it fails) | secrets.hook | The pre-commit git runs for a commit here is not the kit's: one of your own, a stub in the global hooks folder, or one in a core.hooksPath set for the workspace. The doctor reads it and never runs it. | Keep it if it runs bin/secret.sh check --staged and stops the commit when that fails; or delete it and run bin/bootstrap.sh. |
Team#
| Message | ID | Cause | Fix |
|---|---|---|---|
note parts of a repo owned by another role than the repo's: <...> (the most specific row wins; if that is not meant, change the team table) | team.nested | The team table gives a path inside a product repo (api/docs/) to a different role than the repo's own row. That is allowed, since the most specific row wins, but it splits a repo, so it is your call. | Keep it if it is meant. Otherwise remove the inner row, or give it to the repo's owner. |
FIX sub-team roles that do not fit the team: <...> (fix the Team section of each in roles/<role>.md) | team.reports-to | A role's "## Team" section names a lead who is not on the team, leads back to itself through others, or covers something that is no builder or repo. Each is named. | Fix - Reports to: or - Covers: in roles/<role>.md, or turn the lead on (cabinet config --roles). |
FIX more than one owner in the team table of AGENTS.md: <...> (give each one owner) | team.single-owner | The same repo or area has rows with different owning agents, so two roles would act on it. Each is named with its owners. | Keep one row per repo or area. Work the other role does there goes to the owner as handoffs. |
note open handoffs addressed to no role or repo on the team: <...> (readdress or close them) | handoffs.addressee | An open entry's To: names something that is not a role on the team, a repo in repos.tsv, or the owner: a role turned off, a repo removed, or a typo. Each is named with its ID. | Readdress it to whoever owns the work now (a follow-up entry), or close it with a reason. |
Uncommitted work#
| Message | ID | Cause | Fix |
|---|---|---|---|
note the workspace has no commits yet: backups hold its files only (set the owner with cabinet config, then commit) | work.no-commits | Setup did not commit (no owner identity). | cabinet config --owner "..." --email ..., then commit the workspace. |
note <...> has <...> uncommitted file(s): work in progress, or finished and not committed? | work.uncommitted | A repo has uncommitted changes. | Commit finished work; leave work in progress. |
Schedules#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX jobs/<...>.job has a WHEN bootstrap cannot schedule ('<...>'): use a time like 7 AM for every day, or days and a time like fri 4 PM or sun,mon,tue,wed,thu 8 AM | schedules.when | A mistyped time or day. Bootstrap keeps the working schedule meanwhile. The forms are in commands. | Fix WHEN, then bin/bootstrap.sh. |
FIX <...>.<...> not scheduled (run bin/bootstrap.sh) | schedules.job | A job has a time but no schedule. | bin/bootstrap.sh. |
note jobs are not scheduled on this machine (CABINET_SCHEDULES=off in cabinet.local.env): another machine runs them; cabinet bootstrap --schedules turns them on | schedules.off | This machine was set up with cabinet bootstrap --no-schedules, so the job checks are skipped here. | Nothing, when another machine runs the jobs. To run them here: cabinet bootstrap --schedules. |
FIX <...>.<...> runs another workspace: give this one its own slug (cabinet config --slug) | schedules.job-owner | Two workspaces share a slug. | cabinet config --slug <new> in one of them. |
FIX <...>.<...> is written but not loaded by <...> (run bin/bootstrap.sh) | schedules.job-loaded | The schedule file exists, but the scheduler (launchd, systemd or cron) has not loaded it. | bin/bootstrap.sh. |
FIX <...> still runs this workspace under an old name (<...>) | schedules.old-slug | A schedule left over from an earlier slug. | Run what it names: on macOS launchctl bootout gui/$(id -u)/<label>, with systemd systemctl --user disable --now <label>.timer; then delete the file it names. |
FIX no scheduler on this machine (a running systemd user session, or cron), so no job runs on its own: install cron, then run bin/bootstrap.sh | schedules.scheduler | Linux without a systemd user session or crontab, as in many containers. Jobs only run by hand. | Install cron (or run under systemd), then bin/bootstrap.sh. |
Spend#
| Message | ID | Cause | Fix |
|---|---|---|---|
FIX the scheduled runner is on with no cost limit, so it runs nothing (cabinet config --pipeline-limit <dollars>) | pipeline.ready | CABINET_PIPELINE is small or all, and CABINET_PIPELINE_LIMIT is empty. The same ID reports a value other than off, small or all, a runner whose cost cannot be counted, or a missing jobs/pipeline.job. | cabinet config --pipeline-limit <dollars>, --price for a token runner, or --pipeline off. |
FIX CABINET_PIPELINE is '<...>', not off, small or all (cabinet config --pipeline small, all or off) | pipeline.ready | cabinet.env was edited by hand to a value the runner does not know, so it runs nothing. | cabinet config --pipeline small, all or off. |
FIX the scheduled runner is on, but <...>'s cost cannot be counted, so it runs nothing (cabinet config --price, or another runner) | pipeline.ready | The runner reports no dollars (a token runner with no price, or custom), so a cost limit could not hold. | cabinet config --price "<input> <output> [<cached input>]", or --runner claude, grok or opencode. |
FIX the scheduled runner is on, but jobs/pipeline.job is missing (cabinet config --pipeline <...> adds it) | pipeline.ready | The job file was deleted, so nothing runs it on a schedule. | cabinet config --pipeline small (or all) makes it again; then cabinet bootstrap. |
FIX agent runs cost $<...> this week, <...>% of the $<...> budget: cabinet job list shows what each job cost; raise it with cabinet config --budget <dollars> | spend.budget | The agent runs Cabinet started this week cost 80% or more of CABINET_BUDGET, as the agent tool reported it. See what agent runs cost. | cabinet job list shows which job cost what. Raise the budget (cabinet config --budget <dollars>), run jobs less often (WHEN, QUIET_DAYS), or let the week end. |
FIX agent runs cost $<...> this week, over the $<...> budget: cabinet job list shows what each job cost; raise it with cabinet config --budget <dollars> | spend.budget | The week's runs passed the budget. Nothing is stopped. | The same. |
note <role> <what it does> (small tasks|spec work): <n> of the last <m> took longer than the upper end given before each (or job <job>: ...) | runs.estimates | Of the last 20 steps of one kind (a role doing one thing, for a small task or for a spec; or a job's runs), 5 or more took longer than the upper end their run estimate gave before each (how long it takes). About 2 in 20 is expected. Never a FIX: nothing changes and no run stops. | Read the estimates of that kind as low for now: they follow the newer steps as they come. If a model, a test suite or the work itself changed, they catch up within 20 steps. |
note <...> reports tokens, not dollars, so the $<...> budget is not tracked: set its price with cabinet config --price "<input> <output> [<cached input>]" (dollars per million tokens) | spend.unreported | A budget is set, and the runner (codex, cursor, qwen or antigravity) reports only tokens. | cabinet config --price "<input> <output> [<cached input>]", from the model's price list. See what agent runs cost. |
note <...> does not report what a run costs, so the $<...> budget is not tracked (the built-in runners report it) | spend.unreported | A budget is set, and the runner is custom. | Use a built-in runner to track it, or remove the budget: cabinet config --budget off. |
Backups#
| Message | ID | Cause | Fix |
|---|---|---|---|
note backups are off on this machine (cabinet.local.env; cabinet config --this-machine --backup-dir <folder> turns them on) | backups.enabled | This machine turned backups off for itself (cabinet config --this-machine --backup-dir off). | Nothing, when another machine backs up. To back up here: cabinet config --this-machine --backup-dir <folder> --apply. |
note backups are off (set CABINET_BACKUP_DIR in cabinet.env, then run bin/bootstrap.sh) | backups.enabled | No backup folder set. | cabinet config --backup-dir <folder>, then bin/bootstrap.sh. See backups. |
FIX CABINET_BACKUP_DIR must be an absolute path | backups.dir-absolute | A relative backup folder. | cabinet config --backup-dir <absolute folder>. |
FIX the backup folder is inside <...>: a backup there is lost with it and can be committed (choose a folder outside, then cabinet config) | backups.dir-outside | The backup folder is inside the workspace or one of its repos. | Choose a folder outside them with cabinet config --backup-dir. |
FIX no scheduled backup in <...>/backup.log yet (<...>) | backups.recent | No scheduled backup has run yet. | Run what it names (launchctl kickstart on macOS, systemctl --user start with systemd, cabinet backup create with cron), or wait for the time set. |
FIX newest backup is <...>h old (<...>): <...> | backups.recent | No scheduled backup in the last 36 hours (the machine was asleep or the job failed). | Read backup.log in the log folder (~/Library/Logs/cabinet/<slug>/ on macOS, ~/.local/state/cabinet/<slug>/ on Linux). |
note no restore of a backup has been verified on this machine yet (cabinet backup verify) | backups.verified | cabinet backup verify has not passed on this machine. | cabinet backup verify (backups). |
note the last verified restore was <...> days ago (<...>): verify again (cabinet backup verify) | backups.verified | The last good verify is more than 92 days old. | cabinet backup verify. |
FIX backup passphrase missing from the <...> (<...>: <...>) | backups.passphrase | No item cabinet.<slug>.backup in the keychain (macOS) or the secret store (Linux), or with cron no passphrase file (a cron run cannot reach the secret store), and CABINET_BACKUP_PASSPHRASE is not set. | Run the command it names, with the same passphrase as in your password manager: security add-generic-password -a "$USER" -s cabinet.<slug>.backup -w on macOS, secret-tool store --label=cabinet.<slug>.backup service cabinet.<slug>.backup account "$USER" on Linux, and with cron a command that writes ~/.config/cabinet/passphrases/cabinet.<slug>.backup readable by you only (macOS and Linux). |
FIX the passphrase file <...> can be read by other users, so it is not used: chmod 600 <...> | backups.passphrase | The passphrase file exists, but its permissions let others read it, so backups ignore it. | chmod 600 on the file, as the message says. |
Other commands#
cabinet: stopped at <file> line <line>: <command> exited <status>: the failure trace.cabinet, or a workspace script it runs (bin/*.sh), stopped on a command that failed where it did not expect one, and this line says which: the file and line, the command as written in the script (never the values it was run with) and its exit status, which the command then exits with too. Status 141 means a pipe's reader closed before its writer finished (SIGPIPE). A failure the script handles prints nothing, and neither does a stop with its own message. A stop inside a( ... )group prints the line that started the group (nothing under bash 3.2). Under macOS's own bash 3.2 the line can be where the function or block holding the command starts: search for the command there. Send the line with what you ran when you report it.cabinet: not inside a cabinet workspace, or a project with cabinet/ in it: a workspace command (doctor,bootstrap,brief, ...) ran outside any workspace.cdinto the workspace or its project, or start one withcabinet neworcabinet init.cabinet: unknown command '<...>': exit 2. A mistyped command gets one short answer:Did you mean: cabinet <...>when a command is near, thenEvery command: cabinet help. An unknown verb after a noun (cabinet role <...>) shows that noun's commands, andcabinet help <...>adds(see: cabinet help).Not safe to delete, so nothing was changed:: fromcabinet remove(which then printscabinet: the workspace <...> was not removed: it is as it was) orcabinet session end, when deleting the folder would lose work found nowhere else. One line per path says why:uncommitted,unpushed,stash,ignored(a.env, a database), orno-git(a folder with no git). Nothing is removed. Keep that work somewhere else (commit and push it, or copy it), or name what can be rebuilt in the## Safe to deletesection of the repo'sAGENTS.md, then run it again.--forcedeletes it anyway only after you typeyesat a terminal (cabinet remove).--force asks a person at a terminal, and there is no terminal here, so nothing was changed:remove --forceorsession end --forceran with no terminal, such as from a script that used to runcabinet remove --yes --force. Run it yourself, in a terminal. In a scheduled run--forceis never used (--force is never used in a scheduled run).--fix asks before each step: run it in a terminal, or add --yes:cabinet doctor --fixhad no terminal to ask in.cabinet: the slug '<...>' is already used by the workspace at <...>: choose another with--slug. When it says that workspace no longer exists, it lists the steps to free the slug.cabinet: <...> already has a cabinet workspace: use cabinet update:initruns once per folder.cabinet: <...> is inside the repo <...>: run cabinet init at its top folder: run it there.cabinet: these files already exist at paths the kit uses: <...>: rename or move those files (a link at one of those paths, or a linked folder such asbin, counts too), then runcabinet initagain.<...>: the merge did not produce a valid file (its shape is not what the kit expects), left as is: from bootstrap. The file is unchanged; add the kit's rules by hand, or fix the file's shape.<...>/.codex is not a folder, left as is: Codex's rules and approval_policy were not placed: from bootstrap, which ends withSome steps did not complete.~/.codexis a file, or a link to nothing. Move it aside, then runcabinet bootstrapagain.<...>/.codex could not be created, so Codex's rules and approval_policy were not placedis the same step when the folder cannot be made.<...> could not be created: add approval_policy = "on-request" to it by hand: from bootstrap. Codex has noconfig.toml, and the new one could not be written, or one appeared while it was being made. Nothing was replaced.<...> sets approval_policy = <...>, left as is: the kit's guardrail is approval_policy = "on-request" (change it by hand)and<...> could not be read safely, left as is: add approval_policy = "on-request" above its first [table] by hand: from bootstrap;guardrails.codex-approvalabove says why. The file is unchanged and has no new backup.<...> selects the profile <...>, whose approval_policy Codex before 0.134.0 uses in place of the top-level one: remove that line by hand (Codex 0.134.0 and later ignore it): from bootstrap. The kit never removes the line itself.CODEX_HOME is <...>, so Codex reads its settings and rules there, not in <...> where the kit placed them: unset CODEX_HOME, or copy them there by hand: from bootstrap, which still places them in~/.codex.<...> was not changed: its backup could not be written beside it (<...>). Free the folder, then run cabinet bootstrap again: from bootstrap, before it changes a tool's settings (Claude Code, Codex, Gemini CLI, opencode, and the older rule files it completes). The copy<file>.bak.<timestamp>could not be written (a full disk, a folder you cannot write, a file in the way), so that file was left as it was; bootstrap went on with the next step and ends withSome steps did not complete. Free the folder, then runcabinet bootstrapagain.cabinet: nothing changed: this workspace pins Cabinet <version>, and the copy you ran is <version>:cabinet updateandconfignever run the copy a workspace pins, and this pin is older than the copy you ran.npx cabinet updatealone would run the pinned copy again, since npm keeps the copy inside the range inpackage.json(a^0.xrange never takes the next minor). Move the pin first, in the folder it names:npm install @tarekraafat/cabinet@<the copy you ran> && npx cabinet update. Forconfig, the message also offersnpx cabinet configwith the same options, which changes settings with the pinned copy (which copy runs).cabinet: nothing changed: this workspace pins Cabinet <version>, newer than the copy you ran (<version>): the pin is newer than the copy you ran. Run the command it prints,npx cabinet updateornpx cabinet config, in the folder it names. When the two versions do not compare (such as a pre-release), the message readsthis workspace pins Cabinet <version>, and the copy you ran is <version>, so nothing changedand prints the same command.Kit files edited here, or not the kit's, so nothing was changed:: fromcabinet update, one line per file withedited(a kit file changed in the workspace) ornot-kit(a file at a kit path the kit never placed, or a link there). Nothing was written and the version stays. Move your change to a project file, restore the kit's file (git checkout -- <file>), thencabinet updateagain; or runcabinet update --forceyourself, at a terminal, to replace them with the kit's.half updated: run cabinet update again: a step after the kit files were copied failed (such as the role or the manual build), so the version stays the old one. Fix what the message names, then runcabinet updateagain: it finishes the update.
Built from version 0.8.5