Skip to content

chore: restore measured test-code headroom - #187162

Merged
shakkernerd merged 1 commit into
mainfrom
test-headroom-after-reduction
Oct 29, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
test-headroom-after-reduction

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The test-code ceiling was reduced to 6,243,924, below the current tracked test total. At 48f40fb the counter measures 6,244,804 lines. The existing non-growing exception lets that tree pass, but a correction that adds even a small amount of necessary regression coverage encounters the ceiling again.

User Impact

This restores finite headroom for regression tests and required test formatting. There is no runtime behavior change. Every test and assertion remains intact, and the existing counting rules, positive-growth check, per-file limits, and other validation gates continue to apply.

Why This Change Was Made

Change only the numeric ceiling to 6,320,000, restoring the previously selected value. A frozen composition of the remaining relevant regression changes contains 6,244,974 counted lines, 170 above the measured target. It fails the old ceiling by 1,050 lines and fits the restored ceiling with 75,026 lines of reserve.

This is a measured, bounded allowance. It does not change how the counter selects files, how branch growth is compared, or how pruning works, and it is not a guarantee for arbitrary future combinations of changes.

Evidence

The unchanged native counter ran remotely with the explicit frozen comparison commit and --no-merge-base. The target reported 6,244,804 lines with zero delta; the frozen pending composition reported 6,244,974 lines with +170 delta and exit 1 under the old ceiling. With the new ceiling, those same counted inputs pass with 75,196 and 75,026 lines of reserve respectively. The expected manual-increase warning remains visible.

Changed-file formatting, formatter parity, all seven selected compiler groups, and whitespace validation passed. Existing counter and parser coverage is reused from the prior ceiling correction because the mechanism and those test files are unchanged. Hosted CI passed the test-line ratchet and every other selected leaf except an inherited missing-brace lint error in sessions-send-tool.admission.test.ts. The same diagnostic was reproduced on unchanged baseline cb5a438; this numeric change does not touch that fixture or its lint inputs. Independent review is complete. This proof establishes counting and capacity, not the correctness or readiness of the pending product changes.

The final target check on c93890f measured 6,245,922 lines. Its refreshed pending regression composition measures 6,246,096, fails the old ceiling by 2,172, and passes 6,320,000 with 73,904 lines of reserve. These later totals supersede the initial snapshot for landing capacity; the counting mechanism and one-line patch are unchanged.

@clawsweeper

clawsweeper Bot commented Oct 29, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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:feature Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Raises the repository test-line ceiling from 6,243,924 to 6,320,000 without changing tests or counting rules.

Example: The reported frozen regression composition contains 6,244,974 test lines, with net growth of 170.

  • Before: The counter fails because the total exceeds the 6,243,924 ceiling by 1,050 lines.
  • After: The same total fits the 6,320,000 ceiling with 75,026 lines remaining.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, justified adjustment supported by reported native-counter results and a passing baseline gate; the separate core-lint failure remains unclassified.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored maintenance PR is outside the ordinary contributor proof gate; its body records native-counter before/after results, and exact-head baseline CI passed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Necessary regression additions encounter a repository-wide ceiling already below the reported tracked total.
Reason: The measured allowance preserves coverage and uses the existing adjustment mechanism; maintainer authorship establishes direction without requiring another product approval.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: the bounded ceiling restoration is justified and introduces no identified defect; the failed core-lint gate remains unclassified.

Priority: P3
Reviewed head: 9b7ba3c66a1d499d05dbe79879b2f31058a7d9d4

Before merge

None.

Findings

None.

Agent review details

How this fits together

The repository validation counter reads tracked test sources, a comparison commit, and the scalar ceiling, then reports capacity and returns a CI exit status.

flowchart TD
A[Tracked test sources] --> D[Test line counter]
B[Comparison commit] --> D
C[Configured ceiling] --> D
D --> E[Capacity and growth result]
E --> F[CI baseline gate]
Loading

Technical review

Best possible solution:

Retain the single-scalar restoration and resolve the existing CI gate through evidence-based lint attribution.

Do we have a high-confidence way to reproduce the issue?

The unchanged counter rejects positive growth above the old ceiling, matching the reported frozen composition; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Changing the existing scalar is the smallest complete way to provide the requested reserve, and the maintainer-authored body explains the deliberate departure from the prior zero-slack setting.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c93890f43133.

Provenance checked

  • Repository test-line ceiling changes intended behavior with a stated reason (bd10ba2: The prior merged PR intentionally reset the ceiling to the measured total and removed spare allowance under an exact-growth policy.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit ab8293d adds scripts/check-test-lines-ratchet.mts:95 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ab8293de67db; files: scripts/check-test-lines-ratchet.mts)

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
Test-line allowance Ceiling +76,076; reported pending composition leaves 75,026 lines Makes the size of the explicitly chosen reserve visible without weakening individual test assertions or changing counting semantics.

Labels

Label changes:

  • add P3: A bounded repository-maintenance adjustment with no runtime or user-data 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: A bounded repository-maintenance adjustment with no runtime or user-data 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Inspect the failed core-lint log to determine whether a concrete repair or an inherited-failure disposition is appropriate.

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 28, 2026, 9:59 PM ET / October 29, 2026, 01:59 UTC.

@shakkernerd shakkernerd self-assigned this Oct 29, 2026
@shakkernerd
shakkernerd merged commit 44ffd0a into main Oct 29, 2026
98 of 101 checks passed
@shakkernerd
shakkernerd deleted the test-headroom-after-reduction branch October 29, 2026 02:02
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Improved: restored test-code headroom for regression coverage while preserving the existing counting rules and validation checks.

shannon0430 pushed a commit to shannon0430/openclaw that referenced this pull request Oct 29, 2026
Restore the finite test-code ceiling to 6,320,000 so justified regression coverage and required formatting fit while existing counting and validation rules remain intact.

(cherry picked from commit 44ffd0a)
shannon0430 pushed a commit to shannon0430/openclaw that referenced this pull request Oct 29, 2026
Restore the finite test-code ceiling to 6,320,000 so justified regression coverage and required formatting fit while existing counting and validation rules remain intact.

(cherry picked from commit 44ffd0a)
shannon0430 pushed a commit to shannon0430/openclaw that referenced this pull request Oct 29, 2026
Restore the finite test-code ceiling to 6,320,000 so justified regression coverage and required formatting fit while existing counting and validation rules remain intact.

(cherry picked from commit 44ffd0a)
shannon0430 pushed a commit to shannon0430/openclaw that referenced this pull request Oct 29, 2026
Restore the finite test-code ceiling to 6,320,000 so justified regression coverage and required formatting fit while existing counting and validation rules remain intact.

(cherry picked from commit 44ffd0a)
roboclaw-bot added a commit that referenced this pull request Oct 29, 2026
Integrate exactly canonical 44ffd0a, including upstream #187162's 6320000 ceiling. No P5 baseline adjustment or authored source conflict resolution. All P5 authored blobs and modes are preserved. Incoming catalog, admission/recovery and shutdown inputs require renewed runtime proof; prior acceptance remains historical. Offline removal-gate and scanner qualification blockers are not waived.

Co-authored-by: galiniliev <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
Restore the finite test-code ceiling to 6,320,000 so justified regression coverage and required formatting fit while existing counting and validation rules remain intact.
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