Skip to content

fix(ci): unblock Control UI targeted Crabbox gates - #158149

Merged
vincentkoc merged 1 commit into
mainfrom
fix/pr-crabbox-ui-targets-20260925
Sep 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/pr-crabbox-ui-targets-20260925

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes protected Crabbox preparation rejecting Control UI changes before tests start because the canonical selector returns a whole UI owner instead of individual test files.

Related: #152311

User Impact

Maintainers can qualify Control UI fixes through the targeted Crabbox gate without losing whole-owner coverage. This changes internal validation tooling, not application behavior or configuration.

Why This Change Was Made

The gate adapter now expands the canonical UI selection into tracked ordinary or E2E test inventories, retaining shared exclusions and host-side consumers. Missing, empty, deleted, or unmatched coverage remains an error. Explicit tests stay precise.

Native QA real-Gateway fixtures also retain their canonical UI E2E runner and Chromium preflight instead of falling through to the generic E2E runner.

Production delta: +46/-1. The added adapter preserves the existing coverage contract while satisfying the publisher's concrete-target requirement. Tests: +193/-1.

Evidence

  • Blacksmith Testbox: 1,800 tests passed across the gate planner and both shared routing suites; all 21 changed checks passed, including script/test-root typechecks, lint, formatting, and dead-export scans.
  • Testbox session: https://github.com/openclaw/openclaw/actions/runs/36144399921
  • Source base: dcc9fb958ab2fbc80fdef6d92fe6c190656c39da. Remote Node: 24.19.0. The unchanged candidate was independently reviewed with no actionable P0-P2 findings.
  • Regression coverage includes whole-owner expansion, host consumers, exclusions, explicit targets, native QA runner ownership, missing coverage, deleted tracked files, and per-checkout inventories.
  • This is development proof, not a substitute for the PR's exact-head GitHub checks. The one-shot Testbox completed and was stopped; its backing Actions session may show cancellation from normal Testbox cleanup.

Test Cost

  • Exact head 0726cb3544fdc4ff1898fdc7173d315527905cb8: node scripts/run-vitest.mjs test/scripts/pr-crabbox-gate-plan.test.ts --maxWorkers=1 passed all 24 tests. File test time: 0.979s; Vitest: 2.94s; repository test wrapper: 4.11s; timed shell wall: 4.703s. Node 24.19.0 on a 16-vCPU Blacksmith Testbox.
  • Focused session: https://github.com/openclaw/openclaw/actions/runs/36147838856 . The enclosing remote command, including source synchronization and dependency preparation, took 168.506s; this is not the test-file duration. The one-shot Testbox is independently confirmed completed.
  • Exact-head PR CI attempt 1 succeeded: https://github.com/openclaw/openclaw/actions/runs/36146574348/attempts/1 . It completed in 754s wall time with 42 successful and 22 skipped jobs. The aggregate openclaw/ci-gate also succeeded.
  • Completed jobs totaled 8,189 job-seconds, including setup and monitoring. The 15 Node jobs totaled 2,447 job-seconds, with 1,518s in their test steps. These are sums of parallel durations, not wall time, billed compute, or this file's marginal cost. PR CI did not expose an isolated planner-file timing in the inspected logs; the one-worker measurement above is the file-specific evidence.
  • This addresses the exact-head review's test-cost rank-up request. The added tests are maintainer-tooling coverage selected by the tooling owner, not a new unconditional product-test gate.

@vincentkoc vincentkoc self-assigned this Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Sep 25, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 25, 2026 14:18
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 10:26 AM ET / 14:26 UTC.

ClawSweeper review

What this changes

The branch expands Control UI source selections into tracked test files for the protected Crabbox gate, routes native browser fixtures to the UI E2E runner, and adds planner regression tests.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open. Current main still rejects Control UI owner paths in the protected gate, and this PR addresses that failure at the planner. The changed test file still needs the cost disclosure required by repository policy.

Priority: P2
Reviewed head: 0726cb3544fdc4ff1898fdc7173d315527905cb8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-covered planner repair with one outstanding repository-required test-cost disclosure.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored tooling PR is exempt from contributor real-setup proof. Its synthetic Git fixtures exercise the changed planner and runner routing, and the PR body reports a Testbox run; no protected publisher outcome is shown. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored tooling PR is exempt from contributor real-setup proof. Its synthetic Git fixtures exercise the changed planner and runner routing, and the PR body reports a Testbox run; no protected publisher outcome is shown. No stored-data contract changes.
Evidence reviewed 8 items Current-main failure path: The selector returns a Control UI source path, while the gate planner rejects targets that are not test files.
Current-main selector: Control UI source changes are intentionally returned as whole-owner source targets.
Introduced adapter: The PR expands whole-owner UI targets to tracked, filtered test files and retains unmatched-target rejection.
Findings None None.
Security None None.

How this fits together

PR preparation turns changed paths into runnable test targets. The protected Crabbox publisher uses that plan to run tests and report a gate result.

flowchart LR
  A[PR changed paths] --> B[Canonical test selector]
  B --> C[Control UI target expansion]
  C --> D[Tracked test inventory]
  D --> E[Vitest runner routing]
  E --> F[Protected Crabbox publisher]
  F --> G[Gate result]
Loading

Before merge

  • Resolve merge risk (P1) - The materially changed test file has no reported one-worker wall time or CI seconds, so its recurring CI cost against the repository budget is unverified.
  • Complete next step (P2) - Add the changed test file's one-worker wall time and exact-head CI seconds to the PR body before merge.
Agent review details

Security

None.

PR surface

Tests +194, Other +43. Total +237 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 195 1 +194
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 44 1 +43
Total 3 239 2 +237

Review metrics

Metric Value Why it matters
Production versus test delta production +46/-1; tests +193/-1 The production growth implements the existing whole-owner selection contract; the larger test addition makes its execution cost worth measuring.

Merge-risk options

Maintainer options:

  1. Measure the changed suite (recommended)
    Add its one-worker wall time and exact-head CI seconds to the PR body, then confirm it fits the test budget.

Technical review

Best possible solution:

Keep concrete target expansion in the protected gate planner while preserving the canonical Control UI selector and its fail-closed coverage checks.

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

Yes, from source: current main returns a Control UI source target that the protected planner rejects as a non-test file. The related open PR reports that rejection before remote tests started; this read-only review did not execute the gate.

Is this the best way to solve the issue?

Yes. Converting the canonical selector's whole-owner result to concrete files at the gate boundary preserves its coverage decision and the existing fail-closed checks.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded internal gate failure affecting validation of Control UI PRs.
  • add merge-risk: 🚨 automation: The PR changes protected test planning, and the cost of its expanded CI regression suite remains unmeasured.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored tooling PR is exempt from contributor real-setup proof. Its synthetic Git fixtures exercise the changed planner and runner routing, and the PR body reports a Testbox run; no protected publisher outcome is shown. No stored-data contract changes.

Label justifications:

  • P2: This is a bounded internal gate failure affecting validation of Control UI PRs.
  • merge-risk: 🚨 automation: The PR changes protected test planning, and the cost of its expanded CI regression suite remains unmeasured.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored tooling PR is exempt from contributor real-setup proof. Its synthetic Git fixtures exercise the changed planner and runner routing, and the PR body reports a Testbox run; no protected publisher outcome is shown. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Report the changed test file's one-worker wall time and exact-head CI seconds in the PR body.

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.

@vincentkoc
vincentkoc merged commit 588631c into main Sep 25, 2026
175 checks passed
@vincentkoc
vincentkoc deleted the fix/pr-crabbox-ui-targets-20260925 branch September 25, 2026 14:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 25, 2026
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...
vincentkoc added a commit that referenced this pull request Sep 25, 2026
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...
vincentkoc added a commit that referenced this pull request Sep 25, 2026
* fix(qa-lab): retain tab focus and scroll during polling

* chore(qa-lab): merge main for tab navigation validation

* fix(qa-lab): keep focused tabs visible after layout changes

* fix(qa-lab): reconcile navigation retention with current app

* chore: refresh main for QA Lab navigation validation

* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...

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

* fix(qa-lab): retain tab focus and scroll during polling

* chore(qa-lab): merge main for tab navigation validation

* fix(qa-lab): keep focused tabs visible after layout changes

* fix(qa-lab): reconcile navigation retention with current app

* chore: refresh main for QA Lab navigation validation

* commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (194 commits)
  feat(ui): listen to managed desktop audio in the panel (openclaw#157724)
  fix(ci): resume partially published preparation receipts (openclaw#158174)
  feat(release): one approval per release via an attested parent approval receipt (openclaw#157911)
  feat(desktop): advertise current managed desktop audio (openclaw#157723)
  fix(ui): retain delayed progress scroll gestures (openclaw#158153)
  refactor(ui): share sidebar mutation error feedback (openclaw#158173)
  test: await database verifier process lifecycle events (openclaw#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (openclaw#157722)
  refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050)
  feat(desktop): isolate managed Linux application audio (openclaw#157720)
  fix(test): prepare catalog fixture modules before startup (openclaw#158157)
  fix: keep model pickers usable during provider sign-in (openclaw#158132)
  refactor(test): remove unused prompt scenario metadata (openclaw#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020)
  fix: bound stalled browser stream startup (openclaw#156323)
  fix(onnx): prevent worker fixture hangs after release (openclaw#158146)
  fix(models): preserve scoped provider discovery outcomes (openclaw#158139)
  fix(agents): report offline trash failures after agent delete (openclaw#158052)
  ...

Co-authored-by: Vincent Koc <[email protected]>
vincentkoc added a commit that referenced this pull request Oct 17, 2026
* fix(ui): release failed avatar response bodies

* test(ui): cover avatar response cancellation in Chromium

* test(ui): assert retained image after avatar failure

* test(ui): preserve window global type in avatar proof

* test(ui): avoid shadowed avatar proof bindings

* chore: refresh main for avatar lifecycle validation

* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits)
  feat(ui): listen to managed desktop audio in the panel (#157724)
  fix(ci): resume partially published preparation receipts (#158174)
  feat(release): one approval per release via an attested parent approval receipt (#157911)
  feat(desktop): advertise current managed desktop audio (#157723)
  fix(ui): retain delayed progress scroll gestures (#158153)
  refactor(ui): share sidebar mutation error feedback (#158173)
  test: await database verifier process lifecycle events (#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (#157722)
  refactor(gateway): split companion prompts and metadata fixtures (#158050)
  feat(desktop): isolate managed Linux application audio (#157720)
  fix(test): prepare catalog fixture modules before startup (#158157)
  fix: keep model pickers usable during provider sign-in (#158132)
  refactor(test): remove unused prompt scenario metadata (#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020)
  fix: bound stalled browser stream startup (#156323)
  fix(onnx): prevent worker fixture hangs after release (#158146)
  fix(models): preserve scoped provider discovery outcomes (#158139)
  fix(agents): report offline trash failures after agent delete (#158052)
  ...

* test(ui): wait for settled avatar fallback

* test(ui): wait for control UI before avatar handoff

* fix(ui): preserve avatar cleanup across retry lifecycle updates

Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state.

* fix(ui): integrate avatar response cleanup with current main

* test(ui): align avatar cleanup proof with current harness

* test(ui): qualify avatar cleanup harness types and formatting

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* fix(ui): release failed avatar response bodies

* test(ui): cover avatar response cancellation in Chromium

* test(ui): assert retained image after avatar failure

* test(ui): preserve window global type in avatar proof

* test(ui): avoid shadowed avatar proof bindings

* chore: refresh main for avatar lifecycle validation

* commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (175 commits)
  feat(ui): listen to managed desktop audio in the panel (openclaw#157724)
  fix(ci): resume partially published preparation receipts (openclaw#158174)
  feat(release): one approval per release via an attested parent approval receipt (openclaw#157911)
  feat(desktop): advertise current managed desktop audio (openclaw#157723)
  fix(ui): retain delayed progress scroll gestures (openclaw#158153)
  refactor(ui): share sidebar mutation error feedback (openclaw#158173)
  test: await database verifier process lifecycle events (openclaw#158171)
  perf(update): avoid repeated retained-copy parent creation
  feat(desktop): bind audio streaming to screen authorization (openclaw#157722)
  refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050)
  feat(desktop): isolate managed Linux application audio (openclaw#157720)
  fix(test): prepare catalog fixture modules before startup (openclaw#158157)
  fix: keep model pickers usable during provider sign-in (openclaw#158132)
  refactor(test): remove unused prompt scenario metadata (openclaw#158151)
  fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149)
  refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020)
  fix: bound stalled browser stream startup (openclaw#156323)
  fix(onnx): prevent worker fixture hangs after release (openclaw#158146)
  fix(models): preserve scoped provider discovery outcomes (openclaw#158139)
  fix(agents): report offline trash failures after agent delete (openclaw#158052)
  ...

* test(ui): wait for settled avatar fallback

* test(ui): wait for control UI before avatar handoff

* fix(ui): preserve avatar cleanup across retry lifecycle updates

Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state.

* fix(ui): integrate avatar response cleanup with current main

* test(ui): align avatar cleanup proof with current harness

* test(ui): qualify avatar cleanup harness types and formatting

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

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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