Repository navigation
Conversation
Preserve hosted Windows CI and add strict native lifecycle contracts plus a protected, manual snapshot-backed Azure controller. Operational setup and real native/cloud proof remain blocked and documented for handoff. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 792450a4-dcd2-45ce-b5a6-4ee4e9c33ca3
|
🦞👀 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: needs real behavior proof before merge. What this changesThis PR adds a protected manual Azure workflow that validates a signed native Gateway package on a disposable Windows guest. Example: Validate Gateway package 2026.10.20.0 on an approved Azure Windows 11 x64 snapshot.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-authored draft open: it adds a useful native validation lane absent from main, but its cleanup command is incompatible with pinned Crabbox. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherGitHub Actions supplies approved source and artifact identities to a Crabbox controller, which leases an Azure guest, invokes package-qualified clawctl commands, and returns filtered evidence. flowchart TD
A[Manual main dispatch] --> B[Protected environment admission]
B --> C[Crabbox controller]
C --> D[Azure Windows guest]
D --> E[Signed Gateway package]
E --> F[Lifecycle receipt]
F --> C
C --> G[Evidence and lease cleanup]
Technical reviewBest possible solution: Retain the scoped manual lane, correct the cleanup arguments and fixture, and establish its authorization boundary before activation. Do we have a high-confidence way to reproduce the issue? The emitted cleanup arguments and pinned Crabbox parser establish rejection before release; no runtime reproduction was executed. Is this the best way to solve the issue? A separate manual controller using existing broker and package owners fits the stated scope, but its cleanup adapter must honor the actual CLI contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8dfedf9616c5. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: unit tests only. SecurityNeeds attention: Source shows deliberate credential isolation, but the new cloud authority boundary lacks final-effect validation. EvidenceSecurity concerns:
What I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 20, 2026, 3:51 PM ET / 19:51 UTC. |
|
Hi @karkarl, I'm a GitHub Copilot triage bot helping with repository housekeeping, not Scott. I see this is an intentional Azure validation handoff for Dallin, with approved broker/image prerequisites still needed. Is that handoff still planned, and do you expect to move this forward against current main? If it has moved elsewhere or the plan has changed, you're welcome to close the draft with a pointer. If it's simply waiting on access or ownership, a short status note is plenty. No request to provision anything, and no automatic closure. |
What Problem This Solves
Adds a controlled path for real native Gateway testing on Azure Windows guests without replacing ordinary GitHub-hosted Windows tests with hosted-runner MXC skips.
User Impact
This is a draft implementation handoff for Dallin, not a working cloud deployment or merge-ready proof. Developers keep the existing hosted Windows test lanes. After OpenClaw supplies approved broker access and a suitable Windows image, maintainers can manually run native Gateway lifecycle proof with exact-source evidence and task-owned VM cleanup.
No environment, secret, runner, VM, checkpoint or cloud resource has been created or changed. No workflow has been dispatched. Full native build/test closeout and real Azure proof remain blocked.
Why This Change Was Made
The existing
ci.ymlalready provides ordinary Windows CI. This adds hosted negative regressions there and a separate manual-only Azure controller using the existing OpenClaw Crabbox broker, not employer Azure credentials or the release-signing identity.The controller requires canonical
main, an existing protected environment, an automation bearer credential and an approved coordinator-owned Azure OS-disk snapshot. It pins Crabbox v0.79.0 by archive digest, persists a fixed lease intent before acquisition, checks out the exact source in the guest, validates fresh evidence, and waits for lease deletion. Coordinator TTL is the runner-loss backstop, not a claim that cleanup was observed.The guest installs an approved signed MSIX and exercises the product's package-qualified
clawctlsetup, prepare, start/status, restart/status, stop/status and teardown/status paths. Session capability, package identity and process/listener ownership must be real. There is no prepared-payload fixture, WSL/npm fallback, certificate installation, host repair or successful skip.Native isolated-session package lifecycle, process BaseContainer containment, Companion pairing/UI and WSL-MXC proof are different contracts. This lane proves only the first.
Evidence
The source-level checks below exercise real controller/harness logic with explicit transport and package wire fixtures. They do not allocate resources or prove MXC runtime behavior. A regression first demonstrated rejection of Azure's capitalized
Succeededstate; admission now follows Crabbox's case-insensitive readiness contract.Change Type
Scope
winnodeRequired proof pools
windows-wsl-mxc: Preserve the separate strict Gateway-to-Windows-node containment proof obligation. Not run here; native isolated-session package proof must not substitute for it.Additional required evidence: real native Gateway package lifecycle on an approved Azure Windows 11 x64 snapshot. The current named pool inventory does not have a native-session-only pool. This workflow's guest result is separate from the WSL pool above and remains not verified / blocked.
Validation
.\scripts\test-azure-native-gateway-proof.ps1.\scripts\test-native-gateway-proof.ps1.\scripts\test-ci-workflow-contract.ps1.\scripts\validate-docs.ps1[Management.Automation.Language.Parser]::ParseFile(...)on the seven added PowerShell sourcesgit diff --check.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore.\scripts\validate-mxc-e2e.ps1-AllowSkipsubstitute..\scripts\Test-NativeGatewayProof.ps1 -SourceSha <approved-sha> -MsixPath <approved-msix> -MsixSha256 <approved-digest> -PackagingSha <approved-packaging-sha> -WxcExecPath <approved-probe> -WxcExecSha256 <approved-digest> -DisposableHost.\scripts\Invoke-AzureNativeGatewayProof.ps1 -CrabboxPath <pinned-controller>in the manual workflowPre-publication rubber-duck review: independent Copilot code-review subagent found no significant P0-P3 issues in the 10-file change. It independently passed 58 native contract/process assertions, 30 in-memory Azure admission/checkpoint/evidence assertions, and seven AST parses. Host: Windows_NT; model not reported. The shared Codex helper was attempted first but failed authentication with HTTP 401 and produced no accepted review. The fallback is not helper-isolated or validated machine/runtime proof.
Real Behavior Proof
96328723b71b3d750ea166146cfb4d458b5771f2. Focused checks are rerun on this committed head; no live native/cloud proof is claimed.Azure native Gateway proof contracts: 128 passed (fixtures only; no cloud or native runtime proof).andNative Gateway proof contracts: 58 passed (fixtures only, no native runtime).Yes/No/N/A) N/A. No runtime artifacts or screenshots are claimed.Security Impact
Yes/No) Yes: optional authenticated broker allocation on approved manual runs; no GitHub write permissions or permanent runner registration.Yes/No) Yes: a new environment-scoped automation credential is required, supplied on stdin to the pinned CLI. It is removed from subprocess environments; guest environment forwarding is limited toCI.Yes/No) Yes: OpenClaw's broker, pinned official Crabbox release download, and exact public source fetch on the approved guest.Yes/No) Yes: fixed controller and guest entrypoints execute the product CLI on a disposable host.Yes/No) Yes: the approved snapshot inventory and task-owned lease/package/session only.Yes, explain the risk and mitigation: cloud execution is manual, canonical-main-only, protected by reviewers and an exact deployment branch rule, and fails closed on missing configuration, identity/proof mismatch or unconfirmed cleanup. Personal GitHub sessions, release-signing credentials, admin-token fallback and arbitrary PR commands are not supported. Snapshot IDs, broker config and raw guest/CLI output are not uploaded. The workflow never installs trust certificates or enables host features.Compatibility and Migration
Yes/No) Yes. Existing hosted lanes and strict WSL-MXC behavior are retained.Yes/No) Yes, only to enable this optional manual lane; nothing has been configured by this PR.Yes/No) No product/user-state migration.Dallin handoff: setup and activation
native-gateway-azureGitHub environment with required reviewers, self-review disabled, admin bypass disabled and exactly one custom deployment branch policy:main, typebranch.CRABBOX_AUTOMATION_TOKENopenclaw-windows-node-ciin orgopenclaw.CRABBOX_AZURE_CHECKPOINT_IDNATIVE_GATEWAY_INPUTS_SHA256C:\OpenClawProof\inputs.json.CRABBOX_AZURE_CLASSCRABBOX_AZURE_TTL_MINUTESwxc-exec.exeand artifact inventory. Require no current-user Gateway registration/session. Independently approve digests and packaging provenance. A Windows build number or a base-container probe is not native-session qualification.azure.imageaccepts Marketplace coordinates, not a local VHDX or arbitrary image resource ID; use the snapshot checkpoint path.main. Verify the exact head, full real lifecycle receipt, andcloud-summary.jsonincluding confirmed provider cleanup. An unavailable/failing coordinator, image, capability or cleanup must leave the run failed. Do not describe fixture counts as a completed cloud deployment.The maintained input schema, lifecycle contract, proof boundaries and recovery procedure are in the branch's Azure lane guide.
Review Conversations