Repository navigation
feat(skills): add frostyard-risk-paths - #268
Merged
Merged
Conversation
A first risk-path list often misses privileged files: callers of a delete, files that enforce a token scope, gates of signing, sudo entry points in other packages, installers. Reviews then find them 1 at a time, and authors write why values with no rule B category or coverage tests that accept L3 or L4 globs. The skill gives the procedure: a marker scan by family, callers and gates of each hit, L1 or L2 globs with a rule B why, and a coverage test with a required-file list, a marker scan and a negative control. AGENTS.md and the shared-skills design list it.
…list Cross-review of 05cff41 found 2 blocking points in frostyard-risk-paths: - The coverage sample read e.level, so it rejected every version 1 entry, which has no level and counts as L1. The sample now accepts a version 1 list or a level of L1 or L2. - Step 6 said the PR that changes the list gets risk:high. A PR that adds the first list gets no label (no list on base, spec rule E); the author now adds risk:high and the level label by hand. The glob note also names the ** exception of rule A. AGENTS.md gains a rule for both points, with 2 correction records.
Adding a missing label through the API creates it; only the accountable owner creates labels. Keep a stricter level label that the PR has.
bketelsen
approved these changes
Nov 16, 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 the shared skill
frostyard-risk-paths(.agents/skills/frostyard-risk-paths/SKILL.md): how to write or extend a repository's.github/risk-paths.jsonso that every privileged file matches an L1 or L2 glob.The problem, from #249: a first list often misses privileged files, and cross-review then finds them 1 at a time. The 27 correction records that #249 cites (17 repositories, 2026-11-04 to 2026-11-11, under
.memory/corrections/on eachmain) fall in 3 classes, and each class has a step and a pitfall in the skill:whywith no category of spec rule B: step 4 lists the exactWHY_CATEGORIESnames and the names seen in the records that are not categories; step 5 runscheckWhyCategories.L1orL2, not any glob and not a floor (rule G floors depend on the path name, so a rename can remove them).The coverage test has a negative control and asserts a count above 0, so it cannot pass on an empty list. Step 6 covers the PR:
make ci, and the PR body names each matched path and why the change is safe (spec rule F).Also in this PR:
AGENTS.md: 1 skill bullet, afterfrostyard-readme; 1 rule after the "Risk paths follow" bullet (the guard for 2 review findings, below)..memory/corrections/2026-11-15-pr-268-risk-level-v1-entries.jsonand2026-11-15-pr-268-first-list-no-label.json, each withpromoted_to: "AGENTS.md".docs/design/shared-skills.md: 1 row in the skills table.Not in this PR: the skill is not added to the sync defaults in
.github/skills-sync.json(an L1 risk path). Consumers find it in core'sAGENTS.mduntil a separate PR enrolls it.Rationale: ADR-0068, ADR-0078, risk-paths spec.
Risk tier
Risk tier: 1 — skill and docs only. The 3 changed paths match no glob in
.github/risk-paths.jsonand no organization floor (the path words offrostyard-risk-paths/SKILL.mdareagents,skills,frostyard,risk,paths,skill,md).Docs housekeeping
.agents/skills/TEMPLATE/SKILL.md(goal and done line, Steps, Pitfalls)AGENTS.md's Skills section and in thedocs/design/shared-skills.mdtablecheck:docsrejects relative links that leave.agents/skills)Verification
make cigreen on05cff41before the first push, and again on5b1c4c4and837b770(npm run check:check:docs,check:organization, tests: 953 pass, 0 fail)node scripts/check-corrections.mjs --root . --base origin/main:ok corrections: 60 records, append-only vs origin/mainscripts/lib/risk-paths.mjs: version 1signing/**againstsigning/a.shgives true; a version 2 L3 glob gives false; a version 2 L2 glob gives true; a version 2 L1 glob that does not match gives falseCross-review
Reviewer
openai/gpt-6.1-sol, coderanthropic/claude-opus-5-5, base675c34df887812d956b796a7ed02f5a8f41e9a54.05cff413fb1c6112d0ee46f1812673b384a34c86: Not ready, 2 blocking findings and 1 low finding.e.level, so it rejected every version 1 entry (nolevel, counts as L1). Fixed in5b1c4c4: the sample acceptslist.schema_version === 1or a level of L1 or L2.risk:high; a PR that adds the first list gets no label (no list on base, spec rule E). Fixed in5b1c4c4: the author addsrisk:highand the level label by hand.**exception. Fixed in5b1c4c4.Guard: no test reads a skill's prose, so the guard is the new
AGENTS.mdrule and the 2 correction records above.5b1c4c41f2b0e30e7c81f7e5bc8f3591d1eb09ed: Ready, findings 1 to 3 resolved; 1 new low finding (add only labels that exist: adding a missing label creates it). Fixed in837b770.837b770b0a8d51f58bbb26a9a133d3177012742d: Ready,Blocking: none, 0 findings.Revert test: exempt (skill and docs only, no executable behavior).
Not covered: the skill's procedure was not run on a repository in this PR; the marker patterns are examples to adapt per language, and no test reads the skill text beyond
check:docs(links, index, symlinks).Fixes #249