Files
xenia-rs/audit-runs/audit-026-mem-diff/peek_anchors.py
MechaCat02 8e709b0a24 chore: track audit-runs summary artifacts (md/csv/diff/txt/json/etc)
Snapshot of every non-log artifact under audit-runs/ from audits 003
through 058: findings.md per audit, comparison CSVs, probe diffs,
schema docs, register-dump txts, lr-trace JSONL streams, the saved
canary patch diffs, etc. ~284 files / ~52 MB total.

Excluded (per .gitignore): probe stdout/stderr/log streams (the raw
firehose), guest-memory dumps under audit-026/027/029 (4.5 GB of
.bin files; *.bin pattern added to .gitignore this commit).

Also adds the orphan audit-058-sub825070F0-activation directory that
a subagent accidentally created at project-root instead of
under xenia-rs/audit-runs/; relocated to its proper home.

Purpose: cross-machine continuity. With these summaries committed,
a fresh clone gives the next session the full per-audit context
(findings + tables + cascade predictions) without dependence on
local-only working tree.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 21:36:41 +02:00

32 lines
1.2 KiB
Python

#!/usr/bin/env python3
"""Side-by-side dword dump at named anchor addresses for both canary and ours."""
import struct, os
here = os.path.dirname(os.path.abspath(__file__))
canary = open(os.path.join(here, "canary-v80.bin"), "rb").read()
ours = open(os.path.join(here, "ours-v80.bin"), "rb").read()
V80 = 0x80000000
def dump(addr, n=16, label=""):
off = addr - V80
print(f"=== {addr:#010x} {label} ===")
for j in range(n):
a = addr + j*4
c = struct.unpack_from(">I", canary, off + j*4)[0]
o = struct.unpack_from(">I", ours, off + j*4)[0]
mark = " " if c == o else "DIFF"
print(f" {a:#010x} canary={c:#010x} ours={o:#010x} {mark}")
print()
for a, n, lbl in [
(0x828F4070, 32, "0x15e4 worker singleton"),
(0x828F4838, 32, "audit-023 listener struct"),
(0x828F3D08, 16, "0x100c dispatcher"),
(0x828F3EC0, 16, "0x1004 dispatcher"),
(0x828F48B0, 24, "audit-024A singleton-pool start"),
(0x828A3230, 16, "audio buffer-completion semaphore"),
(0x828A3254, 12, "audit-025 audio wait target"),
(0x82006CF4, 8, "audit-025 audio_system vtable"),
(0x828A6900, 24, "0x828a0000 page diff cluster"),
]:
dump(a, n, lbl)