Skip to content

Windows: work that needs a real Windows machine (CI flake, sandbox shells, owner-only files, snapshots, acceptance) #136

Open

Description

@leonardoaraujosantos

Why this issue exists

Nobody on the core team has a Windows machine. Windows CI builds and tests every PR, but some failures can't be reproduced or fixed from CI logs alone. Because Windows protection is incomplete, 0.1.0 ships for macOS and Linux only (#121).

This issue collects the Windows work that needs someone with a real Windows machine. Each item can go in its own PR. Say which one you are taking in a comment so two people don't do the same work.

1. peers_cli tests: the server sometimes doesn't start in time (CI flake)

Symptom. On windows-latest, crates/cyber-cli/tests/peers_cli.rs sometimes fails with:

the server did not become healthy; see …server.log

What we know.

Wanted.

  1. Reproduce it locally, for example by running the test in a loop under load.
  2. Find out why startup is slow. Is it a database migration, Defender scanning, sandbox setup, or port binding?
  3. Upload server.log as a CI artifact when this test fails.
  4. Fix the cause. Only raise the 5-second wait if the startup time is real and can't be reduced, and explain why in the PR.

The fix needs a regression test or a stress loop that shows the flake is gone. See #8 for the other timing-sensitive tests.

2. Git Bash and PowerShell crash inside the AppContainer sandbox (#9)

Under read-only and workspace-write, bash and powershell commands fail on Windows, and so do PowerShell command hooks in sandboxed scopes. Only full-access runs them today.

The shell-level sandbox tests are skipped on Windows until this is fixed. The design work is in openspec/changes/fix-windows-bash-shell. Background is in the Windows section of docs/local-core-guide.md. This is the main thing blocking a Windows release.

3. The sandbox network allowlist proxy can't be reached from the AppContainer

With sandbox.network: proxy, the setting behaves like off on Windows. It never raises domain prompts. To fix it, the container needs a loopback exemption or an equivalent route to the proxy, and the macOS/Linux network tests should run on Windows too.

4. Owner-only private files

Several features refuse to run, or skip their tests, on Windows because the code can't yet make a file readable only by its owner:

  • ChatGPT subscription login. It stores chatgpt-auth.json and is documented as not supported on Windows (docs/local-core-guide.md).
  • Memory.
    • Durable client state (crates/cyber-core/src/memory/client_state.rs).
    • Storage and transactions (crates/cyber-core/src/memory/storage*.rs).
    • The TUI editor's draft persistence (crates/cyber-cli/src/commands/memory/editor.rs).
    • Unix keeps drafts across a restart; Windows doesn't.
  • Binary storage (crates/cyber-core/src/binary/storage.rs).
  • MCP OAuth token store (crates/cyber-tools/src/mcp/oauth/store.rs).

Wanted. One shared helper that creates and checks an owner-only file:

  • It sets a protected DACL that grants only the current user SID.
  • It refuses a file whose ACL is broader than that.

Then switch these features over to the helper and turn on their Windows tests. This touches security and data storage, so the change needs an OpenSpec proposal first.

About 100 tests are currently turned off on Windows with cfg(not(windows)) or cfg_attr(windows, ignore). Most are in the files above. Find them with:

grep -rn -E 'cfg_attr\(windows, ignore|cfg\(not\(windows\)\)\]' crates --include='*.rs'

5. Non-Git snapshots (rewind outside Git)

Windows has Git snapshots, and outside Git it has conversation-only rewind. It has no file-copy snapshots outside Git (docs/rewind.md).

The non-Git snapshot proof workflow (.github/workflows/non-git-snapshot-proof.yml) runs on macOS and Linux only. Supporting Windows needs:

  • Native file and volume IDs.
  • No-follow handles.
  • Rules for ancestor renames, since Windows refuses to rename a folder while a file inside it is open.

Part of this was solved for migration snapshots. See the "Windows review handoff releases handles" section of the design in openspec/changes/implement-m1-5-migration-editor. Tracked under #93.

6. Native computer use (#44)

Screen capture and input on Windows, under owner-only, time-limited grants. The shared design is in #134 and the Windows spec is in #131. Nothing can be turned on without real-machine evidence (the "evidence gate").

7. Hands-on acceptance runs that were only done on macOS

These features were checked by hand on macOS only. Re-run their documented scenarios on Windows and record the results where the original evidence is:

  • Agent teams. In docs/features.md; evidence is in docs/implementation/p2-status.md#agent-teams-2026-10-20.
  • Config import / migration (acceptance batch C). In openspec/changes/implement-m1-5-migration-editor/tasks.md.
  • Cross-session messaging acceptance. crates/cyber-cli/tests/messages_acceptance.rs has not been written yet.

8. Shipping Windows builds

Once 2 and 4 are done:

  1. Set WINDOWS_RELEASED = True in scripts/release_assets.py.
  2. Restore the Windows release matrix, the win32-* npm packages and the Scoop/WinGet manifests.
  3. Remove the Windows refusal from install.sh.

The steps are spelled out in #121.

How to work on this

  • The build and test commands are in CONTRIBUTING.md. Run tests with nextest, scoped to the crate you changed. Build cargo build -p cyber-sandbox --bins first, because the sandbox tests need its helper binaries.
  • A bug fix needs a regression test in the same PR.
  • A change to the sandbox, credentials or file permissions needs an OpenSpec change in openspec/changes/ first.
  • Update the docs that describe the current Windows limitation in the same PR.

Activity

  1. added
    bug
    enhancement
    help wanted
    on Nov 16, 2026
  2. logancsack commented on Nov 19, 2026

    @logancsack

    I build Panes, which gives agents a real Windows computer they drive over an API: run commands, move files, take screenshots, click and type in the signed-in desktop. cybercode could work through items 1, 2, 6 and 7 there itself, including the AppContainer shell crashes and native computer use. It's Windows Server 2025, $0.33 to $0.75 an hour, $10 minimum credit: https://usepanes.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions