Repository navigation
docs(copilot): judge a pull request before it is clean - #490
Conversation
The Copilot review workflow now requires the patch and its test before a thread is resolved, and it merges only when the operator names that pull request. A plain go build may print a toolchain revision, including a dirty tree, and it does not label the revision time as the build time.
toasterbook88
left a comment
There was a problem hiding this comment.
AXIS Grok gate
Verdict: PASS-WITH-RISK. No APPROVE.
PR #490 docs(copilot): judge a pull request before it is clean
Head: 9a1a5ad53e8a8d618dc9a778cafb8844980e5893
Base: main @ cb202b8e81c3141ed42124f15e5d1f40c91e5255
Files: .github/copilot/skills/pr-review-responder.yml (+44 / -66). One commit. Docs/prompt only.
Invariant check:
- Advisory vs fact plane: the skill now says GitHub
CLEANis branch protection, not fit-to-land. No snapshot, placement, or status path is touched. - HITL: removes
git add -A, amend of a remote commit, force-push, mandatory Co-authored-by, and feature/fix auto-merge. Squash merge is gated on the operator naming that pull request. Does not touch confirm/dispatch locks. - Cache badge /
--live: not in this diff. - Prohibited surfaces: no
secret_read,ssh_bypass,fleet_exec,spawn_subagent, self-authorize, or daemon restart. Prompt says leaveinternal/buildinfo/version.gounchanged and do not restart daemons in the merge step. Dependabot auto-merge andpr-truth-audit.lock.ymlare explicitly left alone. - Agent self-model: skill text only. No fleet inventory.
Residuals:
- "Omit
--adminwhen the state is alreadyCLEAN" does not forbid--adminwhen the PR is notCLEAN. A Copilot session can read that as permission to admin-merge a blocked PR once the operator names it. - The name-the-PR gate is prompt text, not a code gate.
- Test plan says
make ci-preflightpassed before the prompt was inlined../hack/verify-public-boundary.shis the check claimed on the committed prompt. - Version note matches the existing ldflag /
-buildvcs=falsesplit (built:is the ldflag timestamp; plaingo buildmay printvcs.revision, including dirty). No version test added, as the PR states.
CI at review (head 9a1a5ad): Test & Build, govulncheck, Analyze (actions), and copilot-pull-request-reviewer in progress. auto-merge skipped. Combined status success is Devin Review "trial expired / skipped", not a code check. mergeable_state is blocked.
Operator action: wait for required checks. Do not treat this COMMENT as approval. If this skill is used, do not pass --admin unless a separate operator command says so.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The workflow permits some auto-merges and documents build/toolchain behavior inaccurately.
Review effort: Balanced
Findings: 1
Open (3)
What changed in this PR
Updates the Copilot PR-handling skill to require explicit operator approval and safer branch handling.
Changes:
- Removes force-pushing, commit amendment, automatic staging, and automatic merging.
- Tightens review-thread resolution and merge requirements.
- Documents build metadata expectations.
| File | Description |
|---|---|
.github/copilot/skills/pr-review-responder.yml |
Revises the Copilot PR workflow and safety constraints. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Ship with two fixes. Ban auto-merge on every pull request, not only feature and fix. Drop the version paragraph that describes a dirty-tree line the binary does not print. The |
Auto-merge stays off for every pull request from this skill. --admin waits for a separate operator command. GOTOOLCHAIN includes the go prefix. The prompt no longer describes a dirty revision line the binary does not print.


Summary
--adminis omitted when the pull request is alreadyCLEAN.go buildmay printvcs.revision, including a dirty tree.built:stays the ldflag timestamp.Dependabot auto-merge and the generated
pr-truth-auditlock are unchanged. CI builds with-buildvcs=false, so this workflow change does not add a version-string test.Test plan
GOTOOLCHAIN=go1.26.6 make ci-preflightpassed on this branch before the prompt was inlined./hack/verify-public-boundary.shpassed on the committed prompt