Repository navigation
fix(test): restore the main test-line budget after warm reload changes - #196432
Conversation
|
🦞👀 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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR increases the procfs allocation from 33 to 36 lines and adds eight lines of warm-reload allocation. Example: The current tree contains 6,615,839 tracked test lines.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR correctly reconciles the remaining 11-line budget deficit without removing regression coverage or creating spare headroom; no findings remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe repository's test-line checker reads tracked test sources, the shared scalar, and allocation records, then reports whether CI's comparison satisfies the budget. flowchart LR
A[Tracked test sources] --> D[Test line checker]
B[Shared scalar] --> D
C[Allocation records] --> D
E[Comparison base] --> D
D --> F[CI budget result]
Technical reviewBest possible solution: Retain the exact 11-line reconciliation and complete the existing exact-head CI gates. Do we have a high-confidence way to reproduce the issue? The reported checker failure matches the source rules and independently verified 11-line main deficit; this read-only review did not execute the checker. Is this the best way to solve the issue? The two record edits are the smallest complete repair using the existing allocation owner, preserving distinct coverage and the shared scalar. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 568d89f3a4e8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceOther +4. Total +4 across 2 files. 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 9, 2026, 11:50 PM ET / November 10, 2026, 04:50 UTC (Revision 2). |
Main #196305 removed one test line after the first reviewed candidate. Reduce the warm-reload debt allocation from nine to eight so total credit is exactly 11 and the current 6615839-line tree has zero slack.
2852f29 to
25dca35
Compare
|
@clawsweeper re-review The previous review had zero findings/open items. Before merge, main #196305 removed one test line, reducing inherited debt from 12 to 11. I stopped the merge before dispatch, refreshed onto main 568d89f, and reduced the warm allocation from nine to eight (config/test-lines-allocations/warm-chat-transcript-mount.txt:4). The procfs correction remains +3 (config/test-lines-allocations/procfs-readfile-buffer.txt:3). The old grant fails on the refreshed base with "allocation credit 12 exceeds allowed ceiling growth 11". The final patch passes against original base, current main, and current main parent at 6,615,839 / 6,615,839, zero slack. pnpm check:changed and fresh Codex autoreview through P2 pass. The body contains the final evidence; fresh exact-head CI is running. No runtime or test source changed. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
#196432) * fix(test): reconcile warm reload and procfs test-line debt Allocate nine missing lines for #196385 and correct #196416 from 33 to its actual 36 test lines. #196423 is already fully allocated. Restore exactly 6615748 lines of ceiling with zero slack; preserve all regression coverage and the shared scalar. * fix(test): account for the latest main test-line offset Main #196305 removed one test line after the first reviewed candidate. Reduce the warm-reload debt allocation from nine to eight so total credit is exactly 11 and the current 6615839-line tree has zero slack. (cherry picked from commit 644ff7d)
…esults (#196266) * improve(tool-search): show input signatures for MCP tools in search results tool_search rendered input "unknown" for every MCP tool, so models called tool_describe before almost every MCP call. Render the same bounded, structure-only signature used for OpenClaw tools from the MCP input schema. Client tools keep "unknown" because Code Mode lists them in its system prompt from the same compact entries. Remote schemas can carry huge literals, so string literals longer than the hint budget are rejected before serialization. Code Mode prompt construction skips MCP entries before compaction; it never listed them. Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * improve(tool-search): show input signatures for MCP tools in search results Worked on by: - @jalehman - @GrahamMcBain Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> OpenClaw-Publication: a0929bba-b988-4c27-b67d-606a685a1e6e * fix(test): restore the main test-line budget after warm reload changes (#196432) * fix(test): reconcile warm reload and procfs test-line debt Allocate nine missing lines for #196385 and correct #196416 from 33 to its actual 36 test lines. #196423 is already fully allocated. Restore exactly 6615748 lines of ceiling with zero slack; preserve all regression coverage and the shared scalar. * fix(test): account for the latest main test-line offset Main #196305 removed one test line after the first reviewed candidate. Reduce the warm-reload debt allocation from nine to eight so total credit is exactly 11 and the current 6615839-line tree has zero slack. (cherry picked from commit 644ff7d) * test(agents): align host-denial proof with immediate failure settlement --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
openclaw#196432) * fix(test): reconcile warm reload and procfs test-line debt Allocate nine missing lines for openclaw#196385 and correct openclaw#196416 from 33 to its actual 36 test lines. openclaw#196423 is already fully allocated. Restore exactly 6615748 lines of ceiling with zero slack; preserve all regression coverage and the shared scalar. * fix(test): account for the latest main test-line offset Main openclaw#196305 removed one test line after the first reviewed candidate. Reduce the warm-reload debt allocation from nine to eight so total credit is exactly 11 and the current 6615839-line tree has zero slack.
…esults (openclaw#196266) * improve(tool-search): show input signatures for MCP tools in search results tool_search rendered input "unknown" for every MCP tool, so models called tool_describe before almost every MCP call. Render the same bounded, structure-only signature used for OpenClaw tools from the MCP input schema. Client tools keep "unknown" because Code Mode lists them in its system prompt from the same compact entries. Remote schemas can carry huge literals, so string literals longer than the hint budget are rejected before serialization. Code Mode prompt construction skips MCP entries before compaction; it never listed them. Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> * improve(tool-search): show input signatures for MCP tools in search results Worked on by: - @jalehman - @GrahamMcBain Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> OpenClaw-Publication: a0929bba-b988-4c27-b67d-606a685a1e6e * fix(test): restore the main test-line budget after warm reload changes (openclaw#196432) * fix(test): reconcile warm reload and procfs test-line debt Allocate nine missing lines for openclaw#196385 and correct openclaw#196416 from 33 to its actual 36 test lines. openclaw#196423 is already fully allocated. Restore exactly 6615748 lines of ceiling with zero slack; preserve all regression coverage and the shared scalar. * fix(test): account for the latest main test-line offset Main openclaw#196305 removed one test line after the first reviewed candidate. Reduce the warm-reload debt allocation from nine to eight so total credit is exactly 11 and the current 6615839-line tree has zero slack. (cherry picked from commit b67d29e) * test(agents): align host-denial proof with immediate failure settlement --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: jalehman <[email protected]> Co-authored-by: GrahamMcBain <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes the main
security-fasttest-line ratchet failure introduced by #196385 and increased by #196416.User Impact
Restores the test-line budget with zero spare headroom. No runtime behavior or test coverage changes.
Why This Change Was Made
#196385 added 30 test lines against 21 lines of available headroom, leaving nine unallocated lines. Its warm-frame yielding, latest-history, composer identity, cancellation, and one-shot-port lint coverage protect distinct boundaries; deleting them to satisfy the counter is not justified. Later #196305 removed one test line, reducing the remaining warm-reload debt to eight.
#196416 added 36 lines (23 in child-memory tests and 13 in supervisor tests) but allocated only 33. Correct that allocation by three and add the remaining eight for warm reload. #196423 added and allocated exactly 252 lines and needs no correction. The shared scalar stays unchanged.
This exact 11-line reconciliation is maintainer-authorized. Production/test LOC delta: 0; allocation metadata net: +4 lines. Checked overlapping open work: #196212 changes separate mention tests and #194489 changes the scalar; neither edits these records.
Evidence
Current comparison base:
568d89f3a4e82d13ecca4ed602c46a04bda322f0.ea3eb71a0263: actual checker failed against26ad45c77d4b96c55271850ab583d0f17b473ea3(delta +318) ande27557203a52(delta +252): 6,615,748 lines / 6,615,736 ceiling; over by 12.git diff --checkandpnpm check:changedpass.The executable reproduction is
node --import ./scripts/tsx.mjs scripts/check-test-lines-ratchet.mts --base <sha> --no-merge-base. Runtime performance measurements and UI browser proof are inapplicable: only allocation records change. The earlier head's green CI and zero-finding ClawSweeper review are historical evidence; landing requires fresh exact-head results.