boot_trace: show XMem physical page requests #450

Manually merged
github merged 1 commit from gh-pr/450/head into gh-pr/450/base 2026-11-26 09:00:53 +00:00
Owner

@⁠EdenBendheim on GitHub · 2026-11-24 05:40 UTC · original
EdenBendheim:ubiq/boot-trace-xmem-physical-pages → main · +126 −9 · 3 files · 1 commits · merged 2026-11-24 08:52 UTC

Claim: #14

What changed

  • tools/boot_trace.py: Surface the first --limit xmem_physical_pages observations in trace order (API, raw 0x attribute word, requested page count, caller) in both text and JSON summaries while keeping the full count in startup.kinds["xmem_physical_pages"]. Preserves valid UTF-8 module names (including non-breaking spaces) while rejecting control characters and malformed/out-of-range values (? in text, null in JSON), and supports --limit 0.
  • tests/test_boot_trace.py: Synthetic tests covering single/multiple observations, trace order, --limit truncation including --limit 0, UTF-8 NBSP callers, and missing/malformed fields.
  • docs/boot.md: Documents xmem_physical_pages sampling and full-count retention.

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic traces, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_boot_trace.py (32/32), test_dev_boot_trace.py (5/5), check_no_game_data.py, LF check — all passed.
**@⁠EdenBendheim** on GitHub · 2026-11-24 05:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/450) `EdenBendheim:ubiq/boot-trace-xmem-physical-pages` → `main` · +126 −9 · 3 files · 1 commits · merged 2026-11-24 08:52 UTC Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 ### What changed - **`tools/boot_trace.py`**: Surface the first `--limit` `xmem_physical_pages` observations in trace order (API, raw `0x` attribute word, requested page count, caller) in both text and JSON summaries while keeping the full count in `startup.kinds["xmem_physical_pages"]`. Preserves valid UTF-8 module names (including non-breaking spaces) while rejecting control characters and malformed/out-of-range values (`?` in text, `null` in JSON), and supports `--limit 0`. - **`tests/test_boot_trace.py`**: Synthetic tests covering single/multiple observations, trace order, `--limit` truncation including `--limit 0`, UTF-8 NBSP callers, and missing/malformed fields. - **`docs/boot.md`**: Documents `xmem_physical_pages` sampling and full-count retention. ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max, Python 3.14.3 (CPU-only, synthetic traces, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_boot_trace.py` (32/32), `test_dev_boot_trace.py` (5/5), `check_no_game_data.py`, LF check — all passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:00:51 +00:00
github manually merged commit 45c99d977c into gh-pr/450/base 2026-11-26 09:00:53 +00:00
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 08:52 UTC · original

Merging. Why merged: the boot trace now lists XMem physical page requests, with sanitized input.
Why it's good: security-reviewed; on main 1c93c86: boot_trace tests 33 -> 37 (5 of the new tests fail without the fix); repo-consistency set 563/563, 0 failures.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠QemmHD** on GitHub · 2026-11-24 08:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/450#issuecomment-7126664939) Merging. Why merged: the boot trace now lists XMem physical page requests, with sanitized input. Why it's good: security-reviewed; on main 1c93c86: boot_trace tests 33 -> 37 (5 of the new tests fail without the fix); repo-consistency set 563/563, 0 failures. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.