Skip to content

refactor(lanes): one lane id list keyed by workflow stem, and one stage vocabulary #18860

Done

Description

@kyle-sexton

Context

Three files name lanes three ways (owner decisions Q2013 in workshop 07; Q2103, Q2110-Q2112, Q2138-Q2139 in workshop 08, 2026-11-24):

  • .github/actions/resolve-config/lane-rules.json: 17 ids, 11 equal to a workflow file stem;
  • .github/lane-registry.json: job and check names per workflow file, calling the review lanes claude-review and claude-security-review;
  • .github/lane-funding.json: funding per role.

Four ids have no workflow and nothing dispatches them (pr-run-checks, pr-explain, post-merge-verify, post-merge-sweep-comments), yet docs/conventions/pr-pipeline/README.md:194,197,202-203 says they are started. Six funded model workflows have no lane-rules.json entry (audit-lane-runs, post-merge-test-mutation, rate-merge-risk, pr-review-main, pr-run-plugin-evals, measure-skill-edit-pass). No check compares the files.

The stage vocabulary also differs: lane-rules.json says work, unblock and verify (for the review lanes) where the factory trends page says Build, Fix and Review.

Proposed work

  1. lane-rules.json is the one list of lane ids; each id is its workflow file stem (the two review lanes take their *-hosted stems).
  2. Retire the four ids with no workflow from lane-rules.json, lane-grants.json and the README table.
  3. Give each of the six funded model workflows a lane-rules.json entry, or record it as not a lane.
  4. Key lane-funding.json roles and lane-registry.json workflows to those ids, and add one test that fails when the files disagree.
  5. Rename the stage values to the one agreed list: intake, admit, build, refine, review, fix, verify, hold, merge, post-merge, plus upstream and maintenance; update the glossary's stage entry to list it.

Wait for the open PRs on these files to merge first: #18820 and #18818 (lane-funding.json), #18807, #18643 and #18664 (pr-pipeline/README.md).

Scope amendment (owner, 2026-11-25, option A)

The owner chose option A after the build found three facts the items above did not account for. It replaces items 1, 2 and 4 where they differ:

  • pr-run-checks, pr-explain and pr-review are live lanes of melodic-software/pr-pipeline-sandbox, granted in .github/actions/resolve-config/lane-grants.json (row 1404052094). They stay in lane-rules.json and lane-grants.json; retiring them would make the broker deny running lanes. Only post-merge-verify and post-merge-sweep-comments, which have no grant and no workflow, are retired.
  • The footer names claude-review and claude-security-review stay, under a footer field in lane-registry.json, because the merge lane matches them (.github/scripts/lib/lane-binding.mjs:60) and the ci-workflows reusable writes them. Renaming the footers and the sandbox lanes moves with ci-workflows under feat(lanes): map every automated task from ideation to merged pull request #17133.
  • lane-funding.json role ids stay job ids, because the credential sync matches them as job ids (scripts/sync-credential-legs.mjs:96); funding keys to lanes through its existing workflow field.

Acceptance criteria

  • Every lane id in lane-rules.json equals a workflow file stem in this repository or is a lane another repository's lane-grants.json row grants, and a test fails on any other id.
  • No retired id (post-merge-verify, post-merge-sweep-comments) remains in a lane file or the README.
  • Every lane-registry.json and lane-funding.json workflow is a lane or recorded as not a lane, and the test fails otherwise.
  • The stage values match the agreed list, and the glossary lists it.

References

Activity

  1. added
    session-owned
    on Nov 24, 2026
  2. kyle-sexton commented on Nov 25, 2026

    @kyle-sexton
    MemberAuthor

    Scope decided (owner, 2026-11-25, 'go with recommendations', option A): retire only the two dead ids post-merge-verify and post-merge-sweep-comments; keep pr-run-checks, pr-explain and pr-review, which melodic-software/pr-pipeline-sandbox is granted (.github/actions/resolve-config/lane-grants.json:17-28), so the first acceptance criterion reads: every lane id equals a workflow stem here or a lane another repository's grant row admits. The review footer names claude-review and claude-security-review stay, kept under a footer field, because the merge lane matches them (.github/scripts/lib/lane-binding.mjs:60). Renaming the footers and the sandbox lanes stays with #17133. Delivered by #19040.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions