Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Current branch,
git branch --show-current - Working tree status (empty = clean),
git status --porcelain | head -20 - Changed files vs HEAD,
git diff --name-only HEAD
Variables
Arguments: $ARGUMENTS
The user config layer, rendered from this plugin's userConfig (empty or a literal
${user_config.…} token means unset; Phase 0 "Config" reads it):
operators:${user_config.operators}max_mutants:${user_config.max_mutants}
Argument parsing
- Scope (optional): a path limiting which changed files are considered. Default: every changed
file inside the configured mutate globs. Under --exercised it narrows the changed tests
considered, and it goes before the flag.
--exercised [<test-path>]: mutate the production code the changed tests call, judged
against those tests as one set (The exercised scope). The
scope runs only when this flag is passed. The token right after the flag is the test path when it
does not start with --, so --exercised --max 5 takes no test path. Mutually exclusive with
--full and --paths: refuse the combination and name both flags.
--full: mutate the whole configured scope instead of the diff. Expensive and rarely correct,
print the estimate line from Phase 1 step 5 and confirm before running.
--paths <globs>: mutate these paths regardless of the diff.--max <n>: cap generated mutants for this run, overridingmax-mutants.--no-suppress: include mutants that the arid-node record would otherwise suppress, marked as
suppressed. Read-only inspection of the suppression policy; it never edits the record.
--persist-findings: after reporting, also write the survivors as a findings file the
review:fanout fix action consumes (Phase 6). Off by default.
--record-mutants <file>: with--exercised, write the mutants this run applied and their
states to a record outside tracked space (Record and replay).
--replay-mutants <file>: with--exercised <test-path>and--record-mutants <after>,
apply exactly the recorded mutants and gate on lost kills (Record and replay).