A pairing session produces two things — a change and a set of decisions about that change — and usually only the first one gets reviewed. The salvage review is a short exercise that inspects the second one before any patch leaves the scratch branch. It sorts every artifact from the session into keep, park, or discard, using a rule narrow enough to finish in one sitting.
Where the Exercise Fits
Teams that pair with an AI assistant inside a repository accumulate a specific kind of debt, because the session moves quickly and the diff grows faster than the reasoning behind it. Every suggestion accepted "to keep moving" leaves a hunk whose purpose only the transcript still remembers. The salvage review targets that gap and nothing else; it is not a substitute for code review, and it does not replace running the repository's checks.
Prerequisites for the exercise are modest but not optional:
- A scratch branch or working tree holding the session's changes, plus the ability to read the complete diff rather than a summary.
- A known entry point for the repository's existing checks, whether that is a test runner, a build, or a lint step.
- One reviewer who did not drive the session, or the driver returning after a break long enough to lose the transcript's framing.
- Fifteen to twenty-five minutes of uninterrupted attention, because the exercise loses value once the pair starts defending individual hunks.
No step, command, or pseudocode in this article was executed, and no measurement is reported. The material is illustrative and must be adapted to the repository at hand; every claim about expected behavior is a plan for a reviewer to confirm.
The Default Is Park
The economics are asymmetric: promoting a weak artifact costs review attention and possibly a revert, while parking a strong artifact costs one re-derivation later. Because the second cost is smaller and easier to recover from, the exercise starts from "park everything" and demands evidence for promotion. A pair that argues for promotion with a named check is usually right, and one that argues with enthusiasm alone is usually not.
Steps
1. Freeze the scratch state
Capture the actual candidate, including uncommitted and relevant untracked changes, as a private snapshot or isolated scratch commit. The base revision and a list of paths alone are insufficient to recreate the diff. Stop accepting new suggestions for the duration and treat every later change as a separate candidate. The freeze matters most when the editor still holds an open session with pending edits.
2. Write the intent line for each artifact
The intent line is one sentence stating the behavior that changes and the person or system that observes it. If the pair cannot produce it without opening the transcript, the artifact is already parked. Configuration and dependency changes tend to fail this step, which is useful information rather than a flaw in the exercise.
3. Ask the four promotion questions
- What behavior changes, and who observes it? No answer means the artifact has no stated purpose, so it is parked.
- Which existing check covers the change, or which new check fails without it? If neither exists, the artifact is parked until one does.
- What does the artifact assume about the environment that the repository does not guarantee? An undocumented assumption parks the artifact until it is written down or removed.
- If the artifact disappeared tomorrow, what would break? An answer of "nothing yet" identifies scaffolding, and scaffolding is parked rather than shipped.
4. Classify each artifact with the rule
Apply the rule per hunk or per file instead of per session, since sessions mix promotion-worthy work with throwaway edits. The pseudocode below is illustrative only and has not been run against any repository.
# illustrative pseudocode, not executed
for artifact in frozen_diff:
if intent_line(artifact) is empty: park(artifact, reason="no intent")
elif named_check(artifact) is missing: park(artifact, reason="unchecked")
elif undocumented_env_assumption(artifact): park(artifact, reason="assumption")
elif deletion_impact(artifact) == "none": park(artifact, reason="scaffolding")
else: promote(artifact, named_check(artifact))
5. Attach the check to every promoted artifact
Write the check name beside each promoted artifact in the session note, so the reviewer can trace the claim without re-reading the diff. Where the harness allows it, keep the check in place and remove or deliberately alter the proposed behavior in a throwaway copy. The named assertion should fail for the expected reason. If the check cannot be exercised during the review, record it as an open item rather than a pass.
6. Record the parked list
Parked artifacts belong in a separate note with their intent lines and the specific question that stopped them, because a park without a reason becomes a silent loss. The list is short by design; anything longer than a page suggests the session itself should have been split earlier. A parked list that references the next session's starting point is doing its job.
Test: How an Editor Can Re-check the Verdict
Prerequisites. A repository whose checks can be run locally, a scratch branch frozen at a recorded revision, and a session note containing intent lines plus check names for promoted artifacts.
Verification steps.
- Select one promoted artifact and compare its intent line with its diff, expecting the line to describe only what the diff actually does.
- In a throwaway copy, keep the named check and introduce a small change that violates its stated requirement. Look for a failure at the expected assertion, rather than an unrelated build failure.
- Restore the candidate implementation and run the same check again, expecting a pass with no unrelated artifact changing state.
- For each parked artifact, confirm the note names one of the four questions as the reason, expecting no artifact to appear on both lists.
Expected observations. The promoted list is small and every item traces to a named check; the parked list carries reasons instead of vague intentions; the two lists do not overlap. A step-2 run with no failure means the chosen control did not demonstrate coverage. Check test selection and whether the mutation actually violates the requirement before deciding on promotion. A step-3 run that changes unrelated state reveals hidden coupling, and the artifact returns to the parked list.
Not applicable when the repository has no automatable checks, since the exercise then reduces to intent lines and assumption review. It also adds little to a single-file session already covered by an existing check, or to a spike that will be discarded by design, where nothing is meant to be promoted.
Alternatives and Their Tradeoffs
- Promote as-is with the intent line. Cheapest path, but environment assumptions stay unexamined and surface later as support load.
- Promote behind a flag or guard. Reduces blast radius at the cost of a flag to retire; reasonable only when the assumption is real but unverified.
- Park as a patch file with the intent line and check name. Preserves the work for almost no review cost and is the natural default for anything that fails question two.
- Discard and re-derive from the check. Strongest when the artifact was mostly transcription and the check is the real output, at the price of a second pass.
Common Failure Modes
The review most often collapses into a second code review, with the pair arguing about style instead of promotion criteria. Intent lines frequently describe implementation rather than behavior, which makes the first question unanswerable and the whole rule stall. Environment assumptions get documented after promotion rather than before, so the note records what the artifact needs only once it is already required. A team may also skip the parked list because parking feels like failure, then pay full price to re-derive the same work next week.
When the Exercise Does Not Apply
Repositories without repeatable checks should keep steps two and three and drop the rest, since the remaining steps depend on a runnable harness. Emergency fixes move faster without the freeze, so the review belongs afterwards rather than on the critical path. Explorative spikes and single-hunk sessions with good existing coverage rarely justify the full pass, and a pair should say so explicitly instead of half-doing it.
This article was created with AI assistance.
Top comments (0)