windows-sandbox-tests
Skill2 starsChanged 33 days agoMITView on GitHub
Integrate, run, or diagnose Windows project tests through the public WindowsSandboxTest PowerShell gist framework. Use when privileged or interactive tests need a fresh Windows Sandbox guest, retained logs, and verified teardown; not for host-only unit tests or unrelated VM frameworks.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- fmuecke/agent-win-sandboxword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- fmuecke/agent-win-sandbox★ 9100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the public WindowsSandboxTest framework for execution.
- Distinctive: line 14
Read the target repository's agent instructions, test documentation, and existing Sandbox runner.
- Distinctive: line 54
Keep test installation, account creation, service changes, and elevation inside the guest.
- Distinctive: line 72
Keep the run directory after success and failure.
- Very specific: line 74
After the framework's teardown, check wsb.exe --raw list and confirm the test guest is gone.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Windows Sandbox tests
Use the public WindowsSandboxTest framework for execution. This skill guides integration and evidence collection; project-owned PowerShell runners remain directly usable by developers and CI without the skill.
1. Establish the project contract
Read the target repository's agent instructions, test documentation, and existing Sandbox runner. Identify these inputs before running a test:
| Input | Required detail |
| Build and entry point | Build command, configuration, host runner, and required artifacts |
| Guest context | SYSTEM, existing interactive login, or a project-created test identity; required provisioning and desktop access |
| Storage | Host run root, staged files, guest mount path, and retained result/log files |
| Success | Expected command exit status plus explicit file markers or structured assertions |
| Coverage | What the selected tests establish and what remains outside their scope |
Take these from the actual project, not another project's conventions. Do not invent account names, executable names, build flags, or success markers. If a consequential input cannot be established from the repository, ask for it before dependent execution.
For an existing integration, reuse its runner. For a request to adopt the framework, read Framework integration, implement a small project-owned runner, and document the contract above in the project's normal test documentation. Link that guide from its agent instructions. Do not introduce a required manifest or copy the framework into the skill. A run-only request does not authorize redesigning an unrelated test harness.
2. Check readiness
- Confirm the target checkout and use its documented build command; skip a separate build when the test entry point already builds. Check whether it formats sources.
- Require Windows Sandbox and
wsb.exeon the host. Interactive tests need a visible guest desktop and the correct login; SYSTEM execution alone does not provide it. - The framework refuses an occupied Sandbox. If a guest exists, stop this attempt; do not attach to or terminate it. Run these workflows serially.
- The runner verifies the framework's pinned SHA-256 before import, including cached copies. Downloading a missing copy requires its pinned URL. Never bypass a mismatch.
3. Execute in a fresh guest
Invoke the project host runner and retain its output and exit status. Let the framework
own GUID staging, guest startup, writable sharing, bounded readiness retries, command
dispatch, timing, and teardown. The default guest mount is C:\SandboxTest; use the
callback's actual paths rather than assuming the default.
Keep test installation, account creation, service changes, and elevation inside the guest. Share only the staged artifacts/results directory writable. Do not run guest drivers directly on the host or make privileged host setup a substitute for a failed guest run.
The framework bounds share readiness; project drivers must bound their own process waits and preserve diagnostics when a phase fails.
4. Validate evidence and teardown
Identify this invocation's GUID directory below the project run root. Require both
successful command status and the project's expected shared-file results. Never reuse
an earlier pass or treat InvokeCommand.Output as guest stdout/stderr: it is control
output. Read and replay relevant output from the files written by the guest.
Preserve full phase logs separately from concise result markers. If logs originate outside the share, copy them after each phase and again during failure cleanup. A phase that never started may have no log; explain that instead of silently omitting it. Keep the run directory after success and failure.
After the framework's teardown, check wsb.exe --raw list and confirm the test guest is
gone. Report cleanup failures separately from test failures. Identify the guest owned
by this attempt before any recovery action.
5. Diagnose and report
| Failure | Next action |
| Missing artifact | Rebuild the selected configuration and check the runner's artifact list |
| Download/hash failure | Inspect the pinned URL, expected hash, and cached bytes; do not accept a replacement silently |
| Startup/share failure | Inspect host prerequisites and transport diagnostics; preserve available artifacts |
| Interactive login failure | Check guest desktop/login readiness and the runner's bounded retry policy |
| Missing result, failed assertion, or nonzero exit | Read current-run phase logs; do not infer success from transport output |
| Teardown failure | Report the remaining guest and cleanup error separately |
Retry in a fresh guest after an identified correction. Stop and report the blocker if another attempt would merely repeat the same failure.
Report the project workflow, configuration, pass/fail result, failing phase if any, retained run directory, and teardown status. Separate source/contract checks, host tests, live guest integration, and interactive acceptance. Claim only the coverage established by the selected tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

