Repository navigation
chore: restore measured test-code headroom - #188780
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
eb68515 to
474fecb
Compare
|
Codex review: needs maintainer review before merge. What this changesRaises the shared test-line baseline from 6,287,490 to 6,320,000 while preserving allocation records and checker behavior. Example: Compose the pending regression contribution at #188731, adding 52 test lines and a matching allocation.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authored PR makes a justified, minimal budget adjustment; no actionable correctness or security findings remain. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRepository validation counts tracked test newline bytes, combines the shared baseline with allocation records, and compares growth against a selected Git base to determine the CI budget verdict. flowchart LR
A[Tracked test files] --> D[Test-line checker]
B[Baseline and allocations] --> D
C[Git comparison base] --> D
D --> E[Budget verdict]
E --> F[CI ratchet gate]
Technical reviewBest possible solution: Use this scalar-only adjustment to restore the approved reserve while retaining the existing allocation and growth checks. Do we have a high-confidence way to reproduce the issue? The independent read-only census matches the reported target total and allocations, and the checker source explains why matching new grants cannot clear inherited debt; no target code was executed during review. Is this the best way to solve the issue? This is the smallest complete implementation of the approved bounded reserve: it changes the existing owner's scalar without adding machinery, weakening assertions, or altering counting rules. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ac3fdf3662b6. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceOther 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 6:49 PM ET / 22:49 UTC. |
|
Improved: restored measured test-code headroom while preserving the existing budget checks and regression coverage. |
Integrate canonical main 4368b27, including merged upstream PR openclaw#188780 restoring measured test-code headroom. Retain the eight PR-owned files byte-for-byte from reviewed head 9f951bd, including every regression assertion and the exact 221-line test allocation. No separate PR-local baseline raise is introduced.
Co-authored-by: hannesrudolph <[email protected]>
Restore the test-line scalar to 6,320,000, preserving the existing counter and allocations while providing measured room for regression coverage.
…d-tool-snapshot No conflicts. Picks up main's restored test-line headroom (openclaw#188780); the allocation stays 867.
What Problem This Solves
The total test-line budget currently rejects a regression contribution even when its allocation exactly covers its added tests. At
528b92792ed041366e037d084041369f93d244a7, the native counter measures 6,313,574 test lines against an effective ceiling of 6,312,538. The unchanged target passes only because it adds no lines; composing #188731 adds 52 lines and its matching 52-line allocation, then fails with the same 1,036-line deficit.User Impact
This gives the measured target and that pending regression contribution room to pass the budget gate. It changes no runtime behavior and retains every test, assertion, per-file cap, allocation, and CI check.
Why This Change Was Made
Restore the shared scalar from 6,287,490 to 6,320,000. With the existing 25,048 lines of allocations, the target's effective ceiling becomes 6,345,048, leaving 31,474 lines of reserve. The pending contribution retains that reserve because its allocation equals its growth. This is a bounded adjustment to the numeric budget; counting, growth checks, allocation validation, and pruning continue through the existing mechanism.
Evidence
Ran the unchanged
scripts/check-test-lines-ratchet.mtsremotely with explicit comparison commits on the frozen target and a private composition of #188731's exact three-file patch at60e066731214e82f71a72839f65825afd8781442:The composition after the adjustment uses the scalar-only result as its comparison base, preserving the normal allocation-to-growth check. The scalar-only run also emits the expected manual-increase warning. The published diff contains only the scalar line.
Remote iteration checks passed all seven selected type families and
git diff --check. The format check reported no supported.txttargets; the native checker validated the scalar syntax. No tests were added, removed, or rerun as a suite. Hosted CI passed, including baseline ratchets, and the exact-head automated review returned Platinum with no findings. Final native qualification against target648782312a55a9a43f468a2503a5fc0a71c7cd77also reproduced the rejection before the change and passed afterward: the target plus the pending patch contains 6,313,665 lines against an effective ceiling of 6,345,149, leaving 31,484 lines of reserve.