Repository navigation
fix(qa): fence old tool outputs at authored requests - #201244
Conversation
Classify only explicit continuations and canonical wrapped recovery instructions, not incidental or negated retry wording. Preserve invalid tool arguments in HTTP regressions and retain completed results during stalled recovery. Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 089979c7-ab39-4b8e-94c7-76578d8ed178
|
🦞👀 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 changes before merge. What this changesThis PR prevents fresh QA requests that mention retry or compaction from reusing older tool results. Example: An earlier read result precedes a new request to call ls with path="runtime-tool-fixture-missing-directory" and not retry.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR fixes a real QA classification bug, but its narrower continuation matching drops a canonical runtime follow-up and can restart background image generation. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherQA Lab’s mock OpenAI provider consumes projected conversation messages and tool results, classifies the active turn, and emits scripted tool calls or replies for Gateway scenarios. flowchart LR
A[Gateway conversation] --> B[Provider request]
B --> C[Current request extraction]
C --> D[Continuation classifier]
D --> E[Tool result selection]
E --> F[QA scenario planner]
F --> G[Tool call or reply]
Technical reviewBest possible solution: Keep the existing classifier and narrowly preserve canonical runtime-event continuations alongside the fresh-request fencing repair. Do we have a high-confidence way to reproduce the issue? The base predicate demonstrably treats “do not retry” as a continuation, and the supplied HTTP regressions exercise the omitted-call path; no target code was executed during this review. Is this the best way to solve the issue? Narrowing the existing owner is the right approach, but its accepted forms must include the runtime’s canonical event prompt to avoid losing completed tool receipts. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 096cf7cb6823. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +18, Tests +147. Total +165 across 3 files. Added test files: 1. 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:
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 18, 2026, 9:11 AM ET / 14:11 UTC. |
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 1f1acf85-cdf7-434f-874f-e42680a73a88
|
Merged via squash.
|
* fix(qa): fence old tool outputs at authored requests Classify only explicit continuations and canonical wrapped recovery instructions, not incidental or negated retry wording. Preserve invalid tool arguments in HTTP regressions and retain completed results during stalled recovery. Co-authored-by: RomneyDa <[email protected]> * fix(qa): fence old tool outputs at authored requests OpenClaw-Publication: 089979c7-ab39-4b8e-94c7-76578d8ed178 * fix(qa): retain tool output across runtime event wakes Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/land-frv11-lifecycle-ordering OpenClaw-Publication: 1f1acf85-cdf7-434f-874f-e42680a73a88 --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 9b55dc8)
* fix(qa): fence old tool outputs at authored requests Classify only explicit continuations and canonical wrapped recovery instructions, not incidental or negated retry wording. Preserve invalid tool arguments in HTTP regressions and retain completed results during stalled recovery. Co-authored-by: RomneyDa <[email protected]> * fix(qa): fence old tool outputs at authored requests OpenClaw-Publication: 089979c7-ab39-4b8e-94c7-76578d8ed178 * fix(qa): retain tool output across runtime event wakes Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/land-frv11-lifecycle-ordering OpenClaw-Publication: 1f1acf85-cdf7-434f-874f-e42680a73a88 --------- Co-authored-by: RomneyDa <[email protected]>
* improve(ci): avoid duplicate release source guard scans * fix(ci): classify recovery browser test server ownership (#200402) (cherry picked from commit a62e4e1) * fix(ci): restore package harness startup Copy the runtime process dependency manifest into the dependency-free packaging fixture so the CLI reaches argument validation. The existing startup assertion continues to reject missing modules. (cherry picked from commit 84262af) * test(facetime): preserve child process exports in audio fixture (#200419) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 36549cb) * test(browser): align fixtures with navigation and CLI contracts (#200428) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit d0daf88) * fix: restore Codex qualification fixture contracts (#200450) * fix: restore Codex run-attempt qualification coverage Use the complete typed transcript recorder fixtures and assert post-acceptance submission after prompt persistence, matching #199695. No production behavior or timeout changes. Co-authored-by: RomneyDa <[email protected]> * test: align Codex refresh callback fixtures Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 8f0d03f) * fix(crabbox): join heartbeat command cleanup before retirement (#200466) (cherry picked from commit 6247dc4) * fix(agents): retain ambiguous completed-answer receipts * fix(qa): ignore workspace context when detecting continuation --------- Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 60e0e21) Release adaptation: Preserve baseline authored-request continuation classifier and extractToolOutput import; newer #201244 behavior already exists. Apply runtime-context split and regression without downgrading it.: Backport review: #201130 selected by sibling; #201331 and #198760 are independent package script changes. #201244 classifier already present-equivalent on baseline.: (cherry picked from commit ad2ae0e0e2bf242ab0df9f9ca29f4f848caf478c)
Problem
The QA mock provider treated any mention of retry, continuation, or compaction as a continuation. A fresh denied-input request such as “do not retry” could reuse an older result and omit the requested tool call.
Change
Classify the authored current request rather than quoted history or runtime guidance. Recognize explicit continuations, canonical
[System]-wrapped recovery introductions, and the exact bare or inter-session-wrapped runtime-event wake. Arbitrary forwarded requests and quoted continuation text still fence old output. HTTP regressions preserve the invalidlspath and emptysessions_spawntask and prove completed calls are not reissued during stalled recovery.Only the QA classifier and two tests change. No core recovery, lifecycle, startup, scenario prompts, timeouts, permissions, or CI changes. Landed lifecycle repair #201229 and the firstbirth fixture are unchanged.
Validation
46ecb8046fb06f252aec6d7e3450e29f685ee99f: both HTTP denied-input cases fail with missingls/sessions_spawncalls; 5 others pass.f27fa522549dc3d5912ba99fd1e2e7c58c2c4b4efailed CI run 44318606431: image-generation lifecycle planned four calls instead of three. Its auto-merge intent was explicitly cancelled before replacement.mock-openai-input.test.ts,server.authored-turn.test.ts,server.test.ts, andserver.fanout-continuation.test.ts; wrapper 33.06s.git diff --checkpass after the final repair.message-tool-stranded-final-reply: 1/1, zero failures/skips, one stranded turn recovered with one delivery retry; 18.1s after private runtime build. This is wrapped recovery proof, not a full watchdog-expiry scenario. Real CLI used pinned Bun 1.4.4; focused suite used Node 26.0087bd46a12f349b4d9d3fc7e81b22b1c0ba26cb. Broad exact-head proof is current PR CI, not prior-head results.Scope and risk
This fixes a demonstrated QA mechanism, not a claim about the sole cause of a historical qualification failure. Tested source matches the affected QA and recovery modules on the publication base; intervening main changes were disjoint.
Simplification retains one existing classifier, removes broad keyword matching, and adds no state, helper API, or retry machinery. Production +29/-6; tests +164/-0 protect distinct request/recovery boundaries and actual HTTP behavior. The real image lifecycle regression test remains unchanged.