Reference
Results and refusals
What each field of a bay result means, and what to do after each refusal.
Through a pipe, or with --json, every bay command prints one bay.result/1 JSON document on stdout. Its decision says what happened. When bay refuses, reason names a fixed code and allowed lists what you can still do. retry_when says what must happen before a retry can succeed.
The result document
A program, or --json, gets one bay.result/1 document on stdout, except for plain help, --version and usage errors. At a terminal without --json, a person sees the plain sentence instead of the document. A consumer refuses a major schema version that it does not know.
{
"schema": "bay.result/1",
"op_id": "c7k2m4qa.1",
"decision": "blocked",
"reason": "INPUT_CHANGED",
"say": "Nothing was added: something this change relies on was updated (contract:api.orders.schema). Read the new version, adjust, then save again.",
"change": "c7k2m4qa",
"detail": {
"input": "contract:api.orders.schema",
"observed": "v17",
"required": "v18"
},
"allowed": ["read", "refresh", "repair"],
"retry_when": "after_fix",
"next_step": "Read the new version `detail` names, run `bay start <change>`, adjust the view, then `bay merge` again.",
"receipt": "r-q4n8x2",
"freshness": {"main": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678", "fetched_at": "2026-10-17T19:30:02Z"}
}| Field | Meaning |
|---|---|
schema | Always bay.result/1. |
op_id | The operation id. |
decision | merged, queued, blocked, failed or ok. |
reason | A fixed reason code. Every blocked result has one, and a queued or failed result can have one. |
say | One plain sentence for a person who does not know Git: what happened and the next step. Every result has one. |
change | The change id. |
candidate | The candidate id, when a candidate exists. |
state | The state of the operation, such as submitted, running, superseded or no_effect. |
waiting_for | What a queued operation waits for, such as runner, runner_capacity, remote, queue, hold or dependencies. worker means no live runner serves every environment its checks need. |
elapsed_s | Seconds since the operation's request, while it is under way. bay status gives it for each operation. |
evidence | The ids of the evidence records on the operation's candidates so far. |
detail | Facts for this reason, such as the input and its observed and required versions. A merge and a check refusal add trust: signed with a registry, approvals under [policy] signing = "approvals", else unsigned. |
allowed | What you can still do, in four words: read, refresh, repair or wait. For read, read what detail names. For refresh, run bay start <change>. For repair, repair in the view, then run bay merge. An empty list means bay acts on its own. |
retry_when | What must happen before a retry can succeed: one of seven values, listed under When a retry can succeed. |
next_step | On every refusal: the one step to take next, in bay's words. |
receipt | The id of the failure receipt. It records the step, the reason and the recovery. |
freshness | The main commit the result reflects, and when this command fetched it. Commands that read main carry it, such as start, merge, save, undo, status and queue. Without a fetch, fetched_at says it read the local cache. |
When a retry can succeed
Every refusal names one of seven retry_when values. Each value says what kind of thing must happen first. next_step names the exact step.
| `retry_when` | Before a retry can succeed |
|---|---|
by_itself | Nothing from you: bay retries on its own. |
after_wait | Another change, session or holder finishes first. |
after_fix | You repair the change, then submit it again. |
after_person | A person approves the change or lifts a hold. |
after_setup | Something on the machine changes: an install, a key, the config, an update or the network. |
after_new_main | Main changes first, for example a repair that turns it green. |
never | No retry can succeed. |
The plain sentence
Every result carries say, plain words for a person new to Git: what happened first, then why, then one step. Its words never include, in any form, a word that bay help --json lists under detail.words. A name it quotes from detail, such as a path or a check, stays as it is. In a failed result, a quoted path holding one of those words reads "bay's records".
bay builds it from decision, reason and a few detail fields, so it adds no new fact. At a terminal, bay prints it, the change id, and a hint to add --json. Through a pipe without --json, the text on stderr starts with it.
{"schema": "bay.result/1", "decision": "blocked", "reason": "CHANGE_TOO_LARGE",
"say": "Nothing was saved: this change is too big (assets/intro.mp4 is 48.0 MiB, over 10 MiB). Keep large files elsewhere, such as a shared drive."}Words a person never sees
The plain sentence says the word in the second column instead of the word in the first. This table comes from detail.words, the one list bay's own check uses.
| bay never says | It says instead | What it means |
|---|---|---|
branch | copy | A separate line of the project's history. bay keeps each change apart, so you never make one. |
commit | saved version | One saved state of the files, kept in the project's history. |
merge | combine | Adding a checked change to main, together with the work already there. |
trunk | main | The one version of the project that everyone's work is added to. |
rebase | update | Bringing a change up to date with main, so it starts from main's newest files. |
ref | name | What bay calls one of the records it keeps in the project's history. |
view | folder | The folder bay makes for one change, holding only the files it works on. |
Ids
- A change id is lower-case base32, for example
c7k2m4qa. - An operation id is the change id and a number, for example
c7k2m4qa.1. - A candidate id adds the attempt, for example
c7k2m4qa.1.2. - An evidence id is the producer and an id, for example
ci-linux/ev901.
A queued merge
bay merge exits 0 when bay accepts the operation. decision queued then says that the merge has not happened yet. Only merged says it has.
state says where the operation is. waiting_for says what it waits for, and elapsed_s counts seconds since the request. evidence lists the evidence records the operation has so far. Behind the head of the queue, bay status may show operation.conflict: repair those paths now.
{"schema": "bay.result/1", "op_id": "c7k2m4qa.1", "decision": "queued", "state": "submitted",
"say": "Saved. bay checks it and adds it to main next.",
"change": "c7k2m4qa", "waiting_for": "runner", "elapsed_s": 0, "evidence": [],
"freshness": {"main": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678", "fetched_at": "2026-10-17T19:30:02Z"}}Read the contract from bay
bay help --json lists every command, flag, decision and reason code of the bay you run. Each reason code carries its allowed actions, when a retry can work, and whether it is transient. It also carries the JSON Schemas of bay.result/1 and bay.queue/1, and the bay.talk/1 format under talk. It lists each agent product's hooks, and the word list under words. The bay repository keeps the same schema at schemas/bay.result.schema.json. bay reads all of it from its own program, so it always matches the version you run.
bay help --json | jq '.detail.reasons[] | select(.code == "INPUT_CHANGED")'Reason codes
Each refusal carries one code from a fixed table. A retry with no change in the cause gets the same code and does no work. Three codes are transient: MAIN_MOVED, CHECK_UNAVAILABLE and HOOK_TIMEOUT. bay retries those within a bound. Each next step below is bay's own next_step, the text bay help --json lists for that code.
| Code | Meaning | What to do next |
|---|---|---|
INPUT_CHANGED | A declared input has a newer required version. Or main changed a lockable file after this copy was taken, so bay grants no lock on it, and detail.main_commit names that commit. | Read the new version detail names, run bay start <change>, adjust the view, then bay merge again. |
INPUT_UNOBSERVED | You have not read the new version of an input yet. | Read the required version detail names, then run bay start <change> and bay merge again. |
MERGE_CONFLICT | The draft does not merge onto main. detail lists the conflicting paths. A merge Git cannot read is a failed fault, never this code. While the change waits in the queue, bay status can show it early under operation.conflict. bay merge refuses it before the change queues. | Run bay start <change>, resolve the listed paths in the view, then bay merge again. |
UNDOES_MERGED | The change would put back a file as it was before another change merged after this change started. A write from an older copy does this. bay merge refuses it before the change queues, and a runner checks again at its turn. detail.change names that change, and detail.paths the files. detail.also names each other change and file it found. Only an exact reversal is refused: reworked lines merge. bay status <change> keeps them in operation.undoes. | Run bay start <change>, keep the work detail.change merged in detail.paths, then bay merge again; to undo it on purpose, use bay undo. |
MAIN_MOVED | Main moved during the merge. | Do nothing: bay retries once more, then queues the change. bay merge --wait shows the outcome. |
MERGE_RETRY_EXHAUSTED | Four uncounted retries ran out. Each followed HOOK_TIMEOUT, a remote ref lock, a deadline release mid-push, or a host refusal while main stood still. | Read the cause in detail and tell the user; once it is fixed, bay merge again. |
REGISTRY_UNREADABLE | The key registry breaks a rule, such as a removed key enrolled again, so bay cannot judge anything signed. bay doctor names the broken line in its signing row. | Tell the user the key registry breaks a rule (detail); a registry key repairs it, for a re-enrolled removed key with bay enrol --remove. |
REGISTRY_CHANGED | The key of the merging runner was revoked after it signed the candidate. | Do nothing: a runner with a valid key signs it again. bay status <change> shows the outcome. |
CHECK_FLAKY | One tree has both a pass and a product_failure for one check, and its [[check]] does not set allow_flaky. detail.checks lists every run. | Tell the user the check gives two answers for one tree; once it is fixed, bay merge again. Never quarantine it yourself. |
CHANGE_NOT_MERGED | bay undo, bay start --fixes or bay talk --to-change names a change that is not on main. | Wait until the named change merges; bay status <change> shows its state. Then run the command again. |
TALK_REFUSED | bay will not send the talk, and detail.why says why. The talk misses a field or has one of the wrong shape, or reuses an id with a different body. It repeats a closed talk, or supersedes a talk only its sender or decides agent may supersede. It is a second, different answer without --supersedes. Its sender is no agent, or a reviewer without a review record on that change. Or too many talks are open to this recipient. Or it names an agent show, round, answer or backbrief, the words of bay talk's own options. | Read detail.why, correct or supersede the talk as it says, then bay talk again. |
HOOK_TIMEOUT | The main hook on the host ran past its time bound and refused the push. | Do nothing: bay retries after a short wait. If it keeps happening, run bay doctor and tell the user. |
QUEUED | The operation waits its turn in the queue, and waiting_for says queue. detail gives its position, its seq and the head operation. head_holder names the runner that holds that head, so you can tell a moving line from a stuck one. On a host from bay host, the host also refuses a push that would pass the head with it. | Keep working: the change waits its turn in the queue. bay merge <change> --wait=3600 as a background task tells you the outcome. |
QUEUE_DEADLINE_EXCEEDED | The progress deadline of the head released this operation three times. | Read detail, shrink or split the change in the view, then bay merge again; or ask the user to raise the budget. |
POLICY_MISSING | The base has no .bay/policy.toml, so bay does not know which checks a merge needs. A policy bay cannot read is a failed fault that names the file, never this code. | Tell the user main has no .bay/policy.toml, so nothing can merge; set it up only if they ask. |
POLICY_INVALID | The candidate's own policy breaks a rule, or main never had a valid one. While main's newest policy is invalid, bay judges by the last valid one and names it in detail.policy_used. An example is no required check with expected_minimum above zero. An unknown key is named with its table and line. A refused policy edit wakes its session with the next step. | Tell the user a rules file in .bay/ is invalid, as detail says; repair it in a new revision. |
CHECK_FAILED | A required check failed on the candidate. The sentence names the failed unit and quotes its failing line, never a passing one. detail.checks names each failed check. A failed check ends the run, so each check after it is not_run there. A check marked waivable can take an approver's waiver instead, and bay waiting lists it. detail.checks[].runs_as_main lists the check's own files the change edits: the check ran as main has them, so merge that edit on its own first. A change that failed the same units, for the same reasons, on two mains is not checked on a third, when each failing unit names a file it changes. detail.fails_as_before names those units, and a new revision is checked. Its reasons give each failed unit's reason, when the check sent one. With baseline = "base", reasons names only new failures, and baseline_failures the pre-existing ones. | Read the failing check in detail, repair the change in the view, then bay merge again. |
CHECK_UNAVAILABLE | No machine serves the check's environment, or the check answered unavailable. bay status <change> names the operation.environments it waits for, and operation.served_together says whether one live runner serves them all. | Wait: a runner whose machine serves every environment it needs takes it. If bay status <change> says no live runner does, tell the user. |
CHECK_UNKNOWN | A check crashed, timed out, or collected nothing. A unit reason over 2 KB also makes the run infra_failure. bay never cuts it. When the check recorded a reason, say names the check and that reason. bay status shows it as the receipt's why. A blocked change names the machine the check ran on in detail.checked_on, and say names it too. | A runner asks again once main moves, up to three times; it is never a pass. If it stays unknown, repair it, then bay merge. |
POLICY_CHANGED | The acceptance policy changed after bay checked the candidate. | Run bay start <change>, then bay merge again: the change is checked under the current policy. |
VIEW_INCOMPLETE | The view is not ready: an earlier step was cut short. | Run bay start <change>; copy back any files detail.unsaved_kept names, then bay merge. |
MERGE_OUTCOME_UNKNOWN | The push failed, and bay then could not read main. Whether the merge happened is unknown. | Never report it merged; with detail.reopens_in_s, run bay merge <change> again after that many seconds, else wait for bay's next pass. |
CHANGE_ALREADY_MERGED | This change already merged with a different revision, ended no_effect, or bay start named a change already on main. A later bay merge of the change that still waits when an earlier one merges ends with it too. The refusal changes nothing. When main holds the change and its record is still live, an idle runner pass ends it as landed. bay then writes the operation of the revision that merged, if there is one. | Do not retry: the change already merged. bay merge in its view sends later edits as the next change; bay start <intent> opens new work. |
CHANGE_SUPERSEDED | Another change holds or delivered this intent. Or bay start <change> names an ended change whose intent has a newer change, named in detail.superseded_by. Or, with bay merge --wait, another process on this machine ended this change's operation, with detail.merged false. Or bay start <change> --adopt names a change whose actor still works on it. Or a start by intent names an intent whose change, held by another actor, waits in the queue. detail.held_by names that actor, and bay start <change> --adopt takes the change over. | Read the change that took over in detail; work in it, or bay start again once it merges or is abandoned. |
ABANDON_REFUSED | An actor that does not own the change sent an abandon request. detail.owner names its owner, and detail.you names you. | Ask the change's owner (detail.owner) to abandon it; if that owner is gone, run bay start <change> --adopt first, then abandon it. |
TOOL_BELOW_FLOOR | A tool is older than bay needs, and detail.tool names it: git, claude or codex. For git, Git is below the floor for the machine's role: bay host needs 2.54, bay runner run 2.50, and an agent's machine 2.40. For claude or codex, the product is older than its floor, 2.1.302 or 0.153.2. bay doctor turns the matching row red with it. | Update the tool detail.tool names to detail.floor, or remove its [agent] product, then run the command again. |
CONFIG_MISSING | bay cannot tell main, or main has no .bay/config.toml. It names where it looked. A clone whose copy of main names a commit it lost is damaged instead: bay fails and names that ref and commit. | Tell the user bay is not set up here; commit .bay/config.toml to main only if they ask. |
COVERAGE_UNKNOWN | Coordination data is out of reach. Only isolated work can go on. | Keep editing; bay merge again once coordination data is reachable. |
REMOTE_NOT_FETCHED | bay status --all has no fetch of the configured remote. | Run bay status, which fetches main and the fleet's records, then bay status --all again; if bay status fails, bay doctor names why. |
CHANGE_HELD | Another live session with your actor name holds this change, so bay start does not adopt it. detail names that session and machine. | Another live session holds this change: wait until it ends, or work on another change. bay status --all shows the holder. |
VIEW_NOT_YOURS | Another actor made this view, or holds this change. bay merge, bay save and bay start <change> refuse it. The hook refuses an edit or a git commit there. detail.view_actor names that actor, and detail.actor names you. | Work in a view of your own; to take this one over from its actor, run bay start <change> --adopt. |
ACTOR_UNNAMED | The policy sets [agent] require_actor = true, and your actor name came from a default, not BAY_ACTOR. | Set BAY_ACTOR to your actor name, then run the command again. |
ACTOR_UNPROVEN | The policy sets [agent] require_actor_proof = true, and the agent key cannot show which agent signs. Several agents share this OS account and can read its file key, or bay cannot judge the key. detail names actor_proof and the actors. | Tell the user policy needs proof of the actor: a hardware agent key, or one OS account per actor. |
HOOK_INPUT_INVALID | The tool.before hook could not read the agent product's payload, so it denied the tool call. Or a tool call reached bay hook under a moment name bay does not know, or a tool.before call under another moment's name. detail.why says which, and detail.misnamed is true for a wrong name. | Read detail.why: a hook entry under a wrong name needs bay install; a payload this bay cannot read needs bay update. |
SHELL_DENIED | The tool.before hook denied a shell command on bay's deny list, such as git reset --hard or a force push. The agent reads the code, why, and the next step on stderr. | Do not run that command again; it is never allowed. Ask the user if the work truly needs it. |
ASSET_MISSING | The change adds lines to .bay-assets whose bytes the assets store does not hold, asked with exists. detail.paths names them, or detail.why says why the plugin could not answer. bay found it at the candidate build, before any check ran. | Save the files detail.paths names again, so the store holds their bytes (or fix the store detail.why names), then bay merge again. |
LOCK_NOT_HELD | The change edits a file main marks lockable, and it does not hold that file's lock: it never took it, or another session holds it now. detail.paths names the files. bay found it at the candidate build, before any check ran. | Edit the files detail.paths names again in a session whose hook takes their lock, then bay merge again. |
PATH_HELD | Another live session in this same tree holds the path you tried to write. Other views never meet that hold. Or another session, on any machine, holds the lock of a path main marks lockable. The refusal names the holder. | Another session holds the path: wait until it stops, or edit other paths. |
PATH_NOT_WRITABLE | An [[access]] rule of .bay/policy.toml lets only its writers change a path of the change, and you are none of them. detail names the path, the rule, its writers and the actor. Leave that path out of the change, or ask a writer to make the edit with bay talk. Never change the rule to let yourself in. | Leave detail.path out of the change, or ask one of detail.writers to make that edit. |
OUTSIDE_MERGE | bay talk --to-change names a main commit that no runner signed as a bay merge, so bay has no record of its agent. | Do not retry: that commit did not merge through bay, so it names no author bay knows. Ask whoever made it. |
EVIDENCE_WITHDRAWN | A bay-hosted main branch refused a push of evidence notes that drops or changes an earlier record. | Do not retry: an evidence record is never removed or changed. Push notes that keep every record. |
PROMOTION_REFUSED | A host from bay host refused a push that moves a promotion target to a commit that breaks its rule, or deletes the target. The message names each broken rule. | Push the commit bay status names promotable for that target, or wait until one is. |
LANE_LEAK | The history of a change outside any lane reaches lane commits that are not on main. detail.leaks names the lane refs and commits. | Take the lane commits out with bay start <change> --from <branch>, or start a lane change: bay start <intent> --lane <lane>. |
APPROVAL_PENDING | Every other check passed, and an approval check on these paths has no yes yet. detail.approval names who can approve and the candidate commit. A check's set_aside names an earlier approval whose files changed. | Tell the user who can approve (detail.approval); the approver runs bay approve <change>. Then the runner merges it, or bay merge --wait. |
WIP_LIMIT | From bay start: the policy sets [agent] max_live_changes, and you hold that many live changes, named in detail.live_changes. From bay merge: [limits] max_waiting_approvals changes already wait for a yes, named in detail.review. | Merge or abandon one of the changes detail names (live_changes, or review.oldest), then run the command again. |
DISK_LOW | This machine has less free space than its bay.minFreeMiB floor, so bay start made nothing. The floor is 5 GiB unless that key sets another, and 0 turns it off. Windows does not judge it. detail names free_mib, floor_mib, the path, and any released_views. | Tell the user to free disk space on this machine, or lower bay.minFreeMiB, then run the command again. |
BOX_BUSY | The runner's machine is at or above a load limit from its Git config, so its runner claims no operation. The limits are bay.checkStartLoad1, the one-minute load average, and bay.checkStartCpuSome, the CPU pressure in percent. bay judges them on Linux only. The operation stays queued, and detail names load1, cpu_some_avg10 and the limits. A bay merge --wait on that machine still runs its own merge. | Wait: a runner on another machine takes it, or this one once its load is below detail.limits. Nothing to do. |
EXPEDITE_REFUSED | bay merge --expedite could not put the change next, so the change waits its turn in line, queued. detail.expedite.refused says why: off when main's config has no [expedite], live when another expedite waits, or spent when the UTC day's per_day is used. resets_at says when the day ends. Do not ask again for it. | Wait: the change is in line as a plain arrival; detail.expedite.refused says why it could not go next. Do not ask again for it. |
MAIN_HELD | Main is held, and this change carries no Fixes: or Reverts:. A [[hold]] of main or the hold plugin holds it, or none of the last 50 versions of main's config loads. While only main's newest config fails to load, bay judges by the last valid one and names it in detail.config_used. The operation stays queued, and detail.hold names the hold. | Wait: the change stays queued and merges once the hold clears; bay status shows the hold. Only fixes and reverts merge now. |
PATHS_UNDECLARED | bay start --from names a branch that changes paths --paths does not declare. bay creates nothing. detail.uncovered names those paths. | Run bay start <intent> --from <branch> again, with --paths covering every path in detail.uncovered. |
BRANCH_DIVERGED | bay start --from names a local branch rebased here, so it and the remote's branch of that name differ. detail.local and detail.remote name both commits. bay creates nothing. | Run bay start again with --from <commit>: detail.local takes this repository's branch, detail.remote the remote's. Or push yours first. |
DEPENDENCY_PENDING | The change was started with --after, and a change it names has not merged yet. The operation stays queued and holds no queue place. detail.pending names each one. | Wait: it merges once each --after change merges. One with submitted: false (in detail.pending, or its status's operation.after) needs bay merge. |
DEPENDENCY_ABANDONED | A change named by --after was abandoned or superseded. detail.ended names it. This change can never merge as it is. A named change that ends no_effect counts as merged. | Run bay abandon, then bay start <intent> --new without that --after; or restart the dropped change. |
CHANGE_TOO_LARGE | The change is over a [limits] cap of the policy at its base. detail.exceeded names each cap, its max, the value and the largest paths. bay refuses it when you submit, or at the candidate build, before any check runs. | Keep large files elsewhere or split the change, then bay merge again. Never raise the limits to get it through. |
Main changed your files
Sometimes main changed a change's own files after the change started, for example when another change moved them. bay merge then names them first, in detail.main_changed. Its paths lists those files, and its commit names main's newest commit that changed them. The candidate is still checked on the merged result, so this refuses nothing. Read that commit first when a check fails.
Work already on main
Sometimes the merged candidate has the same tree as main. Another change merged the same bytes, or the change's edits cancel out. Then bay merges nothing and runs no check. The result is ok with state no_effect, and exits 0. detail.main_commit names the main commit that already holds the work. Another agent can adopt that change at once, as after an abandon.
{"schema": "bay.result/1", "op_id": "c7k2m4qa.1", "decision": "ok", "state": "no_effect",
"say": "Nothing new to add; main already has these edits.", "change": "c7k2m4qa",
"detail": {"main_commit": "a1b2c3d", "tree": "9f8e7d6"}, "freshness": {"main": "a1b2c3d4e5f60718293a4b5c6d7e8f9012345678", "fetched_at": "2026-10-17T19:30:02Z"}}Open talks on a change
bay merge and bay undo can carry detail.open_talks: open talks to you about that change. Talk to other agents explains its rows.
Merges outside bay
bay status, the fleet map and bay status --since name main commits that did not merge through bay. See what your fleet does explains each field. An outside_merge event names the commit, its merged_as and its subject. Its id names the commit, so one merge is always one event.
Refusals after the agent left
Some refusals arrive after the agent has left. The runner writes each one as a refused event for the actor of the change. While the session that holds the change is live, only that session hears it. Otherwise the agent hook delivers it to an idle session or the next session of that actor. A session hears no refusal or failed check whose change has merged since.
With a [plugin.wake] command, the runner also wakes the author's session once. Talk to other agents explains it.
Doctor codes
bay doctor uses its own codes. reason names the first red row. The store row advises on the object store and its commit-graph, and never turns doctor red. The hook-overrides row lists other tools' hooks for bay's events under added. Those hooks run beside bay's, so they never turn the row red. On a bare repository, the ref-format row is degraded on the files ref format.
| Code | Meaning | What to do next |
|---|---|---|
TOOL_ABSENT | [agent] product names an agent product that is not installed here. detail.tool names it: claude or codex. | Tell the user to install the tool detail.tool names, or remove its [agent] product, then run bay doctor again. |
REMOTE_UNREACHABLE | The remote did not answer with the key of this machine, or no remote is set. Or, before an edit of a path main marks lockable, the remote did not answer, so bay cannot tell who holds its lock. | Check the network and this machine's key for the remote, then run bay doctor again. |
UPSTREAM_BEHIND | bay doctor on an origin in mirror mode: the hosted main lags the origin's main past bay.lagRedS, or holds a commit that the origin's main does not. Merges still go on. Do what the origin row's recovery says, then run bay doctor again. | Tell the user to do what the origin row's recovery says, then run bay doctor again. |
HOOKS_MISSING | A hook entry that bay needs is absent from the project agent settings. When main tracks that file, the row's recovery names merging the change that adds the entries. Or .claude/settings.local.json or the user settings file sets disableAllHooks or allowManagedHooksOnly, or cannot be read. On a host, the main hook is missing. On an origin, its post-receive hook is missing. Or no agent hook is set, and main holds merges that went around bay: detail.guard.around_bay counts them. | Do what the hooks row's recovery says: merge the tracked settings file, or run bay install. |
SKILL_MISMATCH | The bay skill is missing or does not match this bay version, and doctor names the file that differs. It lives in ~/.claude/skills/bay/, or under $CLAUDE_CONFIG_DIR. | Run bay install to copy this version's skill, then bay doctor again. |
SANDBOX_ABSENT | This machine runs checks, and it has no check sandbox. | Tell the user to install the sandbox detail names, or set the runner's sandbox to none. |
CHECK_ENV_UNSET | With --role runner, a check in the policy names an environment variable that is not set here. | Tell the user to set the variables detail names for the runner, then run bay doctor --role runner again. |
CHECK_READ_PATH_REFUSED | On a machine that runs checks, a bay.checkReadPath value refuses every check: it is not absolute, or it holds or lies in a path a check never reads. The check-read-paths row names it, and its recovery says what to change. bay status gives this reason too. | Tell the user to do what the check-read-paths row's recovery says, then run bay doctor --role runner again. |
RUNNER_KEY_MISSING | With --role runner and a registry, the runner's runner or producer key is not set or not enrolled. An unreadable registry also returns it. | Tell the user to set and enroll the runner's runner and producer keys, then run bay doctor --role runner again. |
PRODUCER_SHARED | With --role runner, a live runner under another name uses this runner's bay.producerName, and the runner-keys row lists it under shared_with. bay runner run refuses with it too, before its first pass, so it claims nothing. | Tell the user to give this runner its own bay.producerName, or stop the runner detail names, then start it again. |
KEY_EXPOSED | A signing key file, or a token beside it, is readable by the account that runs agent sessions. | Tell the user to move the key detail names onto hardware, or out of the account agent sessions run as. |