Repository navigation
fix(tests): restore runtime context guard coverage - #189888
vincentkoc wants to merge 2 commits into
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: blocked before merge. What this changesThis PR enlarges explicit-runtime subagent test fixtures to 128,000 tokens and updates a scheduled-overflow assertion. Example: A subagent fixture selects runtime: true.
Review scores
ProductKind: Test only · Worth it: No · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open for maintainer disposition: the merged context-admission rollback removes this PR’s original motivation, and its overflow assertion would fail against current main. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherGateway product tests use the shared synthetic-model configuration to exercise subagent workflows, while scheduled-event tests check how runtime failures reach completion receipts. flowchart TD
A[Product test] --> B[Shared model fixture]
B --> C[Isolated Gateway]
C --> D[Scripted model server]
D --> E[Subagent completion]
E --> F[Behavior assertions]
Technical reviewBest possible solution: The maintainer should withdraw the superseded repair or retain only a fixture adjustment with a demonstrated need on current main. Do we have a high-confidence way to reproduce the issue? Source establishes the mismatch: the scheduled overflow scenario produces the restored recovery text, which cannot contain this PR’s expected substring; no tests were executed during this read-only review. Is this the best way to solve the issue? The two-line repair was focused for its original base, but the deliberate rollback restores the original contract and makes the assertion replacement incorrect for current main. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f593b69e7ab. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests 0. Total 0 across 2 files. Added test files: 0. View PR surface stats
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 31, 2026, 8:46 PM ET / November 1, 2026, 00:46 UTC. |
|
Superseded by #189891, which reverted the unconditional context-admission change and restored the canonical recovery copy. The larger fixture budget no longer has a demonstrated current failure to repair, and the copy edit conflicts with the restored behavior. Closing without merging. |
) * fix(agents): compact long tool turns and publish current context totals Start client maintenance at 75% of the active context window while preserving provider and native compaction ownership. Check every prepared request against the hard window using nominal occupancy, calibrated tool-result estimates, and provider-measured context plus pending additions. Publish current context through the existing guarded session writer and let final ordered accounting supersede intermediate snapshots. Retire downstream mixed-counter repairs; invalidate old prompt-only freshness stamps without a schema change or new configuration. Preserve the working 32k prompt-cache fixture and repair impossible lifecycle fixture windows from the reverted admission rollout. Include red-on-parent long-turn/accounting regressions and repair the cold native-auth test setup. Related: #189810, #189891, #189888, #164551. Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * fix(agents): complete nominal context admission and accounting cutover * fix(agents): share lexical pricing with compaction summary fitting * test(agents): align context consumers and isolate announce state * test: await archive and steering fixture handoffs Join the database lifecycle before raw archive fixture seeding, and wait for runtime steering admission before releasing the held document request. Preserve the existing behavior assertions and allocate exact regression lines. Archive admission passes 17/17; steering passes 6/6. The CI assertions did not reproduce locally, but diagnostic probes exposed the asynchronous fixture handoffs. Fresh Codex review found no actionable findings. --------- Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
…claw#190017) * fix(agents): compact long tool turns and publish current context totals Start client maintenance at 75% of the active context window while preserving provider and native compaction ownership. Check every prepared request against the hard window using nominal occupancy, calibrated tool-result estimates, and provider-measured context plus pending additions. Publish current context through the existing guarded session writer and let final ordered accounting supersede intermediate snapshots. Retire downstream mixed-counter repairs; invalidate old prompt-only freshness stamps without a schema change or new configuration. Preserve the working 32k prompt-cache fixture and repair impossible lifecycle fixture windows from the reverted admission rollout. Include red-on-parent long-turn/accounting regressions and repair the cold native-auth test setup. Related: openclaw#189810, openclaw#189891, openclaw#189888, openclaw#164551. Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]> * fix(agents): complete nominal context admission and accounting cutover * fix(agents): share lexical pricing with compaction summary fitting * test(agents): align context consumers and isolate announce state * test: await archive and steering fixture handoffs Join the database lifecycle before raw archive fixture seeding, and wait for runtime steering admission before releasing the held document request. Preserve the existing behavior assertions and allocate exact regression lines. Archive admission passes 17/17; steering passes 6/6. The CI assertions did not reproduce locally, but diagnostic probes exposed the asynchronous fixture handoffs. Fresh Codex review found no actionable findings. --------- Co-authored-by: Alex Mittell <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
Disposition
Superseded by #189891. That rollback removed the unconditional provider-bound context checks introduced in #189810 and restored the canonical overflow recovery message.
The proposed 128,000-token fixture window no longer has a demonstrated current failure to repair. The proposed recovery-message assertion conflicts with the restored production text. This PR is closed without merging.
Historical evidence
Against the pre-rollback guard, the shared 4,096-token model caused lifecycle scenarios to fail before their assertions. The default three-file batch changed from 12 failures and one pass to 13 passes after increasing that model's window; explicit-runtime consumers also passed on a qualified carrier. That proof establishes the original mismatch, not a need for larger fixtures after the rollback.
Final-head CI tested merge
3eb2ee71868e, based one515a095c5b5, and failed only the now-stale recovery-message assertion in the changed test selection: https://github.com/openclaw/openclaw/actions/runs/41258401484/job/124706803779. No insufficient-context-budget signature was reported in that selection.