Repository navigation
ADR-0068 and the risk-paths spec: label PRs that touch high-risk paths - #190
Merged
Merged
Conversation
bketelsen
approved these changes
Nov 4, 2026
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.
Summary
Adds ADR-0068 and the spec
docs/specs/risk-paths.md(plan T801, task t3, section "Gap 3: risk paths")..github/risk-paths.json(schema_version1,paths[].glob,paths[].why, deny-by-default validation).pull_request_target, reads the list at the base SHA, reads the changed files from the API, checks out no PR head code, and addsrisk:high. It never removes the label and never creates it.ready-for-human; an owner PR has the label as its gate, and Brian reads everyrisk:highPR.docs/design/quality-loop.md(new "Flag risk paths" station),docs/README.mdindex.Docs only. The validator, matcher, reusable workflow, core's own list and caller, and the
repository-surfacesentry come in task t4, with tests.ADR number: 0068 was free on
main(2d5dc14) and in every open PR when this PR opened.Decision trail (not in the ADR, per ADR-0051)
risk:highPRs: label only; Brian reads.pull_request_target, list from the base SHA, no head checkout; job permissionscontents: read+pull-requests: write. Sheeana's consult (f2) proposed a Desk part; T801a left it out.Risk tier
Risk tier: 1 — docs only (ADR, spec, design doc, index). No workflow, script or authority file changes.
Docs housekeeping
TEMPLATE.mddocs/README.mdVerification
node scripts/check-docs.mjsgreen:checked: 91 docs, 914 links, 10 symlinksmake verifygreen:# pass 74,# fail 0Revert test: exempt (docs only, no behavior). The docs gate still proves the new links, in a scratch worktree from the PR head (
git worktree add --detach … HEAD):specs/risk-paths.mdremoved →FAIL index: docs/specs/risk-paths.md has no line in docs/README.md, exit 1;quality-loop.mdbroken →FAIL link: docs/design/quality-loop.md -> ../adr/0068-missing.md does not resolve, exit 1;Coder:
github-copilot/mai-code-2-flash(subagent), reviewed and edited by Lucilla.Cross-review
Reviewer
openai/gpt-6.1-sol; codergithub-copilot/mai-code-2-flash(author edits on Claude). Base2d5dc14.4c8d2a6: Not ready, 3 blocking findings, 1 low. All 4 accepted and fixed in7696d60:edited, notsynchronize, so a PR could avoid the label by retargeting. The caller now also runs oneditedand reads the list at the new base SHA. (This addseditedto the plan's typesopened,synchronize,reopened.)**contradicted the root-only rule for globs with no/. It is now the exception and matches every path; added examples.whyvalidation text now matches the field table.7696d60: Ready, Blocking: none.