Generate a pull-request summary from the change artifacts and diff, then create or update it on whichever platform the remote points at — GitLab via glab, GitHub via gh — and, with --review, review its diff, fix the findings in rounds that commit and push, reply, confirm and verify the pushed head before assessing it, with the CLI's merge-confidence verdict in the description and as labels. Optional comment-only add-ons post the manual test plan or a teaching walkthrough. Use when opening an ...
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 Settle?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/renzrollon-settle)
---
name: settle
description: Generate a pull-request summary from the change artifacts and diff, then create or update it on whichever platform the remote points at — GitLab via glab, GitHub via gh — and, with --review, review its diff, fix the findings in rounds that commit and push, reply, confirm and verify the pushed head before assessing it, with the CLI's merge-confidence verdict in the description and as labels. Optional comment-only add-ons post the manual test plan or a teaching walkthrough. Use when opening an PR, refreshing its description, re-assessing it after new commits, or attaching a test plan.
license: MIT
compatibility: Requires git, plus glab (GitLab) or gh (GitHub) authenticated. Optional openspec CLI for change context.
argument-hint: "[change-name] [--create] [--review] [--test-plan] [--explain] [--confidence-comment] [--gate-check <name>] [--strict]"
disable-model-invocation: true
allowed-tools: Bash(git *) Bash(glab *) Bash(gh *) Bash(openspec *) Bash(interlock *) Bash(interlock-graph *) Bash(rm -rf .claude/ship/settle) Bash(rm -f .claude/ship/settle/coverage.json) Bash(cp .claude/testing/profile.json .claude/ship/settle/profile-r*.json) Bash(cmp -s .claude/testing/profile.json .claude/ship/settle/profile-r*.json) Bash(cp .claude/ship/settle/profile-r*.json .claude/testing/profile.json) Bash(rm -f .claude/testing/profile.json) Bash(test -s .claude/ship/settle/verify.json.tmp) Bash(test -s .claude/ship/settle/pathspecs-r*) Bash(mv .claude/ship/settle/verify.json.tmp .claude/ship/settle/verify.json) Bash(rm -f .claude/ship/settle/verify.json.tmp) Agent Read Write Grep Glob
metadata:
type: generation
outputs:
- openspec/changes/<change>/settle-summary.md
---
Turn a finished change into a pull request a reviewer can actually review.
Almost all of this skill is platform-agnostic — the summary, the narrative, the test plan. Reading the checks and publishing differ between GitLab and GitHub, so **detect the platform, do not ask about it.**
The merge-confidence verdict in the description, and the labels beside it, are **what the CLI computed, for the commit the platform holds.** You run the commands, paste the block they print and apply the labels they name. You never state a confidence of your own, never re-derive a band or a score, and never write a label name: this file carries none.
**This skill never merges and never approves a pull request**, never requests changes on one and never resolves a review thread. What a label means for merging is the platform's policy, and the skill's part ends at the label. `MERGE` is a statement about the local signals the command read, not about the platform's branch rules: required checks, required approvals, code owners, a draft state, unresolved review threads and a merge queue can each still hold the pull request, and the verdict reads none of them.
| Flag | Effect |
|------|--------|
| `--create` | Push the branch, then create the PR instead of updating an existing one (§4). With `--review` it is created as a draft |
| `--review` | Once the pull request exists, run the review loop (§5): review its diff, post the findings, fix them in rounds that commit and push, reply, confirm the scenarios, verify the head and wait for the checks, then assess with that evidence and post the validation comment beside the findings (§6d) |
| `--test-plan` | Also post the full manual test plan **as a comment** |
| `--explain` | Also post a per-file teaching walkthrough **as a comment** |
| `--confidence-comment` | Also post the merge-confidence block **as a comment**, so each assessment leaves one entry in the timeline naming its commit |
| `--strict` | Pass `--strict` to every `review-code` pass of the loop, so each review runs the full review instead of the CLI's published default (§5). Do not add it because the diff looks large |
| `--gate-check <name>` | Leave the check of that exact name out of the pipeline input. Repeatable. For the check whose own result waits on the verdict; see §6 |
**Session suggestion.** Unless another Interlock skill invoked this one, run `interlock suggest settle` once, now, and print every line it returns verbatim. If it exits non-zero, print `SESSION SUGGESTION UNAVAILABLE: <first line of its output>` and continue. It is advice and never a gate: do not change the model or the effort yourself, and do not wait for the person to.
---
## 1. Detect the platform
```bash
git remote get-url origin
```
| Remote host contains | Platform | CLI | Check |
|---|---|---|---|
| `gitlab` | GitLab | `glab` | `glab auth status` |
| `github` | GitHub | `gh` | `gh auth status` |
Self-hosted instances often carry neither string — fall back to whichever CLI is installed and authenticated, and say which one you chose. If both or neither resolve, ask once; this is a genuinely ambiguous fact about the user's setup, not a default you can pick.
---
## 2. Resolve the PR and the change
```bash
# GitLab
glab mr view 2>/dev/null
# GitHub
gh pr view 2>/dev/null
```
No open PR and no `--create` → stop: *"No open pull request for this branch, and nothing was pushed: re-run with `--create` to push the branch and create one."* Without `--create` this skill never pushes a branch that has no pull request.
Resolve the OpenSpec change with `interlock changes` and the branch name. If several are plausible, ask which one — a wrong change here produces a confidently wrong description.
When no active change resolves, the pull request may have archived it. Ask the CLI which change it archived, from the whole diff read with rename detection and no pathspec (a pathspec would hide the rename sources):
```bash
git diff --name-status -M origin/<target branch>...HEAD | interlock settle archived-change --name-status - --json
```
Take its `change` as the change, and print `CHANGE READ FROM ARCHIVE: <dir>` with its `dir`. Every later line reads that change read-only from the archive. When it exits 1 naming two candidates, pick neither: ask which change the pull request carries. When it exits 1 naming none, there is no change; say so. Classify no name-status line yourself: which directory is a rename and which is the change is the CLI's answer.
Note the pull request's number (GitHub) or iid (GitLab) and its **target branch as the platform reports it** (`gh pr view --json number,baseRefName`; `target_branch` in `glab mr view --output json`). Both are needed below. Never guess the target branch from a local branch name.
---
## 3. Gather
```bash
git diff --stat <base>...HEAD
git diff --name-status <base>...HEAD
git log --oneline <base>...HEAD
```
Read `proposal.md` (the why), `design.md` (the how), `tasks.md` (what was done), and `specs/**/*.md`. Use `interlock-graph consumers <symbol>` to check blast radius when the graph exists.
Then fetch the target branch, so the verdict is judged against what the platform will merge into:
```bash
git fetch origin <target branch>
```
Then print the facts the description is written from (§7). Name the change when one resolved (§2); when none did, name none, and the brief prints `Change: none`:
```bash
interlock settle description-brief <change> --changed <files> --base origin/<target branch>
# no change resolved
interlock settle description-brief --changed <files> --base origin/<target branch>
```
It prints the `Change:` line to copy, every requirement the change's delta specs add, modify, remove or rename, the living requirements in force over the changed paths that the change does not modify (with where each sits, and how many the size bound left out), and the artifact heading and line that answers each of four sections, or `not found`. A living list it could not build is a reason it prints, not a failure. When it exits non-zero, say `DESCRIPTION FACTS UNAVAILABLE:` with the first line of its output, and still compose every section of §7 from the artifacts and the diff.
---
## 4. Push and create (`--create`)
Only with `--create`, and only when §2 found no pull request for the branch. A pull request cannot be created from a branch the platform does not have, so push first:
```bash
# the branch has no upstream yet (git rev-parse --abbrev-ref @{upstream} fails)
git push -u origin HEAD
# the branch has an upstream and the local head is ahead of it
git push
```
A push that fails stops the skill: report the platform's message and create nothing.
Then create the pull request with its title and the description composed so far from §3, leaving out `## Merge confidence`: there is no verdict yet, and §9 replaces the description once there is. **With `--create --review` it is created as a draft**, because code owners are not requested on a draft: they are asked once, when the loop marks it ready after its last push (§5), for the head they will read. A pull request created without `--review` is created ready, as before.
The description travels in a quoted heredoc, so nothing in it is expanded or read as an argument by the shell:
```bash
# GitHub — with --create --review: a draft
gh pr create --draft --title "<title>" --body-file - <<'EOF'
<description so far>
EOF
# GitHub — with --create alone: a pull request created without --review is created ready
gh pr create --title "<title>" --body-file - <<'EOF'
<description so far>
EOF
```
```bash
# GitLab — not exercised: written from glab's documentation; the GitHub lines are the ones this repository runs
# with --create --review: a draft
glab mr create --draft --title "<title>" --description "$(cat <<'EOF'
<description so far>
EOF
)"
# with --create alone: created ready
glab mr create --title "<title>" --description "$(cat <<'EOF'
<description so far>
EOF
)"
```
Then read the new pull request's number or iid and target branch as §2 does.
---
## 5. The review loop (`--review`)
Only with `--review`, and only once the pull request exists (§2 found it, or §4 created it). Without `--review` the skill runs nothing in this section: it assesses as before, and passes no file from `.claude/ship/settle/` to the assessment.
The GitHub lines of this section ran end to end on a live pull request, PR #25 (2026-10-26, head `161f955`). The GitLab lines carry their own `not exercised` markers.
The loop produces its evidence in a fixed order, and each step depends on the one before: a review of the pull request's diff, the findings comment, fix rounds that each commit, push, re-review the pushed head and reply, the ready mark, the confirmation, the verification, the platform's checks, and only then the assessment. Everything it writes lives under `.claude/ship/settle/`.
**Stopping early.** Some steps below stop the loop early: the working tree is not clean, the platform does not hold the local head, a review cannot spawn its reviewers, a round fails, the fixer commits, a push fails. Each prints its own line. Any `review-code` pass of the loop that prints `REVIEW FAILED:` recorded nothing: print that line, post no findings comment for that pass, and stop the loop early. Then nothing more is committed or pushed, and the rest of §5 is skipped except the draft check of §5d: no ready mark, no confirmation, no verification, no wait for the checks. Go on to the assessment (§6), and pass it only the records this pass wrote.
**The working tree is clean.** Every step below that stages, reverts, commits or pushes assumes the only changes in the tree are the fixer's, so the loop starts only from a clean tree:
```bash
git status --porcelain=v1 -z --untracked-files=all | interlock settle tree-check --change <change> --status -
```
Exit 0 prints `clean`, or `clean (tolerated: …)` naming the files this skill itself writes into the tree. **Exit 1 means the loop does not start.** Print `WORKING TREE NOT CLEAN: <paths> — the review loop did not start; nothing was committed or pushed`, naming the paths it listed (or the refusal it printed on standard error), and stop the loop early. **When `git status` itself printed an error, the tree was not read**: the check reads empty input as clean, so treat it as not clean, and print `WORKING TREE NOT CLEAN` with git's message in place of the paths, as for exit 1. The assessment still runs, and is passed nothing from `.claude/ship/settle/`: whatever is there an earlier pass wrote. Never stash, commit, restore or delete the person's changes to make the tree clean.
A pass that starts clears that directory, so no round of an earlier pass outlives this one:
```bash
rm -rf .claude/ship/settle
```
**The platform holds the head.** The review, every round and the verdict describe the local head, so the platform has to hold it before anything is reviewed:
```bash
gh pr view <n> --json headRefOid --jq .headRefOid
git rev-parse HEAD
```
```bash
# GitLab — not exercised: `sha` in this document is the pull request's head commit
glab mr view <iid> --output json
```
When the two differ, print `HEAD NOT ON THE PLATFORM: local <local sha>, platform <platform sha>`, naming both, and stop the loop early. With `--create`, §4 already pushed the branch; without it, pushing is the person's call, and nothing in §5 pushes before a round has committed.
Below, `<sha>` is the head the step describes, `git rev-parse HEAD` at that step: after each push it is the commit the platform holds. `<n>` and `<iid>` are the pull request's number and iid from §2, and `<target branch>` its target as the platform reports it.
`[--strict]` on the `review-code` lines below is a placeholder: write `--strict` there when this skill was given `--strict`, and write nothing otherwise, so the depth the review runs at is the CLI's published default, which this file never names. The skill does not invent `--strict` because the diff looks large; only the person's flag selects it.
### 5a. Review the pull request's diff
```text
/interlock:review-code <change> --base origin/<target branch> --out .claude/ship/settle/review-r0.json [--strict]
```
The review record lands in that file, bound to the head it reviewed. `review-code` prints `REVIEW DEPTH: <depth> (<n> dimensions: <a> always-on + <t> triggered)`; print that line once, as it reported it, and not again for the rounds. `review-code` proves its own coverage before it writes that record, re-running what it could not prove; post the comment from the record it wrote and add no proof step of your own. A record left unproven, at the cap or with inputs the reviewers declared unread, says so in its comment.
### 5b. Post the findings
The comment is what the command rendered, never one you write. A review with no surviving finding still renders a comment saying it ran on `<sha>`, and it is posted all the same:
```bash
# GitHub
interlock settle comment --review .claude/ship/settle/review-r0.json --head <sha> --round 0 | gh pr comment <n> --body-file -
```
```bash
# GitLab — not exercised
glab mr note <iid> --message "$(interlock settle comment --review .claude/ship/settle/review-r0.json --head <sha> --round 0)"
```
When `interlock settle comment` exits non-zero it rendered nothing, and nothing is posted: print `ROUND FAILED: <reason>` with the reason from standard error, and stop the loop early.
### 5c. Fix, round by round
For round `r = 1, 2, …`, run the steps below in order. A round either runs to its end, ends the loop, or stops it early; it never skips a step to carry on.
**The tree is still clean.** A stray file the review left behind would be swept into this round's commit, so check again before the round does anything:
```bash
git status --porcelain=v1 -z --untracked-files=all | interlock settle tree-check --change <change> --status -
```
Exit 1, or a `git status` that printed an error (the tree was not read): print `WORKING TREE NOT CLEAN: <paths> — round <r> did not start; nothing was committed or pushed`, with git's message in place of the paths when it failed, and stop the loop early.
**Snapshot the test profile.** `.claude/testing/profile.json` is gitignored, so HEAD cannot restore it if the fixer changes it. When it exists (Glob for it), copy it:
```bash
cp .claude/testing/profile.json .claude/ship/settle/profile-r<r>.json
```
**Ask for the round's briefing**, with the snapshot as its profile; with no snapshot, leave `--profile` out. The bracketed `--previous` is filled from the second round on, naming the round before's fixer result, and left out in the first round. `--out` is always passed: the command keeps its answer there as the round's briefing record, which the fixer-result check below reads:
```bash
interlock settle remediate-brief --review .claude/ship/settle/review-r<r-1>.json --round <r> --change <change> --head <sha> --pr <n> --profile .claude/ship/settle/profile-r<r>.json [--previous .claude/ship/settle/remediate-r<r-1>.json] --out .claude/ship/settle/brief-r<r>.json --json
```
The command defers two kinds of finding before it plans the round, and lists them in the briefing under `Deferred this round`: a finding in a protected test path, which the revert below would undo, and a finding the last fixer declined, whose reason it quotes. A deferred finding is not hidden. It stays `open` in the reply table and keeps its band in the verdict, and the fixer is told not to touch it. When the deferrals leave nothing fixable, the command exits 1 with `STOP: nothing fixable remains` and the count in each kind, and that ends the loop like any other `STOP:` below.
**Read `reReviewDimensions`.** The answer is JSON: its `briefing` field is the fixer's briefing, and `reReviewDimensions` is the list of dimensions whose findings this round fixes. Keep that list for the round's re-review below; the first review of the pass never has one.
**The loop runs while this exits 0, and ends only on the CLI's stop rule:** exit 1 with standard error beginning `interlock: STOP: ` (nothing left to fix, the round cap reached, a verdict that halts the rounds). Report the reason after `STOP:`; the loop ends, and goes on to §5d. Standard error may carry two more lines after it. `ANOTHER PASS SUGGESTED:` names the blockers and warnings that survive and that no round of this pass will fix, such as a warning the last re-review added. `LEFT FOR A PERSON:` names the deferred findings no fix round can take. Print each line verbatim and say it again in the report. Start no pass and no round yourself: whether another pass is worth its cost is the person's call, and the loop never runs one by default. Any other non-zero exit is a failure, never a stop: print `ROUND FAILED: <reason>` and stop the loop early. The cap is the CLI's: never count rounds against a number of your own.
**Who a round briefs.** The first round briefs every surviving blocker and warning. A later round is briefed only while a blocker survives, and then it takes the surviving warnings with it, so a warning a re-review adds is fixed only when a blocker also survives into the next round. Suggestions are never briefed. The CLI applies this rule; the skill only states it.
**Record the head** before the fixer runs:
```bash
git rev-parse HEAD
```
**Spawn ONE `interlock:settle-fixer` subagent with the answer's `briefing` field as its whole prompt.** The plugin's definition of that type bounds its tools: it cannot spawn agents or invoke skills. It fixes the listed findings, writes `.claude/ship/settle/remediate-r<r>.json`, and does not commit. It runs with no ship guards: there is no stage marker, so the hook that refuses test edits does not fire, and the revert below is the only protection the tests have. Do not fix anything yourself, and do not review the fixer's work: the fresh review below does. Before the pass's first fixer, run `interlock routing settle-fixer --json` once, and reuse its answer in later rounds. Pass its `model` and `effort` on the fixer call; a `null` means omit that parameter, and the host's default applies. Print every line of its `banners` verbatim before the spawn. When the command exits non-zero, print `ROUTING UNAVAILABLE: <first line of its output>` and spawn at the session defaults: routing is a cost hint, never a reason to stop the round. Name no model and no effort level in this skill or in the prompt.
**A fixer that cannot be spawned fails the round.** The type's description reserves it for this skill, and this round is the one spawn it names. When the Agent tool reports the fixer's type as unknown, or the spawn is refused or declined, print `ROUND FAILED: fixer type unavailable — <the tool's message, or the refusal>`, and stop the loop early. Spawn no other type in its place and fix nothing yourself: the type is what bounds the fixer's tools. Nothing was staged, committed or pushed; say so, and that `interlock doctor` names an install whose `agents/` lacks the file.
**The head did not move.** Read it again:
```bash
git rev-parse HEAD
```
When it is no longer the head you recorded, the fixer committed: print `FIXER COMMITTED: <before>..<after> — round stopped, nothing pushed`, and stop the loop early. Leave its commit where it is: do not reset, amend or push it.
**The fixer answered.** Check its result against the findings it was briefed:
```bash
interlock settle fixer-result --result .claude/ship/settle/remediate-r<r>.json --review .claude/ship/settle/review-r<r-1>.json --round <r> --head <sha> --brief .claude/ship/settle/brief-r<r>.json
```
`--brief` is the record the briefing line wrote. The result is checked against the ids that briefing listed, so a finding it deferred is not expected back, and nothing is worked out again from a profile or a result the fixer could have changed. Pass neither `--profile` nor `--previous` here: the command refuses them beside `--brief`. Exit 1 (the result is missing, unparseable or `ok: false`, its ids do not partition the findings it was briefed, or the briefing record is missing or belongs to another round, head or review) fails the round: print `ROUND FAILED: <reason>`, commit nothing, and stop the loop early. The fixer's edits are left in the working tree, unstaged and unreverted: say so, and name them.
**The test profile is unchanged.** When there was a snapshot, compare the profile with it:
```bash
cmp -s .claude/testing/profile.json .claude/ship/settle/profile-r<r>.json
```
A non-zero exit means the fixer changed or removed the profile. When there was no snapshot and the fixer created one (Glob for it), it changed too. Either way put it back, running only the one line below for the case that holds, and print `TEST PROFILE CHANGED — restored`.
When there was a snapshot, restore it:
```bash
cp .claude/ship/settle/profile-r<r>.json .claude/testing/profile.json
```
When there was no snapshot, remove the profile the fixer created:
```bash
rm -f .claude/testing/profile.json
```
**Stage the round.** The tree was clean when the round started, so everything the fixer left is the round's; only the files the tree check tolerates are left out. The CLI writes those pathspecs, the archived change's summary included when the change was read from the archive, so no line here spells a dated directory:
```bash
interlock settle staging-pathspecs --change <change> --nul > .claude/ship/settle/pathspecs-r<r>
test -s .claude/ship/settle/pathspecs-r<r>
git add -A --pathspec-from-file=.claude/ship/settle/pathspecs-r<r> --pathspec-file-nul
```
Stage only when the pathspec file is non-empty: when `staging-pathspecs` exits non-zero, or `test -s` fails, git would read the empty list as the whole tree, so print `ROUND FAILED: staging-pathspecs wrote no pathspecs`, stage nothing, and stop the loop early.
Then classify every staged path, with the snapshot as the profile (with no snapshot, leave `--profile` out):
```bash
git diff --cached --name-only -z | interlock settle test-paths --changed - --profile .claude/ship/settle/profile-r<r>.json --json
```
**Only when it lists something under `protected`**, revert those paths from HEAD, in the index and the working tree; this also removes a protected file the fixer created. With nothing listed there is no path to restore, and `git restore` exits 128 on an empty list.
```bash
git diff --cached --name-only -z | interlock settle test-paths --changed - --profile .claude/ship/settle/profile-r<r>.json --protected-only --nul | git --literal-pathspecs restore --staged --worktree --source=HEAD --pathspec-from-file=- --pathspec-file-nul
```
The paths pass from one command to the next NUL-terminated and are read literally, so none is retyped and none is read as a pattern. Then print `REMEDIATION TOUCHED TESTS: <files> — reverted`, naming them, and run the classify line again. If it still lists anything under `protected`, the revert did not hold: print `TESTS STILL STAGED: <files>`, commit nothing, and stop the loop early; the round's changes are left staged. When `profile` is null, nothing is protected: print `TEST PATHS UNKNOWN: <reason>` with the reason it gave, and revert nothing.
Then check whether anything is left to commit:
```bash
git diff --cached --quiet
```
**Exit 0 means the round changed nothing it can keep.** Commit nothing and push nothing: pushing nothing is not a round. Render the reply table from the round's own review on both sides, so every finding reads `open`, post it, and end the loop:
```bash
interlock settle replies --before .claude/ship/settle/review-r<r-1>.json --after .claude/ship/settle/review-r<r-1>.json --head <sha> | gh pr comment <n> --body-file -
```
Otherwise verify the round before it commits, so a red head is never pushed. List the staged paths:
```bash
git diff --cached --name-only
```
Plan the round's verification over those paths, with the round's profile copy (with no copy, plan with `--no-profile` in place of `--profile`):
```bash
interlock verify plan --profile .claude/ship/settle/profile-r<r>.json --context inter-wave --changed <staged paths> --json > .claude/ship/settle/plan-r<r>.json
```
Run each planned step exactly as the plan gives it, once per step, each with the Bash tool's timeout set to the larger of the tool's default and that step's `timeoutMs` in `plan-r<r>.json`, capped at the tool's own maximum, never below the tool's default (a step whose `timeoutMs` is null keeps the tool's default):
```bash
interlock verify exec --kind <kind> --command "<command>"
```
Write one `{ kind, exitCode }` entry per step to `.claude/ship/settle/results-r<r>.json`, then judge the round for the staged tree:
```bash
interlock verify judge --plan .claude/ship/settle/plan-r<r>.json --results .claude/ship/settle/results-r<r>.json --context inter-wave --head <sha> --json > .claude/ship/settle/verify-r<r>.json
```
A plan whose staged paths are all documentation plans no step and is a green round: the judge exits 0. Exit 0 goes on to the commit. Any other exit is a red round: print `ROUND FAILED: unit red — <reason>`, with the reason the verdict in `verify-r<r>.json` gives, or `the judge printed no verdict` when that file is empty. Commit nothing, push nothing, leave the round's changes staged, and stop the loop early. Name the staged paths, and say that the next `/interlock:settle` will not start on this tree until the person commits, unstages or discards them: the skill does none of that for them. The round's files never share a name with the pass's `verify.json`.
**A round the plan could not verify says so before it commits.** Read the `unit` entry of the plan's `skipped` list in `plan-r<r>.json`. When the plan lists no `unit` step and that entry's reason is anything but `docs-only-changes` (with no profile copy it is `no-test-profile`; with a profile that has no unit command, `no-detectable-command`), the judge's exit 0 is not a green suite: print `ROUND UNVERIFIED: <that reason> — round <r> commits with its unit suite not run`, then every line of the plan's `banners` verbatim, and only then commit. Say it again in the report. A round whose staged paths are all documentation skips `unit` for `docs-only-changes`: it has nothing to verify and prints no such line.
Then commit the round, naming the pull request and the round, and push it:
```bash
git commit -m "fix(review): answer the PR #<n> review round <r>" -m "Refs: #<n>"
git push
```
A push changes the pull request on the platform, and the skill says so once, beside the first round's push: a new commit dismisses the stale approvals a ruleset marks, and takes the pull request out of auto-merge or a merge train. The loop's verdict restores neither, and this skill does not re-request a review.
**A push that fails ends the loop**, and stops it early: report the platform's message. The commit stays local, the pull request is not marked ready, and the assessment will say the pipeline describes another commit.
Review the pushed head, independently of the fixer, scoped to the dimensions the briefing named and given the round before's record:
```text
/interlock:review-code <change> --base origin/<target branch> --out .claude/ship/settle/review-r<r>.json --dimensions <reReviewDimensions, comma-joined> --carry .claude/ship/settle/review-r<r-1>.json [--strict]
```
The dimensions that raised nothing the round fixed are not run again, and their findings are carried, marked `carried`, into this round's record, so the reply table and the verdict read the whole pull request and not only the part that was re-examined. When `reReviewDimensions` is empty, write neither `--dimensions` nor `--carry`, and the review runs whole.
Post what each finding of the round before became, `fixed`, `not re-raised`, `open` or `new`, as the command rendered it. Pass the round's fixer result with `--result`: a finding reads `fixed` only when that fixer claimed it and the re-review did not raise it again. One the re-review dropped that no fixer claimed reads `not re-raised`, because a fresh reviewer that did not mention a finding is not evidence that it was fixed:
```bash
interlock settle replies --before .claude/ship/settle/review-r<r-1>.json --after .claude/ship/settle/review-r<r>.json --head <sha> --result .claude/ship/settle/remediate-r<r>.json | gh pr comment <n> --body-file -
```
```bash
# GitLab — not exercised: GitLab has no reply-to-comment primitive here, so each table is a new note
glab mr note <iid> --message "$(interlock settle replies --before .claude/ship/settle/review-r<r-1>.json --after .claude/ship/settle/review-r<r>.json --head <sha> --result .claude/ship/settle/remediate-r<r>.json)"
```
When `interlock settle replies` exits non-zero it rendered nothing, and nothing is posted: print `ROUND FAILED: <reason>` and stop the loop early. Otherwise the next round, from `review-r<r>.json`.
### 5d. Mark it ready
Read whether the pull request is a draft. This runs on every pass with `--review`: a re-run on a pull request an earlier pass created as a draft, and a loop that stopped early, included.
```bash
gh pr view <n> --json isDraft --jq .isDraft
```
When it is a draft that this pass created (§4) and the loop ended without stopping early, mark it ready now, after the last push, whatever the verdict will be. Ready says the loop is finished; the verdict and the labels say the rest.
```bash
gh pr ready <n>
```
```bash
# GitLab — not exercised
glab mr update <iid> --ready
```
When it is a draft and the loop stopped early, leave it a draft, and say in the report that it is still a draft and why: the loop did not start, the head was not on the platform, a round failed, the fixer committed, a push failed. Code owners are asked when it is marked ready, so it is marked ready only for a head the loop finished.
When it is a draft this pass did not create (a re-run after an interrupted pass, or a draft the person opened), leave it a draft as well, and say that it is still a draft because this pass did not create it, so marking it ready is the person's call (`gh pr ready <n>`). Never leave a draft unmentioned.
### 5e. Confirm the scenarios
`<files>` is the changed-file list of §3, read again now against `origin/<target branch>`, because the rounds may have added to it.
```bash
interlock settle conformance-brief <change> --changed <files> --base origin/<target branch> --head <sha> --out .claude/ship/settle/conformance-brief.json
```
Spawn one worker as `interlock:reviewer`, with the printed briefing as its whole prompt. The plugin's definition of that type bounds its tools: it holds no tool that edits a file, spawns an agent or invokes a skill. Routing chooses the model and the effort, never the type: after `ROUTING UNAVAILABLE` the call still names `interlock:reviewer`. The worker writes no file: it replies with one JSON object carrying the five counts, `head` and one cited row per briefed id. `--out` keeps the briefing's record, the ids the check below reads. When it exits 0 with nothing on standard output and `nothing to confirm` on standard error, there is nothing to confirm: spawn no worker and write no handoff. Exit 1 names a change it could not resolve: report it, and write no handoff.
Write the object the reply holds to `.claude/ship/settle/handoff-reply.json` with the Write tool, as returned, repairing no value: a `head` that is not the pushed head is written as it came, and the assessment is what refuses it. When the reply holds no such object, print `CONFORMANCE UNREAD: <first line of the reply>`, write no reply file, run no check, and go on to §5f. Then check the reply's rows against the briefing's record and the working tree:
```bash
interlock settle handoff-check --brief .claude/ship/settle/conformance-brief.json --reply .claude/ship/settle/handoff-reply.json --out .claude/ship/settle/handoff.json --head <sha>
```
Print every line it prints: the counts, and a `CONFIRMATION NOT CITED:` line naming each confirmation it refused, with its reason. A refused row is a count, not a failure, and the check exits 0. When it exits non-zero, print `CONFORMANCE UNCHECKED: <first line of its standard error>` and go on to §5f. The assessment is handed `--handoff` only when the check wrote the file, and the skill writes `.claude/ship/settle/handoff.json` by no other means: never copy the reply there. When the Agent tool reports `interlock:reviewer` as an unknown type, or the spawn is refused or declined, print `CONFORMANCE SKIPPED: reviewer type unavailable — <the tool's message, or the refusal>`, spawn no other type, confirm nothing yourself, write no handoff, and go on to §5f: the confirmation never stops the loop.
Only when a worker is to be spawned, first run `interlock routing settle-conformance --json` once. Pass its `model` and `effort` on the worker call; a `null` means omit that parameter, and the host's default applies. Print every line of its `banners` verbatim before the spawn. When the command exits non-zero, print `ROUTING UNAVAILABLE: <first line of its output>` and spawn at the session defaults. Name no model and no effort level in this skill or in the prompt.
### 5f. Verify the head
Plan the final verification, run each planned step exactly as the plan gives it, then judge the results for this head:
```bash
interlock verify plan --profile .claude/testing/profile.json --context final --changed <files> --json > .claude/ship/settle/plan.json
interlock verify exec --kind <kind> --command "<command>" --record .claude/ship/settle/exec.jsonl
interlock verify judge --plan .claude/ship/settle/plan.json --results .claude/ship/settle/results.json --context final --head <sha> --json > .claude/ship/settle/verify.json.tmp
test -s .claude/ship/settle/verify.json.tmp && mv .claude/ship/settle/verify.json.tmp .claude/ship/settle/verify.json || rm -f .claude/ship/settle/verify.json.tmp
```
With no profile, plan with `--no-profile` in place of `--profile`. Run `interlock verify exec` once per step the plan lists, each with the Bash tool's timeout set to that step's `timeoutMs` in `.claude/ship/settle/plan.json` when its entry carries one, and to the profile's `unit.timeout_ms` when it does not, each the larger of the tool's default and that value, capped at the tool's own maximum, never below the tool's default; with no profile, leave the tool's default. When `verify exec` exits 2 naming an `unknown flag`, the CLI is older than this skill: print that line and stop, and never record it as a step's result. Write one `{ kind, exitCode }` entry per step, with the counts you can read, to `.claude/ship/settle/results.json`. A step the tool killed at its timeout, a build among them, is recorded as failed, with a non-zero `exitCode`, and the report names the step and the timeout as the reason. `--record` appends what the CLI itself observed of each run, its exit code and duration, to `.claude/ship/settle/exec.jsonl`, which the validation comment (§6d) reads; only this final verification writes that file, and a round's `verify exec` line (§5c) carries no `--record`.
The judge writes to a temporary file, and the `test -s` line moves it into place only when it holds something. An exit 1 from `verify judge` with a verdict on standard output is a halting verdict, not a failed command: the file is kept, and the assessment reads it. An exit with nothing on standard output leaves an empty file, which the same line removes, so an empty verification record never lands.
When the plan ran a coverage step, compute the coverage figures for this head:
```bash
interlock verify coverage --base origin/<target branch> --json > .claude/ship/settle/coverage.json || rm -f .claude/ship/settle/coverage.json
```
A non-zero exit printed nothing: report its reason. When the plan skipped coverage, write no coverage file; the skip in the verdict is what the coverage signal reads.
### 5g. Wait for the platform's checks
```bash
gh pr checks <n> --watch
```
Run it with the Bash tool's `run_in_background`: the wait can outlast the tool's timeout, and you are told when it exits.
```bash
# GitLab — not exercised: poll the pull request's head pipeline until its status is neither running nor pending
glab ci get --merge-request <iid> --output json
```
Not `glab ci status --live`: it follows the branch pipeline, and GitLab's merge check reads the pull request's. The exit status of the wait reports the checks, so a non-zero exit is not an error. When it ends with checks still running or queued, print `CHECKS STILL PENDING` and say so in the report. Whatever it reports, read the pipeline input again from the platform's own document, for the pushed head, exactly as §6a gives it, and only then assess.
---
## 6. Assess merge confidence
The assessment reads the pull request's own checks and head commit, so the pull request has to exist. With `--create` it was created in §4, and publishing it in §9 is an update.
**The assessment reads nothing from the pull request's title, description or comments.** It is handed the change, the base, the platform's checks, the run's evidence file when there is one, and, with `--review`, the records the loop (§5) wrote for the pushed head.
### 6a. The pipeline input
Pipe the platform's own document into `interlock pipeline`. Do not write the pipeline file by hand, and do not type a check's state or a commit: the command reads both from the document.
**GitHub.** First ask which checks are required:
```bash
gh pr checks <n> --required --json name
```
The exit status of `gh pr checks` reports the checks, so a non-zero exit is not an error: with no required check it prints nothing and exits non-zero. Pass each name it printed as its own `--required` flag:
```bash
gh pr view <n> --json headRefOid,statusCheckRollup | interlock pipeline --github - --required "<name>" --out .claude/ship/pipeline.json
```
**GitLab.** Two steps, and the head commit travels between them in the file:
```bash
glab mr view <iid> --output json | interlock pipeline --gitlab-pr - --out .claude/ship/pipeline.json
```
When that printed `pending <sha>: head pipeline <id>`, the pull request has a head pipeline, and the second step reads it:
```bash
glab ci get --merge-request <iid> --output json | interlock pipeline --gitlab - --pending .claude/ship/pipeline.json --out .claude/ship/pipeline.json
```
When the first step printed `pipeline <sha>: 0 check(s)` instead, there is no pipeline and no second step.
**`--gate-check <name>`** becomes `--exclude "<name>"` on the `--github` or `--gitlab` line, one `--exclude` per name. Exclude only a check the person named with `--gate-check`. A failing check nobody named stays in the input, and the verdict reflects it.
A non-zero exit of `interlock pipeline` stops the assessment: it printed nothing, and it removed any earlier file at the output path, so there is no pipeline input to pass. Report the reason from standard error, write no `## Merge confidence` section and apply no label. The rest of the description is still published, and §9b still takes off the labels an earlier assessment left.
### 6b. The verdict
```bash
interlock merge-confidence <change> --base origin/<target branch> --changed <files> --pipeline .claude/ship/pipeline.json --run .claude/ship/merge-confidence.json --review .claude/ship/settle/review-r<last>.json --verify .claude/ship/settle/verify.json --handoff .claude/ship/settle/handoff.json --coverage .claude/ship/settle/coverage.json --json
```
- Pass `--run .claude/ship/merge-confidence.json` only when that file exists (Glob for it). It is the evidence a ship run's close wrote. The command decides whether it may be used, and says why on standard error when it takes nothing from it, or when it carries the run record to a later commit and drops the rest: report that reason.
- Pass `--review`, `--verify` and `--handoff` only with `--review`, and only for files this pass of the loop wrote. `<last>` is the round of the last re-review (§5c), the highest-numbered `review-r<r>.json` in `.claude/ship/settle/`: the record whose head is the pushed head. It is `review-r0.json` only when no round pushed a fix. Pass `--handoff` only when §5e's `handoff-check` wrote the file.
- Pass `--coverage .claude/ship/settle/coverage.json` under the same condition as `--run`: only when that file exists (Glob for it), which is only when the loop's verification ran a coverage step (§5f).
- The command refuses a review, verification or handoff record that describes another commit, and says so on standard error: report that reason.
- Without `--review`, pass nothing from `.claude/ship/settle/`. Never pass a review, verification, handoff or coverage file left in the working directory by any other means.
- When no change resolves, the command says so and the signals that need one read amber. Report that. Do not guess a change.
Read the JSON by key:
| Key | What it is |
|-----|------------|
| `verdict` | **The field that decides**: `MERGE`, `HUMAN` or `BLOCK` |
| `score` | The score, bounded by the worst band |
| `driving` | Every signal that stands between the change and `MERGE`, each with its reason and whether a fix, a person or more evidence would lift it |
| `flags` | What lowers the score without holding the verdict |
| `labels` | The two labels to apply (`labels.verdict`, `labels.score`) and how to recognise their predecessors (`labels.verdictNames`, `labels.scorePrefix`) |
| `head` | The commit that was assessed, as `head.sha` |
**Exit 1 with a verdict on standard output is the verdict `BLOCK`, not a failed command.** Carry on: a blocking verdict is published like any other. Exit 1 with nothing on standard output is a failed command (an input it could not read): that stops the assessment, as above.
When the `ci.pipeline` signal says the pipeline input describes another commit, the local head is not the commit the platform holds. Tell the reader to push, then run this step again from §6a: a verdict is a claim about one commit, and the platform's checks are for the one it has.
### 6c. The block
The same inputs, with `--markdown` in place of `--json`:
```bash
interlock merge-confidence <change> --base origin/<target branch> --changed <files> --pipeline .claude/ship/pipeline.json --run .claude/ship/merge-confidence.json --review .claude/ship/settle/review-r<last>.json --verify .claude/ship/settle/verify.json --handoff .claude/ship/settle/handoff.json --coverage .claude/ship/settle/coverage.json --markdown
```
It prints one block, beginning with its own `## Merge confidence` heading. That block goes into the description **as printed**: no line changed, reordered, summarised or dropped. It names the commit and the base it was computed for.
### 6d. The validation comment
Only with `--review`, on every pass that reached the final verification. Without `--review` no validation comment is posted, and this step runs nothing.
The comment says, for the pushed head, what each planned command returned, the platform's checks, which scenarios the confirmation confirmed and with what citation, and what none of it would catch. The CLI renders all of it, bound to `<sha>`; the skill pipes it to the platform as printed and writes no part of it by hand. It is posted here, before the description is composed, so `## Testing` (§7) never names a comment that does not exist.
Pass each record flag only for a file this pass wrote: `--exec` only when §5f ran a step, `--pipeline` only when §6a wrote the pipeline input, `--handoff` only when §5e's check wrote the file, `--review` the same `review-r<last>.json` §6b was passed, and `--coverage` only when that file exists. `<files>` is the changed-file list §5e read again after the rounds, the one the confirmation and the assessment are passed, and not the list of §3: a screen a fix round added is listed. When the loop did not start, or stopped early before §5f, this pass wrote no verdict: print `VALIDATION NOT POSTED: the loop did not start` or `VALIDATION NOT POSTED: the loop stopped early, before the final verification`, and run no posting line. Whatever `.claude/ship/settle/` still holds an earlier pass wrote, and nothing of it is rendered.
```bash
interlock settle validation --head <sha> --plan .claude/ship/settle/plan.json --results .claude/ship/settle/results.json --verify .claude/ship/settle/verify.json --exec .claude/ship/settle/exec.jsonl --pipeline .claude/ship/pipeline.json --handoff .claude/ship/settle/handoff.json --review .claude/ship/settle/review-r<last>.json --coverage .claude/ship/settle/coverage.json --changed <files> | gh pr comment <n> --body-file -
```
On GitLab the same command pipes into a note, not exercised: written from glab's documentation, and the GitHub line is the one this repository runs.
```bash
# GitLab — not exercised: `glab mr note create` reads the body from standard input
interlock settle validation --head <sha> --plan .claude/ship/settle/plan.json --results .claude/ship/settle/results.json --verify .claude/ship/settle/verify.json --exec .claude/ship/settle/exec.jsonl --pipeline .claude/ship/pipeline.json --handoff .claude/ship/settle/handoff.json --review .claude/ship/settle/review-r<last>.json --coverage .claude/ship/settle/coverage.json --changed <files> | glab mr note create <iid> --resolvable=false
```
When `interlock settle validation` exits non-zero it rendered nothing: print `VALIDATION NOT POSTED: <first line of its standard error>`, and post nothing in its place. When the platform refuses the post, print `VALIDATION NOT POSTED: <the platform's message>`. Either way the pass carries on: the comment never stops it, and §7 marks the summary line `--unposted`. A disagreement between the session's exit code and the observed one, or a halted verification, is said inside the comment, which is posted all the same. The comment fits the bound `interlock limits` publishes; past it the CLI drops the least useful rows and says how many.
Each pass posts its own comment and edits or removes no earlier one, as the round comments are left: two passes on one commit leave two, and the `latest` one for a commit is the one `## Testing` names.
---
## 7. Compose the description
**`## Testing` under `--review`** is the three lines this prints, for the same head and records as §6d:
```bash
interlock settle validation --head <sha> --plan .claude/ship/settle/plan.json --results .claude/ship/settle/results.json --verify .claude/ship/settle/verify.json --summary --exec .claude/ship/settle/exec.jsonl
```
Pass `--exec` under §6d's condition, and add `--unposted` whenever §6d printed `VALIDATION NOT POSTED:`, whether the render or the post failed: the third line then says the comment was not posted for the commit. Copy the three lines under `## Testing` as printed. The one line the skill may add is `Manual UI test plan: see PR comment.`, when it posts a plan; no other line is added, changed or removed. When the command exits non-zero, or the pass ran no final verification of its own (the loop did not start, or stopped early before §5f), print `TESTING SUMMARY UNAVAILABLE: <reason>` and write the hand-written form below instead, `Verified locally` and `Not covered` among it; it never stops the description from being published. Without `--review` there are no records, and `## Testing` is the hand-written form.
```markdown
## Summary
Change: <the Change: line the brief printed in §3, copied exactly; `Change: none` when no change resolved>
2–4 bullets: what changed and why. Lead with the why.
<the block from §6c, as printed. It begins with its own "## Merge confidence" heading. Leave this section out entirely when the assessment stopped.>
## Changes
Grouped by capability, using spec names as headers where possible:
- **<capability>**: <one-line user-visible change>
- <files or modules touched>
## Must Not Change
2–5 bullets: behaviour this change must leave as it was, each with how that was checked (a test, a spec scenario, a read of the code).
## High Risk Changes
Production risks, each with its mitigation. Write `None` if there are none.
## Prerequisites to Production
Before merging: <what must be true or done before this merges, or `none`>
Before deploying: <env vars, migrations, feature flags, config, or `none`>
## How to Roll Back
Undo: <how to take the change back out, usually a revert of the merge commit>
Not undone by a revert: <data, state or published effects a revert leaves behind, or `nothing`>
Order: <what must be undone first, or `no order`>
## Testing
- Unit: <N added / N updated> — `<command>` passing
- Verified locally: <one line on what was exercised>
- Not covered: <gap, or "none">
```
**`## Testing` answers "was this verified?", not "how do I test it by hand?"** Three to five bullets, readable without scrolling.
**Never embed the manual test plan in the description.** It goes in a comment, via `--test-plan`. When you post one in this run, add a single closing line to `## Testing`:
```
Manual UI test plan: see PR comment.
```
Omit that line when `--test-plan` was not passed.
**Where each section comes from.** The brief from §3 holds the facts. The `Change:` line is its line, copied as printed. `## Must Not Change` starts from its held living requirements and the `design.md` `## Goals / Non-Goals` row: two to five bullets chosen from them, not the whole list. `## High Risk Changes` reads the `## Risks / Trade-offs` row, `## Prerequisites to Production` the `proposal.md` `## Impact` row, and `## How to Roll Back` the `## Migration Plan` row. A row that reads `not found` means the artifacts do not answer it: write the section from the diff.
**`## Must Not Change` and `## How to Roll Back` are never a bare `None`.** Every change leaves something alone, and every change is either undone some way or cannot be: when it cannot, `Undo:` says so and why. A reason after it (`None: <why>`) is an answer; `None` alone is not, and the check in §9a refuses it. `## High Risk Changes` and `## Prerequisites to Production` may still be `None`.
**`## High Risk Changes` is narrative under the CLI's verdict.** How hard a reviewer should look is stated by `## Merge confidence`, which the CLI computed. This section says in words what could go wrong in production and how each risk is mitigated; how the change is undone is `## How to Roll Back`'s to say. It states no verdict, no score and no band of its own, and it never softens or contradicts the block above it.
---
## 8. Write the local artifact
Write `openspec/changes/<change-name>/settle-summary.md` with the branch name, commit message, PR title (≤70 chars), and the full description; for a change read from the archive (§2), write it into the archived directory instead, `<dir>/settle-summary.md`. This survives the session; the platform copy can be regenerated from it.
---
## 9. Publish
### 9a. The description
The pull request exists by now: §2 found it, or §4 created it. Publishing is an update.
```bash
# GitLab
glab mr update <id> --description "$(cat <<'EOF'
<description>
EOF
)"
# GitHub
gh pr edit <id> --body "$(cat <<'EOF'
<description>
EOF
)"
```
Updating **replaces the description entirely.** If the existing description contains anything hand-written by a human, say so and confirm before overwriting it.
Then read the description back from the platform and check it: the check reads what a reviewer will read, not the copy you typed. Pass `--change <change>` when a change resolved, and leave it off when none did:
```bash
# GitHub
gh pr view <id> --json body | interlock settle description-check --file - --from-json body --change <change>
# GitLab — not exercised: written from glab's documentation; the GitHub line is the one this repository runs
glab mr view <id> --output json | interlock settle description-check --file - --from-json description --change <change>
```
- **Exit 0** prints `description complete:` with the `Change:` line it found. Carry on.
- **`DESCRIPTION INCOMPLETE:`** on standard error names each missing or empty section, a bare `None`, or a wrong `Change:` line. Write what it names, publish the description again a single time with the line above, and run the check once more. When it still says `DESCRIPTION INCOMPLETE:`, report that line with its problems and carry on. Never publish a third time.
- **Any other non-zero exit** is a check that could not run: the platform read failed, or it printed no description. Report `DESCRIPTION NOT CHECKED:` with the reason from standard error, and carry on.
Neither stops the pass: the labels in §9b and everything after them run whatever the check said.
### 9b. The labels
When the assessment stopped in §6 there is no verdict to apply, and this step still runs: go to **The assessment stopped** below, because there may be a label to take off.
A label is a claim about one commit, and the platform keeps a label when new commits arrive. So read the platform's head **again**, now, and compare it with `head.sha` from §6b:
```bash
# GitHub — the head commit and the labels the pull request carries
gh pr view <n> --json headRefOid,labels
# GitLab — `sha` is the head commit, `labels` what the pull request carries
glab mr view <iid> --output json
```
From the labels the pull request carries, pick the predecessors: every one that is in `labels.verdictNames` or starts with `labels.scorePrefix`.
**The head is still `head.sha`.** Remove the predecessors, then add the two labels the command printed, in two calls. Do both even when the verdict and score are unchanged, so the platform records the new assessment.
```bash
# GitHub — make sure both labels exist, with the colour and description the command printed
gh label create "<labels.verdict.name>" --color "<labels.verdict.color>" --description "<labels.verdict.description>" --force
gh label create "<labels.score.name>" --color "<labels.score.color>" --description "<labels.score.description>" --force
gh pr edit <n> --remove-label "<predecessor>,<predecessor>"
gh pr edit <n> --add-label "<labels.verdict.name>,<labels.score.name>"
# GitLab — a label is created the first time it is applied
glab mr update <iid> --unlabel "<predecessor>,<predecessor>"
glab mr update <iid> --label "<labels.verdict.name>,<labels.score.name>"
```
Leave the removal out when the pull request carries no predecessor.
**The head moved, or `head` is null.** Remove the predecessors and add nothing. Say that the verdict describes a commit that is no longer the head, name both commits, and tell the reader to run the skill again.
**The assessment stopped.** A label an earlier assessment left would go on claiming a verdict that nobody computed for this commit, so it comes off. There is no `labels` from §6b to recognise it by. Ask the command for the names alone. This reads no input and assesses nothing, so it answers when the assessment could not:
```bash
interlock merge-confidence --label-names --json
```
It prints `labels.verdictNames` and `labels.scorePrefix`. Read the labels the pull request carries with the platform read above, pick the predecessors the same way, remove them and add nothing. Say that the pull request carries no verdict label because the assessment stopped, and give the reason from §6.
**A label that cannot be created, applied or removed is reported**, with the platform's own message and the label's name. Never pass over it, and never say a label was applied or removed that was not.
### 9c. The confidence comment
Only with `--confidence-comment`. Post the block from §6c as a comment, unedited:
```bash
# GitHub — straight from the command, so nothing is retyped
interlock merge-confidence <change> --base origin/<target branch> --changed <files> --pipeline .claude/ship/pipeline.json --run .claude/ship/merge-confidence.json --review .claude/ship/settle/review-r<last>.json --verify .claude/ship/settle/verify.json --handoff .claude/ship/settle/handoff.json --coverage .claude/ship/settle/coverage.json --markdown | gh pr comment <n> --body-file -
# GitLab — not exercised
glab mr note <iid> -m "<the block, as printed>"
```
Without the flag, post no such comment.
---
## 10. Optional comments
**`--test-plan`** — reuse `openspec/changes/<change>/manual-test-plan.md` when it is fresh relative to HEAD; otherwise run `/interlock:manual-test-plan` first. Post it as a comment (`gh pr comment -b`; on GitLab `glab mr note -m`, not exercised). Split across comments if it exceeds the platform's size limit.
**`--explain`** — run `/interlock:explain-code` in commit teach-in mode and post the walkthrough as a comment.
Both are **comment-only, always.** Neither ever enters the description — a reviewer opening the PR should see the summary, not a 200-line test script.
---
## 11. Close the loop: say what still needs archiving
This is the last point the change is in your hands, so it is where the spec lifecycle gets a mention. With `--review`, the report also says whether §6d posted the validation comment, and repeats any `VALIDATION NOT POSTED:` line.
Pass the changed-file list you already resolved in §3:
```bash
interlock drift --changed <files> --json
```
**Never blocks.** It exits 0 whatever it finds — do not branch on the exit code here, and do not refuse to publish because of it.
Four findings, in descending order of how much they deserve the reader's attention. Report only what is non-empty:
- **`unarchived`** — earlier changes finished their tasks but were never archived, so their delta specs never reached `openspec/specs/` and the living specs no longer describe what shipped. Name them and give the command:
```bash
openspec archive <change-name>
```
- **`stale.broken`** — a spec cites a file that no longer exists. This is **evidence**, not inference: the file was there when the graph was built. Report it as a real finding. If `stale.graphBuiltAt` is old, say so too — a rename against a stale graph looks identical to a deletion.
- **`orphans.orphans`** — changed source files no spec describes. **Always report `orphans.coverage` alongside the count.** "2 files have no spec" is alarming; "2 of 6, in a repo where 34% of source files have one" is informative, and on a repo still being specced the second is the honest framing.
- **`stale.aging`** — living specs older than files they cite. Weakest of the four: it compares dates on **inferred** edges, and a file can be refactored without the spec becoming wrong. Mention it only if it names a spec relevant to this change.
Then ask the review policy whether its history now suggests a rule:
```bash
interlock review-policy suggest --summary
```
Print its output verbatim, and nothing when it prints nothing. On a non-zero exit print `REVIEW POLICY SUGGEST UNAVAILABLE: <first line of its output>` and continue; it never blocks.
Then close with the one line that matters for *this* change: once the PR merges, run `openspec archive <this-change>`. Archive **after** the merge, not before: a change archived first can no longer be resolved, and the verdict then has no change to assess. Interlock does not archive for you, and nothing downstream will notice if nobody does.
If `drift` reports nothing, say nothing. A clean lifecycle does not need a paragraph.