Skip to content

feat(skills-sync): sync frostyard-risk-paths to every consumer - #271

Merged
bketelsen merged 5 commits into
mainfrom
lucilla/skills-sync-risk-paths-default
Nov 16, 2026
Merged

bketelsen merged 5 commits into
mainfrom
lucilla/skills-sync-risk-paths-default

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add frostyard-risk-paths to defaults in .github/skills-sync.json. Every repository in the skills sync then gets the skill, so each owner can write or extend the .github/risk-paths.json list that baseline row B6 requires (ADR-0068, ADR-0071). docs/design/shared-skills.md names it as a default skill in its references.

Depended on #268, now merged. #268 added .agents/skills/frostyard-risk-paths/ and squash-merged into main as 37d1198 on 2026-11-16. This PR now targets main; origin/main was merged into the branch (no force-push). On main before #268, test/managed-skills-go-free.test.mjs failed with managed skill directory missing: .agents/skills/frostyard-risk-paths (checked in a scratch worktree with this file applied: 2 pass, 1 fail).

Risk tier

High. The PR touches 1 risk path.

Path Level why in .github/risk-paths.json
.github/skills-sync.json L1 workflow-and-permissions: the repositories that the skills sync writes to

Why the change is safe:

  • It adds 1 skill name to defaults. It adds no repository to repos, so the set of repositories the sync writes to (and the token access it needs) does not change.
  • The sync writes the skill only into .agents/skills/frostyard-risk-paths/ of each consumer, by its normal PR (ADR-0026); no consumer default branch gets a direct push.
  • The skill directory holds Markdown only; test/managed-skills-go-free.test.mjs checks every managed skill for Go files (25 skills, 140 files checked).
  • scripts/sync-skills.sh stops before any clone when a name has no directory under .agents/skills/, so a merge before feat(skills): add frostyard-risk-paths #268 could not push a broken tree; the test above fails first in CI.

Checks

  • make ci at 795d212 and again at 4f25daa (after the merge of main): 953 tests, 953 pass, 0 fail.
  • Revert test: exempt (config-only; no new behavior in code). The negative control above shows that the existing test catches a default skill with no directory.

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.
Add frostyard-risk-paths to the defaults in .github/skills-sync.json, so
each repository in the sync gets the skill for its baseline row B6 list
(ADR-0068, ADR-0071). Name the skill as a default skill in the
references of docs/design/shared-skills.md.
@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 16, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review record

  • Reviewer: openai/gpt-6.1-sol (read-only subagent). Coder: anthropic/claude-opus-5-5.
  • Reviewed: base 837b770b0a8d51f58bbb26a9a133d3177012742d (head of feat(skills): add frostyard-risk-paths #268), head 795d2122cdcc52db5ddfd7b61ad1160e81dfea3b. Included: both changed files, with scripts/sync-skills.sh, docs/design/skills-sync-operations.md, test/managed-skills-go-free.test.mjs and .agents/skills/frostyard-risk-paths/ as context. Excluded: a fresh review of feat(skills): add frostyard-risk-paths #268 itself.
  • Result: Ready. Blocking: none. Findings: none. The reviewer confirmed that repos does not change, the JSON matches the shape the sync script checks, the skill suits Go and non-Go consumers, no defaults list in the docs is now stale, and git rebase --onto origin/main 837b770 is the right step after feat(skills): add frostyard-risk-paths #268 squash-merges.
  • Risk path read first: .github/skills-sync.json (L1).
  • CI at 795d212: docs-gate, fleet-conventions, scaffold-e2e pass; pr-triage labelled risk:high and level:L1.

@frostyard-machines frostyard-machines added ready-for-human Reviewed, CI green: ready for Brian to review and merge and removed ready-for-human Reviewed, CI green: ready for Brian to review and merge labels Nov 16, 2026
Base automatically changed from lucilla/core-249-risk-paths-skill to main November 16, 2026 07:15
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review exemption: unchanged update after a merge of main

#268 squash-merged into main as 37d119826c40baff8b617cddbfc8c86415b93782 (2026-11-16), and GitHub retargeted this PR to main. I merged origin/main into the branch (no rebase, no force-push).

  • Reviewed head: 795d2122cdcc52db5ddfd7b61ad1160e81dfea3b; old base: 837b770b0a8d51f58bbb26a9a133d3177012742d (head of feat(skills): add frostyard-risk-paths #268).
  • New head: 4f25daacf7c1f19248b4fb5f5407ab499c22e390 (merge commit); new base: 9f7a969aba67ea9d0fd091f4e3cb5fcab21a554a (origin/main).
  • The merge had no conflicts: AGENTS.md and docs/design/shared-skills.md auto-merged.
  • git diff origin/main...HEAD --stat shows 2 files: .github/skills-sync.json (1 line) and docs/design/shared-skills.md (the references line).
  • git diff 837b770 795d212 and git diff origin/main HEAD are byte-identical (I compared them with diff; no output).
  • git diff --name-only 837b770 origin/main lists no path that matches skills-sync, sync-skills, shared-skills or managed-skills.
  • Compatibility check by the same reviewer model (openai/gpt-6.1-sol, read-only), covering docs(memory): let promoted_to name the guard that the same PR adds #267 to docs(skills): add a Record evidence section to frostyard-repo-docs #270 on main: Compatible. The squash-merged frostyard-risk-paths skill is identical to its content at 837b770, and no change on main touches the sync config shape, scripts/sync-skills.sh, the managed-skills test or a list of default skills.
  • make ci at 4f25daa: 953 tests, 953 pass, 0 fail.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 16, 2026
@bketelsen
bketelsen added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 17b49ba Nov 16, 2026
6 checks passed
@bketelsen
bketelsen deleted the lucilla/skills-sync-risk-paths-default branch November 16, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants