Readiness

The step catalogue that says whether a computer is ready — check, fix, Heal, the gate, and the opt-outs

Readiness

One catalogue says what "ready" means. The Setup page, the one-liner and the terminal all read it, so they never disagree. Heal hands whatever is still failing to an agent.

The catalogue is .claude/machine/readiness.json: 115 steps in 7 stages (identity 7, accounts 17, foundation 15, repos 10, agents 26, engine 29, tools 11). Each step has a check (a probe), a fix and, when it matters, an uninstall.

The stages

StageCovers
identityGitHub CLI, sign-in, organization membership, SSH key, git name and email
accountsClaude sign-in, Slack, company mailbox, secrets, CRM keys, Figma, and for tech Cloudflare, Vercel, AWS, Neon
foundationbrew, git, jq, uv, ffmpeg, tesseract, tmux, Node, pnpm, Chrome, Colima
reposthe repos folder, the kun, hogwarts, codebase clones, each product's .env
agentsClaude Code and Desktop, Antigravity, opencode, Codex, Hermes, a launcher.<letter> per agent, the Pool
enginemanifest, MCP, hooks, rules, the heartbeat, devices, and compile.claude, compile.codex, compile.opencode, compile.agy, compile.hermes (Compile), department packs pack.<department>
toolsyour department's apps: WebStorm and VS Code for tech; Blender, FilmCraft, OBS and ComfyUI for video

Fix kinds

KindWhat happens
autoHeal runs it
terminalOpens Terminal with the command: a sign-in, a code
linkOpens the page, for example the organization invite
requestSends the request to a person, for example Ask Abdout for the Pool keys

Heal never runs the last three, never prints a secret and never uses sudo, a force-push or a database reset.

Check and fix in the terminal

node ~/kun/.claude/skills/provision/scripts/provision.mjs --check --json      # read only
node ~/kun/.claude/skills/provision/scripts/provision.mjs --complete --json   # check, fix auto steps, re-check (3 passes)
node ~/kun/.claude/skills/provision/scripts/provision.mjs --maintain --json   # complete + due updates

--only id,id narrows it, --dry-run prints the fixes it would run, and no --json prints a table. The skill is called provision; Heal is its name in Machine. It writes ~/.claude/state/readiness.json.

The gate

Each step carries a tier: core (31 steps) or extra (16); the other 68 steps are installed and checked but never gate anything. The gate is the tiered steps that apply to the machine's departments.

LevelMeaningClaiming tasks
Reda core step is missingblocked until fixed
Orangecore complete, extras missingallowed, with a warning
Greenevery step passesallowed
bash ~/kun/.claude/scripts/kun-ready --gate            # GREEN, ORANGE (n extras) or RED (n core)
bash ~/kun/.claude/scripts/kun-ready --gate --fix      # run the automatic fixes, then check again
bash ~/kun/.claude/scripts/kun-ready --gate --json     # what Machine reports

Exit code 0 is green or orange; 1 is red. Core steps: identity (gh.auth, github.org, git.identity), claude.cli, anthropic.login, launcher.c, the engine (engine.manifest, engine.fresh, engine.hooks, engine.rules), the repos and your department's pack.

What red blocks. Claiming a task or a pool job, and only that. Machine sends its verdict with every heartbeat; kun refuses a claim when the last verdict is red, or when a non-green one is older than 48 hours. Chat, Git pushes and reading the org are never blocked. The gate runs by itself at first launch and after every update.

In Machine

WhereWhat
SetupStages with done/total, Heal, the exact command per step, Uninstall
Settings → HealthThe engine's health check, app updates, and the Pool line (green ready, yellow a source dry, red the gateway down)
MachinesEvery machine's readiness percent and gate verdict

Opt-outs

Uninstall records the step in ~/.claude/state/readiness-optout.json. From then on it reads removed by you, leaves the percentage, and neither Heal nor the daily heartbeat reinstalls it. Press Install to bring it back. Keystones (brew, node, repo.kun, claude.cli) are never removed by the app: it opens Terminal with the command.

To uninstall from the terminal: provision.mjs --uninstall --only tool.vscode --json (add --dry-run first). It refuses a step another installed step needs.