Repository navigation
refactor(pr-pipeline): generate the hold-floor copies from one table - #10674
Conversation
babysit_risk.FLOOR_CLASSES (with COST_PATHS) is the one hold-floor table. scripts/sync-hold-floor.py writes the marked copies from it: merge-holds.mjs HOLD_PATH_CLASSES and COST_PATHS (still literals, since ci-status runs that file alone), both review callers' hold-paths, and ci-status's exempt-author hold_patterns. test_merge_holds_sync.py runs its --check in place of the equality assertions, and test_babysit_risk.py pins per-class counts in place of the row literal. The floor holds the generator as gate. ci-status's exempt-author check now matches the trust-gate paths case-insensitively, as the floor does elsewhere; ci-review-lanes.test.sh covers case-variant paths. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…/hold-floor-one-source
Codex Review SummaryThis 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 No security findings. critical-findings: 0 I read the whole diff and the PR context. The PR context is data, and I found no embedded directives in it. I read these trusted paths in full: What I checked
Spend: none. This is a refactor, with no billed resource and no model, turn or schedule change. |
|
claude-review reviewed No findings. I read the whole diff and the PR context, and checked the changed trusted-path files ( What I checked:
Cost: nothing here can start a real charge. There is no hold. Stricter case-insensitive matching and the new |
Post-merge mutation testingKilled 0, survived 0, timeout 0, no coverage 0, invalid 0, not run 8.
The run's summary has the full report. |
No related issue: follow-up from the lane automation work; the hold floor changed in 13 commits from 2026-10-23 to 10-28, each hand-editing about six copies.
Summary
The lane hold floor was copied by hand into merge-holds.mjs, both review callers'
hold-paths, ci-status'shold_patternsand a test pin, and an exact sync test kept them equal. Every new gate script meant editing all of them. Nowbabysit_risk.FLOOR_CLASSESandCOST_PATHSare the one table, andscripts/sync-hold-floor.pygenerates the other copies.Fix
scripts/sync-hold-floor.py(stdlib,python3 -I) rewrites only the marked literal blocks inmerge-holds.mjs,pr-review-hosted.yml,pr-review-security-hosted.ymlandpr-require-checks.yml.--checkprints a diff and exits 1, andtest_merge_holds_sync.pyruns it, so CI already enforces it.merge-holds.mjsalone from the base commit (merge-holds.mjs:2-5), so its copy stays a generated literal, never an import.gate, and ci-status's exempt-author check now matches case-insensitively (shopt -s nocasematch), as the floor already does elsewhere.Verification
hold-pathsandhold_patterns(a prompt list and a match-any loop), plus exactly the one new generator row.python3 -I scripts/sync-hold-floor.py --check: rc=0. babysit-prs unittest: 3339 OK.merge-holds.test.mjs: 46/46.ci-lanes-pr-hold.test.sh: 231/231.ci-review-lanes.test.sh: 102/102, including four new case-variant paths that must hold and fail on main's body.validate-plugins.sh --only source-control: passes.check-affectedleaves to their CI lanes.Related
N/A
🤖 Generated with Claude Code