docs(gap-baseline): record review_admission_controller.py coverage/docstring gap - #1876
docs(gap-baseline): record review_admission_controller.py coverage/docstring gap#1876seonghobae wants to merge 4 commits into
Conversation
…cstring gap scripts/ci/review_admission_controller.py (added by #1862/#1863) is below this repo's own 100% coverage and 100% docstring hard gates on protected main, reproduced directly on a clean origin/main@a9aeee8f checkout: 99% coverage (95 statements / 77 branch-parts missed, effectively all of them this module's validation raise branches) and 98.3% docstrings (~21 missing on its public surface). Independently reproduced while merge-repairing #1812's unrelated fast-path change, confirming it predates that PR. Every open PR based on current main inherits both gate failures regardless of its own diff. Also resolves a stale note in the adjacent 2026-09-04 entry: the hourly-cron test it flagged as "not yet fixed" was in fact renamed and repaired by #1870's cron-pin work, now on main and passing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BV96rXhqoR3tYZ9AeAVur4
|
Warning Review limit reachedNext included review available in 19 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
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. Comment |
|
Merged current Generated by Claude Code |
|
Generated by Claude Code |
|
Retracting this PR's premise — the gap it documents no longer exists on This PR records
So merging this PR as written would append a dated entry to Two further reasons not to merge it in its current shape:
Requesting closure rather than closing it myself, per the org convention that supersession is recorded as a comment with SHAs and the author does the closing. The durable part of this work — the method for catching dated-evidence rot, including the corrected KPI baseline and the working-tree-staleness rule that would have prevented this false reading — is carried in #1913 ( Generated by Claude Code |
…coverage
Both sides appended to `docs/product-technical-gap-baseline.md` at the same
anchor. Kept both, in this order, because the order is structurally
constrained rather than arbitrary:
- This branch's 32 lines open with "**Resolved — 2026-09-04.**" and resolve the
item described in the paragraph immediately above the conflict ("Separately
found while validating this fix, not yet fixed"). They must stay attached to
that parent paragraph.
- Main's 118 lines are a new top-level section ("Items 15/16/17 measurement"),
which follows.
Placing main's section first would have separated the resolution note from the
finding it resolves. Verified after resolution that the note sits directly
after its parent paragraph (lines 3236/3238) and that fenced code blocks are
still balanced.
Verified after resolution: 2890 passed, 1 skipped, coverage 100%,
interrogate 100%; zero conflict markers; `ruff check --select F821` clean.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Escalating the retraction: this PR is now consuming CI capacity on every main advanceI retracted this PR's premise earlier and asked for closure. Adding one fact I did not have then, because it changes this from "harmless stale PR" to an ongoing cost. It is being auto-updated. The head moved to Every one of those updates enqueues the full required-workflow set — The premise remains false on current Merging it would write The ask is unchanged and I am not performing it: close without merging. I will not close it myself, and I am not pushing to the branch — a push would only enqueue another round of the checks described above. One salvageable fragment, if anyone wants it: the adjacent Noting for the record that the auto-updater is doing exactly what it should — the problem is that nothing stops it for a PR whose content has been retracted, so the retraction has to be acted on by a person to take effect. Generated by Claude Code |
Summary
scripts/ci/review_admission_controller.py(added by#1862/#1863, "bounded durable review admission core") is below this repo's own 100% coverage and 100% docstring hard gates on protectedmain. Reproduced directly on a cleanorigin/main@a9aeee8fcheckout, independent of any open PR's own diff:coverage run -m pytest tests -q && coverage report --show-missing→ 99% (13,107 statements / 5,288 branches; 95 statements and 77 branch-parts missed, effectively all of them this module's validationraisebranches —AdmissionRequest.create's type/range checks, the durable-state JSON shape/consistency checks in_read_state, the symlink guards around the state file and its lock/backup paths, and the stale-request/lease-mismatch branches inplan_dispatches/complete_dispatch).interrogate→ 98.3% onscripts/ci, missing ~21 docstrings, all on the same module's public surface (WorkerBoundary,AdmissionRequestand its methods,RequestRecord,DispatchLease,ControllerStateand its methods,_read_state,DispatchPlan,SchedulerAdmissionGateand its nested closures).Independently reproduced (same miss counts) while merge-repairing
#1812's unrelated Rust-regex fast-path change, confirming this predates that PR. No open PR was found already carrying a fix (checked viasearch_pull_requests). This means every open PR based on currentmaininherits both gate failures regardless of its own diff — a localcoverage/interrogaterun againstmaincannot be used as clean baseline evidence until this is repaired.Also resolves a stale note in the adjacent 2026-09-04 gap-baseline entry: the hourly-cron test it flagged as "not yet fixed" (
test_review_fix_caller_runs_once_each_hour) was in fact renamed and repaired by#1870's cron-pin work, now onmainand passing astest_review_fix_caller_keeps_the_github_daily_recovery_slot.Scope
Documentation only — one dated entry appended to
docs/product-technical-gap-baseline.md, plus a short resolved-note on an adjacent stale entry. No source, test, or workflow change. Repair of the underlying gap (targeted unit tests for the validation error branches, plus docstrings) is left for a dedicated follow-up per this doc's own convention of not bundling live-code changes into a documentation-only entry.Test plan
python3 -m pytest tests/test_product_technical_gap_baseline.py -q→ 5 passed🤖 Generated with Claude Code
https://claude.ai/code/session_01BV96rXhqoR3tYZ9AeAVur4
Generated by Claude Code