Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 20, 2026, 9:06 PM ET / September 21, 2026, 01:06 UTC (Revision 3). ClawSweeper reviewWhat this changesSelects the measured 16-vCPU Blacksmith class for both Windows CI partitions and updates runner documentation and existing routing assertions. Merge readiness⛔ Blocked before merge - 2 items remain The runner selection remains useful: current main and the latest release still request the 8-class. No introduced correctness defect was found, and native measurements support the proposed allocation. The maintainer-authored draft remains explicitly on hold. Priority: P3 Review scores
Verification
How this fits togetherWindows CI runs OpenClaw’s selected platform tests after preflight chooses the job matrix. Runner routing selects Blacksmith or hosted Windows capacity, and the two partitions return validation results to CI. flowchart TD
A[CI event and backend setting] --> B[Preflight Windows selection]
B --> C[Runner routing]
C --> D[Blacksmith 16 class]
C --> E[Hosted Windows fallback]
D --> F[Two serial test partitions]
E --> F
F --> G[CI results]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0, Docs +18, Config 0. Total +18 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep runner sizing in the existing workflow owner, preserving native coverage, hosted fallbacks, and concurrency limits while retaining the documented timing and cost tradeoff. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug: this is runner-capacity tuning, supported by four completed native Windows jobs and recorded timings. Is this the best way to solve the issue? Yes: changing the existing runner expression is a narrow solution, and the measured 16-versus-32 comparison supports the selected compromise; the historical 8-class comparison does not establish a controlled speedup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5941d999dc72. 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
History |
What Problem This Solves
Windows CI remains the long tail after project regrouping. The current 8-vCPU Blacksmith label delivers two CPUs; this PR selects the larger class with the better measured latency/cost tradeoff.
User Impact
Both Windows test parts request
blacksmith-16vcpu-windows-2025from the single runner-label owner inci.yml. All 133 targets, assertions, worker ceilings, serial project execution, deadlines, concurrency limits and hosted fallbacks remain intact. No product behavior changes. Keep this PR unmerged.Why This Change Was Made
Choose 16: both classes passed both parts once. The 16-class delivered four CPUs and 14.00 GiB RAM; the 32-class delivered eight CPUs and 28.00 GiB. The job-wall tail was 12m09s on 16 and 11m53s on 32. Including assignment wait from the common job-created timestamp, class completion was 12m42s versus 12m32s. Saving another 16 seconds (2.2%) on 32 consumed 739.73 requested-vCPU minutes, versus 385.60 on 16 (91.8% more).
The preference threshold of an approximately eight-minute tail was not met. The comparison still favors 16 as the useful intermediate allocation: against the prior successful 8-class result with the same 75/58 partition, its observed tail is 81 seconds shorter (10.0%) and its test tail is 117 seconds shorter (15.7%), at 1.84× nominal requested-vCPU minutes. This is an unpaired historical comparison with source/setup differences, not a controlled causal estimate. The simultaneous 16-versus-32 comparison uses identical source and setup.
The temporary experiment workflow was removed after its only run. Production selection remains in one
ci.ymlexpression, and the existing routing guards now expect 16. This PR does not touch the separately landed regrouping PR #154107.Evidence
Final branch head:
b26af0c735d2fa5180af06dacf2c4ea4d5918a90. P2-reviewed final diff: four files; temporary experiment removed.Four first-attempt Windows measurements
Experiment run 35545416856 passed all four matrix jobs on attempt 1. No Windows job or test was rerun. Blacksmith's official runner labels document both 16/32 Windows Server 2025 classes; all four jobs were assigned within 45 seconds.
Branch head
88616ccb52e907ec1c54581cca73d2aa8bc01f3fwas created fromorigin/mainat21f3d71a09d4356e2f9af53532ac5877136d0a0c. Every experiment job checked out the same PR merge revision289f9d29b9abdcbe0a825b898ecbc0eb8a607dc9, whose baseb73d0e4541eff60e3f24eb50c84c26b98a77d30fincludes the independently landed regrouping. Its Windows scripts exactly match that prior corrected candidate: 75/58 targets and 16/15 project processes, with 133 unique targets.Assignment = job
created_attostarted_at; all rows were immediately eligible with no predecessor or matrix admission wait. Setup = job start to test-step start. Tests = complete test-step wall including prerequisite builds. Job wall includes setup and completion. REST timestamps have one-second resolution. Setup matches production Windows steps except pinnedactions/checkoutreplaces CI's harness-owned checkout; no ordinary-CI setup speedup is claimed.CPU count comes from
[Environment]::ProcessorCount; RAM comes from CIMTotalPhysicalMemory. Runner names and the full resource records are in each linked job's Report delivered Windows resources step. Node's available parallelism agrees with 4/8 CPUs. Each class emitted 133 unique module receipts, all passed or intentionally skipped; all 62 Vitest project resource receipts resolve one worker.checks-windowsexplicitly setsOPENCLAW_VITEST_MAX_WORKERS=1, which takes precedence over detected-core sizing; there is no Linux-style resource configuration step for Windows. The next lever belongs to the planner's Windows resource profile and needs a separate native measurement. This PR does not silently raise worker concurrency.Cost basis: Blacksmith's published price selector explicitly lists Windows 8 at $0.032/min, 16 at $0.064/min, and 32 at $0.128/min (the fetched page’s
data-winvalues for each vCPU option). At unrounded job-wall minutes, excluding assignment wait, the pairs estimate $1.542 on 16 and $2.959 on 32. The billing conversion documentation also confirms proportional vCPU-minute consumption: 16:32 costs 1:2 per minute. Estimates are not billing receipts and exclude discounts, rounding and free credits. Advertised vCPUs determine nominal cost; delivered CPUs describe capacity. The prior 8-class pair totaled 209.20 units / $0.837 (759/810 seconds), versus 385.60 and 739.73 units here.The experiment added four registrations once; the final production diff adds none and retains
max-parallel: 2. The pooled rate-limit response reported a 20,000-registration bucket, but does not establish organization-wide usage. Production concurrency and backend variables were not changed.Validation
Both Windows parts passed on both classes, exactly once. Initial and final P2 autoreview are scoped-clean. Actionlint, formatting, docs discovery and
git diff --checkpassed; the experiment’s Workflow Sanity run passed. No full product suite or additional Windows attempt was run.The existing routing guard was run once on macOS, using
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts --maxWorkers=1: 622 passed, 12 skipped, 3 failed, 1565.37s wrapper wall (1548.24s Vitest). Both modified cases passed:encodes GitHub, Blacksmith, and hybrid runner-backend shapesin 77ms anduses bundled Node shards and telemetry-backed runner sizesin 2687ms. No test was added, and CI duration for this guard on the final draft head is unavailable. Preserve these unresolved failures; do not call the full guard green:ci-workflow-guards.test.ts:7348, resolves the pull request base and changed files from the shallow security checkout: the firstgit init --initial-branch=mainhit the existing 5000ms child timeout (spawnSync git ETIMEDOUT). It never reached the security-checkout assertions.ci-workflow-guards.test.ts:8013, preserves pnpm hard links and validates cached importers and supply-chain policy offline: hit the existing 120000ms test timeout (reported case wall 161984ms).ci-workflow-guards.test.ts:12729, keeps the preflight manifest import closure dependency-free: its Node subprocess hit the existing 30000ms timeout;result.statuswas null instead of 0.These fixture bodies and their owning workflow sections are unchanged by the label-only change. The deeper timeout causes remain unresolved; no timeout, assertion or fixture was weakened and no guard test was rerun. This draft is not ready to land over those failures.
The first changed-file check identified a concrete dependency mismatch: this branch pins
acpx0.18.0 but the previous worktree installation still had 0.17.1, whoseRequestedModelUnsupportedErrorlacks theambiguousfield used by existingextensions/acpx/src/model-ref.ts:32. Frozen dependency reconciliation completed successfully and the root test typecheck then passed. The complete changed-file check then exited successfully, including root test types, all three export scans, scripts lint and changed-test lint; no package/lockfile version change is part of this PR.The first Crabbox preparation was stopped before a remote lease/test command because local source discovery stalled. Task-owned disposable proof checkouts are gone. No new Linux-side measurement was executed; historical Linux evidence below was reused.
Earlier unresolved UI focus failure
Run 35540375501, job 106156965934,
checks-ui-e2e (7/13), attempt 1, headcae1304239e77b3da5d992927dd1afdc6527f664:ui/src/e2e/session-owner-assignment.e2e.test.ts:484, Control UI session owner assignment mocked Gateway E2E > assigns a renamed teammate from a 1,000-person directory at width 1280.Immediately after
await search.press("ArrowDown"),await expectBrowser(match).toBeFocused()failed: expected focused; received inactive; timeout 5000 ms. The locatorgetByRole('menuitemradio', { name: 'Renamed teammate', exact: true })resolved 14 times. The case took 6486 ms; its width-390 sibling passed in 1505 ms. The public diagnostic artifact containsfailure.public.json.Root cause remains unproven: the log establishes inactive focus after ArrowDown, not that focus was acquired and then stolen. A later corrected-head run passing the shard did not resolve this defect. No rerun or assertion change was made for this investigation.
Windows-contract narrowing proposal (no removals)
The proposal audits the initial branch inventory at
21f3d71a09d4: 133 targets (part 1: 50; part 2: 83), with no count drift. The later experiment merge keeps these same targets in the independently landed 75/58 partition; the Part column below records the audit snapshot, not the experiment placement. The assertion audit classifies 33 native Windows targets, 80 mixed/uncertain targets to retain, and 20 portable assertion targets worth considering for Linux-only routing in a separate change. Windows-policy tests under mocks remain valuable tests; a Windows filename does not by itself require an additional native execution. Nothing in this proposal changes the inventory.The 20 candidates account for 12.972 cumulative test seconds out of 954.475s across both parts (1.36%). Their largest member is transform-cache invalidation at 8.464s. These are test-body seconds, not projected job-wall savings: the historical logs do not attribute import, transformation, runtime build, or per-project startup to individual targets. Runner/worker sizing remains the more promising immediate lever.
Timing provenance. The 16/32 columns use each experiment module’s native Vitest diagnostic
duration: file test execution including hooks, excluding collection, setup and preparation. They are not whole-file process wall; skipped modules contribute zero. The 8-class column reports the median per-target sum of executed Vitest case durations over three successful main-push samples and one successful PR sample: runs 35526569333, 35518915535, 35512907828, and 35538213398. The logs use the 8-vCPU label. The errno target has 17 cases skipped on Windows and 0 executed test seconds; other 0.000 rows are sub-millisecond/rounded passing cases. No measurement was rerun.Linux proof. Existing successful CI run 35538213398 supplies the job IDs and passing/skipped counts below; every listed job has a verified Ubuntu runner label. 132 targets appear there: 102 execute passing cases and 30 are entirely skipped. The Docker packaging E2E target is not observed in those Node logs and stays retained. The executed checkout was merge
44c1ff20c728e0daf135876c05fd95ac4b72e4d6(head9b3bcf5deaa613bbf96649bea045a93dfd5188e2, base6b1495903b2105050844c4ed36ad99763b84c911). All 20 candidate test blobs exactly match both that run's head/base and current source. Owners changed since the proof forexec.windows,vitest-worker-artifacts.transforms, andrefresh-watch-path; any future routing change needs fresh owner-contract confirmation. The table records historical evidence, not a claim that current head was tested.Classes: W = native Windows contract; M = mixed or uncertain, retain whole target; C = portable assertions already observed passing on Linux, future routing candidate. P/S = executed passing/skipped cases in the referenced Linux job. Large retained suites were conservatively classified from concrete native assertions and targeted owner inspection, not approved for deletion.
All 133 targets, Windows test seconds, classification and Linux evidence
extensions/acpx/src/runtime-argv.process.test.tssrc/state/openclaw-state-ownership.test.tssrc/snapshot/local-repository.windows.test.tssrc/state/openclaw-database-paths.windows.test.tssrc/infra/update-candidate-state.namespaced-paths.test.tssrc/infra/update-candidate-state.budget.test.tssrc/infra/update-candidate-state.cleanup.test.tssrc/infra/update-candidate-state.online-backup.process.test.tssrc/node-host/invoke-system-run-allowlist.test.tssrc/node-host/invoke-agent-cli-claude.test.tssrc/node-host/node-worker-transfer-client.test.tspackages/terminal-core/src/display-string.test.tssrc/config/sessions/session-accessor.sqlite-archive.worker.test.tssrc/commands/doctor-gateway-auth-token.windows.test.tssrc/commands/doctor-lint.state-isolation.test.tssrc/flows/doctor-health-contributions.windows-cloud-state.test.tssrc/infra/state-migrations.audit-logs.windows.test.tssrc/commands/backup-verify.test.tssrc/commands/agents.commands.list.test.tssrc/gateway/gateway-cron-process-identity.windows.test.tssrc/shared/runtime-import.test.tssrc/shared/worker-bundle-archive.test.tssrc/node-host/node-worker-bundle-installer.test.tstest/scripts/check-openclaw-package-tarball.test.tstest/scripts/direct-run-entrypoints.test.tstest/scripts/format-generated-module.test.tstest/scripts/openclaw-cross-os-installer.windows.test.tstest/scripts/openclaw-cross-os-release-workflow.test.tstest/scripts/pnpm-runner.test.tsextensions/canvas/scripts/pnpm-runner.test.tstest/scripts/run-with-env.test.tstest/scripts/ui.test.tstest/helpers/temp-dir.test.tstest/scripts/vitest-process-cache.test.tstest/scripts/vitest-process-group.test.tstest/scripts/vitest-worker-artifacts.test.tssrc/agents/tools/media-tool-file-url.windows.test.tsextensions/memory-core/src/memory-extra-file-path.windows.test.tssrc/daemon/schtasks-state-probe.windows.test.tssrc/daemon/schtasks.startup-fallback.test.tssrc/daemon/schtasks.env-case.real.test.tssrc/plugin-sdk/node-host.test.tstest/e2e/qa-lab/runtime/package-openclaw-for-docker.e2e.test.tsextensions/lobster/src/lobster-runner.test.tssrc/gateway/worker-environments/workspace-quiescence.windows.test.tssrc/infra/git-exec.test.tssrc/agents/worktrees/git.test.tssrc/agents/worktrees/filesystem-refs.test.tssrc/gateway/worker-environments/workspace-result-ref-mutation.test.tsextensions/memory-wiki/src/obsidian.discovery.test.tssrc/infra/sqlite-private-directory.windows.test.tssrc/cli/update-cli/restart-helper.windows.test.tssrc/skills/runtime/refresh.windows.test.tssrc/skills/runtime/refresh-watch-path.test.tssrc/skills/runtime/refresh-watch-close.test.tssrc/skills/runtime/refresh.missing-root.integration.test.tssrc/infra/sqlite-snapshot.test.tssrc/infra/sqlite-snapshot-staging.cancellation.test.tssrc/infra/ports.test.ts†src/infra/diagnostic-process-siblings.env.test.tssrc/infra/windows-diagnostic-env.test.tssrc/infra/windows-encoding.test.tssrc/infra/windows-process-start.test.tssrc/infra/windows-process-start.native.test.tssrc/shared/pid-alive.env.test.tssrc/infra/advertised-lan-host.windows.test.tssrc/infra/update-managed-service-handoff-database-publication.test.tssrc/infra/update-managed-service-handoff-command.test.tssrc/infra/update-managed-service-handoff-lifecycle.test.tssrc/infra/executable-path.test.tssrc/agents/cli-executable-identity.test.tssrc/plugin-sdk/windows-spawn.test.tssrc/gateway/control-ui-asset-retention.publication.test.tssrc/infra/fs-safe-pinned-write-errno.test.tssrc/config/io.write-effects.windows.test.tssrc/infra/fs-safe.test.tssrc/plugin-sdk/fs-safe-compat.test.tssrc/infra/fs-safe-remove.test.tssrc/infra/state-migrations.legacy-session-store.test.ts†src/infra/windows-install-roots.test.tssrc/infra/ssh-client.windows.test.tssrc/infra/exec-allowlist-pattern.test.tssrc/infra/process-env.test.tssrc/infra/openclaw-cli-shim.windows.test.tssrc/agents/sessions/windows-git-bash-path.test.tstest/scripts/npm-runner.test.tstest/scripts/ts-topology.test.tstest/scripts/vitest-worker-artifacts.transforms.test.tstest/scripts/ci-platform-checkout.test.tstest/scripts/install-ps1.test.tstest/scripts/write-plugin-sdk-entry-dts.test.tstest/scripts/write-unified-entry-dts.test.tstest/scripts/tsdown-declaration-resolution.test.tssrc/test-utils/openclaw-test-state.test.tstest/helpers/openclaw-test-instance.test.tstest/scripts/managed-child-process.windows.test.tstest/scripts/managed-windows-job.test.tssrc/agents/mcp-stdio-transport.windows.test.tstest/scripts/worker-deploy-build-plugin.test.tssrc/process/owned-stdio.real.test.tssrc/process/owned-stdio.windows.test.tstest/scripts/managed-child-process.output.test.tssrc/utils.test.tssrc/media/local-media-path.windows.test.tssrc/media/web-media.file-url.windows.test.tssrc/process/exec.windows.test.tssrc/process/exec.windows.integration.test.tssrc/agents/sessions/exec.real.test.tssrc/process/windows-command.test.tssrc/process/terminal-pty.test.tssrc/process/supervisor/supervisor.anchored-shell.real.test.tssrc/tui/tui.resolve-codex-bin.test.tssrc/media-understanding/attachments.file-url.windows.test.tssrc/cli/completion-runtime.windows.test.tssrc/cli/runtime-cleanup-scope.windows.process.test.tssrc/cli/daemon-cli/status.print.test.tssrc/cli/mcp-cli.path-case.windows.test.tssrc/auto-reply/usage-bar/template.windows.test.tssrc/auto-reply/reply.triggers.trigger-handling.stages-inbound-media-into-sandbox-workspace.test.tssrc/agents/provider-local-service.env-case.test.tssrc/agents/bash-tools.exec.script-preflight.test.tssrc/agents/agent-tools.read.windows.test.tssrc/agents/agent-tools.read.host-operations.test.tssrc/agents/apply-patch.test.tssrc/agents/sandbox/fs-paths.test.tssrc/agents/sessions/tools/render-utils.test.tssrc/agents/sessions/tools/path-utils.test.tsextensions/msteams/src/media-helpers.test.tsextensions/msteams/src/messenger.test.tsextensions/mxc/test/mxc-backend.test.tsextensions/mxc/test/fs-bridge.test.tsextensions/mxc/test/path-comparison.test.tsextensions/mxc/test/sandbox-policy-loader.test.ts†
portsandstate-migrations.legacy-session-storetest source changed since the cited Linux run; both remain retained.Why the 20 portable-assertion targets are candidates
test/scripts/vitest-worker-artifacts.transforms.test.tssrc/process/exec.windows.test.tssrc/process/owned-stdio.windows.test.tssrc/infra/windows-process-start.test.tsextensions/lobster/src/lobster-runner.test.tstest/scripts/run-with-env.test.tssrc/infra/windows-encoding.test.tssrc/tui/tui.resolve-codex-bin.test.tssrc/infra/windows-install-roots.test.tsextensions/msteams/src/media-helpers.test.tssrc/shared/pid-alive.env.test.tstest/scripts/vitest-process-group.test.tssrc/skills/runtime/refresh-watch-path.test.tstest/scripts/format-generated-module.test.tssrc/commands/doctor-gateway-auth-token.windows.test.tstest/scripts/npm-runner.test.tstest/scripts/managed-windows-job.test.tssrc/shared/runtime-import.test.tssrc/infra/fs-safe-pinned-write-errno.test.tssrc/infra/process-env.test.tsThe mocked process suites were intentionally added to Windows CI. Native sibling coverage remains required: actual Windows Job lifetime/stdio cleanup, command and PTY argv preservation, PowerShell/kernel PID probes, Windows ACL/path behavior, compiler aliases, SQLite publication/locking, and worker-artifact execution. A later narrowing change must preserve those contracts and obtain its own review; this PR proposes no removals.