Keep quad pipeline keys separate after an interrupted append #575

Open
github-bot wants to merge 1 commit from github-bot/gh-575 into main AGit
Owner

@⁠christopear on GitHub · 2026-12-06 03:06 UTC · original
christopear:codex/quad-catalog-retry → main · +87 −4 · 2 files · 1 commits · open

A missing final newline in quad-pipelines.txt can silently drop two previously observed variants from the next warm-up.

For example, write a complete key A without its newline and let the next save append B. The reader then sees one 64-character line. Neither key matches the exact membership check in listed(). A partial final key can similarly hide the next valid one. The base recipes and shader blobs remain intact.

This checks the last byte on the append handle and prefixes the batch with a newline only when needed. Checking on each append also covers a retry after the in-memory index was built. Existing bytes are preserved. Empty, LF and CRLF files retain their usual layout. I/O errors still put the batch back for retry.

This is the existing quad variant catalog on main, separate from the optional draw history in #435. It prevents new joins and does not try to reconstruct lines already joined in older files. It assumes the existing single-writer model and requires read access to the append handle.

Verification

  • On 459db13 with just the two regression cases added, both failed in three fresh processes. One covers reopening an unterminated complete key. The other forces an append failure and models a partial tail before retry with the same index.
  • With the fix, all four catalog retry tests passed in five fresh processes. The additional case covers absent and empty files.
  • Windows MSVC release tests under offline Proton Experimental on an RTX 3090. The standard larp-gpu library suite passed 34 tests. Five additional opt-in D3D12 tests passed. The native Windows identity test and populated-cache benchmark were skipped.
  • The diagnostics-enabled library suite also passed all 34 standard tests.
  • No game assets or real caches were used. No native Windows or gameplay timing claim.
**@⁠christopear** on GitHub · 2026-12-06 03:06 UTC · [original](https://github.com/gamingwithhomie/larp/pull/575) `christopear:codex/quad-catalog-retry` → `main` · +87 −4 · 2 files · 1 commits · open A missing final newline in `quad-pipelines.txt` can silently drop two previously observed variants from the next warm-up. For example, write a complete key A without its newline and let the next save append B. The reader then sees one 64-character line. Neither key matches the exact membership check in `listed()`. A partial final key can similarly hide the next valid one. The base recipes and shader blobs remain intact. This checks the last byte on the append handle and prefixes the batch with a newline only when needed. Checking on each append also covers a retry after the in-memory index was built. Existing bytes are preserved. Empty, LF and CRLF files retain their usual layout. I/O errors still put the batch back for retry. This is the existing quad variant catalog on main, separate from the optional draw history in #435. It prevents new joins and does not try to reconstruct lines already joined in older files. It assumes the existing single-writer model and requires read access to the append handle. ### Verification * On `459db13` with just the two regression cases added, both failed in three fresh processes. One covers reopening an unterminated complete key. The other forces an append failure and models a partial tail before retry with the same index. * With the fix, all four catalog retry tests passed in five fresh processes. The additional case covers absent and empty files. * Windows MSVC release tests under offline Proton Experimental on an RTX 3090. The standard larp-gpu library suite passed 34 tests. Five additional opt-in D3D12 tests passed. The native Windows identity test and populated-cache benchmark were skipped. * The diagnostics-enabled library suite also passed all 34 standard tests. * No game assets or real caches were used. No native Windows or gameplay timing claim.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 03:11:02 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/575/head:github-bot/gh-575'
git switch 'github-bot/gh-575'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-575'
git switch 'github-bot/gh-575'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-575'
git switch 'github-bot/gh-575'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-575'
git switch 'main'
git merge --squash 'github-bot/gh-575'
git switch 'main'
git merge --ff-only 'github-bot/gh-575'
git switch 'main'
git merge 'github-bot/gh-575'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.