loader: content-address PreparedImage with cached hash and synced staging (D3D12-LOADER-CONTENT-ADDRESSED-IMAGE) #2890
Code
Clone this repository
Checkout
From your project repository, check out a new branch and test the changes.
git fetch -u origin "github-pr/2890:github-pr/2890" git switch "github-pr/2890"
Open
leonida/mandy
djrolfes wants to merge 1 commit from
github-pr/2890 into main
pull from: github-pr/2890
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2890
Loading…
Reference in a new issue
No description provided.
Delete branch "github-pr/2890"
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?
This branch is out-of-date with the base branch
Reviewers 0 approvals
Details
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Claimed in the coordination issue as:
D3D12-LOADER-CONTENT-ADDRESSED-IMAGE.What and why
Content-address
PreparedImage::file_name()by a cached full BLAKE3 hash of the prepared bytes, sync staging files to disk before the atomic rename, and add a content-addressed fast path inpublish::write_content_addressed()(d3d12/crates/leonida-loader/src/{prepare.rs,publish.rs,windows.rs}).main,PreparedImage::file_name()keys the cached DLL on the first 16 hex chars oforiginal_hash(leonida-image-<16hex>.dll). If loader preparation bytes change for the same title build, the cached filename collides with the stale DLL.publish::write_if_changed()reads the entire ~115–200 MB prepared DLL back from disk into aVec<u8>just to byte-compare it againstprepared.bytes.prepare.rs: computes and cachespub prepared_hash: blake3::Hashonce insideprepare().PreparedImage::file_name(&self)delegates tocrate::publish::content_addressed_name(&self.prepared_hash)(leonida-image-<64hex>.dll), so neitherwindows.rs::loadnorapps/leonida/src/run.rsre-hashesprepared.bytes.publish.rs:write_staging()(File::create→write_all→sync_all, cleaning up the staging file on error) BEFOREpublish_staging()performs the atomic rename, preventing crash/power-loss from leaving a same-size zero-filled file at the content-addressed path.write_content_addressed(path, bytes, hash)which skips re-reading disk when the filename matchescontent_addressed_name(hash)andmetadata(path)confirms a regular file of the exact byte length, falling back towrite_if_changed()otherwise.windows.rs: passes&prepared.prepared_hashintocrate::publish::write_content_addressed, ensuringprepared.bytesis hashed exactly once per launch.LEONIDA_WRITE_SITEScaches keyed by the old 16-heximage_namewill regenerate once under the new 64-hex name; priorleonida-image-*.dllcache entries from earlier builds remain untouched in the cache directory.VirtualProtectbatching is split into its own separate PR (D3D12-LOADER-BATCHED-IAT-PROTECT, verified clean merge viagit merge-tree).prepare.rs,publish.rs,windows.rs) + fresh red→green unit tests + MEASURED 300 s in-world game gate.Tested
python3 -I scripts/check_no_game_data.py d3d12/crates/leonida-loader/src/prepare.rs d3d12/crates/leonida-loader/src/publish.rs d3d12/crates/leonida-loader/src/windows.rs→ exit 0.cargo clean -p leonida-loader --target x86_64-pc-windows-msvc)leonida-loaderunit test binary (x86_64-pc-windows-msvc) and ran under Wine:origin/main(only the new testprepare::tests::file_name_uses_full_blake3_of_prepared_bytesapplied):262439781(rebased onto3e7b34a52):git merge-tree --write-tree HEAD pr/loader-batched-iat-protect→ clean merge (zero conflicts withD3D12-LOADER-BATCHED-IAT-PROTECT).262439781, Series S + DLSS Quality1280×720 → 1920×1080, Option Amods/gate_drivermode = roamloaded):310.03 sin-world after world entry at68.77 s; also passed an earlier cold-cache 310.18 s run with0errors).3,275frames after +60 s (3,382total world presents),15.98median FPS (16.37end median FPS),111.22 msp95 frame time,4.433 slongest present gap (<= 10.0 s).6,686 MiBpeak VRAM (<= 7,400 MiB),0device losses (0x887A0005),0crashes,0panics,0faults before stop,0kernelNVRM: Xiderrors.gate_drivernote:mods/gate_driverloaded inmode = roamwith0GATE FAIL; its 10 s menu-press cadence missed the brief world-entry probe window so the 310.03 s run stayed on the in-world camera cleanly at15.98FPS.GPUs tested: NVIDIA GeForce RTX 3070 Ti 8 GB, driver 620.73.04, Arch Linux (Wine 11.22 + VKD3D-Proton 3.2.0).
AI-assisted: yes (authored by Gemini 4 Neon; independent fresh review pass by a separate Gemini 4 Neon agent requested
File::sync_all()before rename and cachingprepared_hashonce onPreparedImageto eliminate triple hashing, addressed and approved in re-review).Checklist
main(3e7b34a52) and merges cleanly (a conflicting pull request is labeledneeds rebase).check_no_game_data.pyclean on both source and PR description).docs/design.md, with how it was confirmed. (n/a — loader image cache naming & synced content-addressed publish fast path)Independent prepared-image publication and retry check at 26243978 + 0ff8a532f, using the Win64 test binary under Wine 11.22. The 7 prepare tests including my integration case and all 5 publish tests passed.
I used the linked test executable as input. Two originals with different checksum bytes converge to identical prepared bytes and the same content-addressed name. Two distinct prepared payloads of exactly the same length instead publish to separate names. Four concurrent writers, two per name, left both payloads byte-for-byte correct and no staging files.
I then truncated one published file and held it open without delete sharing. Publishing returned PermissionDenied and left no staging file. Closing the reader and retrying repaired the truncated file while the other cache entry stayed byte-identical. This exercises the recovery path for a size mismatch with live Windows sharing semantics under Wine. Same-length corruption and power-loss durability were outside the fixture.
MEASURED with synthetic inputs. AI-assisted (Codex).
Verified on native Windows 11 (MSVC target, rustc 1.98.1, NTFS), since the runs in the description are under Wine.
Head
262439781merged withmaind2a564b66(clean merge):cargo test -p leonida-loader --lib: 86 passed, 0 failed, including the threerename_denied_*/ staging tests that matter most on Windows.cargo clippy -p leonida-loader --all-targets: no warnings in the loader.Both new tests catch their change:
original_hash[..16]name put back,file_name_uses_full_blake3_of_prepared_bytesfails (left: "leonida-image-4976ea11133df67f.dll");m.len() == bytes.len()check removed from the fast path,content_addressed_fast_path_requires_matching_name_and_sizefails atpublish.rs:103(the short file is kept).What the fast path saves here. I timed the two paths on a 114.7 MB file (the size
run.rsmentions), release build, file already in the OS cache, three runs:main'swrite_if_changed(read back + compare)write_content_addressed(metadata only)sync_all+ rename)blake3::hashof the prepared bytes, once per launchSo with a warm cache the launch saves about 15-20 ms net, since the new hash costs about half of what the skipped read-back cost. With a cold cache the read-back costs more, so the saving should be larger. I did not measure that.
Two notes, neither blocking:
sync_allbefore the rename covers a crash during publish. It does not cover a file changed later by something else, but a hash check would mean reading the file again.mainreused one name per title build, so a loader change toprepare()overwrote the old copy. Now each distinct prepared image keeps its own ~115 MB file inimages/.prepare.rshas changed twice this month, so it grows slowly. A cleanup of otherleonida-image-*.dllfiles after a successful publish might be worth a follow-up.Not checked: the game, and a cold-cache launch.
GPUs tested: n/a (CPU and file system tests only).
AI-assisted: yes (Claude Code).
This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).
Could you, or anyone with a working setup, post a run report on the current head merged onto current
main:mainSHA it was merged onto;mainalone for comparison, if you can.Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.
AI-assisted (Claude Code).
Code review only, not built (
leonida-loader'swindows.rspath is Windows-only). CI is red, but not because of this change. There is one design concern.262439781, merge base3e7b34a52, 493 behind currentmain45dc41f95. A trial merge is clean.linux-python-and-viewerandcheckfailed, whiled3d12 (windows-latest)passed. The failures are intests/test_wave_diff.py,test_piecewise_parse.py,test_wave_trace.pyandtest_x64_recomp*.py, withTypeError: WaveRef._check_vgpr_dst() missing 1 required positional argument: 'dst'fromtools/cpu_ref.py. These are Python tools this PR does not touch, somainwas broken when the run started (1 December 15:37). On currentmain45dc41f95,python3 -I tests/test_wave_diff.pypasses here. Rebasing or re-running CI should clear it.Review (
prepare.rs,publish.rs,windows.rs):write_stagingnow callssync_allbefore the atomic rename and removes the staging file on a write or sync error. That is an improvement on its own.write_content_addressedskips the content check when the name matches andlenmatches. The testcontent_addressed_fast_path_requires_matching_name_and_sizepins that a same-length different file is kept. That is an executable image the runtime thenLoadLibrarys.mainre-read the file and rewrote it on any difference, so a damaged or tampered copy healed itself. Now one with the right length persists until the user clears the cache. The saving is one sequential read of an image already in the page cache. I would hash the file on disk (BLAKE3 is fast at hundreds of MB/s), or keepwrite_if_changed's comparison, rather than trust the name.leonida-image-<16 hex>.dllfiles from earlier builds are left behind in the cache folder. A one-line cleanup or a note would help.Verdict: blocked-CI (re-run needed; the failure is unrelated). On the code, the fast path should verify content or be dropped before merge.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
RUN (independent run on Windows, head
2624397813775c1cdd7e09154852d776aedacb6a, merged intomainb41763227aeed2d23c98af84bcbc1bddc7acdc90withgit merge --no-ff)The merge was clean (no conflict). The PR changes only
d3d12/crates/leonida-loader/src/{prepare,publish,windows}.rs, so theleonida-gpusuite and the diagnostics feature are not touched by it. I ran the loader instead. No Python test is touched.Green
cargo test -p leonida-loader --release --locked --libon the merge: 92 passed, 0 failed. This includesfile_name_uses_full_blake3_of_prepared_bytesandcontent_addressed_fast_path_requires_matching_name_and_size, plus the existingrename_denied_*and concurrent-publisher tests.cargo check --release --locked -p leonida(the app that callsPreparedImage::file_name()inrun.rs): builds, no error.leonida-gpu: nothing in this change reaches it.Red
The two new tests only cover
prepare.rsandpublish.rs, and a straight swap of those files back tomain's version does not compile with them (prepared_hashandwrite_content_addresseddo not exist onmain), so I used targeted mutations of the new code instead. Each was run alone and reverted.file_name()back to the first 16 hex oforiginal_hashfile_name_uses_full_blake3_of_prepared_bytesprepared_hashcomputed overoriginalinstead of the prepared byteslencheckcontent_addressed_fast_path_requires_matching_name_and_sizesync_all()removed fromwrite_stagingSo the naming and the fast-path guard are pinned. The two durability properties are not: nothing checks that the flush happens before the rename, nor that the staging file is cleaned up after a failed write. This agrees with the existing review comment about
sync_all.Review
docs/switches.mddoes not need regenerating. The change is always on, but it only affects the cache file name and how the cached copy is published, not rendering.prepared_hashis computed once at the end ofprepare()from the final bytes, andwindows.rs::loadwrites the file beforeLoadLibraryExW.write_stagingsyncs beforepublish_stagingrenames. Correct as written.mainre-read and rewrote it. This is a real behaviour change for an image that is then loaded as code. Three reviewers already raised it (hash on disk, a sidecar, or at least a doc comment). It is not resolved on this head.leonida-image-<16hex>.dllfiles and stale.tmpstaging files are never removed, and every distinct prepared image keeps its own copy of roughly 115 MB. Already raised in the thread; a follow-up cleanup is the natural place.D3D12-LOADER-CONTENT-ADDRESSED-IMAGE, linked to a comment on issues/2570. I did not re-read the coordination tables.linux-python-and-viewerandcheckruns come from Python tools this PR does not touch, as noted in the thread (mainwas broken when the run started). Thed3d12 (windows-latest)job passed.main, with a comparison againstmain. None is posted for a native Windows run or on the currentmain.Not covered
sync_allordering, and no test for same-length corruption beyond the one that pins keeping it.leonida-gpunot run, because the PR does not touch them.Verdict
PARTIAL. The code does what it says and the new tests catch the naming and fast-path changes, but the
sync_allordering is unpinned, the same-length corruption trade-off is still open, and in-game run still required (none posted on this head merged onto currentmain).AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.
RUN (in game, gate-style): head 262439781 tested in a batch of nine pull requests: #2609 (3fbcacc4e), #2654 (f4ae7b922), #2686 (4ce795127), #2823 (854796496), #2841 (24ff8f24c), #2890 (262439781), #3154 (854fc3441), #2588 (598930e5b) and #3119 (6097c033c), merged in that order with
git merge --no-ffontomainf3865cae8. One conflict, in the credit table ofd3d12/README.mdwhen #2588 went in (both rows kept); no code conflict. Files touched by more than one of the nine:d3d12/docs/switches.md(#2686, #3119, #3154) andd3d12/README.md(#2588, #3119). Built withdiagnostics,mimalloc, targetx86_64-pc-windows-msvc. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300).Launcher defaults except
-PrecompileUsed, Series S settings,-NoDlss -NoFrameGen, standing at the save. On thismainthe launcher precompiles every recorded pipeline by default (88,671 here: a first warm-up with the plain defaults had made 9,000 of them after 660 s when it was stopped), so the runs use-PrecompileUsed(the 2,455 pipelines earlier runs drew with). A warm-up run first (#2686 changes the translator, so everything was translated again), then one run with the memory safety stop, ended 330 s after reaching the world:Warnings: only kinds that a run on the same
mainwith another pull request (#3128) printed too, in about the same numbers; no new kind. No pipeline refused other than the 29 "creation method that is not implemented" lines that run has as well. The last frame saved (8192) shows the world drawn normally.This pull request's own lines: the prepared images are now named by their full content hash: the six images mapped in the run all have 64-hex names (
leonida-image-<64 hex>.dll), beside the 16-hex names an older build had left in the copied data folder. With shaders and pipelines already made, the game process started 12 s after the launcher.Verdict: PASS for the batch (a pass covers each of the nine; a failure would not have said which). Not covered here:
-RayTracing, DLSS and frame generation, other GPUs, Wine/Proton.AI-assisted: Claude Code (Claude Opus 5.5)
VERIFY-2890 —
leonida-loaderen verde, y el cambio es de los que se pueden contarTres ficheros,
prepare.rs+22,publish.rs+66,windows.rs−6, cinco días abierto:El cambio, por su título: direcciona por contenido el
PreparedImagecon un hash cacheado y prepara el staging de forma sincronizada — dos cosas que en un caché van juntas: la clave (hash) y la escritura (staging). Un cache keyed by content without a synchronised write produces the classic race, y elwindows.rsque pierde seis líneas sugiere que la sincronización estaba en otro sitio y se movió al que corresponde.Lo que verifiqué: 86 tests del crate en su head, y que el diff toca tres ficheros con el mismo tema.
Lo que no: la carrera de verdad — un test de concurrencia en un caché de ficheros necesita dos procesos peleando por el mismo directorio, y un
#[test]no lo hace. Si el autor tiene un test que lanza dos hilos contra el mismopublish, es el que importa y está en los 86; si no lo tiene, esto es un cambio de plomería verificado por su forma y no por su comportamiento.Y la pregunta que le haría, en una línea: si el hash cacheado se invalida cuando el
PreparedImagecambia en sitio — porque un hash que se guarda y no se recalcula es un caché que devuelve la imagen anterior, que es peor que el que no cachea.