Skip to content

fix(ci): remove duplicate inherited test-line credit - #196526

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-main-red-test-lines-293-20260919
Nov 10, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-main-red-test-lines-293-20260919

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Main's test-line guard rejects the merge of #196496 because its allocation still includes 70 lines of inherited debt already covered by #196173. Related: #196173, #196496.

User Impact

Restores the main test-line ratchet without changing production behavior or removing regression coverage.

Why This Change Was Made

Reduce relay-member-principal.txt from 280 to exactly #196496's 210 added test lines. Its old 70-line inherited grant overlaps the 293-line reconciliation landed by #196173. The shared scalar and all other allocations remain unchanged. Production and test LOC deltas are both zero.

The original reported 293-line deficit predates the nominally green main d3027457406b: #194996 added 71 unallocated lines, #194429 removed one, and #188748 added 223. The ratchet intentionally tolerates inherited debt on zero-growth commits; the green run did not mean a balanced budget. #196504 and #196493 covered their own growth. #196173 subsequently covered 402 own lines plus all 293 inherited lines. #196509 covered its own 56. #196496 then added 210 lines but granted 280, causing the new over-allocation failure.

Evidence

  • Reproduced run 42780708592 at 604aacb6cdf4 using CI's exact --base d3027457406b7c694ba00dd0f1cd506567f43878 --no-merge-base: 6,619,127 lines, ceiling 6,618,834, debt 293, delta +138; exit 1.
  • Reproduced current main 802f67d8d410 against its exact parent 7cba067c24b4: allocation credit 280 exceeds allowed growth 210; exit 1.
  • Fixed tree passes against both that parent and 802f67d8d410: 6,619,966 lines / 6,619,966 ceiling; zero slack.
  • Existing ratchet regression suite: 14/14 pass, including overlapping grants and exact inherited-debt limits (6.03 seconds wrapper wall time). No new test is needed for this metadata correction: the existing guard catches the bad value before the edit.
  • Codex autoreview, local candidate against 802f67d8d410, P0–P2: scoped-clean; zero actionable findings.
  • git diff --check passes. pnpm check:changed passes.

Simplification: one allocation record, no new state, configuration, cache, runtime path, or schema. Team-scale runtime benchmarks and UI browser proof do not apply to this metadata-only correction; no performance claim is made. Hosted ClawSweeper and exact-head CI are required before landing.

PR #196173 already reconciled the inherited test-line debt. Keep #196496 allocation at its exact 210 regression lines instead of counting 70 inherited lines twice. Production and test LOC are unchanged.
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review November 10, 2026 08:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T08:29:54.678232Z 56f1488 Draft marked ready
ℹ️ 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

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Please review final head 56f1488ce31303ef5e0d0d191b2fdbe5b597d487. This is one allocation-only correction: #196173 already covered inherited main debt, so #196496's grant must be 210 own regression lines rather than 280. The native checker reproduces the excess-credit rejection before this edit and passes afterward with zero slack. Existing ratchet tests (14/14), check:changed, and independent Codex review pass. No production or test source changes.

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Reduces the relay regression-test allocation from 280 to 210 lines by removing inherited debt already covered elsewhere.

Example: The relay ownership change adds 210 test lines after inherited debt has already been reconciled.

  • Before: The guard rejects 280 credits because allowed growth is 210.
  • After: The allocation grants exactly 210 credits without changing regression coverage.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused metadata repair supported by native-checker results, existing invariant tests, and successful exact-head CI.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR records the native CI checker rejecting 280 credits against 210 allowed growth, then passing the corrected tree against both relevant bases at 6,619,966 total lines and ceiling with zero slack; inspected UI images concern unrelated linked work and are not used as proof.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers encounter an excess-credit failure in the main test-line guard after merging independently qualified allocations.
Reason: The maintainer-authored correction restores the existing budget invariant without changing product behavior or coverage.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR makes the smallest complete correction to duplicate test-line credit; no actionable defects were found, and exact-head CI passes.

Priority: P2
Reviewed head: 56f1488ce31303ef5e0d0d191b2fdbe5b597d487

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI test-line ratchet combines a baseline with tracked allocations, compares that ceiling with test-source line counts and base-relative growth, and returns a pass or failure.

flowchart LR
  A[Test sources] --> D[Test line ratchet]
  B[Baseline and allocations] --> D
  C[Selected Git base] --> D
  D --> E[CI result]
Loading

Technical review

Best possible solution:

Use the existing 210-line allocation correction while preserving the shared baseline, checker, and regression tests.

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

The checker’s credit bound and merged allocations establish the failure path; the PR records native-checker rejection before the edit and zero-slack success afterward.

Is this the best way to solve the issue?

This is the smallest complete fix: correct the allocation that duplicates reconciled debt rather than weaken the guard or remove tests.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Relay regression allocation changes intended behavior with a stated reason (802f67d: The original allocation covered 210 regression lines plus 70 inherited lines in its qualifying CI merge; the transcript allocation subsequently covered the full inherited deficit.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Other -1. Total -1 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 2 3 -1
Total 1 2 3 -1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs a concrete repository validation failure with no production-runtime impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • 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:

  • P2: Repairs a concrete repository validation failure with no production-runtime impact.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 November 10, 2026, 3:41 AM ET / 08:41 UTC.

@steipete
steipete merged commit 427edb7 into main Nov 10, 2026
157 of 158 checks passed
@steipete
steipete deleted the steipete/perf-micro-main-red-test-lines-293-20260919 branch November 10, 2026 08:46
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
PR openclaw#196173 already reconciled the inherited test-line debt. Keep openclaw#196496 allocation at its exact 210 regression lines instead of counting 70 inherited lines twice. Production and test LOC are unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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