Repository navigation
Description
A PR can pass its source checks and still enter Mergify when it already exceeds a size budget on the current main. The builder finds out after a candidate run and dequeue, even when the PR merges cleanly.
On November 26, #1230's source check passed at 7,482 source lines. I replayed the same source head 65ef54e in an offline clone with the existing size-budget script. It passed on the source check's base 7f504dee (7,482 against a 7,500 cap) and failed on 35f3d8dc, which was already on main when the PR was queued (7,508). Mergify added #1239 and measured 7,514. It removed #1230 after 104 seconds. In the November 25 21:00 through November 26 01:19 UTC audit, eight of the 12 logged budget dequeues also failed when replayed against their recorded candidate's main alone. The eight include six source-cap failures and two test-cap failures. Source check · Candidate check · Dequeue
Local validation defaults to the branch fork point. CI reads the event base and tests the event checkout. Readiness accepts the source-head checks and receipt, removes the behind-base blocker for verified Mergify queues, and can request admission without evaluating the clean integration with current main. workflow.toml:9 · .github/workflows/checks.yml:25 · scripts/size_budget.sh:15 · src/loopzero/cli.py:322 · src/loopzero/cli.py:1534
Acceptance criteria
- For a source head with green PR checks, evaluate the existing size budget on its clean temporary integration with a fresh configured target, using that same target SHA as the baseline. Keep the source checkout, review and receipt intact.
- In a two-branch test where the source passes on its fork point and exceeds the cap on the current target,
readynames the failed budget and shows the measured count and cap.mergesurfaces the same failure before a new Mergify request. An already submitted request follows the existing wait path. - Cover source, test and documentation counts through the existing checker. A tree already above a cap can still hold or shrink as the existing rule permits. Keep the existing caps, CLI options and persisted state.
The architecture link check has the same tree dependency. A separate offline fixture passed both branches independently, then failed on a clean merge because one branch linked to a path the other renamed. The architecture check lives in the same CI step and resolves links against the checkout. No architecture-link failure appeared in the sampled candidate logs. scripts/check_architecture_docs.py:53
Activity
eowca commentedon Nov 26, 2026
#1309 was closed because current main conflicts and both review rounds were used. This issue remains open for a fresh PR.