Skip to content

fix(qa-lab): fail closed on invalid summaries and enforce process timeouts - #116748

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-qalab
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-qalab

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Reject missing, malformed, empty, skipped-only, and blocked-only QA summaries even when failure allowance is requested; cover generic and Telegram scenario families.
  • Enforce the already configured execution timeout for native Vitest, Playwright, and Chromium scenario processes.

Verification

  • Focused owner and affected suites: 227 tests passed; two documented unrelated baseline Crabline package tests excluded.
  • Independent whole-surface re-review of the final amended SHA inspected every scenario family, summary classification, native process ownership, timeouts, callers, and sibling adapters; no blockers.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; independent manual diff and secret review completed.

Root causes fixed

2 distinct QA Lab execution/verification defects.

@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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 5:42 AM ET / 09:42 UTC.

ClawSweeper review

What this changes

QA Lab now rejects missing, malformed, empty, skipped-only, and blocked-only summaries when failures are allowed, and passes the configured timeout to native scenario subprocesses.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 4 items remain

Keep this PR open for explicit maintainer handling: it carries the protected maintainer label, and the supplied patch appears to make QA Lab’s failure-tolerant gate reject unusable summaries while bounding native subprocesses. I found no concrete line-level regression in the supplied diff, but the PR body provides focused test claims rather than inspectable after-fix runtime evidence.

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

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch is focused and regression-tested in the supplied diff, but it lacks directly inspectable real-behavior proof for its changed QA runtime behavior.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports 227 focused tests, but the available context contains no inspectable after-fix runtime artifact showing an invalid summary rejection or timeout termination; add redacted CLI output, logs, or a recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports 227 focused tests, but the available context contains no inspectable after-fix runtime artifact showing an invalid summary rejection or timeout termination; add redacted CLI output, logs, or a recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Summary validation change: The submitted change adds a completed-scenario requirement for failure-tolerant summary reads, so a missing, malformed, skip-only, or blocked-only report cannot be treated as an authenticated QA run.
Caller coverage: The generic QA CLI and Telegram QA CLI both pass the new requirement only when --allow-failures is enabled, preserving ordinary blocking-count behavior while hardening failure-tolerant runs.
Timeout propagation: The runner now supplies its resolved command timeout to non-script scenario commands instead of leaving native process execution unbounded.
Findings None None.
Security None None.

How this fits together

QA Lab launches scenario commands, writes a suite summary, and then uses that summary to decide whether a QA invocation is valid or blocking. This PR changes the post-run validation gate and the timeout forwarded to Vitest, Playwright, and Chromium-backed scenario commands.

flowchart LR
  A[QA CLI invocation] --> B[Scenario runner]
  B --> C[Native test subprocesses]
  C --> D[Suite summary and evidence]
  D --> E[Summary validation gate]
  E --> F[QA result or failure]
  B --> G[Configured command timeout]
  G --> C
Loading

Decision needed

Question Recommendation
Should QA Lab intentionally make existing --allow-failures runs fail when no scenario completed and terminate native processes at the already configured timeout? Confirm and merge: Confirm that failure-tolerant mode must still require one completed scenario and that the configured timeout is the intended limit for all native scenario commands.

Why: The patch changes QA automation’s observable exit behavior and process lifetime; its protected maintainer label requires an explicit owner decision rather than automated cleanup.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports 227 focused tests, but the available context contains no inspectable after-fix runtime artifact showing an invalid summary rejection or timeout termination; add redacted CLI output, logs, or a recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P2) - --allow-failures now still fails a QA invocation when no scenario completed, and native subprocesses now honor the configured timeout; this is intentional hardening but can change existing QA automation outcomes at runtime.
  • Resolve merge risk (P1) - The supplied body reports focused tests, but it does not include inspectable after-fix runtime output or a redacted artifact demonstrating an invalid summary is rejected and a timed native process is terminated.
Agent review details

Security

None.

PR surface

Source +4, Tests +259. Total +263 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 4 43 39 +4
Tests 4 277 18 +259
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 320 57 +263

Review metrics

Metric Value Why it matters
QA validation surfaces 2 CLI gates changed Both the generic QA CLI and Telegram QA CLI now authenticate failure-tolerant summaries, so the behavior change reaches more than one automation entry point.
Native timeout forwarding 1 runner policy changed The common command runner now applies the resolved timeout to native command steps, affecting the lifetime of scenario subprocesses.

Merge-risk options

Maintainer options:

  1. Prove the changed automation contract (recommended)
    Add redacted after-fix CLI or CI evidence showing skip-only summaries fail under --allow-failures and a deliberately slow native command is stopped at the configured timeout.
  2. Accept the intentional behavior change
    A QA Lab owner may explicitly accept that existing failure-tolerant workflows can now fail when they perform no completed scenario and that their native processes are bounded.
  3. Pause for compatibility review
    Pause the PR if existing QA consumers may rely on skip-only reports or longer-running native steps and the intended upgrade behavior is not confirmed.

Technical review

Best possible solution:

Land only after the QA Lab owner confirms the intended compatibility change for existing failure-tolerant automation and adds redacted runtime evidence covering both the invalid-summary rejection and timeout enforcement.

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

Unclear: the supplied diff and regression tests make the prior source-level gaps plausible, but no current-main failing invocation or inspectable runtime transcript was available in the review context.

Is this the best way to solve the issue?

Yes, conditionally: validating the summary at the gate that owns QA success and forwarding the existing timeout through the common command runner are narrow owner-boundary fixes, subject to confirmation of the intended automation compatibility change.

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label changes:

  • add P2: This is a bounded QA automation hardening change with meaningful but non-user-runtime blast radius.
  • add merge-risk: 🚨 compatibility: Existing failure-tolerant QA invocations can now fail when their summary has no completed scenario.
  • add merge-risk: 🚨 availability: Native QA subprocesses that previously ran without this forwarded limit will now be terminated at the configured timeout.
  • add merge-risk: 🚨 automation: The PR changes the exit conditions used by generic and Telegram QA automation gates.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports 227 focused tests, but the available context contains no inspectable after-fix runtime artifact showing an invalid summary rejection or timeout termination; add redacted CLI output, logs, or a recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This is a bounded QA automation hardening change with meaningful but non-user-runtime blast radius.
  • merge-risk: 🚨 compatibility: Existing failure-tolerant QA invocations can now fail when their summary has no completed scenario.
  • merge-risk: 🚨 automation: The PR changes the exit conditions used by generic and Telegram QA automation gates.
  • merge-risk: 🚨 availability: Native QA subprocesses that previously ran without this forwarded limit will now be terminated at the configured timeout.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports 227 focused tests, but the available context contains no inspectable after-fix runtime artifact showing an invalid summary rejection or timeout termination; add redacted CLI output, logs, or a recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Summary validation change: The submitted change adds a completed-scenario requirement for failure-tolerant summary reads, so a missing, malformed, skip-only, or blocked-only report cannot be treated as an authenticated QA run. (extensions/qa-lab/src/suite-summary.ts:118, 560c12415a44)
  • Caller coverage: The generic QA CLI and Telegram QA CLI both pass the new requirement only when --allow-failures is enabled, preserving ordinary blocking-count behavior while hardening failure-tolerant runs. (extensions/qa-lab/src/cli.runtime.ts:368, 560c12415a44)
  • Timeout propagation: The runner now supplies its resolved command timeout to non-script scenario commands instead of leaving native process execution unbounded. (extensions/qa-lab/src/test-file-scenario-runner.ts:295, 560c12415a44)
  • Focused regression coverage: The PR adds tests for invalid failure-tolerant summaries in generic and Telegram gates, plus timeout forwarding for Vitest and Playwright command steps. (extensions/qa-lab/src/suite-summary.test.ts:94, 560c12415a44)
  • Protected review routing: The supplied GitHub context marks this PR maintainer; repository policy requires protected-label items to remain open for explicit maintainer handling.

Likely related people:

  • steipete: The supplied PR context attributes the current focused QA Lab change and its single commit to steipete; local feature-history inspection was unavailable in this read-only environment, so longer-term ownership is not established. (role: recent QA Lab contributor; confidence: low; commits: 560c12415a44; files: extensions/qa-lab/src/suite-summary.ts, extensions/qa-lab/src/test-file-scenario-runner.ts)

Rank-up moves

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

  • Add redacted after-fix output showing a skip-only or blocked-only --allow-failures run is rejected.
  • Add redacted output showing a native scenario command is stopped at its configured timeout.

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.

@steipete
steipete merged commit 7ea4129 into main Jul 31, 2026
129 of 142 checks passed
@steipete
steipete deleted the codex/auto-qa-qalab branch July 31, 2026 10:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
* commit 'refs/frozen/talk-pcm-output-main-refresh':
  fix(skills): allow autonomous sweep sync (#116755)
  fix(irc): recognize punctuation in nickname mentions (#116758)
  fix(plugins): require explicit source external startup (#116759)
  fix(whatsapp): keep sends running when typing presence fails (#116739)
  fix(cli): reject dangling config path escapes (#116738)
  fix(qa): authenticate summaries and bound native scenario commands (#116748)
  fix(bedrock): reject truncated streams and preserve audio results (#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (#116760)
  chore(i18n): refresh native locales (#116640)
  fix(ollama): resolve web search secret refs (#104829)
  fix(ollama): honor stop sequences and async payload hooks (#116737)
  fix(ollama): stop oversized stream records from growing memory (#107473)
  fix(agents): preserve thinking for runtime-selected Ollama models (#116584)
vincentkoc added a commit that referenced this pull request Jul 31, 2026
* origin/main: (23 commits)
  fix(agents): preserve resumed turns after stale terminal events (#116777)
  fix(browser): preserve tab-bound browser authorization (#116778)
  fix(doctor): correct SQLite-backed automation warnings (#116769)
  fix(release): skip unavailable Buzz QA runner (#116753)
  feat(plugins): externalize DuckDuckGo search (#116740)
  refactor(reply): simplify task-owned typing refresh (#116770)
  fix(chat): explain chat-only model limits
  feat(models): expose tool support to clients
  docs(skill): require independent proof before issue closure
  fix(skills): allow autonomous sweep sync (#116755)
  fix(irc): recognize punctuation in nickname mentions (#116758)
  fix(plugins): require explicit source external startup (#116759)
  fix(whatsapp): keep sends running when typing presence fails (#116739)
  fix(cli): reject dangling config path escapes (#116738)
  fix(qa): authenticate summaries and bound native scenario commands (#116748)
  fix(bedrock): reject truncated streams and preserve audio results (#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (#116760)
  chore(i18n): refresh native locales (#116640)
  fix(ollama): resolve web search secret refs (#104829)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit 'refs/frozen/talk-pcm-output-main-refresh':
  fix(skills): allow autonomous sweep sync (openclaw#116755)
  fix(irc): recognize punctuation in nickname mentions (openclaw#116758)
  fix(plugins): require explicit source external startup (openclaw#116759)
  fix(whatsapp): keep sends running when typing presence fails (openclaw#116739)
  fix(cli): reject dangling config path escapes (openclaw#116738)
  fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748)
  fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (openclaw#116760)
  chore(i18n): refresh native locales (openclaw#116640)
  fix(ollama): resolve web search secret refs (openclaw#104829)
  fix(ollama): honor stop sequences and async payload hooks (openclaw#116737)
  fix(ollama): stop oversized stream records from growing memory (openclaw#107473)
  fix(agents): preserve thinking for runtime-selected Ollama models (openclaw#116584)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (23 commits)
  fix(agents): preserve resumed turns after stale terminal events (openclaw#116777)
  fix(browser): preserve tab-bound browser authorization (openclaw#116778)
  fix(doctor): correct SQLite-backed automation warnings (openclaw#116769)
  fix(release): skip unavailable Buzz QA runner (openclaw#116753)
  feat(plugins): externalize DuckDuckGo search (openclaw#116740)
  refactor(reply): simplify task-owned typing refresh (openclaw#116770)
  fix(chat): explain chat-only model limits
  feat(models): expose tool support to clients
  docs(skill): require independent proof before issue closure
  fix(skills): allow autonomous sweep sync (openclaw#116755)
  fix(irc): recognize punctuation in nickname mentions (openclaw#116758)
  fix(plugins): require explicit source external startup (openclaw#116759)
  fix(whatsapp): keep sends running when typing presence fails (openclaw#116739)
  fix(cli): reject dangling config path escapes (openclaw#116738)
  fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748)
  fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (openclaw#116760)
  chore(i18n): refresh native locales (openclaw#116640)
  fix(ollama): resolve web search secret refs (openclaw#104829)
  ...
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant