When Replume intervenes
View as agent ↗When Replume refuses an agent step or sends the agent back, and what to do about it. This page describes 0.2.17.
In default mode
Replume proves, then reports. It refuses a step only in these cases:
- a write to a path you protect (
protect:in.replume/config); - a write into
.replume/; - a destructive command, access to key files, or a write outside the repository.
The hook message names the path and the reason. If the step was wrong, let the agent take another path. If you meant it, do the step yourself or change protect:.
Everything else is a note in the report, not a message to the agent. That includes test edits, files beyond the task, and a commit before the tests ran again.
In strict mode
With strict: true, Replume also blocks the agent's Stop and sends it back on high-confidence findings, at most auto.max_retries times. With strict: all, every finding goes to the agent. See Default and strict mode.
Test and runner edits
Auto lets test, snapshot and runner changes run and judges their content against the task start right after the step. A file beyond the task gets a "beyond the request" entry in the report. That alone does not cause FAIL. Approve mode keeps scope failures.
A change that weakens the test run, such as a removed assertion, an added skip or fewer collected tests, is FAIL [TEST_WEAKENED] in the report. Restore the test if the original is right. If the change is intended, confirm that exact content:
replume confirm-config pytest.iniIf your report gives a --sha, use the exact command from your report.
Earlier pre-edit refusal example
auto.block_test_edits: true brings back the refusal before the edit, in strict mode. The hook message then has this form, and it gives you the command to confirm the exact change:
[PROTECTED_TEST_EDIT] Replume: test/cart.test.js is an existing test, so this edit was not made.If the test is right, ask the agent to fix the source instead. In Claude Code, prefix a command with ! to run it yourself in the session.
Commit gate
With strict: all, a commit after a source edit but before the tests ran again is refused. The message asks the agent to run the test command first. In default mode and with strict: true, the same case is a note in the report.
When the report asks you to act
An agent that admits unfinished work gets [INCOMPLETE [AGENT_UNFINISHED]](https://replume.dev/docs/verdicts-and-codes/#agent-unfinished). Other common reasons:
- [
EXPECTATION_CHANGED](https://replume.dev/docs/verdicts-and-codes/#expectation-changed): an expected value changed. In strict mode this is INCOMPLETE until a person confirms it. - [
ASKED_DELETE_NOT_DONE](https://replume.dev/docs/verdicts-and-codes/#asked-delete-not-done): a file the task asked the agent to delete is still there. - [
SUITE_SHRANK](https://replume.dev/docs/verdicts-and-codes/#suite-shrank): fewer tests ran than at the task start. - [
CHANGE_NOT_CHECKED](https://replume.dev/docs/verdicts-and-codes/#change-not-checked): the checks could not establish the behavior of a changed file. - [
SPEC_TEST_CONFLICT](https://replume.dev/docs/verdicts-and-codes/#spec-test-conflict): the agent's final message says the task and a test disagree.
Read the code's entry for the next command. Then commit the intended fix and run replume verify.