Repository navigation
ci(guards): retire 100 floor= pins in 88 guard files, computed from the base instead (#19676) - #20735
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 73b09af8e |
fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) | #20589 |
| this branch | e7a860b94 |
ci(guards): retire 100 floor= pins in 88 guard files, computed from the base instead (#19676) | #19676 |
repo_tests/credential_field_name_only_17336_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 73b09af8e |
fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) | #20589 |
| this branch | e7a860b94 |
ci(guards): retire 100 floor= pins in 88 guard files, computed from the base instead (#19676) | #19676 |
repo_tests/frontend_hand_built_relative_time_19606_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 73b09af8e |
fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) | #20589 |
| this branch | e7a860b94 |
ci(guards): retire 100 floor= pins in 88 guard files, computed from the base instead (#19676) | #19676 |
repo_tests/kit_export_shadow_ratchet_14908_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 73b09af8e |
fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) | #20589 |
| this branch | e7a860b94 |
ci(guards): retire 100 floor= pins in 88 guard files, computed from the base instead (#19676) | #19676 |
repo_tests/kit_loading_ratchet_19906_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 73b09af8e |
fix(train): the chat budget refusal is a canonical audit action, the watchdog test uses the shared repo root, and the reach floors follow the merged tree (#20589) | #20589 |
| this branch | e7a860b94 |
ci(guards): retire 100 floor= pins in 88 guard files, computed from the base instead (#19676) | #19676 |
mrveiss
left a comment
There was a problem hiding this comment.
Code review (required pre-train pass) -- verdict: APPROVE as a mechanical change, BLOCKED on #20731
Checked against the merge base with its stacked parent (deeb421): 88 files, 24 insertions, 354 deletions.
- Removed
floor=lines: 100 (every one afloor=<int>,line, some with a trailing comment). - Every other removed line is a comment. Every added line (24) is a comment.
- Mechanical proof on all 88 files: with
#comments stripped andfloor=keyword arguments dropped from the AST, old and new files are identical in all 88 (AST dump equal, so docstrings, discover, roots, skips, growth and what are unchanged). - 15 files read in full from the diff (strict-mode prompt-injection test, ansible credentials, audit-writer, captcha fork, chunker hooks, config router auth, defined-twice, docker admin seed (2 declarations), embedding literal, feature routers, frontend url served-by, infra scripts, kb read visibility, model revision pinning, partial key mask): nothing but the floor line and its comment.
| Severity | Location | Issue | Fix |
|---|---|---|---|
| MEDIUM | whole PR | Depends on #20731: without it declare() on main refuses a missing/zero floor, and the removed pins become computed floors that inherit #20731's flaw (a narrowed discover narrows the base measurement too, so the guard no longer fails). Removing the pins is what makes that flaw live. |
Land only after #20731 is fixed; do not board the same train ahead of it. |
| LOW | ansible_credentials_never_logged_19764, audit_writer_single_source_17225, chunker_private_embedding_hooks_18185, docker_admin_seed_18729, embedding_model_literal_guard_18143, infra_scripts_no_backend_imports_18288 | A comment such as "Mid-window, from REACH.window(); ..." or "Mid-window from REACH.window(): population 15 ..." now sits over a declaration with no floor. | Reword to the computed-floor sentence the other files got. |
| LOW | PR head | Stacked on the older #20731 head (deeb421); #20731 has since moved (main-sync merge). | Re-sync after #20731 settles. |
Not checked: whether any of the 100 guards has a discover that reads untracked or generated files, or ignores its root argument (the base measurement would then equal the live tree and the floor would follow it). That needs a per-guard read of 100 declarations; I did not do it. Also not checked: any test run.
…, window methods split out (#19676)
…e, four small guards keep floor= (#19676)
|
Code review on PR #20735 (head 73e7b4f): APPROVE The stack carries #20731's head 761018e, so this was checked against that, not against main.
Not checked: the count of 8 named guards (this PR keeps 7 declarations in 3 files, #20733 keeps 4 in 4), and CI execution. |
Thinking Path
This is the first of two batches retiring the population-derived
floor=pins (#19676). It is stacked on #20731, which computes a floor nobody pinned from the base commit, so it lands after #20731 in the same train. Its 88 guard files plus #20731's 10 files come to 98 files changed against main, which is under the 100-file cap.What Changed
floor=keywords are removed from module-leveldeclare(...)calls in 88 guard files. Those guards now usepopulation at the base - skips - growth.growth=andskips=is kept. Only comments changed; no other code.audio_extension_allowlist_test.pyaboutskips=300. It predates this change and is not about the removed pin.Verification
pyteston all 88 changed guard files: 1385 passed, 2 skipped.no_secret_in_response_model_17865_test.py:578, which is about a route count, not a reach floor.After review (#20731 reworked)
mid-window|window [n|window (n|re-pinnedover this batch's files now finds nothing.floor=, because theirgrowthis as large as their population, so a computed floor would be zero or less, whichcomputed_floorrefuses:chromadb-compose-services,chromadb-compose-port-sites,dpkg-list-call-sites,git-repo-root-call-site-filesRefs #19676. Stacks on #20731. Batch 2 is #20733.
Model Used
Claude Opus 5.5, with Claude Sonnet 5.5 for the comment rewording.
🤖 Generated with Claude Code