Files
xenia-rs/audit-runs/phase-c23-VdQueryVideoFlags/diff-jitter-2.md
MechaCat02 ef93a4fa14 handoff: VSync/event-wedge fixes + iterate 2.A–2.BC research notes
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>
2026-06-05 07:19:08 +02:00

2.3 KiB

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)
6 1 105286 441027 108507 105286 0/0 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=6 → ours_tid=1

First divergence at tid_event_idx=105286: payload.ord: canary=441 ours=77

Pre-context (last 5 matching events):

  canary: [105287] kernel.call VdGetSystemCommandBuffer
  ours:   [105281] kernel.call VdGetSystemCommandBuffer
  canary: [105288] kernel.return VdGetSystemCommandBuffer
  ours:   [105282] kernel.return VdGetSystemCommandBuffer
  canary: [105289] import.call VdSwap
  ours:   [105283] import.call VdSwap
  canary: [105290] kernel.call VdSwap
  ours:   [105284] kernel.call VdSwap
  canary: [105291] kernel.return VdSwap
  ours:   [105285] kernel.return VdSwap

Divergent event:

  canary: [105292] import.call VdGetCurrentDisplayGamma
  ours:   [105286] import.call KeAcquireSpinLockAtRaisedIrql

Next event after the divergence (if any):

  canary: [105293] kernel.call VdGetCurrentDisplayGamma
  ours:   [105287] kernel.call KeAcquireSpinLockAtRaisedIrql

Raw events (JSON):

{"deterministic": true, "engine": "canary", "guest_cycle": 0, "host_ns": 1666583800, "kind": "import.call", "payload": {"module": "xboxkrnl.exe", "name": "VdGetCurrentDisplayGamma", "ord": 441}, "schema_version": 1, "tid": 6, "tid_event_idx": 105292}
{"deterministic": true, "engine": "ours", "guest_cycle": 5584999, "host_ns": 1437632028, "kind": "import.call", "payload": {"module": "xboxkrnl.exe", "name": "KeAcquireSpinLockAtRaisedIrql", "ord": 77}, "schema_version": 1, "tid": 1, "tid_event_idx": 105286}