Skip to content

fix(qa): reject incomplete evidence runs - #126407

Merged
steipete merged 3 commits into
mainfrom
steipete/focused-feistel-e4df6c
Aug 19, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/focused-feistel-e4df6c

Conversation

@steipete

@steipete steipete commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Related: #119957
Related: #120632

What Problem This Solves

QA Lab could expose canonical valid-looking evidence from partial or replaced runs: isolated progress wrote canonical evidence, canonical readers accepted running or missing lifecycle state, and cleanup failure could leave terminal-looking artifacts.

flow execution.timeoutMs bounded optional preparation but not the complete YAML flow, so a hanging action could keep the suite alive indefinitely. Script-producer skipped evidence could also be swallowed as pass or projected as fail.

Why This Change Was Made

This establishes one terminal contract: only run.status=completed is consumable; stale generations are invalidated before execution; progress remains explicitly running and never publishes canonical evidence; standard, isolated, and runtime-pair terminal artifacts publish only after cleanup succeeds; and the summary remains the last completion marker.

An explicit execution.timeoutMs is now one shared whole-flow deadline. It exposes AbortSignal to preparation and runtime, fences all later and nested actions after abort, preserves DSL finally cleanup, and lets the suite cleanup owner tear down runtime resources. In-flight JavaScript callables cancel cooperatively; this is not child-Gateway teardown, and that separately owned issue is excluded from this PR.

Script-producer precedence is now fail; blocking blocked; skipped; pass, preserving allowed blocked-plus-pass behavior while keeping skipped mixed evidence visible. Canonical CLI, confidence, parity, coverage, and plugin-gauntlet readers reject nonterminal summaries.

Open drafts #119957 and #120632 overlap canonical evidence lifecycle ownership. This PR intentionally must not merge until that cluster's owner decides consolidation or supersession. #125303 covers the outer workflow timeout budget only and is not a substitute for this function-level repair.

User Impact

QA operators and release automation can no longer treat partial or interrupted runs as successful terminal evidence. Hanging flows terminate with honest failed scenario evidence, while skipped checks remain visible and blocking according to existing policy.

This is internal QA infrastructure only; no CHANGELOG entry is needed.

Evidence

Pre-fix regression proof in /tmp/qa-evidence-lifecycle-prefx.txt: expected failure with 12 failures and 236 passes. The intended failures covered canonical readers accepting running, missing, and unsupported lifecycle state; confidence and character evaluation accepting incomplete summaries; running progress publishing canonical evidence; standard, isolated, and runtime-pair cleanup failures leaving terminal artifacts; a whole-flow deadline failing to bound a hanging action; pass-plus-skipped producer evidence becoming pass; and a skipped native producer becoming unified fail. The existing all-skipped producer case passed and remains preserved.

Pre-publication focused lifecycle proof: 519 tests passed. Follow-up focused proof: 113 tests passed and 25 tests passed. node scripts/check-changed.mjs passed all selected typecheck, lint, boundary, and guard lanes. git diff --check passed. Final Codex autoreview was clean with correctness 0.98.

Post-rebase proof on a277409809bb59b80d4eb176e8a88d2543097255:

node scripts/run-vitest.mjs extensions/qa-lab/src/suite-summary.test.ts extensions/qa-lab/src/confidence-report.test.ts extensions/qa-lab/src/character-eval.test.ts extensions/qa-lab/src/cli.runtime.test.ts extensions/qa-lab/src/suite.test.ts extensions/qa-lab/src/suite-provider-selection.test.ts extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts extensions/qa-lab/src/suite-run-standard.parity-retry.test.ts extensions/qa-lab/src/suite-runtime-parity-runner.cleanup.test.ts extensions/qa-lab/src/suite-runtime-flow.test.ts extensions/qa-lab/src/scenario-flow-runner.deadline.test.ts extensions/qa-lab/src/test-file-scenario-runner.native.test.ts extensions/qa-lab/src/test-file-scenario-runner.script-evidence.test.ts extensions/qa-lab/src/suite-launch.runtime.test.ts test/scripts/plugin-gateway-gauntlet.test.ts test/scripts/validate-qa-runtime-pair-summary.test.ts test/scripts/npm-telegram-live.test.ts
PASS: 538 tests across 17 files

node scripts/check-changed.mjs
PASS: selected core, plugin, scripts, tooling, and test-support typecheck/lint/guard lanes

git diff --check origin/main...HEAD
PASS

The first exact-head CI run found one attributable stale test fixture: the Gateway CPU scenario harness emitted a synthetic QA summary without the newly required terminal status. Commit 06e7c9e0078e17d7429e55804f6c466ccd84c321 updated that fixture; its focused test passed 15/15, its changed gate passed, and a fresh autoreview was clean at 0.99.

Exact-head CI is green on 06e7c9e0078e17d7429e55804f6c466ccd84c321: https://github.com/openclaw/openclaw/actions/runs/32291304176

Final branch LOC split: production/tooling +429/-293 (net +136); tests/support +618/-69 (net +549). Production growth owns the shared terminal-publication, stale-generation invalidation, canonical-reader, and whole-flow deadline contracts, replacing per-consumer acceptance and pre-cleanup publication behavior.

A real source-checkout QA product-path run on the exact head also passed through a real Gateway child and the deterministic mock provider:

pnpm openclaw qa suite --provider-mode mock-openai --scenario channel-chat-baseline --output-dir .artifacts/qa-e2e/terminal-lifecycle-proof
PASS: run.status=completed; counts total=1 passed=1 failed=0 skipped=0; evidence entries=1; declared artifacts=2

No live provider or external channel run was performed. This is deterministic QA harness lifecycle behavior covered at its producer, cleanup, runner, and canonical-reader owner boundaries; it is not live authenticated proof.

AI-assisted. I reviewed the implementation and validation results. No prompts or transcripts are included.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 19, 2026 19:00
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Aug 19, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 19, 2026, 3:14 PM ET / 19:14 UTC.

ClawSweeper review

What this changes

The PR makes QA summaries and evidence consumable only after completed cleanup, invalidates stale artifacts, and adds a whole-flow deadline for QA scenarios.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

Keep open: this repairs real current-main QA lifecycle gaps, but the new deadline fence can still invoke a side-effecting DSL call after timeout and overlapping lifecycle drafts need an owner decision before merge.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The lifecycle repair is well-scoped and tested, but one concrete deadline-fence defect and an ownership decision remain.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal QA patch is outside the external contributor proof gate; its focused test transcript remains supplemental validation.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal QA patch is outside the external contributor proof gate; its focused test transcript remains supplemental validation.
Evidence reviewed 6 items Current-main lifecycle gap: Current main marks the lab run completed and writes terminal artifacts before cleanup, allowing cleanup failure to leave terminal-looking output.
Terminal-reader repair: The branch centralizes completion validation before canonical summary readers accept a file.
Deadline fence defect: The new guard runs before action evaluation, but an async expression resolved for call arguments can finish after abort and is then passed to the callable without a second signal check.
Findings 1 actionable finding [P2] Fence calls after asynchronous action-value resolution
Security None None.

Live Verification

Command: pnpm openclaw qa --help

Result: PASS (completed)

pnpm openclaw qa --help
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126407-wugb9I/target$ pnpm openclaw qa --help
$ node scripts/run-node.mjs qa --help
pnpm openclaw qa --help
[openclaw] Building TypeScript (dist is stale: missing_private_qa_dist - private QA dist entry missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 108.13 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.7s
node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

[tsdown-build] invocation 2/2 finished in 14.6s
[plugin-control-plane-loads] verified 36 built modules with native require and checked doctor closures
runtime-postbuild: 10 phases completed in 4531ms (slowest: built plugin control-plane loads 3641ms)
│
◇

OpenClaw 2026.8.1 (06e7c9e) — All your chats, one OpenClaw.

Usage: openclaw qa [options] [command]

Run private QA automation flows and launch the QA debugger

Options:
  -h, --help            Display help for command

Commands:
  aimock                Run the local AIMock provider server for QA
  buzz                  Run the Buzz live QA lane against a dedicated relay room
  character-eval        Run the character QA scenario across live models and w
… output truncated …

Assertions:

  • PASS expect_output: Usage: openclaw qa

How this fits together

QA Lab runs scenario suites and writes summaries, reports, and evidence consumed by release and validation automation. This change controls when those artifacts become terminal and how timed-out scenario flows stop.

flowchart LR
A[QA scenarios] --> B[Running progress]
B --> C[Cleanup owner]
C --> D{Cleanup succeeds?}
D -->|Yes| E[Completed summary and evidence]
D -->|No| F[No terminal evidence]
E --> G[Validation and release automation]
Loading

Decision needed

Question Recommendation
Should this PR be the canonical QA suite-lifecycle repair, with the remaining profile and transactional-publication work explicitly separated from the open drafts? Make this the suite lifecycle owner: After the deadline-fence repair, define this PR's suite-level boundary and preserve only non-overlapping profile or staging work in separate follow-ups.

Why: The PR, #119957, and #120632 all change when QA evidence becomes authoritative, but they propose different ownership boundaries.

Before merge

  • Fence calls after asynchronous action-value resolution (P2) - The new abort check only runs before entering the action body. If an {expr} argument or transport input awaits across the deadline, this path still invokes the callable afterward, violating the stated fence on later actions. Re-check the signal immediately before each side-effecting call and add a regression that aborts during argument resolution.
  • Resolve merge risk (P1) - An async flow expression can resolve after the deadline and still start a callable, so a timed-out scenario may perform a later transport or runtime action.
  • Resolve merge risk (P1) - The supported QA adapter contract gains an optional AbortSignal while two open drafts still overlap the evidence-lifecycle boundary; merge scope needs an explicit owner decision.
  • Resolve merge risk (P1) - Production/tooling grows by a net 136 lines, so consolidation should retain only the lifecycle logic needed by the chosen canonical owner.

Findings

  • [P2] Fence calls after asynchronous action-value resolution — extensions/qa-lab/src/scenario-flow-runner.ts:213-214
Agent review details

Security

None.

PR surface

Source +128, Tests +549, Other +8. Total +685 across 38 files.

View PR surface stats
Area Files Added Removed Net
Source 16 421 293 +128
Tests 20 618 69 +549
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 8 0 +8
Total 38 1047 362 +685

Review metrics

Metric Value Why it matters
Production versus tests production/tooling +428/-292 (net +136); tests/support +620/-83 (net +537) The production growth centralizes artifact publication and deadline handling, but should not grow further before lifecycle ownership is settled.
QA adapter contract 1 optional input added The supported QA runner adapter surface now passes AbortSignal to prepareFlow implementations.

Stored data model

Persistent data-model change detected: database schema: test/scripts/npm-telegram-live.test.ts, serialized state: extensions/qa-lab/src/cli.runtime.ts, serialized state: extensions/qa-lab/src/confidence-report.test.ts, serialized state: extensions/qa-lab/src/suite-launch.runtime.test.ts, serialized state: extensions/qa-lab/src/suite-provider-selection.test.ts, serialized state: extensions/qa-lab/src/suite-summary.test.ts, and 3 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Fence post-await actions and set lifecycle ownership (recommended)
    Check the abort signal again after asynchronous DSL value resolution, cover direct and transport calls, and record the chosen boundary against the overlapping drafts before merge.
  2. Pause for consolidation
    Keep this PR unmerged while QA owners choose whether its suite lifecycle work or a related draft is the canonical implementation.

Technical review

Best possible solution:

Add post-await abort checks before every side-effecting flow call, then define one canonical owner for suite, profile, and staged-evidence lifecycle responsibilities.

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

Yes: a flow call whose argument is an async {expr} can be aborted while resolveValue awaits, then still invoke its callable because no post-await signal check exists.

Is this the best way to solve the issue?

No: terminal publication is repaired at the right owner, but the deadline contract needs post-await fences and a settled lifecycle boundary before this is the best complete fix.

Full review comments:

  • [P2] Fence calls after asynchronous action-value resolution — extensions/qa-lab/src/scenario-flow-runner.ts:213-214
    The new abort check only runs before entering the action body. If an {expr} argument or transport input awaits across the deadline, this path still invokes the callable afterward, violating the stated fence on later actions. Re-check the signal immediately before each side-effecting call and add a regression that aborts during argument resolution.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The PR fixes internal QA evidence handling, but the remaining deadline defect has limited direct end-user blast radius.
  • add merge-risk: 🚨 compatibility: The supported qa-runner-runtime adapter contract gains an optional prepareFlow signal input.
  • add merge-risk: 🚨 automation: Canonical summary validity controls QA and release automation pass/fail decisions.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored internal QA patch is outside the external contributor proof gate; its focused test transcript remains supplemental validation.

Label justifications:

  • P2: The PR fixes internal QA evidence handling, but the remaining deadline defect has limited direct end-user blast radius.
  • merge-risk: 🚨 automation: Canonical summary validity controls QA and release automation pass/fail decisions.
  • merge-risk: 🚨 compatibility: The supported qa-runner-runtime adapter contract gains an optional prepareFlow signal input.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored internal QA patch is outside the external contributor proof gate; its focused test transcript remains supplemental validation.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame for the affected flow and terminal-publication paths and the active repair commits both point to this contributor. (role: recent QA lifecycle contributor; confidence: high; commits: 1fa82e979576, a277409809bb; files: extensions/qa-lab/src/scenario-flow-runner.ts, extensions/qa-lab/src/suite-run-standard.ts, extensions/qa-lab/src/suite-summary.ts)

Rank-up moves

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

  • Add post-await abort checks and regression coverage for async action-value resolution.
  • Record the chosen boundary with the overlapping QA lifecycle drafts and the supported prepareFlow input.

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

Copy link
Copy Markdown
Contributor Author

Land-ready review update for exact head aa9df1251cd408be914335791d495401b3a41661:

Owner decision: make this PR the canonical owner for suite-level terminal artifact lifecycle and whole-flow timeout fencing. Keep profile checkpoint/finalization work and transactional same-output staging/locking as separately reviewable follow-up scope in #119957 and #120632 rather than merging duplicate suite lifecycle paths.

ClawSweeper rank-up moves are therefore addressed: the post-await fence is implemented, and the ownership boundary is recorded here. The latest behavior push only addresses the published finding, so no additional re-review is required before the native prepare/merge gates.

@steipete
steipete merged commit db53379 into main Aug 19, 2026
228 checks passed
@steipete
steipete deleted the steipete/focused-feistel-e4df6c branch August 19, 2026 20:30
@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 20, 2026
* fix(qa): enforce terminal evidence lifecycle

* test(qa): mark CPU fixture summary completed

* fix(qa): fence calls after flow timeout
steipete added a commit that referenced this pull request Oct 15, 2026
#173065)

* refactor(browser,qa-lab): consolidate internal validation and capture

Keep external validation, navigation and credential authority, selected evidence
integrity, process settlement and public contracts. Trust canonical normalized
actions and fresh internal evidence instead of repeating their owners' work.
Stage bundled sources and compute their runtime host floor in one pass.

Best-effort tradeoffs accepted

- Internal child evidence changing completed/pending history: #147756/#168841 describe synthetic ownership foundations, not human mutation incidents. Keep the first captured facts; canonical publication still validates the graph.
- Invalid internal evidence selection/combination: duplicate preflights from #147756 are not external boundaries. Invalid snapshots fail at canonical publication instead of every adapter/select step.
- Fresh V3 snapshots or local taxonomy objects mutating between private calls: no external writer holds them. Use owner-held facts; path rebasing still copies because it mutates paths.
- Gallery roots/symlinks changing during one request: private consumers use the canonical ingress root. Actual artifact containment and download authorization remain at their boundaries.
- Gallery model rows not belonging to their own declaration list: impossible because those rows are created from that exact list. Actual arbitrary-path downloads keep the allowlist.
- Configured replacement Telegram skill returning malformed internal results: #133030 introduced a canonical leased-skill producer, not a human malformed-result incident. Canonical credential validation and effect-time lease health remain; malformed replacements fail at use.
- Local filesystem calls hanging during Mantis cleanup: #111051/#158313 provide synthetic timeout qualification, not a human uncancellable-local-FS incident. Await the OS; preserve Git deadlines, exact path/inode authority and process settlement.
- Mantis path replacement between consecutive ownership probes: preserve one precheck plus child-side pinned identity at destructive dispatch; a disappeared/replaced path fails safely.
- Typed log collector returning an impossible bad cursor: #137622 added the retirement mode as a review defense. Trust its paired owner; retain bounded rollover, redaction and legacy fallback.
- Fetch implementation ignoring AbortSignal: Matrix's removed outer timer defended fake-only behavior. Native request deadline/cancellation, parallel healthy-peer probes, response-body and loser cleanup remain.
- Artifact disappearing immediately after its successful own write: #92606/445317a38b1 add the redundant access check, with no human disappearance report. Real write failures propagate; actual readers detect later deletion.
- Private Browser leaves receiving unnormalized values: #63977 owns external /act normalization; extraction #113771 retained mirror checks. Keep external fill repair #131231 and all effect authority. Invalid internal calls may fail at Playwright rather than a second validator.
- Unnormalized oversized/deep batches reaching the private executor: restored executor 61d171a has no human bounds incident. Keep recursive ingress depth repair #120274 and total count bound #63977; remove duplicate executor depth plumbing.
- Abort firing between synchronous resetTransport checks: #126407 added synthetic lifecycle coverage. No async work intervenes, so keep entry and post-await invocation checks.
- Taxonomy file disappearing after successful parse: #91500/#92558 introduced reporting, not a human mid-report deletion incident. Finish with parsed facts; the next read notices deletion.

The named standalone session-memory backend and tests remain untouched.

Proof: fresh independent P0-P2 review scoped-clean after repairing a reproduced
false-coverage descendant-admission defect; targeted source graph types and
syntax-boundary lint pass; runtime/static cycles both zero; format/diff clean.
Browser focused owner/sibling cohort: 12 files, 194 tests pass.
Invocation/containment/staging: 3 files, 34 tests pass, including the reproduced
false-coverage regression. Both unchanged Gateway-child staging-cleanup cases
pass after retaining staging-directory creation before root metadata parsing.

Below-500 coordinator packet: 442 net production LOC removed (+198/-640).
No cleanup PR or merge claim. Full check-changed, type-aware package lint and
Telegram command-menu Gateway E2E remain unproven under host saturation.
The remaining full QA owner cohort was interrupted before assertions; not green.
Suppression inventory fails only on untouched UI rows, reproduced on clean main
45b463f; no suppression allowance changed.

* refactor(browser,qa-lab): remove test-only execution indirection

Publish Chrome MCP handles synchronously and wait only for transport readiness.
Keep process identity, close settlement, waiter sharing and effect authority.
Remove character-eval callback injection and private projection/type mirrors;
reuse canonical lifecycle cancellation and timer bounds.

Best-effort tradeoffs accepted

- Delayed asynchronous MCP factory handles existed only through the test seam (ea2b558/#104601; extracted by #113114). Linked #103784 is a forced Delay launch/source-proof matrix, not a human actual-use incident. Production constructs the handle synchronously; readiness remains asynchronous and cancellable, and exact owned process cleanup still settles before replacement.
- Same-tick lifecycle completion and abort now follow the canonical SDK Promise.race ordering rather than a private listener implementation (#127761/22e12267f68, synthetic lifecycle qualification). Shared work is not cancelled; synchronous pre-abort and effect authority stay intact.
- A private already-clamped timer no longer repeats the SDK maximum check (4abde61; centralized by 5f4fc75). The same canonical grace helper caps the result, with no timeout change.

Character-eval test callbacks were never supplied by its sole production CLI
caller (3101d81; #92606). Tests now mock the actual suite/manual-lane owners.
Six private pwAi projections had only test consumers; canonical session exports
remain. Port reservation accepts the actual node:net.Server instead of a mirror.

Full-branch production reduction: 610 net lines (+241/-851), excluding tests,
fixtures, test-support, generated files and declarations. No public/config/SDK,
storage, protocol or dependency contract changes. Phase E remains untouched.

* fix(qa-lab): drop unproven cleanup paths and type standalone restorer

Restore character-eval and CLI runtime byte-for-byte to the cleanup base after
exact-head CI found concurrent mock bypass and captured-taxonomy failures.
Keep every original behavioral assertion; no retry, timeout or skip changes.
The local character replay was inconclusive, so drop its whole cleanup cluster
instead of waiting for host capacity. Restore CLI snapshot capture as well.

Declare the imported credential-restorer's receiver-free function contract.
The canonical exported function never uses this; no runtime guard or credential
validation changes. This fixes the typed unbound-method lint finding.

Branch production reduction is now 568 net lines (+229/-797), tests/fixtures/
test-support/generated/declarations excluded. Prior full autoreview remains
valid for this strict restoration subset; independent repair review confirms
exact base blobs and the type-only correction. Source-graph types, focused
syntax-boundary lint, formatting and diff checks pass.

* refactor(qa-lab): split pending Telegram credential cleanup

Restore the two Telegram files to current main for #173065. Park their rewrite and receiver-free lint contract on deslop/y13-telegram-userbot-credential-20261015 pending Test Server userbot proof with Convex-leased credentials. Coordinator waives the floor for the remaining 474 net production lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
openclaw#173065)

* refactor(browser,qa-lab): consolidate internal validation and capture

Keep external validation, navigation and credential authority, selected evidence
integrity, process settlement and public contracts. Trust canonical normalized
actions and fresh internal evidence instead of repeating their owners' work.
Stage bundled sources and compute their runtime host floor in one pass.

Best-effort tradeoffs accepted

- Internal child evidence changing completed/pending history: openclaw#147756/openclaw#168841 describe synthetic ownership foundations, not human mutation incidents. Keep the first captured facts; canonical publication still validates the graph.
- Invalid internal evidence selection/combination: duplicate preflights from openclaw#147756 are not external boundaries. Invalid snapshots fail at canonical publication instead of every adapter/select step.
- Fresh V3 snapshots or local taxonomy objects mutating between private calls: no external writer holds them. Use owner-held facts; path rebasing still copies because it mutates paths.
- Gallery roots/symlinks changing during one request: private consumers use the canonical ingress root. Actual artifact containment and download authorization remain at their boundaries.
- Gallery model rows not belonging to their own declaration list: impossible because those rows are created from that exact list. Actual arbitrary-path downloads keep the allowlist.
- Configured replacement Telegram skill returning malformed internal results: openclaw#133030 introduced a canonical leased-skill producer, not a human malformed-result incident. Canonical credential validation and effect-time lease health remain; malformed replacements fail at use.
- Local filesystem calls hanging during Mantis cleanup: openclaw#111051/openclaw#158313 provide synthetic timeout qualification, not a human uncancellable-local-FS incident. Await the OS; preserve Git deadlines, exact path/inode authority and process settlement.
- Mantis path replacement between consecutive ownership probes: preserve one precheck plus child-side pinned identity at destructive dispatch; a disappeared/replaced path fails safely.
- Typed log collector returning an impossible bad cursor: openclaw#137622 added the retirement mode as a review defense. Trust its paired owner; retain bounded rollover, redaction and legacy fallback.
- Fetch implementation ignoring AbortSignal: Matrix's removed outer timer defended fake-only behavior. Native request deadline/cancellation, parallel healthy-peer probes, response-body and loser cleanup remain.
- Artifact disappearing immediately after its successful own write: openclaw#92606/a5445ce41eb add the redundant access check, with no human disappearance report. Real write failures propagate; actual readers detect later deletion.
- Private Browser leaves receiving unnormalized values: openclaw#63977 owns external /act normalization; extraction openclaw#113771 retained mirror checks. Keep external fill repair openclaw#131231 and all effect authority. Invalid internal calls may fail at Playwright rather than a second validator.
- Unnormalized oversized/deep batches reaching the private executor: restored executor 1034ccb has no human bounds incident. Keep recursive ingress depth repair openclaw#120274 and total count bound openclaw#63977; remove duplicate executor depth plumbing.
- Abort firing between synchronous resetTransport checks: openclaw#126407 added synthetic lifecycle coverage. No async work intervenes, so keep entry and post-await invocation checks.
- Taxonomy file disappearing after successful parse: openclaw#91500/openclaw#92558 introduced reporting, not a human mid-report deletion incident. Finish with parsed facts; the next read notices deletion.

The named standalone session-memory backend and tests remain untouched.

Proof: fresh independent P0-P2 review scoped-clean after repairing a reproduced
false-coverage descendant-admission defect; targeted source graph types and
syntax-boundary lint pass; runtime/static cycles both zero; format/diff clean.
Browser focused owner/sibling cohort: 12 files, 194 tests pass.
Invocation/containment/staging: 3 files, 34 tests pass, including the reproduced
false-coverage regression. Both unchanged Gateway-child staging-cleanup cases
pass after retaining staging-directory creation before root metadata parsing.

Below-500 coordinator packet: 442 net production LOC removed (+198/-640).
No cleanup PR or merge claim. Full check-changed, type-aware package lint and
Telegram command-menu Gateway E2E remain unproven under host saturation.
The remaining full QA owner cohort was interrupted before assertions; not green.
Suppression inventory fails only on untouched UI rows, reproduced on clean main
a7fbdc2; no suppression allowance changed.

* refactor(browser,qa-lab): remove test-only execution indirection

Publish Chrome MCP handles synchronously and wait only for transport readiness.
Keep process identity, close settlement, waiter sharing and effect authority.
Remove character-eval callback injection and private projection/type mirrors;
reuse canonical lifecycle cancellation and timer bounds.

Best-effort tradeoffs accepted

- Delayed asynchronous MCP factory handles existed only through the test seam (2f7b3f8/openclaw#104601; extracted by openclaw#113114). Linked openclaw#103784 is a forced Delay launch/source-proof matrix, not a human actual-use incident. Production constructs the handle synchronously; readiness remains asynchronous and cancellable, and exact owned process cleanup still settles before replacement.
- Same-tick lifecycle completion and abort now follow the canonical SDK Promise.race ordering rather than a private listener implementation (openclaw#127761/71473724074, synthetic lifecycle qualification). Shared work is not cancelled; synchronous pre-abort and effect authority stay intact.
- A private already-clamped timer no longer repeats the SDK maximum check (e8241d3; centralized by ca3aad3). The same canonical grace helper caps the result, with no timeout change.

Character-eval test callbacks were never supplied by its sole production CLI
caller (46ad8dd; openclaw#92606). Tests now mock the actual suite/manual-lane owners.
Six private pwAi projections had only test consumers; canonical session exports
remain. Port reservation accepts the actual node:net.Server instead of a mirror.

Full-branch production reduction: 610 net lines (+241/-851), excluding tests,
fixtures, test-support, generated files and declarations. No public/config/SDK,
storage, protocol or dependency contract changes. Phase E remains untouched.

* fix(qa-lab): drop unproven cleanup paths and type standalone restorer

Restore character-eval and CLI runtime byte-for-byte to the cleanup base after
exact-head CI found concurrent mock bypass and captured-taxonomy failures.
Keep every original behavioral assertion; no retry, timeout or skip changes.
The local character replay was inconclusive, so drop its whole cleanup cluster
instead of waiting for host capacity. Restore CLI snapshot capture as well.

Declare the imported credential-restorer's receiver-free function contract.
The canonical exported function never uses this; no runtime guard or credential
validation changes. This fixes the typed unbound-method lint finding.

Branch production reduction is now 568 net lines (+229/-797), tests/fixtures/
test-support/generated/declarations excluded. Prior full autoreview remains
valid for this strict restoration subset; independent repair review confirms
exact base blobs and the type-only correction. Source-graph types, focused
syntax-boundary lint, formatting and diff checks pass.

* refactor(qa-lab): split pending Telegram credential cleanup

Restore the two Telegram files to current main for openclaw#173065. Park their rewrite and receiver-free lint contract on deslop/y13-telegram-userbot-credential-20261015 pending Test Server userbot proof with Convex-leased credentials. Coordinator waives the floor for the remaining 474 net production lines.
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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant