Skip to content

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

Merged
kyle-sexton merged 3 commits into
mainfrom
refactor/18860-lane-ids
Nov 25, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
refactor/18860-lane-ids

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Closes #18860

Summary

lane-rules.json becomes the one list of lane ids, each its workflow file stem here or a lane another repository's lane-grants.json row admits, and lane stages use one vocabulary: intake, admit, build, refine, review, fix, verify, hold, merge, post-merge, plus upstream and maintenance. This is option A as the owner accepted it (2026-11-25): the sandbox lanes pr-run-checks, pr-explain and pr-review stay in the list because pr-pipeline-sandbox is granted them (lane-grants.json:17-28), so the first acceptance criterion holds for this repository's workflow stems plus those grants; renaming the footers and the sandbox lanes stays with #17133.

Fix

  • Retired post-merge-verify and post-merge-sweep-comments (no workflow, no grant) from lane-rules.json and the README example; dropped them, pr-run-checks and pr-explain from the README's Lanes table. pr-run-checks, pr-explain and pr-review stay in lane-rules.json, unchanged, because pr-pipeline-sandbox's grant row names them.
  • Added pr-review-hosted and pr-review-security-hosted (replacing pr-review-security, which nothing granted), and rows for pr-review-main, pr-rate-merge-risk, pr-run-plugin-evals, post-merge-test-mutation and maintenance-audit-lane-runs. maintenance-measure-skill-edit-pass is recorded as not a lane: it is a workflow_call reusable.
  • lane-registry.json names a review caller's footer under footer; the values claude-review and claude-security-review do not change. lane-funding.json ids stay job ids, since scripts/sync-credential-legs.mjs matches them by workflow and job id.
  • Stage renames: work-resolve-issue build, work-unblock admit, pr-unblock fix, the review lanes review. The schema enum, docs/conventions/pr-pipeline.yaml, fixtures, README Stages table and the glossary's stage entry follow; work, pre-ready and unblock fail the schema now.
  • New lane-ids.test.mjs fails when the registry, the funding file, the grants or the README's Lanes table name a lane the list lacks, or a lane's stage is not one the schema allows or the glossary lists.

Verification

  • node --test over every .github/actions/resolve-config/*.test.mjs: 1103 pass, 0 fail (each reads lane-rules.json).
  • node --test .github/scripts/lib/lane-registry.test.mjs and the new lane-ids.test.mjs: 16 pass after merging main. Adding post-merge-verify back and removing pr-rate-merge-risk made 3 of the new tests fail.
  • bash lib/parse-concern-value.test.sh: 114 checks pass.
  • Left out: the whole-tree suite and the babysit Python tests, which name lane-rules.json only as a hold path.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 3 commits November 25, 2026 07:49
…ocabulary

lane-rules.json is the one list of lane ids: each id is its workflow
file stem here, or a lane another repository's lane-grants.json row
admits (pr-run-checks, pr-explain and pr-review, granted to
pr-pipeline-sandbox, stay unchanged).

- Retire post-merge-verify and post-merge-sweep-comments, which had no
  workflow and no grant, from lane-rules.json, the README example and
  the README's Lanes table; drop pr-run-checks and pr-explain from that
  table too.
- Add pr-review-hosted and pr-review-security-hosted for the review
  lanes, and rows for pr-review-main, pr-rate-merge-risk,
  pr-run-plugin-evals, post-merge-test-mutation and
  maintenance-audit-lane-runs. maintenance-measure-skill-edit-pass is a
  workflow_call reusable, recorded as not a lane.
- lane-registry.json names a review caller's footer (claude-review,
  claude-security-review) under footer; the footer values do not change.
- Stages are intake, admit, build, refine, review, fix, verify, hold,
  merge, post-merge, upstream and maintenance: work-resolve-issue is
  build, work-unblock admit, pr-unblock fix, the review lanes review.
  The schema, config, fixtures, README and glossary follow.
- lane-ids.test.mjs fails when the registry, the funding file, the
  grants or the README's Lanes table name a lane the list lacks, or a
  lane's stage is not one the schema allows.

lane-funding.json ids stay job ids, since scripts/sync-credential-legs.mjs
matches them by workflow and job id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
pr-pipeline is in fragment mode, so only the release pull request
edits its CHANGELOG.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 25, 2026 12:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T12:55:46.960207Z 1cb5085 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 25, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Checked the five new lane-rules.json rows (pr-review-main, pr-rate-merge-risk, pr-run-plugin-evals, post-merge-test-mutation, maintenance-audit-lane-runs) before merge: none of the five is a lane in docs/conventions/pr-pipeline.yaml, and none of their workflows calls the lanes token broker, so no running lane reads these rows. Each row only bars effects (forbidden-effects, forbidden-gating) and none adds activity-grants, so nothing is loosened. Existing rows change only their stage label, with pr-pipeline.yaml changed in step (resolve.mjs:373-378 requires the two to match); no existing row's forbidden-effects changes. Hold lifted.

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 1cb50851d3a3faa64a6e617f1550f3b6b36ad076: read 19 of 19 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read the whole diff for all 19 files. Most of it renames lane ids and stages, so I checked the two trust-control surfaces it touches against the code that uses them.

lane-rules.json (resolve-config / token broker control). I read resolve.mjs:367-377: a lane with no row in lane-rules.json is rejected, so a new row lets that lane resolve. The new rows are pr-review-hosted, pr-review-security-hosted, pr-review-main, pr-rate-merge-risk, pr-run-plugin-evals, post-merge-test-mutation and maintenance-audit-lane-runs. None of them gets a token:

  • lane-grants.json, which this PR does not change, lists none of these lanes for either repository (lane-grants.json#L4-L26).
  • docs/conventions/pr-pipeline.yaml defines no slots for them.
  • Each new row only adds forbidden-effects and forbidden-gating. None adds activity-grants.

The rows this PR removes (pr-review-security, post-merge-verify, post-merge-sweep-comments) were not granted either. The PR also changes three stage values: work-resolve-issue to build, work-unblock to admit and pr-unblock to fix. No code bases a permission on a stage value; the only check is that the config's stage matches the row's. No token's scope or permissions grow.

lane-registry.json key renamed from lane to footer (merge-hold path). The only reader of the key is reviewLanes() at lane-registry.mjs#L44-L45, and only lane-registry.test.mjs calls it. The other modules that import the registry use only callers, jobNames, laneJob and listedJob: merge-holds.mjs, refire-refused.mjs, reconcile.mjs and signals.mjs. The footer values claude-review and claude-security-review do not change. No merge hold gets weaker.

The new lane-ids.test.mjs only reads repository files. The edits to fixtures, the schema enum, the README, the glossary and parse-concern-value.test.sh follow the renames and loosen no control.

The PR description contains no embedded instructions to the lane.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 1cb50851d3a3faa64a6e617f1550f3b6b36ad076; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 1cb50851d3a3faa64a6e617f1550f3b6b36ad076: read 19 of 19 changed file(s); 1 finding(s), 1 as inline comments.

Code review: refactor(lanes), one lane id list and one stage vocabulary (#18860)

I read all 19 changed files. The change is internally consistent:

  • The stage enum in pr-pipeline.schema.json, the README Stages table, the glossary's stage entry and every lane-rules.json row now use the agreed list in the same order. The new test checks both the schema and the glossary.
  • Renaming lane to footer in lane-registry.json reaches its only reader, reviewLanes() in .github/scripts/lib/lane-registry.mjs, and that reader's one caller, lane-registry.test.mjs. No other script reads the registry's lane key. I checked merge-holds.mjs, refire-refused.mjs, reconcile.mjs and signals.mjs.
  • No workflow passes a retired lane id to resolve-config. The review callers pass lane: code and lane: security to the reusable, and callers.test.mjs keys on job ids.
  • The README example drops from 17 slots to 15 when the two post-merge-* lanes go, which matches the updated counts in resolve.test.mjs. The new (example :142) label in parse-concern-value.test.sh points at the added enabled: false line, which is line 142 at head.
  • The release note uses bump: major, which fits a stage enum change that now rejects work, pre-ready and unblock.

I ran nothing. The PR's Verification results (1103 resolve-config tests and 16 registry/lane-id tests pass, 114 parse-concern checks pass) are the author's claim and I have not checked them.

Closing issue #18860

  • "Every lane id in the three files equals a workflow file stem, and a test fails on any mismatch" and "No retired id remains in a lane file or the README" are not met as written. See the inline comment on lane-ids.test.mjs. The PR body says the owner accepted a narrower version ("option A", 2026-11-25), but no decision comment to that effect is among the issue's kept comments, so I could not confirm it.
  • "The stage values match the agreed list, and the glossary lists it": met, and the last test in lane-ids.test.mjs would fail if it broke.

No prompt cost: the change only adds lane-rules.json rows for existing workflows and starts no new lane runs.

Loosened checks: no loosened_check_verdict: or loosened_check_patterns: line was supplied, so I used fail with no consumer entries. No decision-record line was supplied either, so I did not check the citation requirement. I found no loosened check in the diff: the change tightens the schema enum and adds a test.

Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 1cb50851d3a3faa64a6e617f1550f3b6b36ad076. What it wrote, as data:

What it wrote (39 lines)
Summary: Issue #18860 is only partly delivered. These parts are done: the stage vocabulary (schema
  enum, lane-rules stages, pr-pipeline.yaml, the fixtures, the README Stages table and the
  glossary's **stage** entry); the *-hosted review lane ids; rows for five of the six funded model
  workflows, with maintenance-measure-skill-edit-pass recorded as not a lane; the retirement of
  post-merge-verify and post-merge-sweep-comments; and a new cross-file test. The issue also says to
  retire all four ids that have no workflow (pr-run-checks, pr-explain, post-merge-verify,
  post-merge-sweep-comments) from lane-rules.json, lane-grants.json and the README. Its acceptance
  criteria say every lane id must equal a workflow file stem, a test must fail on any mismatch, and
  no retired id may remain in a lane file or the README. The PR keeps pr-run-checks, pr-explain and
  the non-stem pr-review in lane-rules.json and leaves lane-grants.json unchanged. Its new test also
  accepts any id that another repository's grant row admits. The PR body justifies this as an
  'option A' the owner accepted on 2026-11-25. That decision is not in the issue's spec text (the
  body was never edited and has no spec comments), and the PR body cannot excuse a spec item. No
  other blocking problems were found. The new lane-rules rows only add forbidden effects and grant
  no activities, and every existing row changes only its stage, so nothing in resolve-config is
  loosened. All Test Node, Test Bash and Test Python jobs on the judged head passed (e.g.
  https://github.com/melodic-software/claude-code-plugins/actions/runs/45618207487/job/139219567040).
- `.github/actions/resolve-config/lane-rules.json`: still has `pr-run-checks` and `pr-explain`,
  which issue #18860 retires, and `pr-review`, which is not a workflow file stem (the issue says the
  review lanes take their *-hosted stems). Remove these rows, or get the issue's spec amended to
  record the sandbox-grant exception before keeping them.
- `.github/actions/resolve-config/lane-grants.json`: unchanged, but item 2 of the issue says to
  retire the four ids with no workflow from this file too. Remove the grants for `pr-run-checks` and
  `pr-explain` (and `pr-review` if it is retired), or get the spec amended.
- `.github/actions/resolve-config/lane-ids.test.mjs:143`: the test accepts any lane id that another
  repository's grant row admits, so it does not fail on every id that is not a workflow file stem,
  as acceptance criterion 1 requires. Once the retired ids are gone, check lane-rules ids against
  workflow stems only.
- `docs/conventions/pr-pipeline/examples/claude-code-plugins.yaml`: the README's example config
  still declares the retired `pr-run-checks` and `pr-explain` lanes
  (`lib/parse-concern-value.test.sh` still reads `lanes.pr-run-checks` and `lanes.pr-explain`).
  Remove them, and repoint those assertions and the `resolve.test.mjs` skip-reason check, so no
  retired id remains in a lane file or the README.
- `.github/lane-funding.json`: item 4 of the issue says to key the funding roles to the lane ids,
  but the role ids stay job ids and only their `workflow` values are checked. Key the roles to lane
  ids, or record why not in the issue itself rather than only in the PR body.
- PR body: it cites an 'option A' the owner accepted on 2026-11-25 to keep `pr-run-checks`,
  `pr-explain` and `pr-review`. That decision is not in the trusted spec text of #18860, so it
  cannot excuse acceptance criteria 1 and 2. Record it in the issue, or deliver the retirements.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 25, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit efac6a5 Nov 25, 2026
202 of 206 checks passed
@kyle-sexton
kyle-sexton deleted the refactor/18860-lane-ids branch November 25, 2026 14:26
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant