Feedback loopable first. A change is finished when you have watched it work, not when it compiles. Every claim in the report rests on an observation that would have come out differently if the claim were false: a URL, a command's output, a screenshot, a log line, a test that failed before and passes now.
Scale the proof to the change. Proving everything costs as much as it saves:
- Copy or display only (a word, a colour, spacing, an icon): a screenshot of the changed state, before and after, and the targeted test if one covers it. Skip steps 2, 3 and 6.
- A change in behaviour (a rule, a query, a flow, data, anything a user or a caller relies on): the full round.
- In between, or unsure: the full round. A protected surface always gets the full round.
Run every step that applies, in order. Skip a step that doesn't apply without comment. A step that fails stops the round; report it.
What a hook holds. Where Altitude's hooks run, the format hook formats the files you touched and holds the turn on analyser errors, and the guard refuses whole-tree formatting, git add -A and --no-verify, each refusal with its fix. Step 8 still says how to do it right; a refusal is the hook working, so follow its fix.
1. Scope
Run git status and git diff --stat. The round covers only the files this session changed, because other sessions may share the tree. List those files before you start.
Read .ai/protected-surfaces.md when the project has one. A changed file on a protected surface (auth, payments, migrations, legal text, whatever it lists) makes step 5 mandatory, however small the change, and goes first in the report.
2. The cases
Before you run anything, write down what must be true and the case that shows each, and don't edit them afterwards to fit what the code does:
- The reported case, with the reporter's own data and conditions: the same input, account, page, platform, size.
- A control case: a nearby situation whose behaviour must not change. It shows the change is aimed, not that something was switched off.
- Every place users reach it: the page, the API, the CLI, the queue, the mail. Each state they can see: empty, loading, failure, recovery.
- What shares the changed code and could break with it.
- A reference, when one exists for a public behaviour: a spec, the package this ports, a well-known library that does the same. Diff the change against it over many generated inputs, not only the examples you thought of, and explain or fix every difference. None exists: say so in the report, since the cases then rest on your own reading.
3. Before and after
Run the cases the way users reach them, at the strongest level the environment allows: the running app through its real interface, then the full local stack, then one real component with its neighbours, then integration tests, then unit tests. Name the level in the report, and what a shortcut skipped.
- Before: the same check on the code without the change: stash it, or a temporary copy at the base commit. For a bug, the failure shows. For a feature, capture the starting state. When the failure doesn't reproduce, the after run proves nothing; say so and lower the claim.
- After: the identical check on the changed code. Nothing else changes between the runs: not the data, the viewport or the timing. Restart servers and workers that hold old code, and confirm which code each run executed.
- Every case from step 2, the control case included.
Back each screenshot with a fact that confirms it: a DOM attribute, a row count, a log line. Look at every capture and read every number before you trust it; a run with stale code or carried-over state is discarded and rerun.
When the project lacks what this needs (a start command, a dev login, seeds, readable logs, a screenshot command), build that piece as reusable tooling and name it; the setup skill holds the list. One-off proof scripts don't get committed: the report is the record.
4. The related tests
Take the test command from 'Done means' in the project's guidelines (see Where the checks live). Before the first run, check that the tests can't touch a shared database: the test config points at a test database or in-memory SQLite, or you stop and say so.
Find the tests that cover the change: the changed files (git diff --name-only HEAD, untracked files, and git diff --name-only <base>...HEAD), a test named after each changed class, tests that reference it (grep -rlw <Class> tests/). Run those by path or filter first (php artisan test --filter=..., vitest related <files>, jest --findRelatedTests, the mirrored pytest module, go test ./<pkg>/...), then the suite. One run at a time per database; never kill another session's run.
A changed file without a test that would fail on a plausible regression: write that test first, and check it fails on the code without the change. Take its expected values from the reference or the requirement, never from what the code returns: a snapshot of the code's own output proves only that it still does what it did. A failure whose cause isn't clear goes to the diagnose skill.
5. Simplify and review
- Simplify: read the diff for comments that say nothing, residue of removed code, orphans and speculation, and cut them. Where the
simplifieragent is available, run it on the changed files and read what it changed before you keep it. A round that only simplifies proves it changed nothing users see: the public API stays, and many generated inputs give the same output on the version before and after. - Review: non-trivial work, or anything on a protected surface: run the
reviewskill on the diff itself (git diff -- <paths>), never a summary of it, and hand it the evidence from steps 3 and 4. Fix the findings that hold up, then review the fixed diff once more: fixes bring their own defects.
6. Lesson
Did this work correct a wrong belief: an approach that failed, a defect the review caught, a doc or an assumption that turned out false? If not, skip. If so, ask whether a session working from the current tree would repeat it without a record. When it would, take the first form that holds:
- One way. Two ways to do the same thing made the mistake possible: report the duplication as work for its owner.
- A check. A test, a lint rule or a hook that fails on the mistake's shape. Keep it only once it passed on the tree and failed on the defect in a throwaway copy.
- A scoped rule. One condition in the rule or guideline that loads for the files it concerns.
- An always-loaded line. Last, since every later session pays for it.
Write it at the narrowest reusable place: the project's guideline source, a rule scoped to the files it concerns, or a skill when it's a procedure. Where Boost generates AGENTS.md or CLAUDE.md, edit .ai/guidelines, never the generated file. One lesson, one form; when a check or rule already states it, write nothing and name the file.
7. Docs and copy
- Docs: run the
sync-docsskill scoped to the diff. Rewrite docs to the end state; never annotate them with what changed. - Copy: words a user sees changed (a view, a lang file, a mail, a doc): each reads as the product's vocabulary in
.ai/guidelines/vocabulary.md, one word per concept. Then thewriteskill's self-check over the changed copy.
8. Format and checks
Run the formatter on the changed files only, never a whole-tree or dirty-files mode: vendor/bin/pint a.php b.php, never --dirty. Then every other check under 'Done means': lint, types, analysis. When there's no such section, ask which checks a change must pass rather than guessing.
9. Report
Lead with one sentence: what was proven and at what level, such as 'proven on the local stack through the browser; not deployed'. Then:
- One item per case: before, after and what was expected.
- The screenshots, inline and labelled; the decisive log lines, values and counts.
- The tests run, with their counts, and the test added.
- What went wrong during the proof: discarded runs, a case that turned out wrong.
- What isn't proven, and why.
- The lesson and the form it took, or that none qualified.
- What's left before it's live.
Commit finished work, as the delivery setting is the user's standing word for it, unless the user or the project's own instructions say to wait: staged by explicit path, never git add . or -A, in the commit style the guidelines name, never with failing or outstanding checks. Delivery is the ship skill's.
Where the checks live
Take the first that has a 'Done means' section, and say which you used: the project's .ai/guidelines/working.md, then the agent guidance file the host reads (AGENTS.md in Amp, CLAUDE.md in Claude Code), then the user's ~/.config/altitude/working.md (or ~/.claude/altitude/working.md while that still exists). None has one: detect the runner (php artisan test, vendor/bin/pest, the test script in package.json, pytest, go test, cargo test) and confirm it with the user before the first run.