Repository navigation
test: restore agent artifact and maintenance fixture contracts - #168084
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: needs maintainer review before merge. What this changesThis PR supplies the artifact Gateway fixture’s recovery callback and increases the maintenance fixture’s synthetic model capacity while preserving its maintenance thresholds. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs two concrete fixture failures while preserving the production safeguards and existing behavioral assertions; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese integration fixtures send operator RPCs through a real Gateway and restart-safe requests through the agent runner, checking artifact bytes, checkpoint writes, and preserved user input. flowchart TD
A[Test fixtures] --> B[Gateway RPC server]
B --> C[Agent configuration and artifacts]
A --> D[Reply agent runner]
D --> E[Maintenance and transcript owners]
D --> F[Synthetic HTTP provider]
Technical reviewBest possible solution: Land the focused fixture repairs while retaining the existing production budget and reload safeguards. Do we have a high-confidence way to reproduce the issue? Source explains both fixture failures, and the author reports controlled failing-base and passing-patch runs; this read-only review did not execute tests. Is this the best way to solve the issue? The changes repair the fixture prerequisites at their owners, preserve maintenance thresholds and exact-input assertions, and make an unexpected recovery restart fail explicitly. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c00651360053. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +6. Total +6 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 October 9, 2026, 9:57 PM ET / October 10, 2026, 01:57 UTC. |
…law#168084) Restore the agent/artifact Gateway fixture's required hot-reload recovery owner and assert that recovery never runs. Raise the pending-input synthetic model's context and maintenance reserve together, preserving the original thresholds and exact-input assertions. Both failures are fixture drift exposed by the correct production contracts in openclaw#167894 and openclaw#167878. Direct parent/child comparisons isolate each introduction; both repaired whole files pass three repetitions on Linux with Node 24.19.0 and two workers. Independent review found no actionable P0-P2 issues. No production code changes.
…#168084) The backported proxy output-budget fix (#167878) leaves the 32,768-token synthetic model no output room, so preflight maintenance reported context overflow. Raise the fixture window to 49,152 tokens with a 24,576-token reserve floor, keeping the original maintenance threshold. Partial backport: only the pending-input test file from main #168084. (partially cherry picked from commit 76dca73)
…openclaw#168084) The backported proxy output-budget fix (openclaw#167878) leaves the 32,768-token synthetic model no output room, so preflight maintenance reported context overflow. Raise the fixture window to 49,152 tokens with a 24,576-token reserve floor, keeping the original maintenance threshold. Partial backport: only the pending-input test file from main openclaw#168084. (partially cherry picked from commit 76dca73) (cherry picked from commit 4cd8f26) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes two deterministic test failures exposed by the agent-config acknowledgement change in #167894 and the proxy output-budget correction in #167878.
User Impact
No production behavior changes. The Gateway artifact composition and restart-safe maintenance tests exercise their intended contracts again without weakening the new production safeguards.
Why This Change Was Made
The artifact fixture started a Gateway without a managed hot-reload recovery owner. Its reload already failed before #167894, but immediate success acknowledgements followed by explicit test restarts hid that failure. Supply the same fail-on-call recovery callback used by the existing agent readiness test and assert that no recovery restart occurs.
The maintenance fixture supplied requests estimated at 40,116 and 35,527 tokens to a synthetic 32,768-token model, whose server ignored the old unusable output cap. Increase its context to 49,152 and maintenance reserve to 24,576 together. The required-maintenance threshold stays 24,576, the earlier flush threshold stays 20,576, and the transcript, retention geometry, exact-input assertions, and expected 0/1 compactions remain unchanged.
Production LOC delta: 0. This is a repair to two existing fixtures; no production machinery is added or retained by the change.
Evidence
The introducing commits are isolated by direct parent/child comparisons. They are the only two commits in the first-parent interval from
05464f1c2e3dtoe05ca71024a4.05464f1c2e3dc26d9db0c627(#167894)e05ca71024a4(#167878)959197ba0923cb9bdcd6e78fArtifact had one earlier 120-second timeout under concurrent rig load. After this lane's typecheck workload was paused, it passed three times with the unchanged timeout (test bodies 37.68s, 33.54s, 41.18s). The complete passing workflow is exercised, including the assertion that no recovery restart occurred. Pending-input test bodies were 35.60s, 34.11s, and 27.36s. These are behavior comparisons, not throughput measurements.
Related sibling suites: 72 passed. Two optional-memory private-transcript cases fail identically on unchanged
cb9bdcd6e78f, atagent-runner-memory.private-transcript.test.ts:324; both expect a boolean to be true and receive false. The changed files do not modify that fixture or its production owners.The staged changed gate passed 22 checks, including formatting, both selected test typecheck graphs, lint/boundary/ratchet guards, and deprecated-API checks. Its only failure was the dead-export scan, reproduced exactly on unchanged
cb9bdcd6e78f: production reportsisTelegramReadOnlyControlLaneText,buildDirectChatContext, andresolveContextTokens; full-tree reports onlyisTelegramReadOnlyControlLaneText; the script scan passes. No guard was skipped or suppressed.Independent Codex review: scoped-clean through P2, no actionable findings.
All executions use whole files, Node 24.19.0, pnpm 12.7.0,
CI=1 OPENCLAW_VITEST_MAX_WORKERS=2 NODE_OPTIONS=--max-old-space-size=8192, and explicit--maxWorkers=2. Remote Linux rig fallback was used after Blacksmith Testboxtbx_01m4hkgp82q63rrvc2kr2t4h76had no runner for over 15 minutes, AWS supplied insufficient memory, and Hetzner failed SSH trust setup. All leases were stopped/released. This is rig proof, not Testbox proof.No local test, build, or typecheck was run. No production code, schema, public API, or configuration option changes.