> For the complete documentation index, see [llms.txt](https://docs.thecolliery.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thecolliery.org/tools/coalboard/readme.md). Agents can also search and read this documentation through its [MCP server](https://docs.thecolliery.org/~gitbook/mcp).

# CoalBoard

## ⚖️ CoalBoard

> *A coal board governs operations and resolves disputes for the mines—this one is the board for the work where a single mistake is catastrophic.*

**A diverse-lens consensus & debate board for error-not-allowed work**—on a critical task, with your consent, blind epistemic lenses debate in parallel, a judge synthesizes on verified inputs, and the agent is told to keep your files untouched until you answer the final apply question, apart from the skill's own named writes (see Permissions): a rule it follows, not a code gate (its counts: **Stage → consent → apply** below).

![version](https://img.shields.io/github/v/tag/TheColliery/CoalBoard?label=version\&color=blue) ![license](https://img.shields.io/badge/license-Apache_2.0-blue) ![status](https://img.shields.io/badge/status-stable-brightgreen) ![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/TheColliery/CoalBoard?utm_source=oss\&utm_medium=github\&utm_campaign=TheColliery%2FCoalBoard\&labelColor=171717\&color=FF570A\&link=https%3A%2F%2Fcoderabbit.ai\&label=CodeRabbit+Reviews)

![Claude Code](https://img.shields.io/badge/Claude_Code-validated-brightgreen) [![Antigravity: validated (load only); 2026-10-31 board run](https://img.shields.io/badge/Antigravity-validated%20\(load%20only\)-brightgreen)](https://github.com/TheColliery/CoalBoard/tree/main/skills/coalboard/references/platform-antigravity.md) ![Cursor](https://img.shields.io/badge/Cursor-works_with-blue) ![Codex](https://img.shields.io/badge/Codex-works_with-blue) ![Gemini CLI](https://img.shields.io/badge/Gemini_CLI-works_with-blue) ![Cline](https://img.shields.io/badge/Cline-works_with-blue) ![Copilot](https://img.shields.io/badge/Copilot-works_with-blue)

[Benchmark](https://github.com/TheColliery/.github/tree/main/benchmarks/CoalBoard) · [Contributing](https://github.com/TheColliery/CoalBoard/tree/main/CONTRIBUTING.md) · [Changelog](https://docs.thecolliery.org/tools/coalboard/changelog.md) · [Security](https://github.com/TheColliery/CoalBoard/tree/main/SECURITY.md) · [Privacy](https://github.com/TheColliery/CoalBoard/tree/main/PRIVACY.md) · [Releases](https://github.com/TheColliery/CoalBoard/releases)

**Docs:** [docs.thecolliery.org/tools/coalboard](https://docs.thecolliery.org/tools/coalboard)

**Part of** [**TheColliery**](https://github.com/TheColliery)—siblings: [**CoalMine**](https://github.com/TheColliery/CoalMine) (quality canaries) · [**CoalTipple**](https://github.com/TheColliery/CoalTipple) (model/effort routing) · [**CoalHearth**](https://github.com/TheColliery/CoalHearth) (session warm-resume) · [**CoalFace**](https://github.com/TheColliery/CoalFace) (fan-out discipline) · [**CoalWash**](https://github.com/TheColliery/CoalWash) (memory defrag) · [**CoalLedger**](https://github.com/TheColliery/CoalLedger) (docs health) · [**CoalGob**](https://github.com/TheColliery/CoalGob) (OS-trash delete guard, PUBLIC BETA v0.1.0-beta.1).

***

### ⚖️ What it is

On an **error-not-allowed** task—security/crypto, a DB/financial migration, high-precision math/physics—and **only with your consent**, CoalBoard convenes a board of diverse epistemic lenses to debate the task, a judge to synthesize on verified inputs, and you to answer the final apply question before any live file changes, apart from the skill's own named writes (see Permissions; the agent follows that rule, and no code gates it). On Claude Code, the conductor reads `CLAUDE_CODE_SESSION_ATTENDED` at session start (an environment variable Claude Code sets, undocumented by the vendor and version-bound; any value other than `1`, or none, reads as no user) and tells the agent that no user can answer, so the agent convenes nothing and applies nothing, whatever `coalboardMode` says. With no session-start line in context, the agent asks before convening, as under `ask`. The hook decides which line the agent gets; the agent follows it, so this is an instruction, not an enforced block.

Three doors in—every one behind your consent:

* **Auto**—the error-not-allowed slice above. Cost-disciplined: asleep \~90% of the time.
* **Manual**—say *"convene the board"* in chat, or invoke the `/coalboard` skill (plugin-qualified as `coalboard:coalboard`), on any hard problem worth several diverse perspectives, in **any domain**—code, docs, math, research, translation, legal. Two modes: **generate** new work, or **audit / review** existing work.
* **Opinion ("ask CB")**—when your agent is about to ask you to settle a decision it can't settle itself, that same question gains a third option, *ask CB*, its cost on the label (\~4 lenses + a judge). **Your pick is the consent**—per-instance, never auto-convened, nothing persisted. The board returns an **opinion your agent acts on**—presented in chat, not re-asked back to you—unless acting on it would spend real money, change what the product promises you, or the seats didn't converge (or converged at low confidence), in which case it comes back as a question. No file changes either way.

### 🔍 How it works

| Lens          | Grounds in                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Empirical** | Live, cross-referenced sources—never training memory. For a code, CI or config target the board also reads the target's own open code-scanning, Dependabot and secret-scanning alerts (fields only; the secret-scanning request asks GitHub not to return the value (`hide_secret=true`), and a response that still carries one is discarded unread and reported NOT-CHECKED) and the GitHub Advisory Database, OSV, NVD, CWE and platform docs; whatever it cannot reach is reported **NOT-CHECKED**, never clean (`references/source-set.md`) |
| **Formal**    | Logic and proof—internal consistency                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **Show-me**   | Turns every doubt into a concrete evidence-demand (*"show the date", "show it actually runs"*)                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

1. **Convene**—the active lenses debate the same target **in parallel, blind to each other** (so they don't anchor on one another's answer).
2. **Judge**—synthesizes on **verified** inputs, never on which answer sounds best.
3. **Tiebreak** (on deadlock)—an **independent out-of-frame solver** re-derives the answer blind and breaks the tie by agreement.
4. **Stage → consent → apply**—the skill tells the agent to stage every proposed change to `.coalboard/proposed/` (reports land in `.coalboard/reports/`), to write nothing outside `.coalboard/` until you answer the final apply question (except its own named copies and one config key, see Permissions below), and to treat a first confirmation as convening the board only. The agent follows that rule; no code enforces it. Measured with headless Haiku test agents on the maintainer's machine (CHANGELOG 2.9.22): on the final text 0 of 5 rounds wrote the live file before the apply question, and those rounds ended at the first consent box, so no CONFIRM arm ran on that text; 1 of 5 did on 2.9.21 and on the first fix commit; with no house rules (`claude -p --safe-mode`, where no board can convene, so no lens ran and the skill ran the board's steps itself) 0 of 5 on 2.9.21; the same arm ran 3 rounds on the first fix commit, 0 of 3, and was not re-run on the final text; on 2.9.19, 5 of 7 across both drafts of the fix wrote the target after confirming. Not closed by text: an agent may still write the change before the apply question.

**The opinion lane seats a different board.** Four equal-knowledge seats—one equal tier, never Fable—differ only in a locked perspective: **realtime** (trusts only what it can measure, run, or fetch this session; anything out of reach is declared *ran blind*, never filled from memory), **reality** (show-me—undemonstrated = not yet real; builds breaking cases both ways), **feeling** (walks the human experience under each option; never runs anything), **outdim** (receives the bare problem only—no options, no proposal, no house context—and designs its own answer from scratch). If you brought a leaning, every seat that sees it tries to **refute** it—never grade it (a refutation that fails is the strongest support a proposal can earn); outdim never sees it at all. The judge synthesizes—never counts votes—and **your agent acts on that verdict directly**, presenting it in chat; it only comes back to you as a question if acting on it would spend real money, change what the product promises you, or the seats didn't converge (or converged at low confidence). Nothing is staged or applied either way.

CoalBoard is **NASA-inspired in structure** (redundancy + design-diversity + human-in-the-loop + trigger-only-on-critical)—**not in numbers.** It honestly claims two things:

1. **Bounded cost**—a solo agent thrashing on a hard bug is an unbounded token-bleed; the board converges (single-turn, judge-final, human-escape), so its cost is high but **predictable and capped**. Pay a known premium to cap the tail.
2. **Zero-breakage** (an aim)—staging + propose-not-execute aims to keep the live workspace untouched until verified *and* approved; the agent follows that rule, no code enforces it, and it is not always held (see CHANGELOG 2.9.19) (a side-effect—a run migration, an API call—is gated behind your approval, never executed during the debate). This is a **files** aim: the verify step itself runs checks, so an executed side-effect can only be *prevented* (pre-run lint + propose-not-execute), never undone.

Both claims are **contract-enforced**—the skill's staging rule the agent follows, plus your sign-off—**not** enforced by code and **not** an OS sandbox; a skill cannot OS-enforce. The human gate is the load-bearing node.

It **improves** correctness; it does **not** claim a defect rate or a reliability figure (an LLM ensemble is probabilistic, not formally proven—and `10⁻⁹` is unverifiable by any system). It gets *more accurate as the underlying models improve*, for free—the structure is model-agnostic.

### 🤖 Compatibility

**Claude Code: validated end-to-end.** Antigravity: validated (load only). The skill loads and reaches Step 4: measured 2026-10-29 with agy 1.4.8 (a self-run headless check, not third-party-audited), the SKILL.md body was 21,047 bytes at 2.9.0, under Antigravity's 24,000-byte load, and a report-only `/coalboard` probe that asked for the mandatory references read them and reached the Step 4 text. On 2026-10-31 (agy 1.4.12, a self-run check) a board run on a synthetic target spawned the three default lenses as read-only leaves, synthesized and staged its fixes, but could not run the verify step, because headless agy refuses the shell permission. The last run with every step was on 2026-06-22. The 2.8.10 and 2.8.11 bodies (51,244 and 51,554 bytes) did not fit; 2.9.0 moved the steps and the standing rails into references. Claude Code additionally auto-activates via hooks and gets the cheap-lenses / premium-judge cost discount—both Claude-Code-only bonuses.

Every other concurrent-subagent platform (Cursor, Codex, Gemini CLI, Cline, Copilot, Amp, Goose, …) **works with** CoalBoard—the board is a plain, platform-neutral skill ([`skills/coalboard/SKILL.md`](https://docs.thecolliery.org/tools/coalboard/skill.md)) that convenes via your platform's own native subagent tool, so it should run there. That support is design-documented, not run end-to-end by us—re-verify subagent support before trusting it, and report what you find at [Issues](https://github.com/TheColliery/CoalBoard/issues). See Install below for the exact steps per platform.

### 🚀 Install

**Claude Code**—one command (also enables hook auto-activation + the cheap-lenses / premium-judge cost discount, both CC-only):

```bash
claude plugin marketplace add TheColliery/CoalBoard
claude plugin install coalboard@coalboard
```

**Antigravity**—*validated (load only): the skill loads and reaches Step 4 (2026-10-29); a board run on 2026-10-31 staged its fixes but could not run verify, see above*. Antigravity's install route for this skill is the copy below: a skill is installed by copying its folder into a customizations root, which Antigravity auto-discovers at session start (no install command, no registration). The shipped `plugin/` folder also carries a root `plugin.json` and an Antigravity `hooks.json` with no entries (2.9.26), which the native plugin route is meant to read. Whether Antigravity loads them is not measured here, so on that route the plugin asks Antigravity to run no CoalBoard hook. The import route is a different install: it can still write a hook entry from the Claude Code hook file, which runs `node` with no script behind it (seen in a parked copy, not run on Antigravity). The copy route is written for PowerShell (Windows); no form for another shell is given:

```powershell
git clone https://github.com/TheColliery/CoalBoard.git --depth 1
# global (all workspaces):
Copy-Item -Recurse CoalBoard/skills/coalboard "$env:USERPROFILE\.gemini\config\skills\coalboard"
# — or per-project: copy into <your-repo>\.agents\skills\coalboard instead
Remove-Item -Recurse -Force CoalBoard   # optional cleanup
```

The clone takes the default branch: that is what Claude Code's plugin updater tracks, and a version bump on it is what publishes. A Release tag is only the announcement, so do not pin the clone to a tag. A copied folder does not update itself.

Start a new Antigravity session; `coalboard` appears in the skills list. From 2.8.10 the five seat agents (`agents/cb-*.md`) declare `tools:` as a YAML list, so `agy plugin validate` reads all five; that is the instrument, run on a temporary copy of the built plugin (its root `plugin.json` is shipped from 2.9.26), and the skill-folder route above is unchanged. The board's AG tool-mapping (read-only-leaf lenses via `define_subagent`, mandatory `kill_all` reap) is in [`references/platform-antigravity.md`](https://github.com/TheColliery/CoalBoard/tree/main/skills/coalboard/references/platform-antigravity.md). The conductor hook + cost-tiering stay CC-only (the shipped Antigravity hook file has no entries, so on the native route it asks Antigravity to run no CoalBoard hook (whether it loads the file is not measured), and Antigravity's model-pick is a define-time-only field CB doesn't set—the lenses run the parent model).

**Other concurrent-subagent platforms** (Cursor, Codex, Gemini CLI, Cline, Copilot, Amp, Goose, …—**works with** CoalBoard)—the board is a plain skill: point your agent at [`skills/coalboard/SKILL.md`](https://docs.thecolliery.org/tools/coalboard/skill.md) (the contract is platform-neutral; it convenes via your platform's native subagent tool). Gemini CLI's parallel subagents are now first-party official (`/agents`)—business Standard/Enterprise plans only (individual tiers lost access 2026-06-18). There is no one-command installer, and the conductor hook + cost-tiering are CC-only. **The DEBATE structure is platform-agnostic: it is VALIDATED end-to-end on Claude Code; on Antigravity the debate last ran end-to-end on 2026-06-22, the skill load was re-checked on 2026-10-29, and a board run on 2026-10-31 could not run verify (validated, load only; see above)**—every other named platform is design-supported only (capability documented first-party, nothing run), so re-verify subagent support on yours and report what you find at [Issues](https://github.com/TheColliery/CoalBoard/issues).

### Commands

| Command             | What it does                                                                                                                                                                                                                               |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `/coalboard`        | Convene the board manually on any hard problem worth several diverse perspectives. An interactive setup offers the picks and shows the bill before anything spawns. Two modes: **generate** new work, or **audit / review** existing work. |
| `/coalboard:stats`  | Session report—boards convened, which lenses ran and at what model tier, verdicts, staged vs applied. Read-only; it modifies no file.                                                                                                      |
| `/coalboard:update` | Check for a newer CoalBoard version and offer to apply it, or set how updates are handled (`updateMode`). It offers—it never applies by itself.                                                                                            |

Slash commands are the Claude Code form. On any other agent the board is invoked the way your agent invokes a skill—by name (`coalboard`), or by just saying *"convene the board"*. The other two doors in—the auto-trigger and the **"ask CB"** opinion option—are not typed at all; see **What it is** above.

### ⚙️ Configure

Everything is tunable in `.coalboard.json`—a global `~/.claude/.coalboard.json` overlaid per key by the nearest project config (project wins, except `coalboardMode` and `updateMode`: there the safer value wins, so a project may quieten them but never escalate past your global value (or `ask` when you have none); `triggerConfidence` and `triggerGradeFloor` are raise-only, so a project may raise them but never lower them below your global value (or the default when you have none); a value that is not one of a key's listed values counts as absent, never as a synonym. The hook enforces that guard, and applies the threshold floor on the path its CRITICAL line covers; the skill's own reads of the config follow the same rule through its instructions, which is a prose duty and weaker than the hook, and `fableConsent` is not clamped; `applyConsent` counts as false only from the global config (or from a global `rigor: relaxed` with no explicit global `applyConsent`), a rule the skill follows in prose, since the hook does not read it), so you can **tune or shut off a globally-installed skill per project** (off-switch: `coalboardMode: off`)—a skill you don't need in a given project stops loading (and burning tokens) there. **Per-project config read order** (first found wins): the dir of the agent actually executing, checked FIRST, then the fixed fallback `.claude/coal/coalboard.json` → `.agents/coal/coalboard.json` → `.gemini/coal/coalboard.json` → the two **deprecated** legacy shapes, still read so an existing project keeps working—`.claude/.coalboard.json`, then `.coalboard.json` (see **Deprecated config paths** below). On Claude Code the executing agent's own dir IS `.claude`—already the fallback list's first entry, so the two collapse into one order there; a different agent (e.g. a cross-agent runtime using `.agents/` as its own dir) checks that first instead, ahead of a stale `.claude` candidate. Nothing exists yet anywhere → the running agent's own dir is both the default read and write target. A config file that exists but cannot be read (malformed JSON, a directory, a permission denial, JSON that is not an object, a path that resolves outside its folder (a link to a file elsewhere), or a file replaced while it was read, meaning another file swapped in at that name; an edit made in place is not caught) is skipped and reported on the SessionStart line as `UNREADABLE: <path> … ; it was skipped`, so a config that is silently not applied no longer goes unnoticed. The headline dial is **`rigor`**—`relaxed | standard | high | nasa`—a preset that sets the board's strictness; any individual key overrides it. (`nasa` = maximum paranoia: trust nothing, the human signs off—*not* a `10⁻⁹` claim.) The high-impact keys:

| Key                  | Default                | What it does                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| -------------------- | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `rigor`              | `standard`             | Strictness preset (`relaxed` \| `standard` \| `high` \| `nasa`)—sets defaults for the knobs below; any explicit key overrides it, except `applyConsent`: a project value can only keep it on. `relaxed` turns it off only in the GLOBAL config, and only when the GLOBAL config does not set `applyConsent` itself (an explicit global `applyConsent: true` wins over the preset). `applyConsent: false` in the GLOBAL config is a user's own choice, which the skill still refuses under `coalboardMode: auto` |
| `coalboardMode`      | `ask`                  | Convene behavior on a detected critical task: `ask` (per-instance consent + cost estimate) \| `auto` (convene without asking when a user can answer; with no session-start line, asks as `ask` does) \| `off` (never convene, never offer "ask CB"—the board's master switch; with no user to answer this session, the start line tells the agent to convene nothing, whatever this says: an instruction it follows, not an enforced block)                                                                     |
| `triggerConfidence`  | `90`                   | Semantic-classifier confidence (0-100) a task must clear to count as critical—higher = fewer false triggers, more false-negatives (the manual `/coalboard` is the safety valve)                                                                                                                                                                                                                                                                                                                                 |
| `lenses`             | `data, truth, feeling` | The active epistemic lenses (each `data` \| `truth` \| `feeling`)—the decorrelation mechanism; all three are the floor for error-not-allowed work                                                                                                                                                                                                                                                                                                                                                               |
| `fableConsent`       | `ask`                  | Consent to seat **Fable** (the `fable` alias, Claude Code's default Fable model, the top lens rung, within the separate weekly Fable limit on Max, then usage credits if they are on, can bill to usage credits on other plans and seat tiers) at `high`/`nasa`: `ask` (a consent box before the fable seats, showing the exact count + a \~est cost) \| `always` (seat without asking) \| `never` (always fall to the highest non-fable tier). `relaxed`/`standard` never seat fable                           |
| `consensusThreshold` | `80`                   | Worker-agreement % below which the board is deadlocked and summons the out-of-frame sub4 observer to break the tie                                                                                                                                                                                                                                                                                                                                                                                              |
| `maxRounds`          | `1`                    | Debate rounds—`1` = single-turn (max independence); `>1` = multi-round cross-examination (reintroduces anchoring)                                                                                                                                                                                                                                                                                                                                                                                               |

Full key reference: every key + default lives in [`scripts/lib/config-schema.mjs`](https://github.com/TheColliery/CoalBoard/tree/main/scripts/lib/config-schema.mjs) and the commented template [`platform-configs/.coalboard.json`](https://github.com/TheColliery/CoalBoard/tree/main/platform-configs/.coalboard.json)—or run `node scripts/configure.mjs --help` (every flag, value and default derive from that same schema table, so a key added there is settable and documented from one source; the three nested-object keys—`lensTiers`, `rigorLensTiers`, `verifyGates`—are validated + documented but not CLI-settable, edit the JSON directly). **All three of those are repo-only**—`scripts/` and `platform-configs/` both sit outside `build-plugin.mjs`'s copy list (the same absence Permissions below explains for `configure.mjs` specifically), so an installed-only user has none of them. **What that user has instead is the high-impact table above, and nothing more complete than it**—no surface the installed plugin ships lists every key with its default; the full schema genuinely needs a repo checkout.

**Deprecated config paths.** Two older project-config shapes are still read, and are **deprecated**: `<project>/.claude/.coalboard.json` and `<project>/.coalboard.json`. The replacement is `.claude/coal/coalboard.json` (or the `.agents/` / `.gemini/` form your agent uses). There is no repository root: the walk goes level by level from your working directory up to your home directory, so the nearest level holding any of the five paths wins, and at one level the canonical path beats both legacy shapes. To migrate, rename the file—or, from a repo checkout, run `node scripts/configure.mjs` with any key, which moves a legacy file at your working directory to the canonical path on that write. **Window:** deprecated in the release that carries this note, removable no earlier than the next MAJOR release—never within a MINOR or PATCH. **Owner:** this room (CoalBoard). **Channel: this note and `CHANGELOG.md`** **`### Deprecated` only**—deliberately not a runtime warning, because a hook may emit on no channel but its sanctioned ones (Phoenix #13). The one-line report the conductor adds to the SessionStart message is a different thing: it fires only when a legacy file was actually read (it names that file and the path to migrate to) or a near-miss config path was ignored (for example `.claude/coalboard.json`, missing the `coal/` segment), and it reports what the walk did, not the deprecation itself. **Not deprecated:** the global `~/.claude/.coalboard.json`—a separate tier, untouched.

### Permissions

CoalBoard reads the target and writes to its own scratch—staged fixes in `.coalboard/proposed/`, reports in `.coalboard/reports/`, a worker's private resume checkpoint and the apply checker's target list in `.coalboard/memory/`—and to exactly one place outside it that the skill writes into on its own account (a run that executes a command against your target also makes a short-lived lab clone, covered below): if you answer "always, this project" at the Fable money gate, it persists that single key (`fableConsent: "always"`) into your project config (the read order above—own-dir default if none exists yet, moving a legacy file there in the same write) and the skill itself writes nothing else into any config. Before it reads, writes or deletes under `.coalboard/` (or writes the project config), the skill checks the project root's real path and that no junction or symlink sits at or below `.coalboard`, and its cleanup removes only this run's files by name (an instruction the agent follows, a mitigation). Before the digest and again before each live write, it runs the shipped checker `skills/coalboard/scripts/apply-target.mjs` on every apply target, which writes nothing and reads only path metadata, and a target behind a link, outside the project root, named with a trailing dot or space, or written as a relative path that starts with a drive letter and a colon is never written (it is listed as not applicable, for you to apply by hand). The skill tells the agent to write no live file until you approve it (the agent follows that rule; nothing in the code enforces it); a command it runs against your target works on a lab clone, and run safety detects and restores a file the run changed, it does not prevent the change (it is not an OS sandbox). **A repo checkout adds one more writer, outside the installed skill:** `scripts/configure.mjs` (`scripts/` is not in `build-plugin.mjs`'s copy list, so it never enters `plugin/` and an installed-only user never receives it) writes the project—or, with `--global`, the global—`.coalboard.json` to the value you pass, migrating a legacy-location config to its new home on that write (once the new one is written, the legacy file it moved is renamed to `<legacy path>.bak` beside it: one rename, nothing deleted; an earlier `.bak` there is replaced, and the run says whether it replaced one; the backup is read back and compared with what was migrated, and a difference is a warning naming both files, with exit 1; a rename that fails is reported and the run exits 1, saying whether the legacy file is still there, gone, or not checkable; a legacy file that exists but cannot be read is not moved and nothing is written, and the run exits 1 naming the file and the error code; a legacy file that was read-only when it was read is moved with its mode kept, and the migration line says so; git is asked before the move, a git-tracked file leaves a tracked deletion the run tells you to commit, and an answer git cannot give is said as such; the backup is yours to keep or delete, and nothing sweeps it), it refuses a config that sets `coalboardMode` to `auto` with `applyConsent` false (both human gates removed) and writes nothing, it refuses to write (exit 1, nothing made outside the project) when a link or junction sits on the path to the project config folder or the config file itself is a symlink, when its home folder cannot be read (it names the cause and writes nothing), and when the config it reads is malformed it first saves a copy beside it as `<config>.bak` before rebuilding (if that copy cannot be made, the run refuses and keeps the bytes). A project or global config that exists but cannot be read (a denied read, a folder at its name) is never replaced: the run names the file and the error code, writes nothing, and exits 1. A config swapped for another file between that check and the read is refused the same way, with nothing written and exit 1. A config or backup path with no write permission is refused by name before the first write, and nothing is chmodded; a file made read-only after that check is still replaced on POSIX. It never touches anything else. On the main board two lens seats carry a capability spike beyond read: **show-me**, and (when active) **adversary**, may run commands to prove a claim; **empirical** alone reaches the network (main's one exception is a read-only GET of the target's own alerts, with whatever read access your environment already offers; it never asks for, stores or prints a credential), and no other seat gets either—a CONTRACT every seat follows, not a platform guarantee (only the absence of write/spawn tools is platform-enforced). In the opinion lane two seats may run—**realtime** (measures what is; the lane's only network reach) and **reality** (runs the breaking case it built, to demonstrate); **feeling** and **outdim** never run or fetch (outdim's blindness bars even reading the workspace), and the lane writes no file—no staged fix, no report; its resume scratch, if armed, is deleted at the end. **Whenever a command is run against your target** (main's checks, the show-me and adversary seats), the run follows `references/run-safety.md`: survey the real files in the tool's reach (mtime and SHA-256) first, back them up, run, compare, and for any file the run changed, save its post-run version into a private folder (`<run-id>.post-run/`, beside the run directory under the lab root, outside your project and `.coalboard/`, restricted to your user: `icacls` on Windows, mode 0700 on POSIX), restore it and report it; work on a lab clone outside your home tree, never your home or the session scratchpad (S3). The recommended root is `%ProgramData%\CoalBoard\lab\<run-id>` on Windows and `mktemp -d` under `TMPDIR` or `/tmp` on POSIX; a run may use another place, and its return names the path it used. The run directory's real path is checked to be outside your home tree before anything is copied into it; a `TMPDIR` inside your home tree falls back to `/tmp`, or the run says why. The run directory holds the clone and, beside it, the S2 backup of your real configs (copies named by SHA-256, with one manifest); on Windows the run directory is restricted to the current user before anything is copied into it (`icacls`, S3), because `%ProgramData%` is readable by every local account by default. **Every run removes the whole run directory, backup included, when it ends**, success or failure, with a narrow delete of exactly the directory it created, and its return says `clone removed` (S5); a run that leaves its clone or its backup has not met its own done-criteria. That post-run folder is the one thing a run may leave on your machine besides its report: it holds copies of real configs, so it may contain a secret, the report names only its path, and it is kept for you to reconcile with the restored file and then delete. Never fake isolation with an environment variable. An isolation box (a WSL distro, Windows Sandbox, a container) is **optional** in general: it is used only when a probe finds one whose real home is unreachable from inside, and without one the survey, backup and copy steps carry the protection. **One class makes the box mandatory:** a target whose effects are not files (registry writes, Appx or package removal, services, scheduled tasks, system settings) is never run outside a real box, because a file backup cannot restore it; with no box it is read statically and the return says `read statically, not run` (S4). See `references/run-safety.md` S3-S5. This is a duty on a run, never a new tool right. Workers never spawn and never ask; only main picks each seat's model (including any Fable seat, gated by `fableConsent`), verifies ground-truth, and applies to live—on your consent.

Full series matrix + the must-fail set: [Permission Matrix](https://github.com/TheColliery/.github/blob/main/PERMISSION-MATRIX.md)

### 📊 Benchmark

**Comparison vs a third-party skill (2026-09-16, CoalBoard v2.4.2, n = 3 rounds per arm, self-scored and blind, one seeded target withheld):** CoalBoard's audit mode vs `cloudflare/security-audit-skill`'s quick profile vs a solo control—skill recall matched the solo control (0.467 median) at ≈14.5× its median cost; CoalBoard reached 0.867 median recall at ≈3.9× less median cost than the skill. We build CoalBoard—read our arm's numbers with that in mind. Full record: [`SECURITY-AUDIT-2026-09-16.md`](https://github.com/TheColliery/.github/blob/main/benchmarks/CoalBoard/SECURITY-AUDIT-2026-09-16.md) · [`RESULTS.md`](https://github.com/TheColliery/.github/blob/main/benchmarks/CoalBoard/RESULTS.md).

**Addendum 1 (the judge chair, measured 2026-09-16):** judge seat at the weakest model tier over strong-tier lenses (two research-only levers, not shipped) held on retention—38 of 39 lens-union seeds kept across three convened runs, 0.867 recall at ≈0.947 strict precision that is largely the strong lenses' own; whether a weak judge rejects a look-alike stays untested (no strong lens proposed one), and the whole-weak-tier board read "in between". Full record: [`SECURITY-AUDIT-2026-09-16.md` Addendum 1](https://github.com/TheColliery/.github/blob/main/benchmarks/CoalBoard/SECURITY-AUDIT-2026-09-16.md#addendum-1--round-4b-the-judge-chair).

**Headline (2026-07-03 redo, Opus 4.8):** solo **4/5** vs board **5/5** on 5 error-not-allowed tasks. On a STRONG solo model the reasoning traps (crypto timing-leak, compounding basis, async race, heading defects) are already caught unaided—the board's irreducible edge is the version-sensitive FACT (T3), where only RUN-the-check (a live fetch) beats training-stale memory (board committed the current LTS; solo hedged-then-shipped a stale one). The board = solo **+ ground-truth execution**; its margin narrows as the base model strengthens but never closes on facts that live outside the model. (The older \~13/20 solo run was a weaker solo model.)

**Cross-vendor (same 2026-07-03 redo, Antigravity / Gemini 3.5 Flash):** solo **\~4/15 (27%)** vs board **5/5**—a weak solo model misses reasoning traps too, so the board recovers all of them; the weaker the solo model, the larger the board's lift. (Supersedes the older 2026-06-19 AG run's smaller solo 1/5 → board 4/5 gap.) Full method, per-task scoring, and the honest-ceiling finding live in the series records: [`TheColliery/.github/benchmarks/CoalBoard`](https://github.com/TheColliery/.github/tree/main/benchmarks/CoalBoard).

> Honest scope: small, dated samples; the board **improves** correctness, it does not prove a defect rate. A board whose lenses share one model still shares that model's blind spot (the honest ceiling). The honest sell is **bounded cost + an aim at zero-breakage** (staging, a rule the agent follows), not a reliability number.

### 🧭 Part of TheColliery

CoalBoard is the **consensus & debate board** of the mining series, alongside its seven siblings:

* [CoalMine](https://github.com/TheColliery/CoalMine)—quality canaries
* [CoalTipple](https://github.com/TheColliery/CoalTipple)—model/effort routing
* [CoalHearth](https://github.com/TheColliery/CoalHearth)—session warm-resume
* [CoalFace](https://github.com/TheColliery/CoalFace)—fan-out discipline
* [CoalWash](https://github.com/TheColliery/CoalWash)—memory defrag
* [CoalLedger](https://github.com/TheColliery/CoalLedger)—docs health
* [CoalGob](https://github.com/TheColliery/CoalGob)—OS-trash delete guard, PUBLIC BETA v0.1.0-beta.1

Install one, it stands alone; install all, they compose without conflict.

Shared doctrine: Phoenix-13 hooks (zero-dependency, no network, fail-silent, no child processes, deterministic), single-source-of-truth config schemas, and a strict no-overkill discipline. Series doctrine: [`TheColliery/.github`](https://github.com/TheColliery/.github).

Zero-dependency, no API keys. The hook is offline; a convened data lens may fetch public pages through your agent, the opinion lane's realtime seat measures live state, main reads the target's alert lists with a read-only GET, and the consent-gated self-update check (`/coalboard:update`) goes online (see Permissions).

***

### 📄 License

Apache License 2.0. See [LICENSE](https://github.com/TheColliery/CoalBoard/tree/main/LICENSE/README.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thecolliery.org/tools/coalboard/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
