Skip to content

test(qa): create child-bundle evidence through the test API - #149243

Merged
steipete merged 1 commit into
mainfrom
upd/redmain35-child-bundle-149157
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
upd/redmain35-child-bundle-149157

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Repairs red main #35: the independent-producer cases in extensions/qa-lab/src/test-file-scenario-runner.child-bundle.test.ts can exhaust their 30-second command budget without writing producer evidence on checks-node-changed-extensions-config-56, blocking PRs routed to that shard.

User Impact

No user-visible change; this is a test-only fixture repair. The real subprocess, deadline, receipt hashes, retry behavior, and full/slim evidence assertions remain unchanged.

Why This Change Was Made

The producer only creates evidence, but importing api.ts also loads the broad QA Lab runtime. The existing test-api.ts exports the same createQaEvidenceInvocation owner without those runtime entrypoints. Missing-evidence failures also include the runner's stored failure message alongside the child log.

This is @vincentkoc's +5/−2 child-bundle change from #149157, adopted verbatim from e572a65333e1650202ba2825c155ffdadca8f6c2. The original PR's other three process-identity fixtures overlap the repair already merged in #149164. This separate PR follows the maintainer's explicit red-main repair request. Since that request, #149157 has advanced to a one-file diff; this PR retains the requested pinned extraction.

Refs #149157. Refs #149164.

Evidence

  • node scripts/run-vitest.mjs extensions/qa-lab/src/test-file-scenario-runner.child-bundle.test.ts: 1 file, all 12 tests passed (40.59 seconds; macOS, Node 26.8.2).
  • The changed-file gate passed formatting, extension-test typechecking, and its other completed guards; because both lint wrappers hit the known nested-worktree declaration-boundary trap, the maintainer-approved substitute was direct node_modules/.bin/oxlint and node_modules/.bin/oxfmt --check on this file, both passing.
  • Independent Linux/Node 24 proof: all 12 fixture cases pass. Under bounded single-CPU contention, the four unchanged native-producer cases fail with the broad API and pass with the test API. Cold imports measured 12.50–13.63 seconds versus 0.44–0.49 seconds. This is a controlled reproduction, not a recreation of the exact CI workload.
  • Independent Codex review at bea8174d2f20094844d6252954c5d0a0d41f8661: scoped-clean through P1, with no actionable findings.
  • Exact-head Linux fixture proof: all 12 child-bundle cases passed, including the four native-producer cases in 1.5–3.2 seconds; the shard passed 68 files and 997 tests. This focused PR numbers the corresponding shard checks-node-changed-extensions-config-3, rather than the broader failing run's config-56. The complete exact-head CI run passed, and the repository watcher reported GREEN; no failed or cancelled jobs required reruns.
  • ClawSweeper review of the same head: no actionable findings and no before-merge requests.

The contention before/after control is reused from the linked proof; fresh macOS and exact-head Linux runs both verify all 12 extracted fixture cases.

Failing-before CI output, independently read

Original config-56 job, head 39ed7946a558f755240b471159376ec9974c423e:

retains an actual independent v3 subprocess across a pass retry ... 30400ms
retains an actual independent v3 subprocess across a fail retry ... 30330ms
AssertionError: expected undefined to be defined
  test-file-scenario-runner.child-bundle.test.ts:185:77
Test Files  1 failed | 66 passed (67)
Tests       2 failed | 993 passed (995)

Local passing-after output for this extracted fixture:

Test Files  1 passed (1)
Tests       12 passed (12)
Duration    40.59s

Repair red main #35 by using the existing evidence-only API in the native
child producer fixture and including the stored runner failure diagnostic.
Preserve the real subprocess, 30-second command budget, and receipt checks.

Refs #149157. Adopt only the child-bundle fixture change from the original
contributor revision; the process-identity repair already landed in #149164.

Co-authored-by: Vincent Koc <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 15, 2026 15:53
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 12:11 PM ET / 16:11 UTC (Revision 2).

ClawSweeper review

What this changes

The QA Lab subprocess fixture imports the existing lightweight evidence API and includes the runner’s failure message when producer evidence is missing.

Merge readiness

✅ Ready for maintainer review

Keep open: this focused, maintainer-requested repair remains useful on current main. No actionable findings remain, consistent with the previous review of the same head.

Priority: P2
Reviewed head: bea8174d2f20094844d6252954c5d0a0d41f8661

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair using an existing API, with preserved behavioral coverage and relevant passing validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this member-authored fixture repair. Supporting evidence exercises the actual child producer and evidence runner: linked contention controls preserve receipt assertions, and GitHub confirms the reviewed head’s fixture shard passed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this member-authored fixture repair. Supporting evidence exercises the actual child producer and evidence runner: linked contention controls preserve receipt assertions, and GitHub confirms the reviewed head’s fixture shard passed.
Evidence reviewed 8 items Verified introduced change: The pinned merge-base-to-head diff contains only the fixture import substitution and added assertion diagnostics. The 30-second deadline, real subprocess execution, receipt hashes, and retry assertions remain intact.
Existing API preserves the evidence owner: Both api.ts and test-api.ts re-export createQaEvidenceInvocation from the same evidence-invocation module. The broad API additionally loads harness, server, Gateway, and suite runtime entrypoints; the test API already exists specifically to avoid those entrypoints.
Still necessary on captured main: The fetched main revision still imports extensions/qa-lab/api.ts in the independent child producer. The latest supplied release tree, v2026.9.4, does not contain this child-bundle test file; no released or merged replacement for these two hunks was established.
Findings None None.
Security None None.

How this fits together

QA Lab runs test scenarios and collects evidence from child processes. This fixture checks that producer evidence, receipt hashes, and retry results survive collection and report projection.

flowchart LR
  A[Test scenario] --> B[Child process]
  B --> C[Lightweight evidence API]
  C --> D[Producer evidence file]
  D --> E[Scenario runner]
  E --> F[Receipt and retry checks]
  F --> G[Full and slim reports]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 2 +3
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 2 +3

Review metrics

None.

Technical review

Best possible solution:

Use the existing lightweight API for evidence-only child producers while retaining the real execution boundary and all evidence-integrity assertions.

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

Yes: source identifies the broad runtime import inside a deadline-bound child, and linked controlled contention evidence demonstrates missing receipts before the change and passing cases afterward. This review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes: reusing the existing facade preserves the same evidence implementation while removing unrelated startup work, without extending deadlines or weakening assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 31557782c749.

Labels

Label justifications:

  • P2: This is a bounded QA fixture reliability repair with no user-facing runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this member-authored fixture repair. Supporting evidence exercises the actual child producer and evidence runner: linked contention controls preserve receipt assertions, and GitHub confirms the reviewed head’s fixture shard passed.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

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 (1 earlier review cycle)
  • reviewed 2026-09-15T16:00:33.022Z sha bea8174 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 8b8ffca into main Sep 15, 2026
192 checks passed
@steipete
steipete deleted the upd/redmain35-child-bundle-149157 branch September 15, 2026 16:28
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 15, 2026
Integrate current main and the reviewed synthetic catalog fixture correction. The child evidence fixture correction is already present through #149243. Preserve the resolved parent-model repair and its current authority and allowlist checks.

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…#149243)

Repair red main openclaw#35 by using the existing evidence-only API in the native
child producer fixture and including the stored runner failure diagnostic.
Preserve the real subprocess, 30-second command budget, and receipt checks.

Refs openclaw#149157. Adopt only the child-bundle fixture change from the original
contributor revision; the process-identity repair already landed in openclaw#149164.

Co-authored-by: Vincent Koc <[email protected]>
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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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