Repository navigation
fix(qa): vision offload proof expects retired runtime context role - #169451
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 updates the vision-offload scenario to expect labeled user-role runtime context from its compatible Responses endpoint. Example: The QA channel receives red-top-blue-bottom.png while the active model accepts text only.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR repairs a stale assertion still present on main, preserves meaningful vision-offload coverage, and introduces no identified defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe scenario sends an image through the QA bus and a CLI-started Gateway, captures requests at a loopback Responses provider, and checks the resulting channel reply. flowchart LR
A[QA channel image] --> B[QA bus]
B --> C[CLI started Gateway]
C --> D[Image summarizer request]
D --> E[Text only model request]
E --> F[Single channel reply]
D --> G[Captured request assertions]
E --> G
Technical reviewBest possible solution: Land the focused assertion repair while preserving the existing offload and single-delivery contracts. Do we have a high-confidence way to reproduce the issue? Current-main serialization and the fixture's loopback endpoint establish the role mismatch, corroborated by the author's before/after report; this review ran no tests. Is this the best way to solve the issue? Changing the fixture expectation follows the existing endpoint-specific contract and retains the scenario's independent behavioral assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a9b40cf325e8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +3. Total +3 across 1 file. 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 11, 2026, 7:49 PM ET / 23:49 UTC. |
…penclaw#169451) Related: openclaw#168961 ## What Problem This Solves Fixes the QA vision-offload proof failing because it expects the retired developer-role runtime carrier. This is an explicitly requested main CI repair; openclaw#168961 updates other runtime-context fixtures but does not touch this scenario. ## User Impact No product behavior changes. The end-to-end proof still requires exactly one image-model request followed by one text-only model request and one visible reply. ## Why This Change Was Made Current Responses serialization carries labeled runtime context as a user-role message. Expect that exact role sequence and explicitly require the current `OpenClaw runtime context:` label. Preserve image counts, model selection, request ordering, image prompt/summary, and single-delivery assertions. ## Evidence Baseline: `11f576b23cf70615ca4504eb12fdba93591b9c8f`. - Before: the active-model request was `[developer, user, user]`; the fixture expected `[developer, user, developer]` and failed. - After: `vision-channel-offload.e2e.test.ts` passed (1/1), including the added label check and all existing offload/single-reply assertions. - Built `qaRuntime` once and reused prebuilt dist. - `pnpm tsgo:test:root`: all four shards passed; changed-file Oxlint/Oxfmt and line-cap ratchet passed. - Independent autoreview: scoped-clean at P2, no actionable findings. Proof command: `node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/e2e/qa-lab/media/vision-channel-offload.e2e.test.ts` (executed alongside the independent memory fixture test). Co-authored-by: Ayaan Zaidi <[email protected]>
…169451) Related: #168961 ## What Problem This Solves Fixes the QA vision-offload proof failing because it expects the retired developer-role runtime carrier. This is an explicitly requested main CI repair; #168961 updates other runtime-context fixtures but does not touch this scenario. ## User Impact No product behavior changes. The end-to-end proof still requires exactly one image-model request followed by one text-only model request and one visible reply. ## Why This Change Was Made Current Responses serialization carries labeled runtime context as a user-role message. Expect that exact role sequence and explicitly require the current `OpenClaw runtime context:` label. Preserve image counts, model selection, request ordering, image prompt/summary, and single-delivery assertions. ## Evidence Baseline: `5889e62f4902b8f3fa4b6eb2cecbbd26f5b8ceb0`. - Before: the active-model request was `[developer, user, user]`; the fixture expected `[developer, user, developer]` and failed. - After: `vision-channel-offload.e2e.test.ts` passed (1/1), including the added label check and all existing offload/single-reply assertions. - Built `qaRuntime` once and reused prebuilt dist. - `pnpm tsgo:test:root`: all four shards passed; changed-file Oxlint/Oxfmt and line-cap ratchet passed. - Independent autoreview: scoped-clean at P2, no actionable findings. Proof command: `node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/e2e/qa-lab/media/vision-channel-offload.e2e.test.ts` (executed alongside the independent memory fixture test). Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit ba42b57)
…penclaw#169451) Related: openclaw#168961 ## What Problem This Solves Fixes the QA vision-offload proof failing because it expects the retired developer-role runtime carrier. This is an explicitly requested main CI repair; openclaw#168961 updates other runtime-context fixtures but does not touch this scenario. ## User Impact No product behavior changes. The end-to-end proof still requires exactly one image-model request followed by one text-only model request and one visible reply. ## Why This Change Was Made Current Responses serialization carries labeled runtime context as a user-role message. Expect that exact role sequence and explicitly require the current `OpenClaw runtime context:` label. Preserve image counts, model selection, request ordering, image prompt/summary, and single-delivery assertions. ## Evidence Baseline: `5889e62f4902b8f3fa4b6eb2cecbbd26f5b8ceb0`. - Before: the active-model request was `[developer, user, user]`; the fixture expected `[developer, user, developer]` and failed. - After: `vision-channel-offload.e2e.test.ts` passed (1/1), including the added label check and all existing offload/single-reply assertions. - Built `qaRuntime` once and reused prebuilt dist. - `pnpm tsgo:test:root`: all four shards passed; changed-file Oxlint/Oxfmt and line-cap ratchet passed. - Independent autoreview: scoped-clean at P2, no actionable findings. Proof command: `node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/e2e/qa-lab/media/vision-channel-offload.e2e.test.ts` (executed alongside the independent memory fixture test). Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit ba42b57) (cherry picked from commit 257d2cd) Co-authored-by: RomneyDa <[email protected]>
Related: #168961
What Problem This Solves
Fixes the QA vision-offload proof failing because it expects the retired developer-role runtime carrier. This is an explicitly requested main CI repair; #168961 updates other runtime-context fixtures but does not touch this scenario.
User Impact
No product behavior changes. The end-to-end proof still requires exactly one image-model request followed by one text-only model request and one visible reply.
Why This Change Was Made
Current Responses serialization carries labeled runtime context as a user-role message. Expect that exact role sequence and explicitly require the current
OpenClaw runtime context:label. Preserve image counts, model selection, request ordering, image prompt/summary, and single-delivery assertions.Evidence
Baseline:
5889e62f4902b8f3fa4b6eb2cecbbd26f5b8ceb0.[developer, user, user]; the fixture expected[developer, user, developer]and failed.vision-channel-offload.e2e.test.tspassed (1/1), including the added label check and all existing offload/single-reply assertions.qaRuntimeonce and reused prebuilt dist.pnpm tsgo:test:root: all four shards passed; changed-file Oxlint/Oxfmt and line-cap ratchet passed.Proof command:
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/e2e/qa-lab/media/vision-channel-offload.e2e.test.ts(executed alongside the independent memory fixture test).