[PR #23] Add an isolated Stage 1 splitter pilot with capture-free host tests #117

Open
opened 2026-10-31 07:01:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/23
Author: @embersas
Created: 10/25/2026
Status: 🔄 Open

Base: main ← Head: codex/stage1-pilot-public


📝 Commits (3)

  • 3416174 Codex: add isolated Stage 1 pilot with synthetic regressions
  • ae4bc6f Review Stage 1 pilot on hardened main and reject every conflicting profile
  • fe72f45 Align Stage 1 pilot review with main after diagnostic hardening

📊 Changes

22 files changed (+2230 additions, -3 deletions)

View changed files

📝 internal-boot/boot/prepare-console.c (+16 -2)
📝 internal-boot/unlock/checks.c (+1 -1)
📝 internal-boot/unlock/port.h (+5 -0)
➕ research/msi-release-pilot/README.md (+148 -0)
➕ research/msi-release-pilot/controls.py (+90 -0)
➕ research/msi-release-pilot/core.c (+198 -0)
➕ research/msi-release-pilot/core.h (+13 -0)
➕ research/msi-release-pilot/entry.c (+150 -0)
➕ research/msi-release-pilot/profile-data.h (+37 -0)
➕ research/msi-release-pilot/profile.h (+23 -0)
➕ research/msi-release-pilot/read-state.c (+140 -0)
➕ research/msi-release-pilot/stage1-diagnostics.h (+93 -0)
➕ research/msi-release-pilot/stage1-policy.h (+103 -0)
➕ research/msi-release-pilot/synthetic.py (+69 -0)
➕ research/msi-release-pilot/test-console-model.h (+241 -0)
➕ research/msi-release-pilot/test-model.h (+127 -0)
➕ research/msi-release-pilot/test.py (+69 -0)
➕ research/msi-release-pilot/test_pilot.c (+271 -0)
➕ research/msi-release-pilot/test_stage1_cases.h (+83 -0)
➕ research/msi-release-pilot/test_stage1_hooks.h (+197 -0)

...and 2 more files

📄 Description

The Stage 1 research pilot needs independently runnable tests before anyone
can assess its firmware behaviour. This adds the bounded console-splitter
pilot and a deterministic host harness that needs no private captures,
firmware downloads, Git history or binary fixtures. Stage 1 remains
hardware-untested, undeployed and unbooted. This is not an unlock or a new
supported hardware profile.

The pilot authenticates the pinned MSI X570 / ASUS RTX 3080 Ti identity and
ownership, requires explicit confirmation, permits one exact splitter
disconnect, checks the resulting state and fresh keyboard input, records
evidence and halts. Its separate authority accepts only raw IO/MEM/BME
0/1/0 with protocol attributes exactly 0x200 or 0x300. The 0x300
strict release classification remains failed; no general GPU-release,
claim, decode-restoration or unlock authority is granted.

The contribution includes two corrections developed during offline review
of this new pilot:

  • Recheck raw PCI safety after PROM-buffer allocation, before the first
    dependent read, preserving cleanup and the original failure status.
  • Record the failing phase/checkpoint and the observations actually available,
    including all 64 configuration words when valid, the first differing
    offset and expected/observed values, and attribute-read validity. Earlier
    identity rejection does not fabricate a later snapshot.

These were defects found in the local pilot, not claims about upstream main
or demonstrated MSI firmware behaviour. Stages 0 and 2-4, production MSI
enablement, installers, captures, binaries and deployment packaging are
excluded. Three narrow shared-source hooks select the isolated pilot profile,
target bus and console hash checks. Normal production profiles retain their
existing guards.

Run from a source checkout on Linux/WSL with Python 3.9+, Clang ASan/UBSan and
nm:

python3 research/msi-release-pilot/test.py --output ../stage1-host-results

Use a new output directory. The included headers are sufficient. Tests run
the real entry/core/policy/diagnostic code with simulated services and generated
data. Hash checks remain real; synthetic expected hashes are restricted to
hosted tests and rejected in freestanding builds. Generated code buffers are
never executed.

Validation from a clean source export with no Git history passed 489
adversarial cases, 55 safety/evidence cases, 15 fault-seeded virtual overlays
and 10 incompatible-build checks. The diagnostic oracle rejects missing,
duplicate or corrupted PCI words. Six production object comparisons across
the default and B660M/3070 Ti profiles were byte-identical to the pinned base.
The real-profile pilot also compiled to freestanding objects without test
overrides; no EFI image was linked or executed.

Remaining limits are explicit in the research README. Rechecks cannot make
vendor calls atomic. Simulated allocation drift does not establish a real
MSI interleaving. A late close failure can retain the same report and sidecar
as success, so the marker is not final-success or recovery proof; a test
documents this ambiguity. Artificial direct preflight-verifier reentry can
still replace the first diagnostic before emission freezes it, while the
original failure prevents effects and success. Physical Stop behaviour,
keyboard continuity, storage durability, recovery and damage risk remain
unvalidated. Any hardware run needs separate review and authorisation.

Related: #7. Diagnostic fix #6 remains separate. Checked upstream main on 26 October 2026: e3f03cd938, unchanged from the reviewed base. Open profile and USB work in #8 to #11 is not included or required by this research contribution; integration can be revisited if those changes merge.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/23 **Author:** [@embersas](https://github.com/embersas) **Created:** 10/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/stage1-pilot-public` --- ### 📝 Commits (3) - [`3416174`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/341617407b119da64eaebfca3e5ab4e7aa390e16) Codex: add isolated Stage 1 pilot with synthetic regressions - [`ae4bc6f`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/ae4bc6f6599c977e716b080b9bf2209cecf506ad) Review Stage 1 pilot on hardened main and reject every conflicting profile - [`fe72f45`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/fe72f45efe78ea097319ae6b7bf13e4afd062af7) Align Stage 1 pilot review with main after diagnostic hardening ### 📊 Changes **22 files changed** (+2230 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `internal-boot/boot/prepare-console.c` (+16 -2) 📝 `internal-boot/unlock/checks.c` (+1 -1) 📝 `internal-boot/unlock/port.h` (+5 -0) ➕ `research/msi-release-pilot/README.md` (+148 -0) ➕ `research/msi-release-pilot/controls.py` (+90 -0) ➕ `research/msi-release-pilot/core.c` (+198 -0) ➕ `research/msi-release-pilot/core.h` (+13 -0) ➕ `research/msi-release-pilot/entry.c` (+150 -0) ➕ `research/msi-release-pilot/profile-data.h` (+37 -0) ➕ `research/msi-release-pilot/profile.h` (+23 -0) ➕ `research/msi-release-pilot/read-state.c` (+140 -0) ➕ `research/msi-release-pilot/stage1-diagnostics.h` (+93 -0) ➕ `research/msi-release-pilot/stage1-policy.h` (+103 -0) ➕ `research/msi-release-pilot/synthetic.py` (+69 -0) ➕ `research/msi-release-pilot/test-console-model.h` (+241 -0) ➕ `research/msi-release-pilot/test-model.h` (+127 -0) ➕ `research/msi-release-pilot/test.py` (+69 -0) ➕ `research/msi-release-pilot/test_pilot.c` (+271 -0) ➕ `research/msi-release-pilot/test_stage1_cases.h` (+83 -0) ➕ `research/msi-release-pilot/test_stage1_hooks.h` (+197 -0) _...and 2 more files_ </details> ### 📄 Description The Stage 1 research pilot needs independently runnable tests before anyone can assess its firmware behaviour. This adds the bounded console-splitter pilot and a deterministic host harness that needs no private captures, firmware downloads, Git history or binary fixtures. **Stage 1 remains hardware-untested, undeployed and unbooted. This is not an unlock or a new supported hardware profile.** The pilot authenticates the pinned MSI X570 / ASUS RTX 3080 Ti identity and ownership, requires explicit confirmation, permits one exact splitter disconnect, checks the resulting state and fresh keyboard input, records evidence and halts. Its separate authority accepts only raw IO/MEM/BME `0/1/0` with protocol attributes exactly `0x200` or `0x300`. The `0x300` strict release classification remains failed; no general GPU-release, claim, decode-restoration or unlock authority is granted. The contribution includes two corrections developed during offline review of this new pilot: * Recheck raw PCI safety after PROM-buffer allocation, before the first dependent read, preserving cleanup and the original failure status. * Record the failing phase/checkpoint and the observations actually available, including all 64 configuration words when valid, the first differing offset and expected/observed values, and attribute-read validity. Earlier identity rejection does not fabricate a later snapshot. These were defects found in the local pilot, not claims about upstream main or demonstrated MSI firmware behaviour. Stages 0 and 2-4, production MSI enablement, installers, captures, binaries and deployment packaging are excluded. Three narrow shared-source hooks select the isolated pilot profile, target bus and console hash checks. Normal production profiles retain their existing guards. Run from a source checkout on Linux/WSL with Python 3.9+, Clang ASan/UBSan and `nm`: ```sh python3 research/msi-release-pilot/test.py --output ../stage1-host-results ``` Use a new output directory. The included headers are sufficient. Tests run the real entry/core/policy/diagnostic code with simulated services and generated data. Hash checks remain real; synthetic expected hashes are restricted to hosted tests and rejected in freestanding builds. Generated code buffers are never executed. Validation from a clean source export with no Git history passed 489 adversarial cases, 55 safety/evidence cases, 15 fault-seeded virtual overlays and 10 incompatible-build checks. The diagnostic oracle rejects missing, duplicate or corrupted PCI words. Six production object comparisons across the default and B660M/3070 Ti profiles were byte-identical to the pinned base. The real-profile pilot also compiled to freestanding objects without test overrides; no EFI image was linked or executed. Remaining limits are explicit in the research README. Rechecks cannot make vendor calls atomic. Simulated allocation drift does not establish a real MSI interleaving. A late close failure can retain the same report and sidecar as success, so the marker is not final-success or recovery proof; a test documents this ambiguity. Artificial direct preflight-verifier reentry can still replace the first diagnostic before emission freezes it, while the original failure prevents effects and success. Physical Stop behaviour, keyboard continuity, storage durability, recovery and damage risk remain unvalidated. Any hardware run needs separate review and authorisation. Related: #7. Diagnostic fix #6 remains separate. Checked upstream main on 26 October 2026: e3f03cd9389195adcabda4743d8fc2922b32498c, unchanged from the reviewed base. Open profile and USB work in #8 to #11 is not included or required by this research contribution; integration can be revisited if those changes merge. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#117
No description provided.