Run build, test, and lint checks (stopping if broken), then confirm a feature, fix, or refactor matches its plan/intent and delivers the intended outcome. Use when 'verify changes', 'prove this works', 'is this done'. Not for mechanical-only checks: /toolchain:check; or measurable-improvement claims: /verification:measure.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Confirm?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/melodic-software-confirm)
---
description: "Run build, test, and lint checks (stopping if broken), then confirm a feature, fix, or refactor matches its plan/intent and delivers the intended outcome. Use when 'verify changes', 'prove this works', 'is this done'. Not for mechanical-only checks: /toolchain:check; or measurable-improvement claims: /verification:measure."
user-invocable: true
argument-hint: "[outcome|fix|refactor] [--unattended] [ecosystem|all]"
disable-model-invocation: false
effort: high
metadata:
workflow-stage: verify
summary: Prove the change achieved its intended outcome with evidence
---
# Confirm
**Arguments.** `[outcome|fix|refactor] [--unattended] [ecosystem|all]`. e.g., /verification:confirm, /verification:confirm outcome, /verification:confirm fix, /verification:confirm refactor, /verification:confirm dotnet <!-- portability-ok: R2/R6 vetted lockfile install allowlist and toolchain ecosystem filter -->
## 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](https://code.claude.com/docs/en/worktrees#how-claude-code-enforces-isolation)).
Keep any bound in the command's own pipe ([output limits](https://code.claude.com/docs/en/tools-reference#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](https://github.com/melodic-software/claude-code-plugins/blob/main/docs/conventions/gather-block/README.md#the-pre-compute-block-runs-as-one-shell-invocation)).
<!-- END GENERATED: gather-block -->
- Working tree status (empty = clean), `git status --porcelain`
- Changed files (vs HEAD), `git diff --name-only HEAD`
- Current branch, `git branch --show-current`
- Recent commits, `git log --oneline -5`
## Purpose
`/verification:confirm` answers **"did we build the right thing, and does it work?"**. It proves a change achieved its intended outcome. It is an **orchestrator**, not a reimplementation of the mechanical pass.
Two stages, in order:
| Stage | Question | Mechanism |
|-------|----------|-----------|
| 1. Mechanical **prerequisite** | "does it build, pass tests, satisfy linters?" | invoke `/toolchain:check` (if enabled) and `/toolchain:lint` (if enabled) cross-cutting via the Skill tool, then the architecture-test gate. **Stop the flow if it fails**. Can't verify broken code |
| 2. Outcome **verification** (the core) | "does the change match the plan/intent and function correctly?" | intent match + evidence + (runtime) `/testing:run-e2e` (if enabled) / live-app observe |
The mechanical pass is a *gate*, not the point. `/toolchain:check` (if enabled) owns build+test+lint; `/toolchain:lint` (if enabled) owns cross-cutting checks. This skill composes them, then does the verification they cannot: did the change accomplish its goal.
**Quick mechanical-only?** Use `/toolchain:check` (if enabled) (not `/verification:confirm`). **Lint-only?** `/toolchain:lint` (if enabled). **Tests-only?** `/toolchain:check <ecosystem>` (if enabled). Reach for `/verification:confirm` when you need outcome confirmation. Proof, not just a green build.
**What kind of proof this is.** This skill proves by tests and observed behavior, not by formal methods such as model checking or proof. A change whose correctness rests on concurrency or protocol invariants should say so in the report, because passing tests and a clean live drive do not establish those invariants.
## Arguments
`$ARGUMENTS`, optional mode and/or ecosystem filter.
**Modes** (each = an outcome criterion; Stage 1 runs first regardless):
| Mode | Outcome criterion |
|------|-------------------|
| (auto) | Detect change-type from conversation, then apply the matching criterion below |
| `outcome` | Feature / general: matches plan/design/discussion + functions (unit/integration) + (UI) looks correct (E2E + visual) |
| `fix` | Original bug symptom resolved + no regression |
| `refactor` | Behavior preserved. Same tests pass, no semantic change |
There is **no standalone "mechanical pass" mode**. That role belongs to `/toolchain:check` (if enabled). Stage 1 here is the prerequisite gate for every outcome criterion. Measurable-improvement claims (`performance` / `metrics` vs a captured baseline) are `/verification:measure`, not a mode here.
**Ecosystem filters** (combinable with any mode): any ecosystem id `/toolchain:check` (if enabled) covers, meaning one with a record under `docs/conventions/ecosystems/` (or the legacy `.claude/ecosystems/` file for a name absent there), one inferred this run from the repo's build files, or one with a bundled default, plus `all`. The bundled defaults it runs are `dotnet`, `python`, `typescript` (or `ts`/`node`), `bash` (or `shell`), `powershell` (or `ps`/`pwsh`), `markdown` (or `md`) and `go` (or `golang`); a record such as `docs/conventions/ecosystems/rust.yaml` makes `rust` a filter too. Stage 1 passes the filter through to `/toolchain:check` (if enabled), which resolves it. Without the `toolchain` plugin, accept any ecosystem the project's own commands name. If omitted, auto-detect from changed files. <!-- portability-ok: R2/R6 vetted lockfile install allowlist and toolchain ecosystem filter -->
## Mode dispatch
Parse `$ARGUMENTS` for a mode keyword first, then an ecosystem filter. `--unattended`, anywhere in the arguments, is
consumed before both: the caller declaring that nobody is present, which governs the `/verify`
offer under "Routing" and whether the `affected`, `/testing:run-e2e` (if enabled) and touched-feature refresh
calls in Stage 2 step 1 pass `--unattended`.
| Signal | Mode | Read |
|--------|------|------|
| `outcome`, "does this match intent", "prove this works", bare `/verification:confirm` with feature context | **outcome** | [context/outcome.md](context/outcome.md) |
| `fix`, "is this resolved", bug-fix context | **fix** | [context/fix.md](context/fix.md) |
| `refactor`, behavior preservation | **refactor** | [context/refactor.md](context/refactor.md) |
| `performance` / `metrics`, "before/after", "is it faster", "is it cleaner/simpler" | *redirect* | invoke `/verification:measure` via the Skill tool (measurable-delta twin) |
**Smart default (no mode argument)**. Detect from conversation:
- Bug-fix context → `fix`
- Refactor context → `refactor`
- Improvement claim (faster / simpler / cleaner / fewer deps) → redirect to `/verification:measure`
- Just finished implementation + review, or an approved plan exists → `outcome`
- Otherwise → `outcome` (the safe default. It subsumes intent match)
## Runtime-affecting paths
These categories decide when a change escalates beyond the per-ecosystem mechanical pass. When the consuming project documents its own runtime-affecting globs, those govern; otherwise match each category against the project's own files:
- **`e2e-app-runtime`**. API/app changes (endpoints, attributes, contracts, middleware): the project's app source directories
- **`e2e-ui-frontend`**. Components and static assets shipped to the browser: the project's frontend source and static-asset directories
- **`e2e-runtime-config`**. Runtime configuration (the app's settings files, orchestrator config, env-shaping files)
- **`arch-test-triggers`**. Project-structure / dependency changes (the project's build, project and dependency-manifest files). Re-run the project's architecture-test suite when it has one
## Proof level
One setting, `proof_level`, decides how much evidence Stage 2 needs before a `CONFIRMED` verdict:
`path` (the default), `live` or `strict`. The user's option is `${user_config.proof_level}`; a
literal, unexpanded placeholder means unset. The repository value is `proof_level` in
`docs/conventions/verification.yaml` as committed on origin's default branch. Resolve it once,
before Stage 2, by the steps in
[`${CLAUDE_PLUGIN_ROOT}/reference/config.md` § Resolution](${CLAUDE_PLUGIN_ROOT}/reference/config.md#resolution):
- The stricter valid layer wins (`path` < `live` < `strict`); neither layer can lower the other.
- The repository copy comes from the default branch through
`setup-apply.mjs --check --ref origin/<default>`, so a branch that edits its own copy is still
verified at the default branch's level; when the two copies differ, the report names both.
- An invalid value is named with its file or option, the key and the value, and that layer is
dropped: it counts as absent, so the other layer still applies, and with neither valid the key
resolves `path`. The run never stops on it.
- Resolution never asks the user. A layer that cannot be read (no `origin`, an unsafe branch name,
node missing, the root rule) is skipped with its reason, so a pipeline lane running this skill
unattended always gets a level.
Report one line before Stage 2 with the level and the layer that supplied it, for example
`proof_level: strict (docs/conventions/verification.yaml at origin/<default>, commit <sha>)` or
`proof_level: path (default)`.
## Live workers
A second setting, `live_workers`, decides how many workers share the live drive in Stage 2 step 1;
`proof_level` still decides whether a live drive is required at all. The user's option is
`${user_config.live_workers}`; a literal, unexpanded placeholder means unset. The repository value
is `live_workers` in `docs/conventions/verification.yaml`, read from origin's default branch by the
same `setup-apply.mjs --check --ref origin/<default>` call that reads `proof_level`. Resolve it once,
beside the proof level, by
[`${CLAUDE_PLUGIN_ROOT}/reference/config.md` § Resolving `live_workers`](${CLAUDE_PLUGIN_ROOT}/reference/config.md#resolving-live_workers):
- The later layer wins: the repository value over the user option over the default, `1`.
- A value in either layer that is not a whole number of at least 1 is named with its file or option,
the key and the value, and that layer is dropped: a valid higher layer still wins, otherwise `1`,
never a lower layer's value. The run never stops on it.
Report one line before Stage 2 with the count and the layer that supplied it, for example
`live_workers: 2 (docs/conventions/verification.yaml at origin/<default>, commit <sha>)` or
`live_workers: 1 (default)`.
## Stage 1. Mechanical prerequisite (delegate, don't reimplement)
The gate. Runs before any outcome criterion. **If it fails, stop**. Report the failures; outcome confirmation is meaningless on code that doesn't build or pass tests.
Stage 1 delegates by invoking the `toolchain` plugin's `/toolchain:check` (if enabled) and `/toolchain:lint` (if enabled) via the Skill tool; without that plugin, run the project's own ecosystem-native build / test / lint commands (from its `CLAUDE.md` / rules) directly, the gate and its stop-on-fail semantics are unchanged, only the executor differs, and the report names `claude plugin enable toolchain`, preceded by `claude plugin install toolchain` when it is not installed, as the way back to delegation. On that direct path, apply the counting rules of `/toolchain:check` (if enabled) yourself:
- A syntax-only command, or one that failed to start, is not a pass.
- When declared dependencies are missing, install them only in an attended run. An unattended run (this skill's `--unattended`, `CLAUDE_CODE_REMOTE` set, `claude -p`, an autonomous loop) installs nothing and reports `skip (dependencies missing: unattended run)`. In an attended run, install only from the lockfile with install scripts disabled, and only with `npm ci --ignore-scripts`, `uv sync --frozen --no-build --no-install-local` or `dotnet restore --locked-mode`, within the permission mode and never with `sudo`; any other package manager installs nothing and is a missing-dependency environment skip. The uv command builds nothing at install time: `--no-build` refuses third-party source builds and `--no-install-local` leaves out the project and its local packages, so a dependency with no wheel fails the install, which is also that skip (pointers: <https://docs.astral.sh/uv/reference/cli/#uv-sync--no-build>, <https://docs.astral.sh/uv/reference/cli/#uv-sync--no-install-local>). Never install a tool. If `git status --porcelain` or a hash of `git diff HEAD --binary` differs after the install, stop and report the changed paths. <!-- portability-ok: R2/R6 vetted lockfile install allowlist and toolchain ecosystem filter -->
- When an ecosystem record under `docs/conventions/ecosystems/` (or, for a name absent there, the legacy `.claude/ecosystems/`) declares `requires` for a command (or a gate its own `requires`), run each entry's `probe` before that command, after its tool is found on `PATH` and a single-condition `opt-in` is met (an unmet one skips the command without probing): one Bash call per probe with a 30-second timeout and `$REPO_ROOT` substituted, from the repository root, or from each location the command runs from when the entry sets `run-from: ecosystem`. Exit 0 means present; any other exit, a probe that cannot start and a timeout mean absent. With any entry absent, do not run the command: report `skip (prerequisite missing: <name>, <name>)` naming each absent entry, with each entry's `hint`, and go on to the next command. Under `run-from: ecosystem`, the command still runs at the locations where every probe passed. Never install a declared prerequisite or run its `hint`, in any run. The full rule is "Command prerequisites" in [`docs/contracts/ecosystem-commands/README.md`](https://github.com/melodic-software/claude-code-plugins/blob/main/docs/contracts/ecosystem-commands/README.md#command-prerequisites).
- Name every skip with its reason. A missing tool (including an installed tool too old for the check, `skip (unsupported: ...)`), missing dependencies or a missing declared prerequisite is an environment skip; a consumer opt-out or a not-applicable command is not.
1. **Build + test + lint per ecosystem**: invoke `/toolchain:check` (if enabled) via the Skill tool. Dispatch a subagent with the changed-file paths and the command tables of `/toolchain:check` (if enabled) instead only when the pass's output would crowd this context (many ecosystems or commands). A subagent adds its own session's cost, and its summary is not evidence: a command result counts only when this session ran it or the harness recorded it, never on an agent's say-so (the evidence ranking in the command-evidence reference of `/implementation:implement-dispatch` (if enabled)), so verify the summary against the actual command output. `/toolchain:check` (if enabled) remains SSOT for ecosystem detection, CLI commands, and gotchas. Pass through the ecosystem filter from `$ARGUMENTS` if given; else `/toolchain:check` (if enabled) auto-detects from changed files.
2. **Architecture tests**, when changed files match the `arch-test-triggers` category above and the project has an architecture-test suite, ensure it is included in the test step.
3. **Cross-cutting checks**. Invoke `/toolchain:lint cross-cutting` (if enabled) via the Skill tool. `/toolchain:lint` (if enabled) owns the cross-cutting tools with the presence-gated graceful-degradation pattern (missing tool → `skip (tool missing: <tool>)`, never `FAIL`; with nothing failed, its Overall line reads `INCOMPLETE`). Do not inline that bash here. `/toolchain:lint` (if enabled) is the SSOT.
**Gate result**, decided in this order:
1. Any FAIL from `/toolchain:check` (if enabled) or `/toolchain:lint cross-cutting` (if enabled): stop and surface the failing command's key error lines. Fix mechanical failures before outcome verification proceeds.
2. A `STOPPED` run (a dependency install changed the tree): stop and report the changed paths.
3. No check ran because every one hit an environment skip (tool missing or too old, dependencies missing, prerequisite missing): stop. The verdict is `NOT VERIFIED`, listing each skip with its reason; Stage 2 does not run on a change nothing has exercised.
4. Otherwise proceed to Stage 2. Opt-in-unmet skips and not-applicable cells never hold the gate. An environment skip that remains (an `INCOMPLETE` run from `/toolchain:check` (if enabled) or `/toolchain:lint` (if enabled), a lint-only one included) carries into the verdict: the change can be `NOT VERIFIED` or `NEEDS WORK`, never `CONFIRMED`, until the skipped check runs. An ecosystem reported as `no real check ran (syntax only)` is not an environment skip and does not hold the verdict by itself, but the report names it and never counts it as a mechanical pass.
## Stage 2. Outcome verification (the core)
Read the criterion context file for the dispatched mode, then run the flow below. The shared spine (intent → inventory → match → evidence → report) is in [context/outcome.md](context/outcome.md); `fix` / `refactor` adapt it.
1. **Apply the proof level, then auto-trigger `/testing:run-e2e` (if enabled)**. The resolved `proof_level` (see Proof level above) sets what this step requires:
- `path`: the runtime-path rule in the rest of this step, unchanged.
- `live`: any change with a runnable surface is driven in the live app when the app can be launched, whether or not a changed file matches a runtime-affecting path. When the app cannot be launched, run the non-UI check the check-to-change table gives for that change, and the report says the app could not be launched. A change with no runnable surface (docs, tests only) is noted as such.
- `strict`: fill the unit, live and perf boxes in [context/outcome.md § Proof boxes](context/outcome.md#proof-boxes) for each plan phase. Every box needs evidence or a reasoned not-applicable line before `CONFIRMED`.
**Touched features come from `affected`.** This skill never matches changed files against a control skill's `sources` globs; `/app-control:drive affected` (if enabled) owns that matching. When `/app-control:drive` (if enabled) resolves, invoke `/app-control:drive affected --base <ref> --out <evidence dir>/affected` (if enabled) through the Skill tool, adding `--unattended` only when this skill's caller passed `--unattended`. `<ref>` is the default branch's remote-tracking ref (`git symbolic-ref --short refs/remotes/origin/HEAD`), and `<evidence dir>` is this run's directory under Evidence retention in [context/evidence-loop.md](context/evidence-loop.md). When that command prints no ref (CI checkouts and shallow clones often lack `origin/HEAD`), guess no other branch: invoke no `affected`, report `blocked: no base ref` and match no feature. `affected` diffs committed changes only (`<ref>...HEAD`); when the gathered working-tree status is not empty, the report says the uncommitted files were not matched to features. Read `<evidence dir>/affected/affected.json` as data: its `features` list is the touched features, by id. When `affected` writes no `affected.json`, carry its `blocked:` line into the report and match no feature. When `/app-control:drive` (if enabled) does not resolve, the report carries `touched features not matched (app-control not installed)` and matches no feature. In every case the `e2e-*` path categories still apply, and neither a `blocked:` line nor app-control's absence holds the verdict.
Under every level, inspect changed files. If any match an `e2e-*` category from the Runtime-affecting paths above, or `affected.json` lists a touched feature, or they touch observability code paths verifiable end-to-end, or the user said "test the app", invoke `/testing:run-e2e` (if enabled) via the Skill tool, adding `--unattended` only when this skill's caller passed `--unattended`; when the `testing` plugin is not enabled, drive the live app directly (Claude Code's bundled `/run`, or a manual orchestrator launch) and capture the same evidence. When the `testing` plugin is enabled, run-e2e validates prerequisites, starts the app, exercises the changed flow, and captures evidence (screenshots, console, network, traces). Carry that into the evidence table. If not runtime-affecting (pure refactor, internal lib, doc-only): note "E2E not applicable" and skip. Whether or not E2E applies, pick the check each changed area needs from the check-to-change table in [context/outcome.md § Which check proves which change](context/outcome.md#which-check-proves-which-change) (storage, parser or migration, command-line tool, user interface, performance).
When `/testing:run-e2e` (if enabled) reports per entry point (the repository has a feature map), an entry point the map lists for a changed feature that is missing from that report holds the verdict below `CONFIRMED`.
**Keep touched features current.** `/testing:run-e2e` (if enabled) owns this step (its Step 4, Keep touched features current). When it ran, carry its refresh or drift lines into the report and refresh nothing again. When the drive was split across workers, tell each worker to skip that step, then run it once here over the merged report. When it did not run, run the step here over the touched features `affected.json` lists: call `/app-control:map refresh <feature id>` (if enabled) per touched feature when `/app-control:map` (if enabled) resolves, adding `--unattended` only when this skill's caller passed `--unattended`, carrying that feature's lesson (Lessons, below) in the same call; otherwise report the drift and name `/app-control:map refresh <feature id>` (if enabled) in `## Next`. When `/app-control:drive` (if enabled) does not resolve, no feature was matched, so nothing is refreshed and `## Next` names enabling app-control, installing it first if it is not installed. Neither the drift nor app-control's absence holds the verdict, and this skill never edits a control skill.
**Map a feature the change adds.** `/app-control:map refresh` (if enabled) started on a ticket branch maps each user-facing surface that branch's diff adds and no feature lists, committing the new feature folder on the branch, so each touched-feature refresh above already covers one. When `affected.json` lists no touched feature but its `unmatched_files` is not empty, the mode is `outcome`, E2E applies under the step above, its `source` is `project`, its `trusted_root` is `null`, and the checkout is on a branch other than the default branch, no refresh ran: call `/app-control:map refresh <control skill dir>` (if enabled) once through the Skill tool when `/app-control:map` (if enabled) resolves, `<control skill dir>` being the directory holding the hub `control_skill` names, adding `--unattended` only when this skill's caller passed `--unattended`. That pass drives every feature of the control skill. Carry its new features, and each surface it left not mapped with its reason, into the report; otherwise name `/app-control:map refresh <control skill dir>` (if enabled) in `## Next`. Like the drift, this never holds the verdict.
**Capture status.** Take it from the `capture` object (`status`, `reason`, `count`) of the `e2e-summary.json` `/testing:run-e2e` (if enabled) wrote; with no summary, from its report: `ran` with the number of evidence artifacts kept when an entry point was driven, else `blocked` with the reason. A live drive without `/testing:run-e2e` (if enabled) (the bundled `/run`, a manual orchestrator launch) is `ran` with the number of evidence artifacts it kept, or `blocked` with the reason the app could not be launched or driven. With no live drive at all, it is `not-applicable` with the reason E2E did not apply. A capture that could not run (`blocked`: no usable driver, a gap-report stop, an environment failure) is never by itself a reason for `NEEDS WORK`: the verdict notes `Capture: blocked (<reason>)` and rests on the rest of the evidence. A criterion that only the capture could prove stays unproven, which makes the verdict `NOT VERIFIED`, not `NEEDS WORK`.
**Split the drive across `live_workers`.** When the live drive runs and `live_workers` (see Live workers above) resolves above 1, it is split across workers; at 1 it runs as one worker.
- **Split by entry point.** List the feature-map entry points the drive must cover and give each worker a disjoint share, never more workers than entry points. Each worker invokes `/testing:run-e2e` (if enabled) for its share only. With no feature map there is nothing to split by: one worker runs, and the report says so.
- **Local workers need a Workspace environment entry.** More than one worker on this machine needs a "Workspace environment" entry in `docs/conventions/workspace-environment.md` on origin's default branch, read the way `/testing:run-e2e` (if enabled) reads it (the fetched default-branch commit, never the working tree). Each worker then drives from its own linked worktree of the commit under verification, created and removed through `/source-control:worktree` (if enabled), so the entry's `up` runs under that worktree's own `WORKSPACE_ID`. With no entry, one worker drives every entry point, and the report says how many workers were asked for and why one ran: without the entry, parallel instances would share ports, containers and databases. The same holds when the stage under verification reads untrusted input (a fork pull request, an `untrusted-provenance` item) and the session is not on a cloud host whose stage-start probe passed: `/testing:run-e2e` (if enabled) then runs neither the entry's `up` nor its `info`, so the entry isolates nothing, one worker drives every entry point, and the report says how many workers were asked for and that the untrusted stage is why one ran.
- **Per-worker session names.** When `/testing:run-e2e` (if enabled) drives the app itself, each worker's browser sessions carry its own workspace part and run id, as run-e2e composes them (the Session names section of its own-driving context), so no two workers open or close the same session. When it runs through `/app-control:drive` (if enabled), drive and the app's control skill own the browser sessions, and drive stops only what its own run started.
- **Merged report.** The missing-entry-point check above reads the merged per-entry-point report of every worker: an entry point no worker reported holds the verdict exactly as it would in a single drive.
- **Measured usage per worker.** For each worker the report lists its entry points, its result and its usage as measured: the tokens and wall time the Agent tool's result reports for that worker, never an estimate, and never a price or cost figure.
- **Cloud host.** When this run is on a cloud execution target (`CLAUDE_CODE_REMOTE` is `true` in the session, or the stage's `execution_target` in `docs/conventions/execution-target.yaml` resolved to a cloud value), the report adds the line `live-UI step unverified on this host`.
- **Pointer**: the `CLAUDE_CODE_REMOTE` row of <https://code.claude.com/docs/en/env-vars#variables>; for the subagent result whose usage each worker line reports, <https://code.claude.com/docs/en/agent-sdk/typescript#agent-2>.
**Three rules for the live drive.**
- **Ready means usable.** The app counts as ready only when a user could use it from an empty data directory, migrations and seed data included. A port answering or a health check passing is not enough: a database health check can pass while its init scripts still run.
- **Never weaken a user journey to make it pass.** When the seed data lacks a precondition a journey needs, report that journey as failed with that reason. The verdict does not count it as passed, and the journey is not edited to pass.
- **Stand-in caveat.** When the proof ran on a stand-in for the real target (a container instead of a fresh machine, a local stack instead of a remote one), the report lists every setup step the stand-in did that the target will not, and marks those unverified.
2. **Intent retrieval**. Walk the ladder in [context/intent.md](context/intent.md): the PLAN.md Brief, then the pull request body's acceptance criteria, then the linked issue, then the conversation; the report's `Intent source:` line names the one that supplied it. With none, ask; with no one to ask, the verdict is `NOT VERIFIED: no intent source`.
3. **Implementation inventory**. Changed files, new capabilities, behavior changes, config/infra changes.
4. **Intent match**. Every requirement has implementation; every implementation traces to a requirement; flag scope additions and gaps (including implicit requirements. Error handling, edge cases, tests). Name the out-of-diff couplings: the existing behavior this change leans on, unchanged code whose contract the diff now depends on. A named coupling is checkable; an implied one is where regressions hide. The report carries them as their own table (see [context/outcome.md](context/outcome.md)).
5. **Evidence collection**. Stage-1 results, E2E results, test names + assertions proving the claimed behavior. For UI changes: the UI evidence artifacts per [context/outcome.md](context/outcome.md) (pre/action/post snapshot, console, network, behavior assertion, and the render-check results: axe, geometry, pixel baseline, vision review as leads only. "screenshot looks fine" is not an assertion). When the plan states a measurable goal: the `/verification:measure` comparison table. Rank the test evidence by independence and label each test the producing session wrote as self-authored, per [context/outcome.md](context/outcome.md) "Evidence ranking". A check worth citing is scripted: a command or script that re-runs the same comparison, with its command kept in the manifest's `## Reproduction` block and its output kept in the run's evidence directory (Evidence retention in [context/evidence-loop.md](context/evidence-loop.md)). The reason is that a one-time look leaves a reviewer only your word for the result, while a script lets them rerun it and compare. The test: the cited command, run again at the cited commit, prints the output the report cites. A check you only looked at once is reported as a finding, never as proof, like rank 4 evidence in that ranking, so a criterion it alone supports is not COMPLETE.
6. **Report + verdict**. Emit the outcome report (the proof-level line, the worker line, the proof boxes under `strict`, intent-match table, mechanical results with every skip named and its reason, E2E + UI-evidence tables when triggered, evidence table, measurements when applicable, and the lessons the run learned, each with its scope and route in the Lessons table) and a `CONFIRMED` / `NEEDS WORK` / `NOT VERIFIED` verdict. Report template and verdict criteria in [context/outcome.md](context/outcome.md). The report also states the effort level this run used: `${CLAUDE_EFFORT}`. The skill pins `effort: high`, a verdict lane's level, and no higher; an environment variable or an effort cap can still put the run at another level, which is why the report states it (pointer: the `effort` field in <https://code.claude.com/docs/en/skills#frontmatter-reference> and the `CLAUDE_EFFORT` row in <https://code.claude.com/docs/en/skills#available-string-substitutions>). We pin the model-config row the pointer here names, and the fresh-context verifier below is raised to the model that produced the work whenever that model is known and stronger than this session's (see Independence of the verdict; pointer: the `high` row of <https://code.claude.com/docs/en/model-config#choose-an-effort-level> and the advisor capability rule in <https://platform.claude.com/docs/en/agents-and-tools/tool-use/advisor-tool#model-compatibility>; recheck trigger: a Claude model release after Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5).
**A failed check: suspect the observation first.** When a Stage 2 check fails or contradicts the diff, suspect how you observed the result before you suspect the system: the probe, the driver, the capture or the environment (a stale build or artifact, a cached page, the wrong port or instance, a log read before the write landed, a stub still in place). Observe again by a second route. Only a failure that survives the second observation counts against the change. When the observation is suspect and no second route can run here, the check proves nothing either way: a criterion only it could prove stays unproven, which makes the verdict `NOT VERIFIED`, not `NEEDS WORK`. The report's `Observation check:` line names the observation as the first suspect and what the run did to rule it in or out.
**Independence of the verdict.** This skill usually runs in the context that produced the changes, and that context carries the assumptions that produced any defect, converging on approval rather than detection. Stage 1's mechanical pass/fail is objective and needs no escalation, but for the Stage 2 outcome verdict on anything beyond a mechanical, behavior-preserving change, render `CONFIRMED` / `NEEDS WORK` from an agent that did not produce the artifact: dispatch a fresh-context verifier with the acceptance criteria, the diff and the path of this run's evidence directory (Evidence retention in [context/evidence-loop.md](context/evidence-loop.md)), withholding your rationale so it audits the artifact and not your story. Record and publish its verdict as returned: a verdict the producer can upgrade is not independent. When it returns an open question or a scope doubt, never answer it and never upgrade the verdict; fix what the verdict names, or dispatch a new fresh verifier whose brief adds only facts (scope rules quoted from their source), with no wanted verdict and none of the earlier verifiers' recommendations. The report and the manifest list every verdict returned on that head beside the final one. The verifier reads the whole local directory, raw captures included, and the run directory `/testing:run-e2e` (if enabled) used; `publishable` in `e2e-summary.json` decides only what may be uploaded or pasted, never what the verifier reads, and the directory itself is never uploaded. The verifier checks the provenance of every test it cites (`/testing:test-value` (if enabled)): a test added or changed in the diff under review is a producer claim until its expected value names an independent source. This is stricter than the `implementation:phase-verifier` agent, which reports an unsourced expected value as a finding without changing its verdict: here a criterion proved only by such a test is not COMPLETE ([context/outcome.md](context/outcome.md) "Evidence ranking"). When the work was produced on a model stronger than this session's (a security-surface phase routed to the frontier alias, say) and you know that model, pass the dispatch a per-invocation `model` at or above it (for the aliases that call accepts, see <https://code.claude.com/docs/en/sub-agents#choose-a-model>); this override routes upward only and keeps the checked-work rule in the marketplace's `docs/plugin-philosophy.md` "Capability tiers". When the producing model is not known, the report says the verifier's model was not matched to it. Where the outcome is high-stakes and correlated blind spots are the risk, prefer a cross-vendor advisor **when one is enabled and set up**, e.g. the OpenAI Codex plugin, when its documented surface can take this artifact, invoked per its own docs, with the fresh-context same-vendor verifier above as the stated fallback, never a route to a command that may not resolve (per `docs/plugin-philosophy.md` "Fresh-eyes checkpoints" in the marketplace repository).
**Verification level.** Before Stage 2, run `bash "${CLAUDE_PLUGIN_ROOT}/lib/read-verification.sh" --plugin verification --skill confirm --file docs/conventions/verification.yaml` and copy its line, plus the second line it prints when a branch's copy differs, into the report beside the proof-level line. It reads `verification_skills.confirm`, else `verification`, from `docs/conventions/verification.yaml`, the file that holds `proof_level`, on the default branch, and always prints a level ([levels](https://github.com/melodic-software/claude-code-plugins/blob/main/docs/contracts/verification-level/README.md)). `standard` is the paragraph above. `strict` drops the mechanical, behavior-preserving exemption: the verifier renders the verdict for every change. Under `light`, and `off`, which acts as `light` at this step, dispatch no verifier for a change the paragraph above sends to one, and never render the verdict yourself in its place: the report writes `verification: skipped (<level>)` and the verdict is `NOT VERIFIED`, recorded as such, so a skipped check never reads as `CONFIRMED`. No level drops Stage 1 or any evidence the resolved `proof_level` requires.
**Record the verdict for the head it judged.** Once the verdict is final (where a verifier ran, the
last one's as returned; including a `NOT VERIFIED` from the Stage 1 gate), store it for the commit it
judged, so the pull request `ready` report can name it:
```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/confirm-verdict.sh" record --head <sha> --verdict '<verdict>' --missing '<item>' --partial '<item>' --row '<criterion> | <files> | <test or check> | <result>'
```
- `<sha>` is the full `git rev-parse HEAD`, run as its own call.
- Pass one `--missing` per `MISSING` plan item and one `--partial` per `PARTIAL` one, each a single
line naming the requirement, and none for `COMPLETE` items.
- Pass one `--row` per criterion, `COMPLETE` ones included, in plan order: four cells on one line,
a `|` inside a cell written `\|`. The criterion mode's report says what fills each cell
([outcome.md](context/outcome.md), [fix.md](context/fix.md), [refactor.md](context/refactor.md)).
The pull-request evidence comment shows these rows as its criteria table.
- Skip the record when the gathered working-tree status was not empty: the verdict then judged
uncommitted changes, not that head. The report says the verdict was not recorded and why.
- A non-zero exit leaves no record; the report names it and the verdict stands.
The record is advisory. It never gates the `ready` flip, and a commit after it leaves the new head
with no verdict.
Once the verdict is final, persist an assertion-only evidence manifest (the verdict and every earlier verdict returned on that head, the `Capture:` and `Evidence loop:` lines, and, when `/testing:run-e2e` (if enabled) ran, what was asserted, at which commit. Record `verified_at_sha`) to the topic's memory slice at `<memory_dir>/<slug>/verification/` (default `.work/`), placed per the lifecycle artifact protocol ([`${CLAUDE_PLUGIN_ROOT}/reference/artifact-protocol.md`](${CLAUDE_PLUGIN_ROOT}/reference/artifact-protocol.md)). The manifest is never committed; paste it into the pull request body or the linked issue, its publication surface. It carries distilled assertions only, because the paste is shared. No raw command captures, no machine-local paths, no usernames or credentials; cite a `## Reproduction` block instead. Raw captures stay in the memory tier at `<memory_dir>/<slug>/scratch/` (default `.work/`), never committed.
## Evidence loop
Every run reads [context/evidence-loop.md](context/evidence-loop.md) before Stage 2 picks its evidence directory: it holds the evidence retention every run follows and the `heads` entry and `Evidence loop:` line every verdict records. Only a `NEEDS WORK` verdict loops back, at most 3 times per branch.
## Delegation: live-app run + observe
Whenever this run drives the live app (a proof level that requires it, an `e2e-*` path match, or a request to test the app), or would and cannot, read [context/live-app.md](context/live-app.md).
## Edge cases
- **No git changes but user runs `/verification:confirm all`**: run Stage 1 across all ecosystems anyway (useful after a rebase or pull), then outcome verification if intent is in scope.
- **Changed file outside any known ecosystem**: Stage 1 skips it with a note; Stage 2 still assesses intent match.
- **Missing tools or dependencies**: `/toolchain:check` (if enabled) / `/toolchain:lint` (if enabled) report a named environment skip with the install hint, not a failure. It is never reported as done: it holds the verdict below `CONFIRMED` (Gate result, step 4), or stops the run when nothing else ran (step 3).
- **Invoked by a pipeline lane (no one to ask)**: the proof level still resolves (Proof level above); a layer that cannot be read is skipped with its reason and an invalid one falls back as stated, so the run reports the level it used and continues.
- **Invoked from a PR-prep flow**: treat the verdict as a hard gate. Any FAIL or unresolved CRITICAL gap blocks PR creation. One exception: a `NOT VERIFIED` whose only cause is `verification: skipped (<level>)`, from the level resolved at the default branch, a set key or the default (Verification level above), does not block; the report names it and the pull request body carries the skipped line. Any other `NOT VERIFIED` cause, and any Stage 1 failure, still blocks. A comprehension layer (an `education:quiz-me` report, when that plugin is enabled) may precede this gate and inform it; the merge gate itself lives here, one mechanism per concern.
## Skill chaining
| Condition | Action |
|-----------|--------|
| Review gate passes (no blocking findings, e.g. `/review:quality-gate` (if enabled)) | Suggest `/verification:confirm` |
| Stage 1 fails | Fix build/test/lint/cross-cutting, then re-run `/verification:confirm` |
| Runtime-affecting change | Stage 2 auto-triggers `/testing:run-e2e` (if enabled) (bundled `/run` supplementary) |
| `/verification:confirm` finds CONFIRMED | Suggest a retro (`/session-flow:retro` (if enabled)), then the project's PR flow (`/source-control:pull-request` (if enabled)), passing a `--before` drive report handed in (such as the reproduction run of `/debugging:debug` (if enabled)) on to its `evidence` action |
| `/verification:confirm` finds gaps | Fix, then re-run `/verification:confirm`, unless the evidence loop was already at its cap of 3 before this verdict (Evidence loop) |
| Improvement claimed without data | Redirect to `/verification:measure` (`performance` or `metrics`; baseline captured at planning time) |
## Boundary, the bundled `verify` skill
Both answer "does this change actually work", so a request to verify a change can reach for
either.
- **`/verify` (bundled skill)**: the person's tool for driving the running app through the changed
flow. We never invoke it from this skill, and we treat a first run as one that may write a project
verify skill into the repository.
- **This skill (marketplace plugin).** The mechanical prerequisite, then outcome verification
against the plan or intent by change type: the intent-match table, out-of-diff couplings, the
evidence table, and an independent verdict.
**Native suggestions** are on unless `native_suggestions` resolves `off`: the team `docs/conventions/verification.yaml` value, read from origin's default branch by the same `setup-apply.mjs --check --ref origin/<default>` call that reads `proof_level` (`PASS native_suggestions: <value>`), wins over the per-user value `${user_config.native_suggestions}` (a literal unexpanded token means unset). A value but `on` or `off` is named and that layer dropped: a valid higher layer still wins, otherwise `on`, never a lower layer's value. When off, skip the offer below and write nothing in its place, not even a note that it was skipped or why.
**Routing.** When the change has a runtime surface to drive (an `e2e-*` category above, or
product source that an app, CLI or service in the repository runs), offer it to the person at the end of the run, beside the report:
If /verify is available in your session (gate basis: which settings hide it is read live from the
records in [reference/native-verify.md](reference/native-verify.md)) and native suggestions are on (`native_suggestions`, [Configuration](../../README.md#configuration)), you can run
it alongside this skill to drive the change end to end. Skip the offer for a diff touching only
tests, docs, or library code no app, CLI or service in the repository runs. With native suggestions off, the reply carries no `/verify` offer,
withheld line, status line or reason for leaving it out. When the caller passes `--unattended` with native suggestions on, omit the offer, write `Withheld suggestion (unattended): /verify` in the output, and do not ask; without that flag
it asks. Its result is added evidence; it replaces neither Stage 1 nor the verdict.
**Mutation gate.** `/verify` may write a project verify skill on first use. This skill never
triggers it on its own behalf.
**Availability is never assumed.** Project settings can hide it;
this section states what to do when it resolves, never that it is present. The records, each a
pointer with an as-of date and a recheck trigger, live in
[reference/native-verify.md](reference/native-verify.md).
## What this skill does not do
- **Does not reimplement the mechanical pass**. `/toolchain:check` (if enabled) (build+test+lint) and `/toolchain:lint` (if enabled) (cross-cutting) are SSOT. Stage 1 delegates to them.
- **Does not auto-fix**. Identifies failures and gaps; the implementer fixes them. For lint auto-fix, invoke `/toolchain:lint --fix` (if enabled) via the Skill tool; otherwise run the project's own lint fixer.
- **Does not check design quality for ship-readiness**. That's the project's review/quality-gate flow.
- **Does not verify measurable-improvement claims**. `/verification:measure` owns the baseline/compare mechanism; this skill redirects improvement claims there.
- **Does not replace PR prep**, the project's PR flow orchestrates review + verification + cleanup. This skill is the verification component.
## Next
- Verdict CONFIRMED, or NEEDS WORK with `Evidence loop: 3/3 cap reached, last NEEDS WORK`:
/source-control:pull-request; when a `--before` drive report was handed in, pass it on to
/source-control:pull-request evidence --before <report.json>.
- Improvement claimed without data: /verification:measure.
- Gaps found, evidence loop count below 3 before this verdict: fix them, then /verification:confirm.
- A touched feature's control skill not refreshed, or a lesson about driving one feature: /app-control:map refresh `<feature>` ["`<lesson>`"].
- A lesson about driving every feature: /app-control:map refresh `<control skill path>` "`<lesson>`".
- A lesson outside driving the app: /corrections:codify "`<lesson>`".
## Related
- Mechanical build, test, and lint only: /toolchain:check.
## Gotchas
- **Stage 1 is a gate, not the deliverable.** A green build is the prerequisite; the deliverable is outcome confirmation. Don't stop at "it builds."
- **"It passes tests" is not outcome confirmation.** Tests prove behavior; outcome confirmation proves it's the right behavior. A well-tested feature that misses the intent is still wrong.
- **Don't skip outcome confirmation for "obvious" changes.** Small changes drift from intent unnoticed; the intent check catches scope creep and missed requirements tests don't cover.
- **Don't quantify improvement claims here.** "Faster" / "simpler" claims route to `/verification:measure` and its baseline discipline. Invoke it via the Skill tool; never assert an improvement from this skill's evidence alone.
- **Don't re-run Stage 1 if it already passed this conversation** and nothing changed since. Reuse the results.
- **Live-app fallback is fidelity-preserving.** If the bundled `/run` can't launch the app, fall back to invoking `/testing:run-e2e` (if enabled) via the Skill tool, or a manual orchestrator launch otherwise, and say so explicitly, never silently swap live observation for a static check.