Keep quad pipeline keys separate after an interrupted append #575
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!575
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-575"
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?
@christopear on GitHub · 2026-12-06 03:06 UTC · original
christopear:codex/quad-catalog-retry→main· +87 −4 · 2 files · 1 commits · openA missing final newline in
quad-pipelines.txtcan 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
459db13with 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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.