Skip to content

Skill proposal: frostyard-risk-paths #249

Closed

Description

@frostyard-machines

Problem

The first .github/risk-paths.json of a repository often misses privileged files. Cross-review then finds them 1 at a time: callers of a delete, files that enforce a token scope, signing gates, sudo entry points, installers. Authors also write why values with no category from the spec, and v2 coverage tests that accept L3 or L4 globs.

Evidence

27 correction records in 17 repositories, 2026-11-04 to 2026-11-11 (paths under .memory/corrections/ on main).

Coverage gaps (privileged files left out of the first list):

A why with no category from spec section B:

A v2 coverage test that accepts an L3 or L4 glob for a privileged file:

Proposed skill

  • Name: frostyard-risk-paths
  • description: Write or extend a repository's .github/risk-paths.json so that every privileged file matches an L1 or L2 glob. Use when a repository gets its first risk-path list (baseline row B6), when a PR adds a privileged code path, or when a review finds a file missing from the list.
  • Steps (outline):
    1. Find the privileged files with a grep list of markers: delete and remove calls, chmod and file modes, sudo and root scripts, signing and signature checks, token and scope checks, installers and uninstallers, secret entry, migrations, downloaded toolchains.
    2. Follow each marker to its callers and gates, not only the file that implements it (a caller of an install function in another package; a script that decides whether signing runs).
    3. Give each glob a level (L1 or L2 for privileged code) and a why that starts with 1 category of spec section B.
    4. Add or extend the coverage test: each found file must match an L1 or L2 glob, with a negative control (a fixture file outside the list makes the test fail).
    5. Run make verify and list each matched path and why it is safe in the PR body, as risk:high needs.
  • Repositories: every code repository with baseline row B6 (all synced repositories).

Cost of not doing it

Each new or changed list costs about 1 cross-review round (30 to 60 minutes) to find files one by one. A privileged change in a missed file merges without risk:high, so it skips the human read it needs.

Related: ADR-0068, ADR-0078, risk-paths spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions