# What Replume checks

[View as human](https://replume.dev/docs/checks/)

What Replume runs, what it judges, and what it does not check yet in 0.2.17.

## Where checks run

Every check runs in an isolated copy, never in your working tree. The copy holds the files of the snapshot plus the files git ignores, such as a built `dist/` or a local config. Dependency folders are linked in.

Nothing installs in the copy. If dependencies are missing, the result is INCOMPLETE with the command for you to run. Building the copy has a 60 second limit by default (`REPLUME_COPY_LIMIT_SEC`).

`replume status` and `replume init --check` print what will run in your repository.

## What Replume runs

- **Your test command**, on the code from the task start and on the final code. New failures compared with the task start are FAIL, and the report names the tests.
- **Your test runner on each test file the agent changed**, on both versions (node --test, jest, vitest or pytest). This shows whether the test failed before the change and passes after it.
- **Scenarios**, if your contract names any.
- **A runtime check**, only if you turn on `auto.runtime`. It runs the committed program in Docker as a user would.

A test that passes on a second try is marked flaky, and the result is INCOMPLETE, not FAIL. The same goes for a timeout, a result that depends on your machine, a test plugin that cannot load, and a missing git-ignored file.

## How Replume treats your tests {#your-tests}

Replume judges the agent's changes to tests, snapshots and test configs by their content, compared with the task start.

FAIL when a check was taken away from an existing test:

- a test or an assertion was removed;
- a skip, xfail or deselection was added;
- a check was made weaker, or success was forced, for example a real assertion replaced by `assert.ok(true)`. This is FAIL in default and strict mode;
- code behaves differently under test.

Not a problem by itself:

- new tests the agent writes, including new skips, new `parametrize` cases and new snapshots;
- normal test setup, such as fixtures that yield a `patch()` result or helpers that return a mock.

An expected value or a snapshot that changed in the area the task asked to change is listed under "Expected values changed: ... needs human approval". Default mode keeps the verdict. Strict mode makes it INCOMPLETE `[EXPECTATION_CHANGED]`.

## Protected paths and Replume's own files

A write to a path you list under `protect:` in `.replume/config` is blocked in every mode. So is a write into `.replume/`, a destructive command, access to key files, and a write outside the repository.

## Refactors: moves, renames, deletions {#refactors}

A moved or renamed test is judged by its content. A deletion the task asked for is fine. A task that asked for a deletion that did not happen is flagged.

## Claims against evidence

Replume reads the agent's final message. A claim of "done" that the checks do not support is flagged. A final message that says part of the task is not done ends INCOMPLETE `[AGENT_UNFINISHED]`.

## Scope

Scope follows the paths the task names. A file the task did not ask for is listed as beyond the request. A new test next to the code it covers is in scope.

## What Replume doesn't check yet {#not-yet}

These are known gaps in 0.2.17:

- **A wrong value when the tests still pass.** If the agent changes the code wrongly and changes the test's expected value to match, the tests pass and nothing was removed. Default mode reports PASS with an "Expected values changed ... needs human approval" line. It does not say the new value is wrong. Strict mode reports INCOMPLETE `[EXPECTATION_CHANGED]`.
- **A regenerated snapshot that matches wrong code.** If the agent regenerates snapshots after a wrong change, every entry keeps its name and only values change. Default mode reports PASS with a line that names the snapshot file and how many entries changed. Strict mode reports INCOMPLETE.
- **A skipped step.** If the agent leaves out part of the task and no test covers that part, the tests can still pass. Replume reads the agent's final message, but it cannot always tell that a step was skipped.
- **An incomplete run.** If the agent stops early, or its tool never sends the Stop event, there may be no end check. Then there is no session report, or it says what was not seen. Check the commit with `replume verify --task`.
- **Multi-line asserts.** An assertion written over several lines can be misread, which can raise a false `[TEST_WEAKENED]`. If you see one on a change you trust, read the test and use `replume mark-false`.
- **Steps outside the hooks.** Replume sees only the steps that reach the installed hooks. A manual edit, or a step from a tool without hooks, is not observed. The report says what was observed.
- **Whether the change does what you meant.** Replume checks the change against tests, rules and the task text. Read the diff before you merge.

