Skip to content

fix: restore the measured test-line ceiling - #188620

Merged
steipete merged 2 commits into
mainfrom
fix/test-line-scalar-normalization-1030
Oct 30, 2026
Merged

steipete merged 2 commits into
mainfrom
fix/test-line-scalar-normalization-1030

Conversation

@steipete

@steipete steipete commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes test-line budget failures for justified new tests after #188561 lowered the shared scalar using a stale measurement.

User Impact

No product behavior changes. Existing test-growth grants work without having to absorb debt left by the stale scalar.

Why This Change Was Made

The native checker measured 6,307,449 test lines on the tree based on f9b9af087c59c36c0e70e6d50ab67fa0f415fb5e. Its 152 existing allocation records total 19,943, so the scalar must be 6,287,506 to describe that tree exactly. This changes only that one integer; it preserves every allocation and the checker's growth rules, and adds zero headroom.

#188561 lowered the scalar by 10,960 while its only matching test file shrank by one literal LF. Its PR body cited an older source snapshot and 17,813 allocation lines; the landed tree already had 19,819. The measured ceiling consequently fell below the actual tree. Restoring the earlier scalar would grant unnecessary slack, and granting an oversized allocation would hide this inherited debt.

Evidence

Measurement Before After
Native measured test LF total 6,307,449 6,307,449
Shared scalar 6,284,794 6,287,506
Preserved allocations (152 records) 19,943 19,943
Effective ceiling 6,304,737 6,307,449
Slack −2,712 0

The native census independently confirms the result. An earlier native census on cd718f0f measured 6,307,497. The three changed test files between that head and f9b9af remove exactly 48 literal LF bytes, with no allocation changes. Main's subsequent test cleanup and three-line scalar reduction are preserved by merging current main into this branch.

The initial census also corroborated CI run 41107693769: its measured merge tree had 6,307,409 lines and a +5 delta, establishing 6,307,404 at 6b4a374; changed Git blobs from that base to cd718f0f add exactly 93 literal LF bytes.

Validation: native checker on both source revisions; unchanged allocation inventory; git diff --check; fresh independent local review of the revised scalar. Production/test LOC: unchanged. Scalar file LOC: 1 → 1. No UI code, dependencies, checker logic, or test assertions changed by this PR.

Normalize the shared scalar to the native census total minus all existing named allocations. Preserve 152 grants totaling 19,943 lines and zero headroom. Correct the stale measurement from #188561 without changing test-growth policy.
@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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T19:00:56.545212Z d7c6a76 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 30, 2026 19:06
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@steipete
steipete merged commit 6941b99 into main Oct 30, 2026
90 of 93 checks passed
@steipete
steipete deleted the fix/test-line-scalar-normalization-1030 branch October 30, 2026 19:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

roboclaw-bot added a commit that referenced this pull request Oct 30, 2026
Use the existing runNodeScript runtime worker argv instead of forced TSX.

Integrate the already-landed upstream census correction #188620; compare
base and candidate in the same captured current-main tree. Preserve every
current grant and shrink effective cap by exactly the two removed test LF
bytes, retaining base slack/debt. No new funding or performance claim for
the upstream scalar correction.

Co-authored-by: steipete <[email protected]>
roboclaw-bot added a commit that referenced this pull request Oct 30, 2026
Use the existing runNodeScript runtime worker argv instead of forced TSX.

Integrate the already-landed upstream census correction #188620; compare
base and candidate in the same captured current-main tree. Preserve every
current grant and shrink effective cap by exactly the two removed test LF
bytes, retaining base slack/debt. No new funding or performance claim for
the upstream scalar correction.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
Normalize the shared scalar to the native census total minus all existing named allocations. Preserve 152 grants totaling 19,943 lines and zero headroom. Correct the stale measurement from openclaw#188561 without changing test-growth policy.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…88615)

Use the existing runNodeScript runtime worker argv instead of forced TSX.

Integrate the already-landed upstream census correction openclaw#188620; compare
base and candidate in the same captured current-main tree. Preserve every
current grant and shrink effective cap by exactly the two removed test LF
bytes, retaining base slack/debt. No new funding or performance claim for
the upstream scalar correction.

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant