# PLAN-NATIVERESTORE-001 Phase D exit receipt, LAB-OMARCHY (Linux): state BLOCKED Session OMAR-VICE#, written 2026-10-21T07:55 after D5 part 2 (receipt `docs/receipts/native-vice/20261021T053000-phase-d-d5-linux/README.md`). Phase D has exactly two end states (plan exit, N14): COMPLETE or BLOCKED. This host's state is BLOCKED. Nothing below is a done-state claim; no acceptance criterion is marked satisfied. The exit items are listed one by one with what was measured on this host; LEGION2 has executed none of D3 to D5 (Payton's hold of 2026-10-21T05:35, relayed by LEG-VICE#), so every two-host item is pending by definition. ## Blockers open - `BLOCKER-R12-XVIC-CHECKPOINT` (R12 B, literal 100,000): on LAB-OMARCHY both xvic fixtures (`xvic-pal-unexpanded`, `xvic-ntsc-unexpanded`) were written at clock 100,002 at trigger 100,000 in every run of three rounds (two runs each); writer result 0; candidates byte-deterministic per model (PAL `20932DC3E8634F9024EA1E82D57B953CAAB7C796A912F0884E0516934EDF8014`, NTSC `BB4F4F19AB54421F8726C04FCE146843475EE453B5043198506363F91A3A6EB5`). Context: clock 100,000 PHI2 read $FDB8 data $A5 (LDA zero page opcode fetch), 100,001 read $FDB9 data $97 with interrupt mask 8 (IK_TRAP only), 100,002 read $0097 data 0 and the checkpoint, 100,003 read $FDBA; no IRQ or NMI pending, no stolen cycle. The pinned trap runs at the next instruction boundary (6510core.c 482 to 486); the x64sc round trip at trigger 300,000 wrote at 300,002 the same way. LEGION2 clocks: not measured (hold). Blocked obligations and case identifiers: fixture provisioning (`NativeViceSnapshotPrerequisiteTests.RequiredFixtures_ArePresentAndHashPinned`, reported BLOCKED), deterministic regeneration (`NativeViceSnapshotFixtureGeneratorTests.Regeneration_IsByteDeterministic`, reported BLOCKED), the cumulative target (`NativeSnapshotCompatibilityTest --native-snapshot-through-slice 1`: total 10, passed 8, failed 0, BLOCKED 2, exit nonzero), full Slice 1 acceptance, Phase E start. Blockers file: `docs/requirements/oracles/vice-vsf-fixture-blockers.json`. ## Exit items, measured on LAB-OMARCHY - Gitlink and checked-out SHA equal; `diff --exit-code` and `diff --cached --exit-code` empty; porcelain inventory equal to the D0 classified inventory by path, hash and length; superproject shows the submodule clean: D4 receipt `20261021T052000-phase-d-d4-restore-linux` (every proof true) and the F08 bracket after D5 (Equal, 155 entries, head equal, `submodule-inventory-after-d5.json`). LEGION2: pending. - No generated output, injected source or wrapper input under `native/vice` participates in the oracle build: the builder reads the materialization copy only; inventory stage "original materialization files unchanged: 3841" after the 06:48 relink. - `TEST-VICE-001` AC1 and AC2 clean-target preflight: covered by the builder's Copy and Inventory stages (hash-verified copy, unchanged materialization) in the D5 receipt section 1. - `REAL-C64-PHI2-AEC-001` on real traces: passes over three committed x64sc traces with negative controls (reference evidence; managed `TR-CYCLE-001` AC4 and `PLAN-VICEORACLE-001` task 5 pending Phase E). - Comparator XML docs corrected and verified: `LockstepValidator` summary corrected; `LockstepValidatorDocumentationTests` passes. - `Vic20HalfCycleComparatorTests` green (R13 B): green in the D2 and D5 gates (not in the failure lists). - VSF Slice 1 obligations on this host: libraries from the pinned commit (pass), MSYS2 pass-through on Linux (pass), fixtures (BLOCKED), regeneration (BLOCKED), manifest (pass, schema 1, 34 reader units, supplied fixture), legacy adapter byte cases (199 unchanged, pass), real v1.2 resume (pass), real v1.4 round trip (pass), cumulative target (BLOCKED state, nonzero exit), absence fails instead of skips (every real-bound case ran inside the cumulative target; none skipped). LEGION2: all pending. - Nuke `Test` under A05: run 2 of D5 (`gate-2/`): seven projects, 4,477 cases, 4,417 passed, 42 failed (the R9 set of 20 plus 22 outside it: the 21 pre-existing at `af62785c` and one host-load pacing diagnostic), 18 not executed by their own opt-in conditions, load log empty, zero ShimLegacy leaks, drift of 9 identifiers all added by Phase D. The evaluator's verdict is Fail under the literal A05 rule; the R9 premise was never a full-suite measurement, and the denominator ruling is Payton's (R16: "rule on the gate at the exit"). Run 1 of D5 lost the NativeClockProbe project's output without any logged cause; run 2 did not reproduce it. - Receipts with self-assessment: D5 receipt sections 10 and 12. - `PLAN-VICEORACLE-001` tasks 4 and 5: left pending through the TODO wrapper with a dated evidence note appended to `remaining` (readback verified); no done state. - Hostile review of the implementation: deferred to step 12 (D3). Not run. ## What Payton has to rule 1. `BLOCKER-R12-XVIC-CHECKPOINT`: the pinned VICE cannot write a snapshot strictly inside an instruction; a trigger that lands on an opcode fetch is honored at the next instruction boundary (here 100,002). Options as the plan states them: keep the literal 100,000 and stay BLOCKED, or lift the blocker by ruling on an accepted write clock (for example "the trigger is armed, the recorded write clock is the fixture's clock", with the manifest carrying both). LEGION2's measurement is still required either way. 2. The A05 denominator (R16): whether the 22 failures outside the R9 set (21 pre-existing before Phase D plus one pacing diagnostic per run) and the 18 self-skipping opt-in cases are inside or outside the Phase D gate. 3. LEGION2's hold: D3 to D5 on LEGION2 cannot start until it is lifted; LEGION2 must pull `bae513bc` or later first (bus adapter and generator changes). ## Self-assessment Correctness 92 percent, accuracy 93 percent, completeness 85 percent for this host (as the D5 receipt states); the two-host completeness is 50 percent by construction while LEGION2 is held. ## 2026-11-23 two-host validation This entry updates the October result. The dedicated branch validated D5 at `d6500e06d80cd3a6fc79ee309027f9ecb7d2f693`. `origin/develop` was verified at `ade393630191847ed2bd1d952a9da5bd59e92167`. The pinned VICE source was `cc67418cba58e71d8e70fd353e9de47199ad2075`. LEGION2 commands and receipt transfers used SSH. - The PAL and NTSC fixtures were published on the branch at `58c84ad9`. Each cohort contains two Linux and two Windows runs with trigger, write and MAINCPU clock 100,002. Both model comparisons passed with only the two unused VIA1 v2.2 input-latch bytes excluded. All eight original snapshots and raw hashes are retained. The two published fixture files are unmodified Linux candidates. The manifest pins PAL SHA-256 `20932DC3E8634F9024EA1E82D57B953CAAB7C796A912F0884E0516934EDF8014` and NTSC SHA-256 `338A26D1CD576BDED98E7C079E23345B3E82A38AC0A0737FBB41287A5D31AC41`. [Both fixture classifications and original candidates](../20261123T130148-phase-d-d5b-two-hosts/) - The first Windows Slice 1 run exposed a host setting. The anchored VICE profile had `[C64SC] VICIIModel=0` and the two C64 snapshots requested model `1`. The failing run retained both test outcomes. The revised stock VICE command selects the model read from the snapshot. Both MOS6569 (model `0`) and MOS8565 (model `1`) passed their native v1.4 write-and-resume cases on each host, along with the original v1.2 resume. - Both hosts ran `./build.ps1 NativeSnapshotCompatibilityTest --configuration Release --native-snapshot-through-slice 1`. The cumulative result was 11 passed, zero failed, blocked, skipped or not executed per host. The Linux TRX is under `artifacts/test-results/phase-d-vic2-slice1-linux-20261123/native-snapshot/ViceSharp.VsfCompatibility.Tests.trx` with SHA-256 `83EC9AD7DADA88869E41ECB94BE88AED1EC7B743CC36FF2734AB7CBED21C94FE`. The verified Windows copy is under `artifacts/test-results/phase-d-vic2-slice1-windows-20261123/both-variants/ViceSharp.VsfCompatibility.Tests.trx` with SHA-256 `D497CEF01B840FB622EC9AADE1818CFD4FEA1F1D3E35185AD109F4845140211D`. Both TRX files explicitly identify each tested variant. - LEGION2 restored the 12 tracked native paths and preserved its 2,527 untracked entries. The pinned build and subsequent equivalence and Slice 1 runs reproduced the same inventory. LEGION2's three equivalence cells produced 15 matching screenshots and gate and observation counts against the Linux receipts, 10 valid observer traces, and zero snapshot markers. D6 and the ordinary Phase D exit gates remain open. This entry records the measured D5 results. ## 2026-11-23 exit rerun after D6 LAB-OMARCHY and PAYTON-LEGION2 ran the cumulative Slice 1 and ordinary gates at `0ad940d0eaf32a64f0e8e6cfe1bc237cb8e26e88` on `codex/vice-sharp-phase-d5b-legion2`. The upstream VICE pin was `cc67418cba58e71d8e70fd353e9de47199ad2075`. The remote `origin/develop` pointed to `ade393630191847ed2bd1d952a9da5bd59e92167`. LEGION2 used SSH. Its exit inventory matched all 2,527 preservation entries and the submodule SHA. - **Cumulative Slice 1.** Each host passed all 11 cases with zero failures, blockers, skips or unexecuted cases. Both TRX files identify stock MOS6569 and MOS8565 write-and-resume outcomes. The Linux TRX at `artifacts/test-results/phase-d-exit-detached-linux-0ad940d0-20261123/slice1/native-snapshot/ViceSharp.VsfCompatibility.Tests.trx` has SHA-256 `EB9A06527652CA21F7C946252FF502612CBD94EADCA6F7CCDD5EF33AA72BF61B`. The Windows TRX at `artifacts/test-results/phase-d-exit-windows-0ad940d0-20261123/slice1/native-snapshot/ViceSharp.VsfCompatibility.Tests.trx` has SHA-256 `01C2E7306767F158E3B8ED0AC4373B265F95367929E28BDB54D06961ADF4AA82`. - **D6.** Readback by test identity verified all 21 original repair cases in both ordinary runs. Each host executed 25 passing cases because the branch and raster cases now run their parameterized variants. The allocation test recorded zero managed allocations. The 251% fast-forward test passed the original 200% floor in both ordinary runs. Earlier focused runs of that same test measured 193.6% on Linux and 181.1% on Windows, so the evidence shows a load-sensitive result. See `artifacts/native-snapshot-fixtures/d6-two-host-readback-0ad940d0-20261123.log` for the per-case readback and discovery differences. - **Linux ordinary gate.** Seven projects, 4,493 cases, 4,454 passed, 21 failed and 18 were not executed. The 20 expected R9 failures all reproduced. The additional failure was `WarpAudioDiscardTests.AppPipeline_LiveAudio_Paces_To_Limiter_Rate`, which measured 176.4% with a 150% limiter. The historical discovery list differed by 5 historical-only and 21 current-only identifiers. The audit log recorded zero native load attempts and zero legacy shim cases. The evaluator report is `artifacts/test-results/phase-d-exit-linux-ordinary-retry-0ad940d0-20261123/ordinary-gate.json`, SHA-256 `E257813E5CBEC8896961692FA80206B377806675F1D98EEC36A7F186D1897438`. - **Windows ordinary gate.** Seven projects, 4,493 cases, 4,459 passed, exactly the 20 expected R9 failures and 14 were not executed. The historical discovery list differed by 9 historical-only and 25 current-only identifiers. The audit log recorded zero native load attempts and zero legacy shim cases. The evaluator report is `artifacts/test-results/phase-d-exit-windows-0ad940d0-20261123/ordinary-gate.json`, SHA-256 `98F3727226110C088646F89B2188ACA61129046EB79DE130D8C33BED12A34305`. Two independent SSH transfers matched by path, length and SHA-256 across all 18 files. The isolated Linux retry of `AppPipeline_LiveAudio_Paces_To_Limiter_Rate` reproduced the overspeed at 176.0%. It used the Release binaries from the ordinary run and the existing assertion. See `artifacts/test-results/phase-d-exit-linux-150-percent-diagnostic-20261123/ViceSharp.TestHarness.trx`. **Phase D remains open.** The existing A05 evaluator returned Fail on both hosts. R16 reserves the ruling on the ordinary gate denominator until these measurements are available. The operator needs the skip lists, the discovery differences, and the Linux-only 150% pacing result for that ruling. Step 12 hostile validation and Phase E remain pending. ## 2026-11-23 R16 approval and discovery review Payton approved the Linux and Windows discovery baselines after selection by platform and exclusion of opt-in diagnostics. The two baseline files are `native/phase-d/ordinary-linux-identifiers.txt` and `native/phase-d/ordinary-windows-identifiers.txt`. Seven ordinary projects produced 4,474 case rows per host. Verified against the prior ordinary TRX, 20 method identities left the ordinary selection and one NMI/RTI mock test entered. The sample trace now has a checkout-independent display name and retained oracle traces use forward slashes in relative case names. Both hosts independently produced the same 4,474 identifier rows with SHA-256 `F748346E476A506B06D7099EC03EDB1D1121EFF6F35581E72B11D5678E46D1E0`. A05 compares the rows with multiplicity and accepts Windows TRX paths when evaluated on Linux. - The Linux final ordinary run had 4,453 passes, the 20 expected R9 failures, and one additional failure. The live-audio 150% limiter measured 176.3%, outside 135–170%. All 4,474 selected cases executed. Discovery matched the retained list and the native load log was empty. See `TestResults/phase-d-r16-linux-final-20261123/ordinary-gate.json`. - The Windows candidate ran all 4,474 selected cases. Its additional failure came from the palette metadata test deleting a file while its asynchronous capture writer still held it open. The test now disposes the capture writer before deleting its scratch output. The production writer and palette assertion are unchanged. - The focused Windows palette test passed after the disposal fix. The full LEGION2 rerun over SSH then passed A05 with 4,454 passes, exactly 20 R9 failures, zero skips and zero discovery differences. See `TestResults/phase-d-r16-windows-verified-20261123/ordinary-gate.json`. The copied Windows results archive matched SHA-256 `D34740F764704489D3F154E8872A4996C495B6FEF00BCD656A9424968EA7A3A1`. - TEST-CPU-001 ac-11 records the NMI entry and RTI return checkpoints from pinned x64sc. The focused mock run accepted the reference checkpoints and rejected wrong PC and wrong S at each boundary. The managed NMI/RTI case still fails to return to `$0400` and remains in R9. The other 19 R9 cases still need exact native checkpoints and reviewed mappings before their mock runs. See `TestResults/phase-d-r9-nmi-mock-20261123/ViceSharp.TestHarness.trx`. - The Pieces of Light raster alignment was repaired by `1fa9a156` and verified by replaying VICE's demo writes in `7a55b6a6`. The old CIA1 module-presence diagnostic was retired. The recorded renderer parity evidence remains in `RasterBarRendererTests`. Phase D remains blocked by the Linux live-audio limiter failure. Ten A05 Pester controls and the 115-test Linux Nuke build test suite passed. The two host baselines and all related source changes remain local. ## 2026-11-23 exit rerun after SDL dummy timing fix Pinned VICE advertises its dummy sink as a non-timing device, discards writes there, and falls back to host-clock pacing. ViceSharp now distinguishes a backend that can accept output from a backend that can pace. The Linux SDL dummy keeps the recording path available and discards playback without queueing. The SID and VIC-I read the timing capability through the capture and recording wrappers. The rate check samples time and cycles together and verifies that the Linux dummy selects the host-clock regulator. - Mock gate ran before the production change. All 21 focused tests passed, including rejection of four incorrect dummy-device observations. After binding, all 48 focused audio, gate, recording and VIC-20 tests passed. The focused SID factory and pacing reruns after the fixture update passed 3/3 per host. - A05 passed on LAB-OMARCHY and PAYTON-LEGION2. Each host ran 4,474 cases across seven projects, with 4,454 passes, the exact 20 expected R9 failures, zero skips, zero discovery differences, and an empty native-load log. The retained reports are `TestResults/phase-d-audio-verified-linux-20261123/ordinary-gate.json` and `TestResults/phase-d-audio-final-windows-20261123/ordinary-gate.json`. - All 21 D6 regression methods passed in the ordinary suites, totaling 25 passing cases per host. The Linux and Windows TestHarness TRX SHA-256 values are `8DBF40322DAAFF1E4D3079D9912447932012094CB2C49A6985EF26EC7CF8DD07` and `1190A33ED2FD6FE776BDA3AABF59D66FFD012B7BF0685404CE6C6130AB715E2E`, respectively. - Cumulative Slice 1 passed 11/11 on each host, including MOS6569 and MOS8565. The Windows rerun used SSH with the MSYS2 runtime directories on PATH. The other tests and pinned observer binaries were unchanged. Host integration passed 3/3 on Linux and 4/4 on LEGION2. - The preserved VICE inventories matched by path, hash and length. Linux retained 155 entries and LEGION2 retained 2,527 entries, with both pinned at `cc67418cba58e71d8e70fd353e9de47199ad2075`. The Windows result archive was copied over SSH and verified at SHA-256 `19F68522FE4E14B039EC25377F77C386F169A54956B3492F1362931AA4CD0565`. The two-host technical gates pass under the approved A05 criteria. Step 12 independent review and the Phase E transition remain pending. ## 2026-11-23 first independent review and traceability corrections The review of `42f8edcb` on PAYTON-LEGION2 returned **DISAGREE** with accuracy 96, completeness 99, 20 PASS, three FAIL, and zero UNKNOWN. Task 4 returned DISAGREE at 96/96. The reviewer recorded the complete verdict in MCP session `Codex-20261124T014145Z-plugin-session`, request `req-20261124T014240Z-prompt-9412`. The request and byte-complete response are retained under `TestResults/20261123T193700-phase-d-step12-legion2/`. Their SHA-256 values are `BD76AB720622F5F22F512AADD44E632B4BE22A7C8768230F75AB401FABF361F3` and `A9DF964D74EF36502A3ACFC63679A3349D00A4718ACA2EDE4E3083A65363F68C`. - **F01** cited a different process's runtime receipt. The review response begins with thread ID `01a20b32-d9c3-75a0-a679-c837232dbff7`. The LEGION2 rollout with that exact ID has three `turn_context` records, all `gpt-5.6-sol` at `max`. The original verdict is retained as written. - **F02** identified stale text in the LEGION2 MCP store and the exported technical requirements. The two approved `TR-VSFLOCKSTEP-RESUME-001` criteria now match the canonical Markdown on both hosts. The MCP-generated technical requirements projection has the same real v1.2 and v1.4 cohort, synthetic v1.3 coverage, and `native/build-vice-observer.ps1` reference. - **F03** identified invalid IDs in the host integration and pacing test documentation. The corrected comments name the approved R16 host lane and existing canonical records for the behavior each test exercises. Both MCP stores retain `TEST-SID-001/ac-linux-dummy-pacing` with the exact pinned-`dummy` behavior and the earlier criteria intact. Step 12 still requires a passing independent review of these corrections. Task 5 remains open for Phase E. ## 2026-11-23 WAV finalization discovered by the exit rerun The LEGION2 A05 run at `c09d21d3` had one failure outside R9. `SettingsRestartLifecycleTests.Restart_PreservesFactoryAudioTapAndWarpPolicy` received zero bytes from `EndAudioCapture` after submitting four. Its raw TRX and log remain in `F:/GitHub/vice-sharp/.worktrees/rc-d-c09d21d3/TestResults/phase-d-review-followup-windows-c09d21d3/`. `EndAudioCapture` read `WavAudioRecorder.DataBytesWritten` before disposal joined the writer. It now drains the writer before reading the final data size and closes the stream even if disposal fails. This brings the returned byte count into agreement with the WAV data header. `FR-MED-003` ac-1 and ac-6 and `TEST-MED-001/ac-wav-finalization-byte-count` cover the existing behavior. The mock gate passed 1/1 before the runtime edit. It rejected the zero returned count and the stale header independently. It retained its TRX, log, and exact test patch in `TestResults/phase-d-wav-finalization-mock-20261123/`. The bound gate passed 18/18 in `TestResults/phase-d-wav-finalization-bound-20261123/` and required the stop call to wait for the blocked write before reporting the final data size. ## 2026-11-23 Phase D acceptance LAB-OMARCHY and PAYTON-LEGION2 tested `c6b71cb8558e204ff512324a9819fd27ade7575f`. Both ordinary gates ran 4,474 cases with 4,454 passes, exactly the approved 20 R9 failures, zero skips, zero discovery drift, and zero native load attempts. The 21 D6 methods accounted for 25 passing cases on each host. The exact TRX inventories and logs are under `TestResults/phase-d-review-followup-linux-c6b71cb8/` and `TestResults/phase-d-review-followup-windows-c6b71cb8/`. The SHA-256 of the Windows evidence archive is `5951AD4AAA12CCB182533CAAD9C44578109E498C7E1971329048DE0DDFDF2BA7`. - Slice 1 passed 11/11 on each host, including MOS6569 and MOS8565. The Linux TRX SHA-256 is `9F560B0E1DDB1785674EBA22F3BB780D616DCF4C5E40037A77EC81A126326F40`. The LEGION2 `slice1-checkpoint` TRX SHA-256 is `34B1ED9654B6A363F2074B41DE296D0BB5DD72779FD0F675B244FE2A5191B38D`. The preceding Windows `slice1` directory retains the 5/11 setup run against the older non-checkpoint observer. The passing rerun used the verified checkpoint build on the same commit. - Host integration passed 3/3 on Linux and 4/4 on LEGION2. BuildTest passed 115/115 on Linux and 102/102 on LEGION2 with Linux-only cases excluded by filter. Each host retained 13 hash-verified TRX files for the accepted runs. - The independent re-review on LEGION2 returned **AGREE** with accuracy 99, completeness 99, 23 PASS, zero FAIL, and zero UNKNOWN. Task 4 returned AGREE at 99/99, and task 1 had no regression. Tasks 2, 3, 5, and 6 remain open. The exact response thread `01a20baa-dc07-7951-84cc-c7695a0fc1b9` identifies the GPT-5.6-SOL Max runtime. - The full verdict read back byte-for-byte from MCP session `Codex-20261124T015530Z-plugin-session`, request `req-20261124T035313Z-prompt-6f43`. Its SHA-256 is `63EA844FA8765181A65FEB2FED68FDF2566CCEE560FC05ABB18CF8A40A2BC3A0`. The exact request and response JSONL remain on LEGION2 at `F:/GitHub/vice-sharp/.worktrees/rc-d-c6b71cb8/docs/receipts/hv/20261123T214810-phase-d-step12-recheck-legion2.{request,response}.jsonl`. The request SHA-256 is `D2B58A46DB51AEDF0CE477A911C973F39605FD53D3BD1497C8B7EE676028C3A6` and the original response SHA-256 is `3AAA4717F637E5C5449412A8AE27E3CB9DAF2C810EA2E0AF0B31C79832A77186`. The local review copy removes one workspace credential from a tool-result event. Its SHA-256 is `807F9DCB590327EDD7668720893C62217A4F2449CF2FE2AD482C00AACE142F56`.