Skip to content

chore: reserve bounded room for regression tests - #186785

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

shakkernerd merged 1 commit into
mainfrom
test-code-headroom

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The repository-wide test-code budget has almost no room for distinct regression coverage. On frozen main e094e4c, the unchanged counter reports 6,301,989 lines against a 6,302,000 ceiling, leaving 11 lines. Small guest recovery, authority and history repairs need to retain the cases that demonstrate their behavior.

User Impact

This provides bounded room for necessary regression tests. It delivers no guest-runtime change by itself: each repair still needs its own behavioral proof, review and CI checks. Existing assertions, test-quality requirements and all other gates remain in place.

Why This Change Was Made

Raise the existing scalar from 6,302,000 to 6,310,000, an increase of 8,000 lines (about 0.127%), and update its explanatory comments. This is a fixed reserve, not an estimate of an exact combined repair tree or a guarantee that every future change fits. Further increases need their own justification.

The documented manual-adjustment path already supports this change. The counter, file selection, newline counting, staged handling, branch-delta rule and downward-only pruning remain unchanged. No tests are deleted, packed into fewer lines or weakened to satisfy the budget.

Evidence

The native counter on e094e4c reported Test lines OK: 6301989; ceiling: 6302000; slack: 11. On the candidate, the same command reports Test lines OK: 6301989; ceiling: 6310000; slack: 8011. It also emits the expected 6302000 -> 6310000 manual-increase warning, justified above.

Remote changed-file formatting, all selected type groups, and git diff --check passed. The existing counter and scalar-loader suites passed all 9 tests across 2 files, preserving checks for file selection, newline counting, staged state, net growth and pruning. The committed tree matches the tested tree.

On the later target 6bd45e1, the native counter reports 6,301,464 lines under the existing 6,302,000 ceiling. The exact composed tree keeps that count and loads 6,310,000, leaving 8,536 lines. These are measured snapshots, not a promise of permanent headroom.

Current-head CI passed, including the test-line ratchet. Independent engineering review is clean, and ClawSweeper reviewed the exact head at Platinum with no findings. Local automated review was unavailable; the hosted review supplies that evidence.

@clawsweeper

clawsweeper Bot commented Oct 28, 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 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Raises the repository test-line ceiling from 6,302,000 to 6,310,000 without changing tests or enforcement logic.

Example: The reported frozen tree contains 6,301,989 counted test lines.

  • Before: The 6,302,000 ceiling leaves 11 lines of capacity.
  • After: The 6,310,000 ceiling leaves 8,011 lines of capacity.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, justified maintenance patch supported by the actual counter output and existing contract coverage.
Proof confidence 🐚 platinum hermit (4/6) The maintainer-authored maintenance change includes native-counter output showing unchanged usage and the increased reserve; no runtime behavior is claimed.
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 have almost no room beneath the repository-wide test-line ceiling.
Reason: The maintainer-authored direction uses the documented manual-allocation mechanism, states its bounded cost, and preserves all other gates.

Merge readiness

✅ Ready for maintainer review

This PR provides a justified, bounded reserve through the existing manual-adjustment path. No actionable defects were found; ordinary current-head CI remains pending.

Priority: P3
Reviewed head: 17fd3ae0660aa11d62b8dc93fe5d6e86ca427a12

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI test-line ratchet reads tracked test sources and the configured ceiling, then reports capacity or rejects qualifying over-budget growth.

flowchart LR
  A[Tracked test sources] --> C[Test line ratchet]
  B[Configured ceiling] --> C
  D[Comparison base] --> C
  C --> E[Capacity report]
  C --> F[CI result]
Loading

Technical review

Best possible solution:

Retain the fixed reserve in the existing scalar while preserving counting, growth checks, downward pruning, and individual regression-proof requirements.

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

This is a capacity adjustment rather than a runtime bug; the supplied native-counter output establishes the reported 11-line reserve.

Is this the best way to solve the issue?

The existing scalar is the appropriate owner, and the complete diff is the smallest coherent adjustment without changing counting or weakening assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Test-line ceiling and bounded reserve changes intended behavior with a stated reason (d1c8d42: Retain distinct upgrade and authority regressions with a fixed allowance and modest headroom rather than weaken tests.)

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:111 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 -3. Total -3 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 6 9 -3
Total 1 6 9 -3

Labels

Label changes:

  • add P3: This is bounded internal test-capacity 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: This is bounded internal test-capacity 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 28, 2026, 9:56 AM ET / 13:56 UTC.

@shakkernerd shakkernerd self-assigned this Oct 28, 2026
@shakkernerd
shakkernerd merged commit 1e13102 into main Oct 28, 2026
101 checks passed
@shakkernerd
shakkernerd deleted the test-code-headroom branch October 28, 2026 14:09
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Added: bounded regression-test headroom with a fixed 6,310,000-line ceiling and unchanged counting rules.

roboclaw-bot added a commit that referenced this pull request Oct 28, 2026
Merge pinned main 8889b59 to resolve generated config conflicts and adopt the accepted bounded test reserve from #186785. Regenerate config artifacts through their owner; preserve the P6 role-dispatch behavior and regression coverage.

Co-authored-by: galiniliev <[email protected]>
vincentkoc added a commit that referenced this pull request Oct 28, 2026
Reuse the exact config/test-lines-baseline.txt policy already landed in 1e13102 (#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR #186510.
roboclaw-bot added a commit that referenced this pull request Oct 28, 2026
Merge pinned main 8889b59 to adopt the test-line reserve already landed in #186785. Preserve the reviewed cancellation implementation and regression blobs, with no PR-specific ceiling change or test removal. Canonical validators, the budget guard, 65 focused tests, and targeted static checks pass.

Co-authored-by: galiniliev <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 29, 2026
Raise the fixed test-code ceiling to 6,310,000 to retain necessary regression coverage while preserving existing counting and CI rules.
vincentkoc added a commit that referenced this pull request Oct 29, 2026
* fix(update): avoid recopying admitted rollback images

Carry the cleanup-owned generation image into the same rollback capture while retaining source-generation, integrity, publication and rollback checks. Add bounded capture work-count and paired-performance workloads; end-to-end performance qualification is pending.

* test(perf): bound rollback capture verification buffers

* test(update): verify retained rollback image lifecycle

* fix(update): satisfy retained-image static checks

* test(update): bind retained-image hold to test lifetime

* test(update): retain failed backup fixture evidence

* test(update): separate cache and retained-image fixtures

* test(update): preserve paired fixture failure causes

* chore(test): reuse upstream regression budget

Reuse the exact config/test-lines-baseline.txt policy already landed in 1e13102 (#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR #186510.

* perf(update): avoid unrelated backup capture imports

Keep archive path encoding in its canonical policy owner and load PostgreSQL capture only after engine admission. Preserve the updater pre-swap preparation contract and retained-image custody. This removes unnecessary cold import work; memory and latency qualification remain pending.

* fix(update): reconcile image reuse with current capture owners

* test(update): expose unused prepared-inventory imports

* test(update): preserve schema import failure diagnostics

* fix(update): avoid discovery imports for prepared state inventories

* test(update): document isolated inventory mock boundaries

* test(backup): isolate archive command scratch roots

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 2ddcbe5449fbd647dd319f7a8e182a9fbaf27dec

* test(backup): retain isolated fixtures through cleanup

* fix(update): reuse verified generation receipts after capture

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 30, 2026
* fix(update): avoid recopying admitted rollback images

Carry the cleanup-owned generation image into the same rollback capture while retaining source-generation, integrity, publication and rollback checks. Add bounded capture work-count and paired-performance workloads; end-to-end performance qualification is pending.

* test(perf): bound rollback capture verification buffers

* test(update): verify retained rollback image lifecycle

* fix(update): satisfy retained-image static checks

* test(update): bind retained-image hold to test lifetime

* test(update): retain failed backup fixture evidence

* test(update): separate cache and retained-image fixtures

* test(update): preserve paired fixture failure causes

* chore(test): reuse upstream regression budget

Reuse the exact config/test-lines-baseline.txt policy already landed in 69b5f8d (openclaw#186785). This imports its fixed ceiling without selecting a new budget or deleting distinct regression coverage. Runtime, benchmark workload, and dependency inputs remain unchanged. Existing performance failures and the separate landing hold remain recorded in PR openclaw#186510.

* perf(update): avoid unrelated backup capture imports

Keep archive path encoding in its canonical policy owner and load PostgreSQL capture only after engine admission. Preserve the updater pre-swap preparation contract and retained-image custody. This removes unnecessary cold import work; memory and latency qualification remain pending.

* fix(update): reconcile image reuse with current capture owners

* test(update): expose unused prepared-inventory imports

* test(update): preserve schema import failure diagnostics

* fix(update): avoid discovery imports for prepared state inventories

* test(update): document isolated inventory mock boundaries

* test(backup): isolate archive command scratch roots

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 2ddcbe5449fbd647dd319f7a8e182a9fbaf27dec

* test(backup): retain isolated fixtures through cleanup

* fix(update): reuse verified generation receipts after capture

Co-authored-by: Vincent Koc <[email protected]>
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