Skip to content

fix(qa): reject incomplete manual lane responses - #129395

Merged
steipete merged 2 commits into
mainfrom
codex/qa-manual-lane-terminal-false-success-20260825
Aug 25, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/qa-manual-lane-terminal-false-success-20260825

Conversation

@steipete

@steipete steipete commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stop the manual QA lane from reporting success after timeouts, provider failures, or missing assistant replies.

Root cause

The manual lane constructed a successful result from any completed agent.wait request, regardless of its terminal status or whether an outbound assistant reply existed. Its CLI and character-evaluation consumer therefore accepted provider errors, stalled runs, and empty conversations as passing QA.

Validate the terminal owner result after existing cleanup, preserve provider error details, and accept all already-supported success variants including the legacy error: completed shape.

Validation

  • Four actual owner regressions failed before repair: timeout, provider error with stale reply, no reply, and whitespace-only reply.
  • Incorporated a valid reviewer finding: successful legacy error: completed results with missing/blank replies now report the missing-reply diagnostic instead of misleadingly saying completed; real terminal errors retain their provider diagnostic when an actual reply exists.
  • 80 focused owner/agent-process/character-evaluation tests and seven manual CLI consumer tests passed.
  • A broader unrelated CLI suite still contains two pre-existing Crabline artifact-name expectation failures; neither exercises this owner.
  • Formatting, focused lint, changed-scope classification, and independent autoreview passed.
  • Production delta: +9/-8, net +1; the additional line is required to distinguish absent replies from actual provider failures.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 12:25 PM ET / 16:25 UTC.

ClawSweeper review

What this changes

The PR makes QA Lab’s manual run reject unsuccessful terminal states and absent or blank assistant replies, with regression coverage for those cases.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for normal merge validation. The follow-up commit addresses the prior missing-reply diagnostic finding, and current main still accepts any completed wait result without checking its terminal status or outbound reply.

Priority: P2
Reviewed head: 7b1b6c2e21e469e54901ed3666ba1e509fc08b72

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused, resolves the prior finding, and has meaningful owner-boundary coverage; final readiness depends on current-base exact-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored internal QA repair is exempt from the external-contributor real-behavior-proof gate; the focused regression evidence remains useful supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored internal QA repair is exempt from the external-contributor real-behavior-proof gate; the focused regression evidence remains useful supplemental validation.
Evidence reviewed 6 items Current-main behavior: Current main returns any constructed manual-lane result after cleanup, without validating the agent terminal status or reply content.
Owner-boundary repair: The PR-head validation requires a nonblank reply and accepts only the established successful terminal forms before returning the shared result.
Regression coverage: The new table covers timeout and provider-error results with stale replies, missing and whitespace replies, and the legacy completed-error shape; it also covers accepted success variants.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs extensions/qa-lab/src/manual-lane.runtime.test.ts

Result: PASS (completed)

[test] starting test/vitest/vitest.extension-qa.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129395-6KUfr4/target

 ✓  extension-qa  extensions/qa-lab/src/manual-lane.runtime.test.ts (17 tests) 129ms

 Test Files  1 passed (1)
      Tests  17 passed (17)
   Start at  16:25:59
   Duration  1.70s (transform 1.27s, setup 1.06s, import 98ms, tests 129ms, environment 0ms)

[test] passed 1 Vitest shard in 7.97s
[test] starting test/vitest/vitest.extension-qa.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129395-6KUfr4/target

 ✓  extension-qa  extensions/qa-lab/src/manual-lane.runtime.test.ts (17 tests) 72ms

 Test Files  1 passed (1)
      Tests  17 passed (17)
   Start at  16:26:08
   Duration  839ms (transform 402ms, setup 479ms, import 42ms, tests 72ms, environment 0ms)

[test] passed 1 Vitest shard in 7.05s

Assertions:

  • PASS expect_output: manual-lane.runtime.test.ts

How this fits together

QA Lab’s manual lane starts an agent run, waits for the Gateway terminal result, then reads the outbound assistant reply from the QA transport. The CLI manual command and character-evaluation judge both consume that shared result.

flowchart LR
  A[Manual QA scenario] --> B[Gateway agent run]
  B --> C[Terminal result]
  B --> D[QA transport reply]
  C --> E[Manual lane validation]
  D --> E
  E --> F[CLI manual result]
  E --> G[Character evaluation]
Loading

Before merge

  • Resolve merge risk (P1) - Production code is net +1 line; it appears necessary to preserve a provider diagnostic only when a usable reply exists, and no clearer net-neutral absorption is evident.
  • Resolve merge risk (P1) - The head was reported behind main and one changed-extension check was still running at review time, so merge validation must be refreshed for the exact final head.
  • Complete next step (P2) - This maintainer-authored PR has no identified mechanical repair remaining; it needs ordinary exact-head CI and merge review.
Agent review details

Security

None.

PR surface

Source +1, Tests +96. Total +97 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 9 8 +1
Tests 1 103 7 +96
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 112 15 +97

Review metrics

Metric Value Why it matters
Production versus regression LOC production +1, tests +96 The small production increase performs diagnostic selection at the owner boundary; the bulk of the change is table-driven regression coverage.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land a current-base, exact-head-green version that keeps terminal-state and reply-presence validation in the shared manual-lane owner rather than duplicating it in CLI or character-evaluation consumers.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land a current-base, exact-head-green version that keeps terminal-state and reply-presence validation in the shared manual-lane owner rather than duplicating it in CLI or character-evaluation consumers.

Do we have a high-confidence way to reproduce the issue?

Yes — current main returns the manual-lane result without checking terminal status or reply content, and the PR’s focused owner tests define concrete timeout, error, missing-reply, and whitespace-reply cases.

Is this the best way to solve the issue?

Yes — validating once after cleanup at the shared manual-lane owner prevents both CLI and character-evaluation consumers from treating incomplete runs as successes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b0e9fd62522e.

Labels

Label justifications:

  • P2: False QA passes can hide failed or incomplete manual runs, but the impact is limited to the bundled QA workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored internal QA repair is exempt from the external-contributor real-behavior-proof gate; the focused regression evidence remains useful supplemental validation.

Evidence

What I checked:

Likely related people:

  • steipete: History of the manual-lane owner includes repeated QA maintenance by Peter Steinberger, including transport cleanup and timeout handling. (role: recent area contributor; confidence: high; commits: 7b1b6c2e21e4, a676afd54df3, 4abde61366b4; files: extensions/qa-lab/src/manual-lane.runtime.ts, extensions/qa-lab/src/manual-lane.runtime.test.ts)
  • Dallin Romney: The file history identifies Dallin Romney’s QA transport-adapter refactor as relevant adjacent ownership. (role: transport-contract contributor; confidence: medium; commits: 04601ae81a6d, 63b13ea837fe; files: extensions/qa-lab/src/manual-lane.runtime.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the branch if needed and confirm the remaining changed-extension check is green on the exact merge head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-25T15:08:18.325Z sha 6febcad6ca0e5b69cf7ad46d1f3b1559bccaeba8 :: needs changes before merge. :: [P2] Report missing replies as missing replies
  • reviewed 2026-08-25T15:34:27.512Z sha 6febcad6ca0e5b69cf7ad46d1f3b1559bccaeba8 :: found issues before merge. :: [P2] Preserve the missing-reply diagnostic

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Aug 25, 2026
@steipete
steipete force-pushed the codex/qa-manual-lane-terminal-false-success-20260825 branch from 6febcad to 7b1b6c2 Compare August 25, 2026 16:15
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 25, 2026
@steipete
steipete merged commit e06e804 into main Aug 25, 2026
129 checks passed
@steipete
steipete deleted the codex/qa-manual-lane-terminal-false-success-20260825 branch August 25, 2026 18:04
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
* fix(qa): reject incomplete manual lane responses

* fix(qa): preserve missing-reply failure diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant