Skip to content

Refusal codes

Every reason code the pre-tool hook can refuse with, and the landing refusals of compass ship-commit and compass quick-fix finish (checkpoint-no-outcome, release-line-missing and release-line-heading, which docs/release-line.md describes, and definition-of-done-open, which only compass ship-commit gives), the refusal of compass tdd-red before the scenario sign-off (scenarios-not-approved), the refusal of compass check when a setting or an open waiver names a deleted check (names-deleted-check), and the project refusals of compass migrate (governance-copy-removed and git-parent-removed), generated from cli/compass_pkg/refusals.py by compass _refusal --list. Do not hand-edit the list below - regenerate it after any change to the registry, and tests/test_refusal_registry.py fails the build if it is out of date.

A refusal always has three lines - Blocked:, Why:, Fix: - and ends with its code in brackets, e.g. [no-red-on-record]. Search this page for the code of a refusal you get.

Each Fix: line names a command the CLI accepts as written, with only its placeholders to fill, or says what clears the refusal when no command can. tests/test_refusal_fix_commands.py parses each named command with the CLI's own parser. The code that refuses fills a placeholder in braces, such as {slug}; the reader fills one in angle brackets, such as <slug>. A filled value is cut to 20 words, to 12 for definition-of-done-open, whose fix line is long, and to 16 for names-deleted-check, which lists each item.

When /compass:approve cannot name an approver

/compass:approve, /compass:reject, /compass:delegate and /compass:revoke need a person's name. They take it from COMPASS_APPROVER when Claude Code starts, else from owner: in compass.yml. When neither names one, the message names the cause. These seven messages are written by cli/compass_pkg/prompt_approval.py, not by the registry, so they have no reason code and are not in the generated list.

Cause Message
compass.yml cannot be read, or has a settings lint error compass.yml cannot be read: {the loader's reason, or the first lint error}. Fix that file, or set COMPASS_APPROVER before starting Claude Code.
owner is not text owner in compass.yml is {a number, a boolean, a list or a mapping}, not text. Quote it, for example owner: "123", or set COMPASS_APPROVER.
owner is set only in .compass/config.yml owner is set only in .compass/config.yml. Add owner: <your id> to compass.yml, or set COMPASS_APPROVER.
compass.yml is above the project root compass.yml is in {the folder where it is}, but .compass is in {the project root}. Copy it there, or set COMPASS_APPROVER.
a git worktree has no compass.yml {the project root} is a git worktree with no compass.yml. Copy compass.yml into it, or set COMPASS_APPROVER.
there is no compass.yml There is no compass.yml in {the project root}. Add one with owner: <your id>, or set COMPASS_APPROVER.
compass.yml has no owner No approver can be named. Add owner: <your id> to compass.yml, or set COMPASS_APPROVER.

approval-request-protected

Blocked: {target} (tool: {tool}) Why: an approval binds to the request a person was shown. Fix: do not read, change or run these files. Ask with compass evidence request --checkpoint ; the person answers with /compass:approve.

bad-current-task

Blocked: this edit Why: '.compass/current-task' names '{slug}', which is not one path segment - a slug names a directory directly under .compass/work/. Fix: run compass issue use with a real issue slug, then retry. To list the issues, run compass flow.

bad-session-issue

Blocked: this edit Why: no issue can be named for {project}: '{slug}' is not an issue under its .compass/work/. Fix: run compass issue use in that worktree, so its .compass/current-task names a real issue, then retry.

bad-session-issue-restart

Blocked: this edit Why: no issue can be named for {project}: '{slug}' is not an issue under its .compass/work/. Fix: restart the session with COMPASS_ISSUE naming an existing issue, or without it. A running session cannot change it, and compass issue use does not override it. A worktree has its own pointer.

bash-command-too-complex

Blocked: Bash command with {has} Why: the write guard cannot scan a command with {over} in time. Fix: split the command into smaller steps, or write the file with the Write tool.

bash-command-too-long

Blocked: Bash command of {size} bytes Why: the write guard refuses a command over {limit} bytes because it cannot scan one in time. Fix: write the file with the Write tool, or split the command into smaller steps. For a long commit message, use git commit -F with a file you wrote.

checkpoint-no-outcome

Blocked: landing of issue '{slug}' Why: {stages} {is} listed in checkpoints with no outcome recorded, so nothing shows a person answered {it}. Fix: for each stage named, run compass evidence request --checkpoint {stage} --issue {slug} and stop; the person answers with /compass:approve. Then ship again.

code-before-approval

Blocked: edit to {target} (tool: {tool}) Why: the scenarios of {slug} need a person's approval before code, and the specify checkpoint has no answer from a person. Fix: write the scenarios in the issue's acceptance-criteria.md, run compass evidence request --checkpoint specify and stop; the person answers with /compass:approve.

config-invalid

Blocked: edit to {target} (tool: {tool}) Why: '{file}' could not be read: {detail} Fix: fix {file} and retry.

definition-of-done-open

Blocked: landing of issue '{slug}' Why: the check dod-evidence-typed failed: {detail} Fix: for each open item, run compass follow-up add FU- --issue {slug} --defers --github --summary "", or compass evidence add EV- --issue {slug} --type --path --meets . Then ship again.

delegation-caller-mismatch

Blocked: delegated approval (--as {named}) Why: Claude Code reports this call as {caller}, and a delegated approval must name exactly the agent that makes it. A word the shell could build is refused too. Fix: run it as the named agent, with --as set to its full name, or ask with compass evidence request --checkpoint --issue .

delegation-protected

Blocked: {target} (tool: {tool}) Why: a delegation is a person's decision, and its folder holds the check for its confirmation code. Fix: do not read or write these files; the person types /compass:delegate or /compass:revoke.

git-parent-removed

Blocked: {verb} in this project Why: compass.yml extends the git parent {parent}, and Compass 9.0.0 removed git parents. Fix: move the checks the parent adds into compass.yml (signoff_labels, require_evidence, agent_review, project_checks), delete extends:, then run compass migrate again.

governance-copy-removed

Blocked: {verb} in this project Why: governance/ holds a copy of routing-policy.yml or guardrails.yml and there is no compass.yml. Compass 9.0.0 does not read copied governance. Fix: on Compass 8.x, run compass policy migrate to write compass.yml, then run compass migrate again. docs/upgrade-9-0-0.md lists the steps.

names-deleted-check

Blocked: compass check of issue {slug} Why: {named} - each names a check Compass no longer has. Fix: {fix}; then rerun compass check --issue {slug}.

no-acceptance-criteria

Blocked: edit to {target} (tool: {tool}) Why: the acceptance-before-code guardrail blocks this: define: thorough is set but manifest.yml has no scenarios. Fix: add the first scenario to acceptance-criteria.md with compass scenario add TRC-001 --issue {slug} --intent "", or run /compass:assess --reassess if this is exploratory.

no-delivery-approach

Blocked: this edit Why: issue '{slug}' has no delivery approach in its manifest - its assessment did not finish. Fix: run /compass:assess.

no-red-on-record

Blocked: edit to {target} (tool: {tool}, guarded by {guard}) Why: no failing test is recorded for issue '{slug}' in {project}. Fix: run compass tdd-red --scenario -- , or compass acceptance start --kind if none fits.

no-scenario

Blocked: edit to {target} (tool: {tool}) Why: the acceptance-before-code guardrail blocks this: the issue is on the four-stage path, which owes scenarios before code, and manifest.yml has none. Fix: add the first scenario with compass scenario add TRC-001 --issue {slug} --intent "", or run /compass:assess --reassess if this is exploratory.

not-initialized

Blocked: this edit Why: no issue has been assessed yet - {detail}. Fix: run /compass:assess before changing code, or /compass:quick-fix for a small, low-risk change.

pointer-moved

Blocked: this edit Why: another session moved .compass/current-task in this session's own project from this session's issue '{previous}' to '{slug}', so this edit would count against the wrong issue. Fix: in this session, run compass issue use {previous} to carry on, or compass issue use {slug} to switch, then retry.

pr-review-protected

Blocked: {target} (tool: {tool}) Why: an approving review of a pull request is a person's approval of the change, and the agent runs gh with that person's login. Fix: ask a person to review and approve the pull request; a comment review and a read of the reviews are allowed.

python-missing

Blocked: edit to {target} (tool: {tool}) Why: python3 was not found on the PATH, so Compass cannot check whether this edit is allowed. Fix: install python3 (3.10+) or put it on PATH, then retry.

reader-failed

Blocked: edit to {target} (tool: {tool}) Why: the {reader} could not run. {cause}{detail} Fix: fix the install and retry - this is not about your edit.

red-marker-no-record

Blocked: this edit Why: the .red marker for issue '{slug}' has no matching record in evidence/ - the marker alone is not evidence. Fix: run compass tdd-red --scenario -- .

red-unsigned

Blocked: this edit Why: the red record for issue '{slug}' carries no identity - no content_digest - and this project needs one for records written since records_signed_since: {since_date}. Fix: run compass tdd-red --scenario -- .

release-line-heading

Blocked: the release line of issue '{slug}' Why: it starts with #, so the release notes would print it as a heading. Fix: run {verb} again with --release-note "".

release-line-missing

Blocked: landing of issue '{slug}' Why: issue '{slug}' has no release line, and its approach owes one: a sentence for users that the release notes list. Fix: run {verb} again with --release-note "".

scenarios-not-approved

Blocked: red for issue '{slug}' Why: the scenarios of {slug} need a person's approval before code, and the specify checkpoint has no answer from a person. Fix: run compass evidence request --checkpoint specify --issue {slug} and stop; the person answers with /compass:approve. Then run the red again.

settings-conflict

Blocked: edit to {target} (tool: {tool}) Why: .compass/config.yml sets {keys}, but compass.yml is read, so those keys guard nothing. Fix: Move them into compass.yml (write mode as adoption) and delete them from .compass/config.yml, then retry.

transcript-protected

Blocked: {target} (tool: {tool}) Why: the transcript holds what Compass showed only to the person. Fix: use the project's files, or the Read, Grep, Edit or Write tool on the auto-memory folder; ask the person for the rest.

tree-not-tied

Blocked: this edit Why: {project} is not tied to the session's repository: it is not a worktree of it, or git cannot read it. Fix: edit a worktree of the session's repository, or start the session in {project}.

waits-for-issue

Blocked: edit to {target} (tool: {tool}) Why: issue '{slug}' waits for {dependency} to reach {until}{more}, and this checkout reads {dependency} as {state}. Fix: if {dependency} is finished in another checkout, bring its .compass/work/{dependency}/ folder here; or run compass issue depends remove {dependency}.

working-directory-gone

Blocked: edit to {target} (tool: {tool}) Why: the session's working directory was removed and CLAUDE_PROJECT_DIR is not set, so Compass cannot tell which project's issue judges this edit. Fix: restart the session from a folder that exists, then retry.