Enforce adversarial-review evidence as a PR completion gate - #27
Merged
Conversation
Agent-Logs-Url: https://github.com/leejsinclair/kipling-v2/sessions/8f408bd4-473d-413a-bc68-d800cca3a149 Co-authored-by: leejsinclair <707675+leejsinclair@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
leejsinclair
May 16, 2026 07:50
View session
leejsinclair
approved these changes
May 16, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR strengthens the repository’s “adversarial review required” policy by making it explicit in authoring guidance, adding an explicit PR checklist attestation, and enforcing that attestation via CI on pull requests.
Changes:
- Adds a new CI job (
reviewer-evidence) that fails PRs unless the “Adversarial reviewer…” checklist item is checked in the PR body. - Updates the PR template to include the required adversarial-review evidence checklist item.
- Updates Copilot “Done Criteria” to explicitly instruct running the adversarial reviewer agent and documenting findings.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds a PR-only gate job and sets explicit GITHUB_TOKEN permissions. |
| .github/pull_request_template.md | Adds a required checklist item for adversarial reviewer evidence. |
| .github/copilot-instructions.md | Makes adversarial-review execution and documentation explicit in completion criteria. |
| env: | ||
| PR_BODY: ${{ github.event.pull_request.body }} | ||
| run: | | ||
| if ! printf '%s' "$PR_BODY" | grep -Eiq -- "- \[[xX]\] ${REVIEWER_CHECKLIST_TEXT}"; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
📝 Summary
This update closes the gap between “review required” policy and enforceable behavior. It makes adversarial-review completion explicit in authoring guidance, visible in the PR contract, and validated in CI.
🔧 Changes
.github/copilot-instructions.mdDone Criteria to require running the adversarial reviewer agent before finalization.taskwithagent_type: "adversarial-reviewer")..github/pull_request_template.md:Adversarial reviewer run completed; findings resolved or documented.reviewer-evidencePR job in.github/workflows/ci.ymlthat fails when the required checklist line is not checked.contents: read) to satisfy workflow security constraints.🎯 Motivation
The repository already required adversarial review by instruction, but there was no durable, machine-checked signal that it was actually performed. These changes make that requirement auditable and enforceable at PR time.
🧪 Testing
📸 Screenshots (optional)
N/A (no UI/behavioral surface change).
✅ Checklist