PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm install

added 14 packages, and audited 15 packages in 973ms

2 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm test

> deadbyte-mcp@0.4.0 test
> node --test test/*.test.mjs

✔ contained execution validator accepts the complete fixed-transform invariant set (1.0405ms)
✔ contained execution validator rejects any granted capability (0.33ms)
✔ contained execution validator rejects host workspace mounting (0.1127ms)
✔ contained execution validator rejects non-atomic Job assignment (0.0922ms)
✔ contained execution validator rejects normal child payload execution (0.2113ms)
✔ contained execution validator rejects explicit breakaway payload execution (0.1384ms)
✔ contained execution validator rejects a non-AppContainer worker (0.1445ms)
✔ contained execution source has a fixed worker and no user executable parameter (5.452ms)
✔ contained launcher imports by stdin/profile copy and never mounts a host workspace (0.9421ms)
✔ contained worker rechecks AppContainer, zero capabilities, canaries, Job and child denial (0.9785ms)
✔ native build produces the contained launcher and worker with static runtime (0.6972ms)
✔ receipt and verifier bind contained worker, launcher and independent transform semantics (0.929ms)
✔ MCP protocol smoke expects the stable five-tool V0.4 catalog (0.4954ms)
✔ contained receipt verifies fixed runtime hashes and independently recomputed transform semantics (25.4912ms)
✔ containment result validator accepts the complete LPAC invariant set (1.1333ms)
✔ containment result validator accepts the complete regular AppContainer invariant set (0.7785ms)
✔ containment result validator refuses mode confusion (0.3496ms)
✔ containment result validator rejects a readable host canary (0.1341ms)
✔ containment result validator rejects any granted capability (0.1234ms)
✔ containment result validator rejects child payload execution (0.0944ms)
✔ containment result validator rejects a non-LPAC token when LPAC is expected (0.0963ms)
✔ containment result validator accepts regular AppContainer when LPAC-specific query is unavailable but AAP behavior proves regular mode (0.1418ms)
✔ containment result validator rejects LPAC when regular AppContainer is expected (0.2118ms)
✔ containment result validator rejects regular AppContainer when AAP behavioral mode evidence fails (0.1865ms)
✔ containment result validator requires LPAC-specific token query for LPAC mode (0.1162ms)
✔ containment result validator rejects LPAC that can read the AAP canary (0.0841ms)
✔ containment result validator rejects missing Job assignment (0.102ms)
✔ containment result validator rejects timeout (0.0658ms)
✔ containment result validator rejects non-atomic Job assignment (0.0768ms)
✔ containment result validator rejects enabled breakaway (0.0892ms)
✔ containment result validator rejects the broken token child-policy mechanism (0.078ms)
✔ containment result validator rejects breakaway child payload execution (0.0781ms)
✔ containment result validator rejects a filesystem result channel (0.0486ms)
✔ native launcher uses atomic Job assignment and excludes the broken child-policy attribute (8.7156ms)
✔ native build script targets Windows 10 and preserves MSVC diagnostics (0.7407ms)
✔ native build command composition is Windows PowerShell 5.1 parser-safe (0.6199ms)
✔ native launcher link contract includes Ole32 for CoTaskMemFree (0.5016ms)
✔ native probe link contract includes Advapi32 for token inspection APIs (0.4823ms)
✔ native launcher narrows SID text only through explicit ASCII validation (0.3948ms)
✔ native result channel is an explicitly inherited one-way handle, not a result path grant (0.7725ms)
✔ containment smoke preserves parseable failed measurements instead of discarding child exit evidence (0.5691ms)
✔ containment validator reports the probe invariant before aggregate failed status (0.171ms)
✔ containment smoke includes the raw probe measurement on invariant failure (0.727ms)
✔ native LPAC probe uses the static MSVC runtime (0.5928ms)
✔ native build audits the probe for dynamic MSVC and UCRT dependencies (0.5578ms)
✔ native launcher preserves symbolic early-loader failure evidence (0.4951ms)
✔ native bootstrap probes have custom no-CRT entrypoints (0.7401ms)
✔ native build links bootstrap probes without default CRT libraries (0.4262ms)
✔ native launcher applies ALL_APPLICATION_PACKAGES opt-out only in LPAC mode (0.4306ms)
✔ full probe validates requested mode with LPAC API evidence plus AAP behavioral evidence (1.0705ms)
✔ full probe records per-query Win32 evidence instead of collapsing LPAC query failure into a generic token failure (0.4906ms)
✔ full containment uses an ALL_APPLICATION_PACKAGES canary as behavioral regular-vs-LPAC evidence (0.6556ms)
✔ bootstrap diagnostic compares regular AppContainer and LPAC with zero capabilities (0.5441ms)
✔ package exposes separate LPAC and regular AppContainer smoke gates (0.4965ms)
✔ construction ladder starts from Microsoft-style security-capabilities-only baseline (0.522ms)
✔ construction ladder adds containment mechanisms as isolated transitions (0.6127ms)
✔ construction entrypoint probe is no-CRT and proves execution only through exit code 66 (0.7821ms)
✔ construction diagnostic reports the first failing transition without fallback (0.5864ms)
✔ construction launcher includes the SDDL declaration and retains Advapi32 linkage for ConvertSidToStringSidW (0.7599ms)
✔ construction diagnostic refuses to run when native build artifacts are missing (0.7119ms)
✔ child-control matrix isolates policy, suspended start, delayed Job, and atomic Job (0.5981ms)
✔ Job child-control candidate sets active process limit one and never enables breakaway (0.5168ms)
✔ child-control hostile probe tests normal creation and explicit Job breakaway execution (0.4544ms)
✔ child-control diagnostic has no automatic fallback and prefers atomic Job only after observed denial (0.5053ms)
✔ native build produces child-control launcher and hostile probe with MSVC (0.5331ms)
✔ package exposes explicit child-control diagnostic gate (1.3969ms)
✔ full containment probe verifies normal and explicit breakaway child payload denial (0.5676ms)
✔ package default containment smoke targets the observed regular AppContainer baseline (0.5785ms)
✔ path traversal is denied (10.1486ms)
✔ absolute path is denied (3.3738ms)
✔ symlink escape is denied where symlinks are permitted (5.3296ms)
✔ proof execution creates deterministic output and signed verifiable receipt (59.5329ms)
✔ independent verifier process accepts valid signed evidence (91.9041ms)
✔ input source may change later because receipt preserves exact input snapshot (47.68ms)
✔ tampered output fails independent verification (53.4178ms)
✔ tampered input snapshot fails independent verification (48.9709ms)
✔ tampered receipt fails its canonical self hash (49.5494ms)
✔ recomputed self hash cannot forge Ed25519 attestation (48.7602ms)
✔ wrong public key cannot verify receipt (47.9595ms)
✔ signing key inside workspace is denied (4.6941ms)
✔ proof execution refuses to run without a signing key (2.3066ms)
✔ trust key generation refuses to overwrite an existing keypair (2.7202ms)
✔ pre-existing output is denied instead of overwritten (4.4867ms)
✔ output parent symlink escape is denied (3.7807ms)
✔ distinct output names allow repeated signed proofs without weakening no-overwrite (90.4606ms)
ℹ tests 85
ℹ suites 0
ℹ pass 85
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 657.5959
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm run mcp:smoke

> deadbyte-mcp@0.4.0 mcp:smoke
> node src/mcp-smoke-client.mjs

{
  "status": "passed",
  "protocol_revision": "2026-07-28",
  "protocol_era": "modern",
  "tools": [
    "contained_transform",
    "evidence_verify",
    "file_read",
    "proof_execute",
    "workspace_open"
  ],
  "workspace_id": "demo",
  "output": "mcp-output.0424fcc92abb0aa3.txt",
  "receipt_path": "evidence/21facc370cd7c77a533f4ef1.json",
  "receipt_sha256": "bd513e05d2eb094e8fe61acc968fdc1bfe913abb563a1e8b39c14ba21319600c",
  "key_id": "7c3f9c8d63b8d47abc0f02bfb9109303bc9958ba151a142289e97a9afad74c06",
  "signature_algorithm": "ed25519",
  "signature_valid": true,
  "output_sha256": "f0d2e1eb388c253fd66bcf57e5e0bb32fc4e3d29146745b74ae7d0583fc72f07",
  "independent_verify": true
}
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm run containment:build

> deadbyte-mcp@0.4.0 containment:build
> powershell -NoProfile -ExecutionPolicy Bypass -File scripts/build-containment.ps1

==== launcher ====
deadbyte-contain.cpp
==== probe ====
containment-probe.cpp
==== bootstrap-kernel32 ====
bootstrap-kernel32.cpp
==== bootstrap-advapi32 ====
bootstrap-advapi32.cpp
==== construction-launcher ====
appcontainer-stage.cpp
==== bootstrap-exitcode ====
bootstrap-exitcode.cpp
==== child-control-launcher ====
child-control-stage.cpp
==== child-control-probe ====
child-control-probe.cpp
==== contained-launcher ====
deadbyte-exec.cpp
==== contained-worker ====
contained-transform-worker.cpp
==== probe-dependencies ====

Dump of file C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0\bin\containment-probe.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    ADVAPI32.dll
    KERNEL32.dll

  Summary

        2000 .data
        1000 .fptable
        2000 .pdata
        E000 .rdata
        1000 .reloc
       19000 .text
==== contained-launcher-dependencies ====

Dump of file C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0\bin\deadbyte-exec.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    USERENV.dll
    ADVAPI32.dll
    ole32.dll
    KERNEL32.dll

  Summary

        3000 .data
        1000 .fptable
        3000 .pdata
       15000 .rdata
        1000 .reloc
       32000 .text
==== contained-worker-dependencies ====

Dump of file C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0\bin\contained-transform-worker.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    ADVAPI32.dll
    KERNEL32.dll

  Summary

        2000 .data
        1000 .fptable
        2000 .pdata
        E000 .rdata
        1000 .reloc
       19000 .text
{
    "status":  "built",
    "compiler":  "msvc-x64",
    "target":  "windows-10-or-newer",
    "diagnostics":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\proof\\CONTAINMENT-BUILD.txt",
    "launcher":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\deadbyte-contain.exe",
    "launcher_sha256":  "fa9ffaafd38e1c2f942c51699b3c289247f6040f01b2c4e6a56c00a8278ce751",
    "probe":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\containment-probe.exe",
    "probe_sha256":  "ff2b0b05e5a753af97281d43ba106ce37a6d1b8d6c65841852cb3a66f9b08afc",
    "probe_runtime":  "static-crt",
    "probe_dynamic_crt_dependencies":  [

                                       ],
    "bootstrap_kernel32":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\bootstrap-kernel32.exe",
    "bootstrap_kernel32_sha256":  "f0538a8b599059de93cea12c9605c66e73e2ceadc52557e4f01d6404da133fb3",
    "bootstrap_advapi32":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\bootstrap-advapi32.exe",
    "bootstrap_advapi32_sha256":  "8243284db095be3a79d0ddb064b86059b2b7a7503514c3da5a224e3aa934b88d",
    "construction_launcher":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\appcontainer-stage.exe",
    "construction_launcher_sha256":  "e9015b85c9f9d64035477dc0c0890272aca3f8b662b7e36a4a9649213010ff19",
    "bootstrap_exitcode":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\bootstrap-exitcode.exe",
    "bootstrap_exitcode_sha256":  "3aed2c6f9d42c8d9cbbb890b49883e494d92c65cb279bd5653fde245ac32c841",
    "child_control_launcher":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\child-control-stage.exe",
    "child_control_launcher_sha256":  "06d1a30522bf96fd1eba3e2ac3999e02923b51a87ea9c5f48763606a50c2ab89",
    "child_control_probe":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\child-control-probe.exe",
    "child_control_probe_sha256":  "91c78254c620cdf4d0d69ad763731276e0819eb62e0a72aa6ac1f2592a7cfa6a",
    "contained_launcher":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\deadbyte-exec.exe",
    "contained_launcher_sha256":  "f81e839928acf7512d20f846f8343308256f0b8e12ec3a8f670bc9977128ab29",
    "contained_worker":  "C:\\Users\\DEADBYTE\\Downloads\\deadbyte-mcp-v0.4.0\\bin\\contained-transform-worker.exe",
    "contained_worker_sha256":  "ceb557f151583dab8e33d3bbb753e4e979ac40315b7781cae75620c2e2bf2ae2"
}
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm run containment:smoke

> deadbyte-mcp@0.4.0 containment:smoke
> node src/containment-smoke.mjs appcontainer

{
  "status": "passed",
  "ok": true,
  "backend": "windows-appcontainer",
  "mode": "appcontainer",
  "appcontainer_sid": "S-1-15-2-2660424875-4033107904-3243340810-432946595-3582952064-234252354-3281341798",
  "lpac": false,
  "lpac_token_query_available": false,
  "aap_mode_evidence_ok": true,
  "network_capabilities": 0,
  "result_channel": "inherited-handle",
  "outside_read_denied": true,
  "child_process_denied": true,
  "normal_child_execution_denied": true,
  "breakaway_child_execution_denied": true,
  "child_control": "job-active-process-limit",
  "job_assignment": "atomic-attribute",
  "job_breakaway_enabled": false,
  "active_process_limit": 1,
  "process_memory_limit_bytes": 134217728,
  "profile_cleanup_ok": true
}
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm run contained:smoke

> deadbyte-mcp@0.4.0 contained:smoke
> node src/contained-smoke.mjs

Error: contained launcher returned non-JSON: exit=1 stderr=deadbyte-exec: ReadFile(stdin) failed with Win32 error 109

    at executeContainedTransform (file:///C:/Users/DEADBYTE/Downloads/deadbyte-mcp-v0.4.0/src/contained-executor.mjs:120:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async file:///C:/Users/DEADBYTE/Downloads/deadbyte-mcp-v0.4.0/src/contained-smoke.mjs:21:18
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0> npm run mcp:contained:smoke

> deadbyte-mcp@0.4.0 mcp:contained:smoke
> node src/mcp-contained-smoke-client.mjs

Error: contained_transform returned tool error: {"status":"failed","error":"Error: contained launcher returned non-JSON: exit=1 stderr=deadbyte-exec: ReadFile(stdin) failed with Win32 error 109\r\n"}
    at structured (file:///C:/Users/DEADBYTE/Downloads/deadbyte-mcp-v0.4.0/src/mcp-contained-smoke-client.mjs:40:29)
    at file:///C:/Users/DEADBYTE/Downloads/deadbyte-mcp-v0.4.0/src/mcp-contained-smoke-client.mjs:50:21
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
PS C:\Users\DEADBYTE\Downloads\deadbyte-mcp-v0.4.0>