Repository navigation
Conversation
The ratchet at origin/main (737c537) itself reports 51 lines over its own ceiling with a net delta of zero - the scalar baseline has drifted behind main's actual test size as merged PRs landed. This reconciles the scalar to the measured value so per-change allocations stop absorbing inherited debt. Measured: node --import ./scripts/tsx.mjs scripts/check-test-lines-ratchet.mts at 737c537 reports 'Test lines: 6550629; ceiling: 6550578; over by: 51; net delta: 0. Tree is over the ceiling; this change does not add test lines.'
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR raises the shared test-line baseline from 6,326,736 to 6,550,629. Example: Run the accounting against the reviewed PR tree with its existing allocation records.
Review scores
ProductKind: Maintenance · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 4 items remain Keep open for correction: the proposed scalar increase double-counts existing allocations and weakens the test-line guard; current main has a much smaller, seven-line deficit. Priority: P2 Decision needed
Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe repository CI ratchet counts tracked test newline bytes and compares them with the shared scalar plus tracked allocation credits. flowchart LR
A[Tracked test files] --> D[Test-line checker]
B[Shared baseline] --> D
C[Allocation records] --> D
E[Comparison base] --> D
D --> F[CI budget result]
Technical reviewBest possible solution: Preserve additive allocations and reconcile only an approved, freshly measured deficit; the fetched-main deficit would require a scalar of 6,326,743. Do we have a high-confidence way to reproduce the issue? Source accounting establishes seven inherited lines of debt on fetched main, but the claimed 51-line deficit does not describe the reviewed head, whose original ceiling already has six lines of slack. Is this the best way to solve the issue? A one-value correction can be the smallest complete repair, but it must adjust the effective ceiling by the measured debt rather than place the entire test total into an additive scalar. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b6ed90743ed7. TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 7, 2026, 12:40 AM ET / 05:40 UTC. |
…#194913) The warm-reload browser probe tags text with elementtiming so rows and Details report their first paint. Its MutationObserver re-resolved the row or Details context for every added node and every text node: about 4,876 roots and 4,098 text walkers before the native rows painted. On the native 3,000-session fixture that work sat inside the pane task, so every native warm-reload number carried it. The observer now collects each batch's added roots and drops roots nested in another root of the same batch. It resolves the row or Details context once per remaining root and walks each scope's text once. It tags exactly the same text parents as before. On large rows it keeps late-arriving visible text eligible, so a 3,859 px transcript scrolled to its end still reports rows Element Timing. Equivalence on one AWS c7a.4xlarge: same-capture dual observers on native active (2), native archived and Team active produced identical rows and Details Element Timing and identical annotated sets. Annotator tax, measured with 8 interleaved pairs plus A/A in steady-state timing mode: native active rows 566 to 502 ms (A/A-adjusted 54 ms), native archived 534 to 492 ms (49 ms), Team within noise; native walkers fall from about 4,100 to 6. Corrected steady-state rows: Team active 338 ms [332, 341] and archived 320 ms [316, 333], 12/12 under 480 ms; native active 492 ms [480, 505] and archived 484 ms [464, 485]. Application runtime is unchanged; the probe is +11 executable lines. The 183 new test lines carry their own allocation. Focused probe and CLI tests pass. The exact-head test-line ratchet is over by 22 lines inherited from main (tracked by #194489), and the Security High and changed-path scan jobs failed on GitHub API rate limits; neither involves this change.
…openclaw#194913) The warm-reload browser probe tags text with elementtiming so rows and Details report their first paint. Its MutationObserver re-resolved the row or Details context for every added node and every text node: about 4,876 roots and 4,098 text walkers before the native rows painted. On the native 3,000-session fixture that work sat inside the pane task, so every native warm-reload number carried it. The observer now collects each batch's added roots and drops roots nested in another root of the same batch. It resolves the row or Details context once per remaining root and walks each scope's text once. It tags exactly the same text parents as before. On large rows it keeps late-arriving visible text eligible, so a 3,859 px transcript scrolled to its end still reports rows Element Timing. Equivalence on one AWS c7a.4xlarge: same-capture dual observers on native active (2), native archived and Team active produced identical rows and Details Element Timing and identical annotated sets. Annotator tax, measured with 8 interleaved pairs plus A/A in steady-state timing mode: native active rows 566 to 502 ms (A/A-adjusted 54 ms), native archived 534 to 492 ms (49 ms), Team within noise; native walkers fall from about 4,100 to 6. Corrected steady-state rows: Team active 338 ms [332, 341] and archived 320 ms [316, 333], 12/12 under 480 ms; native active 492 ms [480, 505] and archived 484 ms [464, 485]. Application runtime is unchanged; the probe is +11 executable lines. The 183 new test lines carry their own allocation. Focused probe and CLI tests pass. The exact-head test-line ratchet is over by 22 lines inherited from main (tracked by openclaw#194489), and the Security High and changed-path scan jobs failed on GitHub API rate limits; neither involves this change.
|
Closing this: the drift it reconciled no longer exists. Re-measured at (That ceiling includes PR #188368's own allocation and test lines; main's tree alone is 6622756 lines against a ceiling of 6623048 — 292 lines of headroom, so the scalar is not lagging any more.) The earlier measurement that motivated this PR (main 51 lines over its scalar at #188368 no longer depends on this: its branch now merges |
|
Closing: the scalar no longer lags main's measured size (292 lines of headroom at origin/main 28b82d7), so the reconciliation is not needed. Details in the comment above. |
What Problem This Solves
The test-line ratchet is failing on
origin/mainitself: at737c537797cb,scripts/check-test-lines-ratchet.mtsreports "Test lines: 6550629; ceiling: 6550578; over by: 51; net delta: 0. Tree is over the ceiling; this change does not add test lines." The scalar baseline has drifted 51 lines behind main's actual test size as merged PRs landed, so every new PR that adds tests inherits that debt against its own allocation (the credit check forces each PR's allocation to cover main's drift too, which the policy's credit rule rejects).User Impact
No runtime impact — this is CI bookkeeping only. Contributor PRs currently cannot pass
checks-fast-baseline-ratchetswhile the drift exists; external contributors have no way to fix it themselves because the scalar is release-owned and the credit rule makes a combined raise-plus-allocation impossible.Why This Approach
The ratchet's own policy defines a scalar reconciliation: the baseline is folded to the measured size, and the ratchet exempts a change with
net delta: 0("Tree is over the ceiling; this change does not add test lines" exits 0). A one-line scalar update is the smallest reconciliation that unblocks allocation-based accounting for subsequent PRs. No allocation files are touched.Evidence
origin/main(737c537797cb), the ratchet reports over-by-51 with net delta 0 (quoted above) — reproduced locally on the main SHA.Test lines OK: 6550629; ceiling: 6550629; slack: 0with net delta unchanged.