Source changes (dormant parity infra, retained from iterate 2.AI/2.AO): - xenia-kernel/exports.rs: nt_create_event manual_reset polarity + related event wiring - xenia-gpu/mmio_region.rs: D1MODE_VBLANK_VLINE_STATUS hardcode parity Also lands the audit-runs/ analysis notes (.md/.txt/.json digests) for the iterate 2.x VSync/0x10e8/0x1004 wedge investigation. Raw trace dumps (.jsonl/.gz/.csv/.stdout) and agent worktrees (.claude/) are gitignored as regenerable local artifacts — see memory + HANDOFF for the running findings. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
138 lines
6.4 KiB
Markdown
138 lines
6.4 KiB
Markdown
# Phase A diff report
|
|
|
|
**This report is the output of Phase A's diff harness. Divergences
|
|
shown here are INPUT for Phase B (first-divergence localization),
|
|
not findings of Phase A.** Phase A's job is to make the harness
|
|
itself correct, not to analyze what it surfaces.
|
|
|
|
## Summary
|
|
|
|
| canary_tid | ours_tid | matched | canary_total | ours_total | first_divergence_at | floating_create (c/o) | floating_wait (c/o) |
|
|
|---|---|---|---|---|---|---|---|
|
|
| 4 | 11 | 11 | 2099 | 11 | — | 0/0 | 0/0 |
|
|
| 6 | 1 | 105128 | 119455 | 108507 | 105128 | 0/0 | 1/0 |
|
|
| 7 | 2 | 32 | 32 | 33 | — | 0/0 | 0/0 |
|
|
| 12 | 7 | 4 | 374 | 5 | 4 | 0/0 | 0/0 |
|
|
| 14 | 9 | 41 | 26901 | 77 | 41 | 0/0 | 0/0 |
|
|
| 15 | 10 | 16 | 11558 | 17 | — | 0/1 | 0/0 |
|
|
|
|
*`floating_create (c/o)` counts shared-global `handle.create` events absorbed by Phase C+18 cross-tid SID matching. `floating_wait (c/o)` counts `wait.begin` events on shared-global dispatchers absorbed by Phase C+21 (scheduling-jitter window — canary's contention slow path may fire while ours fast-paths or vice versa). See schema-v1.md §"Shared-global SIDs" and §"Wait-begin floating absorb".*
|
|
|
|
## canary_tid=4 → ours_tid=11
|
|
|
|
No divergence within the 11 compared events (canary has 2099, ours has 11).
|
|
|
|
## canary_tid=6 → ours_tid=1
|
|
|
|
First divergence at `tid_event_idx=105128`: payload.ctx_ptr: canary='0xbe56bb3c' ours='0x42453b3c'
|
|
|
|
**Pre-context (last 5 matching events):**
|
|
```
|
|
canary: [105130] kernel.call KiApcNormalRoutineNop
|
|
ours: [105123] kernel.call KiApcNormalRoutineNop
|
|
canary: [105131] kernel.return KiApcNormalRoutineNop
|
|
ours: [105124] kernel.return KiApcNormalRoutineNop
|
|
canary: [105132] import.call ExCreateThread
|
|
ours: [105125] import.call ExCreateThread
|
|
canary: [105133] kernel.call ExCreateThread
|
|
ours: [105126] kernel.call ExCreateThread
|
|
canary: [105134] handle.create sid=17d8b2ba9dd4ba13
|
|
ours: [105127] handle.create sid=3562d07db6ff161d
|
|
```
|
|
|
|
**Divergent event:**
|
|
```
|
|
canary: [105135] thread.create {'handle_semantic_id': '17d8b2ba9dd4ba13', 'parent_tid': 6, 'entry_pc': '0x824cd458', 'ctx_ptr': '0xbe56bb3c', 'priority': 0, 'affinity': 4, 'stack_size': 32768, 'suspended': False}
|
|
ours: [105128] thread.create {'handle_semantic_id': '3562d07db6ff161d', 'parent_tid': 1, 'entry_pc': '0x824cd458', 'ctx_ptr': '0x42453b3c', 'priority': 0, 'affinity': 4, 'stack_size': 32768, 'suspended': False}
|
|
```
|
|
|
|
**Next event after the divergence (if any):**
|
|
```
|
|
canary: [105136] kernel.return ExCreateThread
|
|
ours: [105129] kernel.return ExCreateThread
|
|
```
|
|
|
|
**Raw events (JSON):**
|
|
```json
|
|
{"deterministic": true, "engine": "canary", "guest_cycle": 0, "host_ns": 1644146200, "kind": "thread.create", "payload": {"affinity": 4, "ctx_ptr": "0xbe56bb3c", "entry_pc": "0x824cd458", "handle_semantic_id": "17d8b2ba9dd4ba13", "parent_tid": 6, "priority": 0, "stack_size": 32768, "suspended": false}, "schema_version": 1, "tid": 6, "tid_event_idx": 105135}
|
|
{"deterministic": true, "engine": "ours", "guest_cycle": 0, "host_ns": 494758288, "kind": "thread.create", "payload": {"affinity": 4, "ctx_ptr": "0x42453b3c", "entry_pc": "0x824cd458", "handle_semantic_id": "3562d07db6ff161d", "parent_tid": 1, "priority": 0, "stack_size": 32768, "suspended": false}, "schema_version": 1, "tid": 1, "tid_event_idx": 105128}
|
|
```
|
|
|
|
## canary_tid=7 → ours_tid=2
|
|
|
|
No divergence within the 32 compared events (canary has 32, ours has 33).
|
|
|
|
## canary_tid=12 → ours_tid=7
|
|
|
|
First divergence at `tid_event_idx=4`: payload.return_value: canary=258 ours=0
|
|
|
|
**Pre-context (last 5 matching events):**
|
|
```
|
|
canary: [0] import.call KeWaitForSingleObject
|
|
ours: [0] import.call KeWaitForSingleObject
|
|
canary: [1] kernel.call KeWaitForSingleObject
|
|
ours: [1] kernel.call KeWaitForSingleObject
|
|
canary: [2] handle.create sid=c49d8f0ab90401ea
|
|
ours: [2] handle.create sid=6e3d96c5a52bf429
|
|
canary: [3] wait.begin {'handles_semantic_ids': ['c49d8f0ab90401ea'], 'timeout_ns': -30000000, 'alertable': False, 'wait_type': 'any'}
|
|
ours: [3] wait.begin {'handles_semantic_ids': ['6e3d96c5a52bf429'], 'timeout_ns': -30000000, 'alertable': False, 'wait_type': 'any'}
|
|
```
|
|
|
|
**Divergent event:**
|
|
```
|
|
canary: [4] kernel.return KeWaitForSingleObject
|
|
ours: [4] kernel.return KeWaitForSingleObject
|
|
```
|
|
|
|
**Next event after the divergence (if any):**
|
|
```
|
|
canary: [5] import.call RtlEnterCriticalSection
|
|
ours: <end of stream>
|
|
```
|
|
|
|
**Raw events (JSON):**
|
|
```json
|
|
{"deterministic": true, "engine": "canary", "guest_cycle": 0, "host_ns": 1676368000, "kind": "kernel.return", "payload": {"name": "KeWaitForSingleObject", "return_value": 258, "side_effects": [], "status": "0x00000102"}, "schema_version": 1, "tid": 12, "tid_event_idx": 4}
|
|
{"deterministic": true, "engine": "ours", "guest_cycle": 30, "host_ns": 494789418, "kind": "kernel.return", "payload": {"name": "KeWaitForSingleObject", "return_value": 0, "side_effects": [], "status": "0x00000000"}, "schema_version": 1, "tid": 7, "tid_event_idx": 4}
|
|
```
|
|
|
|
## canary_tid=14 → ours_tid=9
|
|
|
|
First divergence at `tid_event_idx=41`: payload.ord: canary=503 ours=293
|
|
|
|
**Pre-context (last 5 matching events):**
|
|
```
|
|
canary: [36] kernel.call KeReleaseSpinLockFromRaisedIrql
|
|
ours: [36] kernel.call KeReleaseSpinLockFromRaisedIrql
|
|
canary: [37] kernel.return KeReleaseSpinLockFromRaisedIrql
|
|
ours: [37] kernel.return KeReleaseSpinLockFromRaisedIrql
|
|
canary: [38] import.call KfLowerIrql
|
|
ours: [38] import.call KfLowerIrql
|
|
canary: [39] kernel.call KfLowerIrql
|
|
ours: [39] kernel.call KfLowerIrql
|
|
canary: [40] kernel.return KfLowerIrql
|
|
ours: [40] kernel.return KfLowerIrql
|
|
```
|
|
|
|
**Divergent event:**
|
|
```
|
|
canary: [41] import.call XAudioGetVoiceCategoryVolumeChangeMask
|
|
ours: [41] import.call RtlEnterCriticalSection
|
|
```
|
|
|
|
**Next event after the divergence (if any):**
|
|
```
|
|
canary: [42] kernel.call XAudioGetVoiceCategoryVolumeChangeMask
|
|
ours: [42] kernel.call RtlEnterCriticalSection
|
|
```
|
|
|
|
**Raw events (JSON):**
|
|
```json
|
|
{"deterministic": true, "engine": "canary", "guest_cycle": 0, "host_ns": 1898677900, "kind": "import.call", "payload": {"module": "xboxkrnl.exe", "name": "XAudioGetVoiceCategoryVolumeChangeMask", "ord": 503}, "schema_version": 1, "tid": 14, "tid_event_idx": 41}
|
|
{"deterministic": true, "engine": "ours", "guest_cycle": 417, "host_ns": 1694886289, "kind": "import.call", "payload": {"module": "xboxkrnl.exe", "name": "RtlEnterCriticalSection", "ord": 293}, "schema_version": 1, "tid": 9, "tid_event_idx": 41}
|
|
```
|
|
|
|
## canary_tid=15 → ours_tid=10
|
|
|
|
No divergence within the 16 compared events (canary has 11558, ours has 17).
|