Repository navigation
fix(qa): reject incomplete manual lane responses - #129395
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 12:25 PM ET / 16:25 UTC. ClawSweeper reviewWhat this changesThe PR makes QA Lab’s manual run reject unsuccessful terminal states and absent or blank assistant replies, with regression coverage for those cases. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherQA 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +1, Tests +96. Total +97 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
6febcad to
7b1b6c2
Compare
|
Merged via squash.
|
* fix(qa): reject incomplete manual lane responses * fix(qa): preserve missing-reply failure diagnostics
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.waitrequest, 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: completedshape.Validation
error: completedresults with missing/blank replies now report the missing-reply diagnostic instead of misleadingly sayingcompleted; real terminal errors retain their provider diagnostic when an actual reply exists.