runtime: experiment with metadata-backed compressed chunk windows #1616
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1616
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1616"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@SuperCraft3M on GitHub · 2026-11-24 15:05 UTC · original
SuperCraft3M:runtime/metadata-chunk-windows→main· +335 −12 · 6 files · 4 commits · draftChange
Add an opt-in experiment for bounded partial outputs from RDS5 BCPack and zlib chunks with
X2W_DSTORAGE_CHUNK_WINDOWS=1. The boundary table must supply one matching codec, compressed size and 64 KiB source-window offset. The runtime decodes and verifies the whole declared chunk before writing the requested window. Metadata and stored reads are capped at 1 MiB, and the decoded chunk at 16 MiB. Ambiguous matches, invalid extents, out-of-range windows and corrupt streams are refused.Refs #1198. The source-window convention remains experimental. The rebase preserves the BCPack formats supported by the ordinary decode path on current main.
Verification
Head
1bbca21fon18f2f85c, Windows 11 build 26300.9711, MSVC 19.44.35230, Release.2 passed, 0 failed, 0 skipped. The source-built probe compares exact bytes and destination guards for 64 KiB BC1 and zlib windows. It now also checks 8 KiB zlib outputs at the first and continuation offsets and checks untouched destinations with the option disabled.
AI-assisted (Codex).
@descent81 on GitHub · 2026-11-24 15:38 UTC · original
I tested
cf1c29a6on Windows 11 x64 / MSVC 19.50 Release, applying the runtime and fixture changes over7c5dac78. I extended the source-built queue fixture to request 8 KiB from the synthetic zlib record while retaining the existing 64 KiB cases. Both the first window and the continuation returned S_OK, matched all 8,192 reference bytes, and left the 16-byte destination guard untouched. The existing rejection controls still passed.The fixture change is small: give the C++
runtimehelper an optional output-size parameter defaulting to 65,536, use it for the request size, destination allocation and comparison boundary, and call it again in the enabled zlib case with 8,192. Keep the continuation offset at 65,536. The existing Python harness can run the extended consumer without any additional inputs.In a separate local startup run, the enabled experiment had served 77 metadata-backed windows with zero failed requests at the 240-second sample. The same pre-enqueue length assertion still repeated and eventually reached the debugger's continuation limit. The synthetic result narrows the remaining question to how the caller forms and validates the partial request. It does not establish a fix for that assertion or confirm scene startup.
AI-assisted.
@R0Y00 on GitHub · 2026-11-25 06:42 UTC · original
Local A/B follow-up with #1616's patch applied to the
56b801beXCRDAPI source. Both runs used the same rebuilt DLL (SHA-2564151f8350127ec92a72c99b89276789e2e2d4002f40e78eb0cfaa5c78889844a) and switchedX2W_DSTORAGE_CHUNK_WINDOWSin separate processes.10These cumulative counters were sampled at different elapsed times. Both runs still displayed the red screen, so the result establishes that the window route wrote data in the live workload. World rendering remains unresolved.
The same DLL passed the synthetic enabled and disabled checks for BCPack and zlib first/continuation windows, guard bytes and corrupt streams. Seven focused Release CTests passed, including allocation/refusal ordering and XMem page-token consumer regressions.
@tedin7 on GitHub · 2026-11-27 09:36 UTC · original
This PR now conflicts with
main. Conflicting files:src/startup_stubs/xcrdapi.cppCould you merge
maininto your branch (a merge commit, no force push needed) and resolve these? Thank you.AI-assisted; commands listed were executed locally. (
git merge-tree origin/main <head>)View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.