Repository navigation
refactor(ci): declare lane labels, markers and bot identity in one module - #18432
Conversation
…ds and bot identity .github/scripts/lib/lane-vocabulary.mjs owns the Actions bot id, the lane label names, the refinement marker and each caller's hold-label set; the lanes App login and the outside-actor and pr-verify-failed labels stay in merge-holds.mjs, which runs as a lone copy with no imports, and the module re-exports them. Twenty-two scripts import it; every value is unchanged. The module is a trust-class hold-floor row (enable-auto-merge.mjs imports it), and the sparse base checkouts of intake-triage's check-born-triaged job and ci-status's hold config list it. Reasons kept from deleted comments: - attended is the owner-present label (owner decision 2026-10-28): only a listed human removes it. - github-iac GovernedRepositories.cs declares the attended and host-run labels; host-run queues work for an unattended agent run on a host. - github-actions[bot] (id 41898282) is the identity a job's GITHUB_TOKEN acts as; REST and GraphQL report the same id. - The shared-copy refusal dispatch holds only on do-not-merge because it acts only while the human-gated label is on; the merge arm adds the tracker's human-gated label to its set itself. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep main's github-client and size-split imports beside this branch's lane-vocabulary imports; regenerate the hold floor and repin its counts and digests with the lane-vocabulary trust row added. stop-routes.test now copies lane-vocabulary.mjs and merge-holds.mjs beside its module copy, since stop-routes.mjs imports the vocabulary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: no findingsI read all 35 changed files in the diff. This refactor moves label names, record markers, the Actions bot id and the lanes App login into a new module, Checks on the trust controls and merge holds:
The only deleted text is code comments, not instructions to an agent, so the instruction-surface check does not apply. The PR description contains no embedded instructions to the review lane. Spend: none. No lane runs, turn limits, schedules or billed resources change. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThe PR adds What I checked
I did not run the tests. The pass counts in the PR body are the author's and unverified. Closing issue: none. The PR says it has no related issue, so I checked no acceptance criteria. Loosened checks: none. The changed test values in Manifests: no Spend: none. The change adds no lane runs, model calls or billing. Verifier dropped 0 of 0 candidates. |
No related issue: candidate 5 of an
/architecture:improvedeepening pass over the CI lanes, run in a local session.Summary
Label names, record markers, the Actions bot id (41898282, defined in 8 production files) and the lanes App login were re-declared in each module that used them, and each dispatcher and the merge arm kept its own set of hold labels. A rename had to find every copy.
Fix
.github/scripts/lib/lane-vocabulary.mjsowns the label names, markers,ACTIONS_BOT_ID, the lanes App login and each caller's hold set as a named export (DISPATCH_HOLDS,FEEDBACK_HOLDS,SHARED_COPY_HOLDS,ARM_HOLDS,WIP_CAP_HOLDS), so the differences between them sit in one file. No value changes.merge-holds.mjskeepsLANES_APP_LOGIN,OUTSIDE_ACTOR_LABELandPR_VERIFY_FAILED_LABELand the module re-exports them, becausepr-require-checks.yml:921git shows that file into a directory alone, so it must stay import-free.admit,apply-verdict,reenter,flagandreport-outcomere-export their old names, so their callers do not change.humanGatedLabelis not unified: the three resolvers give different results (address-feedback.mjs:742throws on an empty value and does not trim;merge-holds.mjs:1592trims and falls back).trustfloor row (its importerenable-auto-mergeis trust class);sync-hold-floor.pyregenerated its copies and the floor pins moved./.github/scripts/lib/lane-vocabulary.mjsjoins the sparse lists inintake-triage.yml(check-born-triaged job) andpr-require-checks.yml's base_config. No job's base or head source changes.work-resolve-issue/stop-routes.test.mjscopiesstop-routes.mjsinto a temp layout; it now copieslib/lane-vocabulary.mjsandpr-merge/merge-holds.mjsbeside it so the copy resolves its imports. No assertion changes. No workflow copies that folder file by file;collect-base-activitycopies all oflib/, and the write runner's apply-patch copy list needs no new file (write-runner-never-rules.test.sh75 pass).check-trusted-trigger.mjs'sACTIONS_BOT_ID, and resolve-config'sdimensions.mjs,issue-status.mjsandwrite-status.mjs(resolve-config is a self-contained trust action with no../../imports).Reasons kept from deleted comments
attendedis the owner-present label (owner decision 2026-10-28) and only a listed human removes it.GovernedRepositories.csdeclaresattendedandhost-run.GITHUB_TOKENidentity, with the same id in REST and GraphQL.do-not-mergebecause it acts only while the gate label is on.Verification
node --test --test-concurrency=4over the touched and importer suites: 5380 pass, 0 fail. The new vocabulary pin test fails when a value changes and passes when restored.sync-hold-floor.py --checkpasses.Follow-ups
needs-human, while fix-ci adds the configuredbaseHumanGatedLabel(dispatch.mjs:950-955); a repository whose human-gated label is notneeds-humanwould not hold those two dispatches.Related
Part of the
.githubdeepening series.🤖 Generated with Claude Code