Repository navigation
fix(qa): reject silent and out-of-character persona conversations - #119497
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:18 AM ET / 07:18 UTC. ClawSweeper reviewWhat this changesThe PR makes the two persona QA scenarios reject forbidden replies and fully silent conversations, while pinning those qualitative checks to the existing live-provider lane. Merge readinessKeep open: current main still lets both persona flows catch every missing-reply timeout and finish successfully, while this branch makes that outcome fail and now supplies credible live Gateway proof. The protected Priority: P2 Review scores
Verification
How this fits togetherQA Lab executes YAML conversation flows through a Gateway and records outbound replies for scenario reports and later character grading. These flows decide whether a persona conversation is reported as a valid transcript or a visible QA failure. flowchart LR
A[QA suite selection] --> B[Persona scenario flow]
B --> C[Gateway and QA channel]
C --> D[Outbound reply waiter]
D --> E[Transcript and reply checks]
E --> F[Pass or visible QA failure]
Decision needed
Why: The patch is source-backed and proof-positive, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +199, Other +46. Total +245 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Carry the focused scenario-owner repair forward onto current main, retaining the live-only lane and regressions, then land after the rebased head is clean. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main catches every per-turn timeout and has no post-flow reply-count assertion, so a wholly silent transcript can pass. This review did not rerun the live failure locally. Is this the best way to solve the issue? Yes. The repair belongs in the scenario acceptance flow, reuses the waiter’s existing classified-failure contract, and avoids changing provider or channel runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ae54355087b7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
…enclaw#119497) * fix(qa): reject unanswered and unsafe character conversations * fix(qa): propagate classified persona delivery failures * fix(qa): keep qualitative persona evaluations on live providers * test(qa): avoid inefficient persona failure table spread
What Problem This Solves
Fixes an issue where both persona QA conversations passed when the assistant emitted forbidden fallback text, and even when every conversation turn received no assistant reply.
Why This Change Was Made
Catch only the intentionally tolerated per-turn wait failure, validate actual replies outside that catch, and require at least one genuine assistant reply after collecting the complete conversation transcript. Partial conversations remain supported; forbidden replies and completely unanswered conversations now fail visibly.
User Impact
Character/persona QA no longer reports a healthy conversation for a silent model, broken delivery, or an out-of-character fallback response.
Evidence
Classified failures and truthful provider-lane proof
Both scenarios now tolerate only the production waiter's exact real timeout; provider, delivery, missing-tool, and coordination failures are rethrown unchanged. The focused parsed-scenario suite covers all four classified failure families for both personas, actual forbidden replies, all-missing conversations, and partial conversations with preserved transcripts.
A real Gateway run exposed why mock providers cannot truthfully evaluate qualitative personas:
The shared mock provider intentionally emits that generic QA-planning fallback, which contains prohibited
qa scenariotext. The existing character-evaluation candidate and judge already requirelive-frontier; therefore both persona scenarios now declare their documented existing live-only lane instead of inventing canned mock personalities. Authentic catalog/planning controls reject explicit mock selection, exclude the scenarios from implicit mock suites, and admit them on the live lane. No user-facing provider defaults, product configuration, provider transport, or model behavior changed.Real live-model persona Gateway verdict
Trusted Blacksmith Testbox used its already-configured OpenAI credentials (no secrets copied or logged), the real private-QA Gateway, and the actual live GPT-5.4 provider:
All 16 authentic parsed-flow negative/control tests also pass, and both scenario YAMLs plus the focused test were verified byte-identical to the exact PR head. Testbox run: https://github.com/openclaw/openclaw/actions/runs/30983445783