Repository navigation
Run the code-boundary ratchet in the push check and before the merge slot - #3390
Conversation
Pragmatic Code Review: PR #3390 (initial review, medium depth)Review Type: Tooling / gate wiring ( Requirements Check (issue #3300)
The three deviations in the PR body (stage comment says "a raised count fails", the two acceptance criteria that can't hold, and the third CLAUDE.md edit) are correct against Verification of the specific concerns
Code Review FindingsNo blockers. 🟢 Suggestion: file the follow-up issue for the failure output; the PR body mentions it but none exists.
🟢 Nit: the CLAUDE.md line 116 clause reads "runs in Observation (no action): the merge gate now runs the ratchet twice, in the lint stage and in the RecommendationAPPROVE. The change is small and atomic. The stage sits at the right point in the gate, adds no marker, changes no baseline, and its docs match the code. The deviations from the issue are correctly derived from the one-way ratchet that landed. Ready to merge through |
mstomar125
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Address-review summaryReview verdict was APPROVE with no blockers. Two non-blocking items:
The push check ran the new stage on this push ( Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The only change since the review is one reordered clause in CLAUDE.md. No code, no script and no baseline moved. 🤖 Generated with Claude Code |
…slot Add a check-pro-boundary stage to the lint section of test-gate.ts, after the app-version drift check. test:changed skips the scripts tier for frontend-only and .md-only diffs, so until now such a change met the ratchet only in the merge gate's test:scripts tier, after the machine slot. Both modes now run it in about a second, and in merge mode a raised count fails before the slot is taken. The stage's label and comment name the rule by its ADR and avoid the marker words, so the change adds no marker and moves no baseline. CLAUDE.md lists the check in the push bullet and says where it runs. Co-Authored-By: Claude Sonnet 5 <[email protected]>
… once Co-Authored-By: Claude Sonnet 5 <[email protected]>
1537827 to
1fe60eb
Compare
Summary
Run
scripts/check-pro-boundary.ts(the code-boundary ratchet from #3376) as a stage in the lint section ofscripts/test-gate.ts, aftercheck-version-sync..md-only diffs skip the scripts tier intest:changed, so until now they met the ratchet only in the merge gate. A push now runs it.acquireGateLock, so a raised count fails in seconds instead of minutes into a run that holds the machine slot.Also updates the
test-gate.tsheader (push bullet) and CLAUDE.md (gate callout push bullet, the Pro / Sync Boundary section's "where it runs" clause and its last bullet).Closes #3300
Deviations from the issue text
The issue was written when the ratchet compared counts for equality. #3376 landed it one-way: it fails only when a count rises above its baseline, and a count below its baseline prints a notice and exits 0. So:
nodespaced-prodeletion) no longer hold by design. I ran the README deletion through the push check: it passes, and the "lower it" notice with the paste block goes to the stage log (editionBranching113 -> 112, plus the other lowered counts). The stage prints only✓for a passing run, so that notice is in the log file, not on screen.bun run test:scripts(every merge gate)". That is now incomplete, so it also names the push check and the merge gate's lint section.Ratchet delta
None. This change adds and removes no marker (the stage label and comment name the rule by its ADR and avoid the marker words).
BASELINESis unchanged, and the check exits 0:cloudSyncHooksis 0 against a baseline of 4, from an earlier removal that did not tighten. Left as is (the check itself is out of scope); it is 4 lines of headroom until someone lowers it.Verification
bun run scripts/test-gate.ts(push mode), each change reverted afterwards:invoke('pro_example')added to a non-Pro Svelte filecheck-pro-boundary, exit 1; the stage log namespty-terminal.svelte:109under "In files this branch changed"nodespaced-prosentence deleted--mode=mergeMutation check: with the stage removed from
test-gate.ts, the marker-adding push passes (exit 0), so the block above comes from the new stage.No unit test was added:
test-gate.tsruns its gate at import, so it can't be imported by a test, and the issue specifies the runs above as the verification.Note for follow-up (not changed here)
On a failing run the gate prints only the last 40 lines of the stage log. The ratchet prints the failure and "All hits" first and the notice block last, so on screen a failure shows the tail of the hit list and the notices, not the offending line. The log path is printed and the full log names the line. Reordering that output is a change to the check, which this issue excludes.
🤖 Generated with Claude Code