Skip to content

chore: restore measured test-code headroom - #188780

Merged
shakkernerd merged 1 commit into
mainfrom
current-test-code-headroom
Oct 30, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
current-test-code-headroom

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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.mts remotely with explicit comparison commits on the frozen target and a private composition of #188731's exact three-file patch at 60e066731214e82f71a72839f65825afd8781442:

Tree Before After
Target: 6,313,574 lines 1,036 over; non-growth exit 0 31,474 spare; exit 0
Target plus pending patch: 6,313,626 lines 1,036 over; growth +52, exit 1 31,474 spare; exit 0

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 .txt targets; 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 target 648782312a55a9a43f468a2503a5fc0a71c7cd77 also 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.

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@shakkernerd
shakkernerd force-pushed the current-test-code-headroom branch from eb68515 to 474fecb Compare October 30, 2026 22:34
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Raises 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.

  • Before: The composed tree remains 1,036 lines over its ceiling and fails.
  • After: The composed tree has 31,474 lines of reserve and passes.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The reported native checker results, independently verified accounting, and exact-head ratchet pass support a minimal, correct maintenance patch.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored repository-maintenance PR is outside the ordinary contributor proof gate; its body records native checker before/after results on the frozen target and pending composition, independently corroborated by the read-only census. Inspected linked screenshots concern the separate UI correction and add no budget proof.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: A justified regression contribution fails the shared test-line gate despite allocating exactly its added coverage.
Reason: The maintainer-authored direction explicitly restores bounded headroom through the documented scalar-review route, and source inspection corroborates its purpose.

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
Reviewed head: 474fecbab53efd39170f2bc863a3d6e39e9f8292

Before merge

None.

Findings

None.

Agent review details

How this fits together

Repository 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]
Loading

Technical review

Best 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

  • Shared scalar and inherited debt changes intended behavior with a stated reason (77b37ac: improve(tests): remove redundant catalog login wait #188752 lowered the scalar by exactly three removed test newlines while deliberately preserving inherited debt.)
  • Scalar reconciliation versus independent grants keeps the original intent (f996c1c: Independent grants cover only their own growth; separately reviewed scalar reconciliation remains available for shared debt and headroom.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Other 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 1 1 1 0

Review metrics

Metric Value Why it matters
Effective test-line ceiling 6,312,538 → 6,345,048 The 32,510-line increase clears 1,036 lines of measured debt and intentionally leaves 31,474 lines of reserve.

Labels

Label changes:

  • add P3: Focused repository budget maintenance with no runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: Focused repository budget maintenance with no runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 6:49 PM ET / 22:49 UTC.

@shakkernerd
shakkernerd merged commit 1f86195 into main Oct 30, 2026
115 of 116 checks passed
@shakkernerd
shakkernerd deleted the current-test-code-headroom branch October 30, 2026 23:00
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Improved: restored measured test-code headroom while preserving the existing budget checks and regression coverage.

art22s added a commit to art22s/openclaw that referenced this pull request Oct 30, 2026
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.
roboclaw-bot added a commit that referenced this pull request Oct 31, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Restore the test-line scalar to 6,320,000, preserving the existing counter and allocations while providing measured room for regression coverage.
nxmxbbd added a commit to nxmxbbd/openclaw that referenced this pull request Oct 31, 2026
…d-tool-snapshot

No conflicts. Picks up main's restored test-line headroom (openclaw#188780); the
allocation stays 867.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant