Skip to content

fix(qa): reject silent and out-of-character persona conversations - #119497

Merged
steipete merged 4 commits into
mainfrom
codex/autoqa-character-reply-evidence-20260805
Aug 5, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/autoqa-character-reply-evidence-20260805

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Table-driven regressions execute both real parsed character scenarios through the production outbound waiter.
  • Forbidden actual assistant replies fail, four genuinely timed-out turns fail with the captured transcript, and one valid reply followed by missing turns still passes with all conversation turns preserved.
  • Trusted Blacksmith Testbox aggregate passed 916 tests across 28 files.
  • Changes are limited to QA scenario fixtures and a focused regression; no production model behavior, tools, configuration, or channel transport is modified.
  • Independent structured review found no accepted actionable findings; Testbox run: https://github.com/openclaw/openclaw/actions/runs/30973152491

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:

[qa-suite] scenario start: character-vibes-gollum
gollum natural chat turn 0 hit fallback/error text:
Protocol note: acknowledged. Continue with the QA scenario plan and report worked, failed, and blocked items.

The shared mock provider intentionally emits that generic QA-planning fallback, which contains prohibited qa scenario text. The existing character-evaluation candidate and judge already require live-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:

pnpm openclaw qa suite --provider-mode live-frontier --model openai/gpt-5.4 --alt-model openai/gpt-5.4 --scenario character-vibes-gollum --scenario character-vibes-c3po --fast --concurrency 1
[qa-suite] provider start: live-frontier
[qa-suite] provider ready: live
[qa-suite] gateway ready: http://127.0.0.1:36961
[qa-suite] scenario start (1/2): character-vibes-gollum
[qa-suite] scenario pass (1/2): character-vibes-gollum
[qa-suite] scenario start (2/2): character-vibes-c3po
[qa-suite] scenario pass (2/2): character-vibes-c3po
[qa-suite] run complete: passed=2 failed=0 skipped=0 total=2

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

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:18 AM ET / 07:18 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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 maintainer label and behind base require maintainer handling rather than backlog cleanup.

Priority: P2
Reviewed head: cf5e2a63307b6a4f3e1836ec5d565b9393c9e810
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused, contract-aligned scenario repair with real after-fix Gateway evidence and no actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body includes a redacted after-fix live private-Gateway run on GPT-5.4 that passes both changed persona scenarios; mock regressions are supplemental.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes a redacted after-fix live private-Gateway run on GPT-5.4 that passes both changed persona scenarios; mock regressions are supplemental.
Evidence reviewed 7 items Current-main gap: Both current persona flows catch any waiter error and only save it, so an all-silent conversation completes with transcript details rather than failing.
Existing timeout and failure contract: The production waiter rethrows classified provider/delivery failures and its ordinary silence timeout is exactly timed out after <timeout>ms, matching the branch’s narrow catch.
Branch repair and coverage: The branch resets per-turn output state, rethrows non-timeout failures, validates received replies outside the catch, requires one assistant reply, and adds both-persona regression coverage for classified failures, silent runs, partial transcripts, and lane selection.
Findings None None.
Security None None.

How this fits together

QA 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]
Loading

Decision needed

Question Recommendation
Should this protected QA change be rebased onto current main and landed with the supplied live proof? Rebase and land: Refresh the branch against current main and land if the exact-head review and required checks remain clean.

Why: The patch is source-backed and proof-positive, but the protected maintainer label requires explicit maintainer handling and the branch is behind main.

Before merge

  • Resolve merge risk (P1) - The branch is behind current main, so its exact merge result needs a rebase or review refresh before landing.
Agent review details

Security

None.

PR surface

Tests +199, Other +46. Total +245 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 199 0 +199
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 56 10 +46
Total 3 255 10 +245

Review metrics

Metric Value Why it matters
Production versus test delta production +56, -10; tests +199 The fixture growth is justified by a stronger QA acceptance invariant, while the focused test file covers its two persona flows and failure classes.

Stored data model

Persistent data-model change detected: serialized state: extensions/qa-lab/src/scenario-flow-runner-character-safety.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes a redacted after-fix live private-Gateway run on GPT-5.4 that passes both changed persona scenarios; mock regressions are supplemental.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes a redacted after-fix live private-Gateway run on GPT-5.4 that passes both changed persona scenarios; mock regressions are supplemental.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: A false-positive QA result can hide a silent or out-of-character model interaction, but the change is confined to the QA Lab surface.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body includes a redacted after-fix live private-Gateway run on GPT-5.4 that passes both changed persona scenarios; mock regressions are supplemental.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes a redacted after-fix live private-Gateway run on GPT-5.4 that passes both changed persona scenarios; mock regressions are supplemental.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the recent scenario-isolation fix in the same QA suite area and also has merged history beyond this proposed branch. (role: recent QA scenario contributor; confidence: high; commits: b5237ac86a0e; files: extensions/qa-lab/src/suite-planning.ts, extensions/qa-lab/src/scenario-flow-runner.ts)
  • Dallin Romney: Dallin Romney authored the flow-scenario migration and provider-lane enforcement that this PR reuses. (role: lane-contract and flow-migration contributor; confidence: high; commits: 24ce672e06a8, 652c6444b3ab; files: extensions/qa-lab/src/scenario-lane.ts, extensions/qa-lab/src/scenario-flow-runner.ts)
  • Vincent Koc: Current-line blame attributes the waiter’s failure and timeout behavior to Vincent Koc. (role: recent outbound-waiter contributor; confidence: high; commits: 17ef7771a66d; files: extensions/qa-lab/src/suite-runtime-transport.ts, extensions/qa-lab/src/qa-transport.ts)

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 (4 earlier review cycles)
  • reviewed 2026-08-05T05:37:45.601Z sha 1ff1da6 :: needs real behavior proof before merge. :: [P2] Rethrow classified outbound failures
  • reviewed 2026-08-05T05:43:54.717Z sha 1ff1da6 :: needs real behavior proof before merge. :: [P2] Rethrow classified outbound failures
  • reviewed 2026-08-05T06:14:26.154Z sha 3324c86 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-05T06:38:23.860Z sha cf5e2a6 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. label Aug 5, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 5, 2026
@steipete
steipete merged commit 4c94d9f into main Aug 5, 2026
137 of 146 checks passed
@steipete
steipete deleted the codex/autoqa-character-reply-evidence-20260805 branch August 5, 2026 12:37
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
…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
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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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