Repository navigation
fix(qa): publish readiness only from final artifacts - #124189
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 22, 2026, 5:14 PM ET / 21:14 UTC. ClawSweeper reviewWhat this changesThe PR restricts Crabline readiness artifact publication to the completed QA aggregate while nested QA runs retain their transport selection. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open. This is a bounded, source-backed QA artifact-ownership fix; current main still sends the Crabline selection into nested writes, while the PR leaves readiness activation to the outer final aggregate. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherQA Lab runs scenarios through standard, isolated, and runtime-parity runners before writing suite artifacts. A Crabline channel selection activates readiness output, so the completed aggregate must be its sole publisher. flowchart LR
A[QA suite request] --> B[Transport selection]
B --> C[Standard and isolated runners]
C --> D[Nested child artifacts]
C --> E[Final aggregate artifacts]
D --> F[Readiness suppressed]
E --> G[Authoritative readiness publication]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +6, Tests +176. Total +182 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the nested transport selection but allow only the final aggregate artifact write to activate Crabline readiness publication. Do we have a high-confidence way to reproduce the issue? Yes—current source shows selection activating the Crabline helper, and the focused regression harness observes all nested writes losing selection while the final write retains it. Is this the best way to solve the issue? Yes—the patch narrows only the activation input at nested artifact boundaries and retains it for transport setup and the final aggregate publisher. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 40a6b50cc1c6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
5cd4c68 to
fd78f2b
Compare
|
Dependency-contract proof for the remaining rank-up item:
This resolves the review's direct dependency-inspection gap without changing code. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
fd78f2b to
19d3771
Compare
|
Addressed the exact-head review finding at
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
19d3771 to
eb1388e
Compare
|
Exact-head refresh for The current head suppresses readiness activation in both nested child final writes and parent partial writes; only the outer final aggregate passes @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Addressed the current exact-head ClawSweeper finding in Root cause: runtime-parity child cells called the standard suite runner without the nested-run marker, so each child could publish the final Crabline selection/readiness artifacts before the parent aggregate. Canonical fix: mark both runtime-parity cells as nested at the caller boundary. The standard artifact writer now suppresses child selection/readiness publication through its existing nested-run contract; the final parent aggregate remains the sole publisher. Proof:
The synchronize event automatically queued exact-head ClawSweeper review: https://github.com/openclaw/clawsweeper/actions/runs/32042235017. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Exact-head CI found one test-only typing issue after the repair push: Vitest inferred the zero-argument mock declaration as Follow-up Updated proof:
Exact-head ClawSweeper review is active at https://github.com/openclaw/clawsweeper/actions/runs/32043008574. No duplicate review request is needed. |
|
CI recovery at exact head |
|
Reconciled the nested-artifact repair onto current main at exact head Dependency contract inspected directly:
Exact-head evidence:
@clawsweeper re-review |
cbdcf76 to
3790e92
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Two gates were failing on main independently of this branch: - extensions/qa-lab cleanup tests still built OpenClawCrablineChannelDriverSelection with the retired smokeArtifactPath and a stale capabilityMatrixPath, so check:test-types failed after the readiness-artifact change (#124189). Align both fixtures with the current type and its pinned constants. - scripts/github/release-validation-campaign.d.mts declared the Actions Octokit client as any (#129726), tripping no-explicit-any. Declare the structural subset the publisher actually calls instead of suppressing the rule. Verified failing on clean origin/main before the fix.
…uthority (#129725) * fix(gateway): tools.invoke must carry the caller's host-minted role authority The connect handshake resolves each connection's authority once and stores it server-side (shared-secret operator owners mint system authority there). tools.invoke discarded that fact and re-derived ownership from scopes, so a shared-secret caller with no durable profile resolved to the deny-by-default role and was refused dispatch on its own agents — while the same connection could still mutate sessions directly. Carry client.internal.operatorRoleActor into the synthetic dispatch client and keep the scope-derived fallback for callers that have no connection actor (HTTP). Regression test fails pre-fix with the FORBIDDEN agent-allowlist error. * test(opencode): close the fake CLI before exec to stop ETXTBSY flakes The catalog suite wrote the fake opencode executable and spawned it immediately. Under parallel CI shards the write handle could still be open at exec time, so the launch failed with ETXTBSY and failed the shard. Write through an explicit file handle with an fsync before close so the binary is fully durable before the first spawn. * fix(ci): repair red main type and lint gates Two gates were failing on main independently of this branch: - extensions/qa-lab cleanup tests still built OpenClawCrablineChannelDriverSelection with the retired smokeArtifactPath and a stale capabilityMatrixPath, so check:test-types failed after the readiness-artifact change (#124189). Align both fixtures with the current type and its pinned constants. - scripts/github/release-validation-campaign.d.mts declared the Actions Octokit client as any (#129726), tripping no-explicit-any. Declare the structural subset the publisher actually calls instead of suppressing the rule. Verified failing on clean origin/main before the fix.
* fix(qa): publish readiness from final artifacts * fix(qa): isolate runtime parity readiness * test(qa): type runtime parity artifact mock
…uthority (openclaw#129725) * fix(gateway): tools.invoke must carry the caller's host-minted role authority The connect handshake resolves each connection's authority once and stores it server-side (shared-secret operator owners mint system authority there). tools.invoke discarded that fact and re-derived ownership from scopes, so a shared-secret caller with no durable profile resolved to the deny-by-default role and was refused dispatch on its own agents — while the same connection could still mutate sessions directly. Carry client.internal.operatorRoleActor into the synthetic dispatch client and keep the scope-derived fallback for callers that have no connection actor (HTTP). Regression test fails pre-fix with the FORBIDDEN agent-allowlist error. * test(opencode): close the fake CLI before exec to stop ETXTBSY flakes The catalog suite wrote the fake opencode executable and spawned it immediately. Under parallel CI shards the write handle could still be open at exec time, so the launch failed with ETXTBSY and failed the shard. Write through an explicit file handle with an fsync before close so the binary is fully durable before the first spawn. * fix(ci): repair red main type and lint gates Two gates were failing on main independently of this branch: - extensions/qa-lab cleanup tests still built OpenClawCrablineChannelDriverSelection with the retired smokeArtifactPath and a stale capabilityMatrixPath, so check:test-types failed after the readiness-artifact change (openclaw#124189). Align both fixtures with the current type and its pinned constants. - scripts/github/release-validation-campaign.d.mts declared the Actions Octokit client as any (openclaw#129726), tripping no-explicit-any. Declare the structural subset the publisher actually calls instead of suppressing the rule. Verified failing on clean origin/main before the fix.
Related: #118007
Stack PR 1 of 3 extracted from #118008. It is independently mergeable; #118008 carries the canonical Crabline migration and #124467 carries structured provider/thread identity.
What Problem This Solves
Isolated QA runs published Crabline readiness artifacts from three overlapping owners: nested child finals, parent partial aggregates, and the parent final aggregate. Those publications share one output ancestry and could race even though scenario execution itself is safe to run concurrently.
Why This Change Was Made
Nested workers retain
channelDriverSelectionfor transport setup, but their artifact writes omit it. Parent partial reports likewise preserve the selected channel and driver without activating readiness. Only the completed outer aggregate passes the selection to the artifact writer and publishes the authoritative readiness generation.User Impact
QA operators keep concurrent scenario execution and receive one authoritative readiness artifact set from the completed aggregate run.
Evidence
channelDriverSelection; it passes after the owner-boundary fix.pnpm exec vitest run extensions/qa-lab/src/suite-run-isolated.cleanup.test.ts extensions/qa-lab/src/suite.test.ts— 36 tests passed.pnpm tsgo:extensions:allpassed.@openclaw/crabline0.1.11 confirmed that readiness publication is activated only byrunOpenClawCrablineProviderReadiness({ outputDir, selection }); the legacy smoke export aliases that function.