docs/xdxr: the title's XboxBvhBuilder arguments and the rehydrate contract #1954

Closed
BubsMcgee wants to merge 1 commit from upstream-pr/1954 into main
BubsMcgee commented 2026-11-25 16:40:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by BubsMcgee on 2026-11-25T16:40:30Z.


Docs-only; measurement from the local package, no game data.

What

  • docs/xdxr.md §6: what the retail executable passes to the seven XboxBvhBuilder.dll imports, measured from the
    file alone — 27 call sites, the ctor bool (false) and the exact 0x18-byte object, a null stream at all three
    prebuild calls, an all-zero stream in every batched element, COMPACT at both copy calls, and the 16-desc
    rehydrate batches with their source array and ScratchAccelerationStructureData = 0.
  • docs/xdxr.md §7: the DLL's rehydrate contract — the build-input hash compared with Source + 8, the
    0x01000000 header bit, and the source array overriding desc.Source.
  • docs/selective_re.md: the REA + Ghidra setup and the isolated, question-driven RE plan, linked from
    docs/README.md.

Only counts, constants and call shapes are recorded, as in docs/xmem_exe_calls.md.

Why

It closes the last open item in docs/xdxr.md §5 (whether the title ever passes a stream desc: it never does) and
gives #1759 the shape it has to serve. The measured Scratch = 0 is why that rebuild currently trips the layer's
address check and gets its command list refused at Close/Execute; the same facts are posted as a finding on
#1759 rather than a competing implementation.

Tests

  • python -I tests/test_docs_links.py and the other tests/test_docs_*.py suites
  • python -I scripts/check_no_game_data.py docs/selective_re.md docs/xdxr.md docs/README.md

AI-assisted (opencode). Claimed as XDXR-TITLE-CALL-ARGS in the coordination issue.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5495302713 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1954). Originally posted by [BubsMcgee](https://github.com/BubsMcgee) on 2026-11-25T16:40:30Z. --- Docs-only; measurement from the local package, no game data. ## What - `docs/xdxr.md` §6: what the retail executable passes to the seven `XboxBvhBuilder.dll` imports, measured from the file alone — 27 call sites, the ctor bool (`false`) and the exact `0x18`-byte object, a null stream at all three prebuild calls, an all-zero stream in every batched element, `COMPACT` at both copy calls, and the 16-desc rehydrate batches with their source array and `ScratchAccelerationStructureData = 0`. - `docs/xdxr.md` §7: the DLL's rehydrate contract — the build-input hash compared with `Source + 8`, the `0x01000000` header bit, and the source array overriding `desc.Source`. - `docs/selective_re.md`: the REA + Ghidra setup and the isolated, question-driven RE plan, linked from `docs/README.md`. Only counts, constants and call shapes are recorded, as in `docs/xmem_exe_calls.md`. ## Why It closes the last open item in `docs/xdxr.md` §5 (whether the title ever passes a stream desc: it never does) and gives #1759 the shape it has to serve. The measured `Scratch = 0` is why that rebuild currently trips the layer's address check and gets its command list refused at `Close`/`Execute`; the same facts are posted as a finding on #1759 rather than a competing implementation. ## Tests - `python -I tests/test_docs_links.py` and the other `tests/test_docs_*.py` suites - `python -I scripts/check_no_game_data.py docs/selective_re.md docs/xdxr.md docs/README.md` AI-assisted (opencode). Claimed as `XDXR-TITLE-CALL-ARGS` in the coordination issue.
MoonEyes commented 2026-11-28 02:49:29 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T02:49:29Z.


Hi @BubsMcgee, thanks for this pull request. It currently conflicts with main (conflicting file(s): docs/README.md), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232617186 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1954#issuecomment-7232617186). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T02:49:29Z. --- Hi @BubsMcgee, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `docs/README.md`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 10:58:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T10:58:43Z.

Review: CHANGES_REQUESTED


The measured XboxBvhBuilder.dll call-site and rehydrate contract documentation in docs/xdxr.md and docs/selective_re.md is clean-room compliant and helpful, but requesting changes for merge readiness:

  1. Merge conflict: Currently conflicts with main in docs/README.md.
  2. No CI runs: No CI checks have run on head 2562683c.

Please rebase onto current main and ensure change-scope and no-game-data pass cleanly.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6129893397 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1954#pullrequestreview-6129893397). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T10:58:43Z. **Review:** CHANGES_REQUESTED --- The measured `XboxBvhBuilder.dll` call-site and rehydrate contract documentation in `docs/xdxr.md` and `docs/selective_re.md` is clean-room compliant and helpful, but requesting changes for merge readiness: 1. **Merge conflict:** Currently conflicts with `main` in `docs/README.md`. 2. **No CI runs:** No CI checks have run on head `2562683c`. Please rebase onto current `main` and ensure `change-scope` and `no-game-data` pass cleanly. *(AI-assisted review.)*
MoonEyes commented 2026-12-02 11:49:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T11:49:06Z.


Closing: this pull request no longer applies to current main (merge conflict in docs/README.md), and open pull requests that have fallen out of step with main are being closed so the list stays workable. If you still want this change, rebase it on current main and reopen it (or open a new pull request); it will be looked at again.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7344448606 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1954#issuecomment-7344448606). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T11:49:06Z. --- Closing: this pull request no longer applies to current `main` (merge conflict in `docs/README.md`), and open pull requests that have fallen out of step with `main` are being closed so the list stays workable. If you still want this change, rebase it on current `main` and reopen it (or open a new pull request); it will be looked at again. AI-assisted (Claude Code).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1954
No description provided.