Reject incomplete vkback live event batches #246

Manually merged
github merged 1 commit from github-bot/gh-246 into gh-pr/246/base 2026-12-02 18:27:03 +00:00 AGit
Owner

@⁠Omar-Alme on GitHub · 2026-12-02 15:59 UTC · original
Omar-Alme:stability/reject-truncated-live-batches → main · +62 −10 · 4 files · 1 commits · merged 2026-12-02 17:36 UTC

What

Addresses the docs/TASKS.md “Event stream” work. Decoder::decode used to silently stop when a final header or payload was incomplete; the fixed-size SLOTS and WRITTEN parsers also ignored partial trailing records. It now rejects incomplete framing. The Unix live list stage logs the malformed batch and uses its existing renderer-stop/drain path, and Live::batch logs and drops the invalid batch instead of presenting it as valid.

Reference

There is no D3D12 counterpart for this recorder-to-renderer wire framing. This hardens vkback's VICREC02 event consumer; it does not claim to implement the broader one-definition/one-decode task.

Evidence

  • cargo test --manifest-path greenfield/Cargo.toml -j 6 --locked -p vkback --lib live::liststage::tests: 4 passed. The new test truncates a valid event batch at every byte boundary and checks incomplete SLOTS/WRITTEN records after a valid event.
  • Full cargo test --manifest-path greenfield/Cargo.toml -j 6 --locked -p vkback passed with host display/GPU access; the six vkback policy tests passed.
  • cargo test --manifest-path greenfield/wine/Cargo.toml -j 6 --locked -p vkback-unix passed; cargo clippy with --all-targets -- -D warnings passed for both vkback and vkback-unix.
  • No malformed capture was available locally, so this verifies the wire-format invariant and rejection behavior rather than reproducing a specific report. No title artifacts are included.
**@⁠Omar-Alme** on GitHub · 2026-12-02 15:59 UTC · [original](https://github.com/vktory6/VKtory/pull/246) `Omar-Alme:stability/reject-truncated-live-batches` → `main` · +62 −10 · 4 files · 1 commits · merged 2026-12-02 17:36 UTC ## What Addresses the `docs/TASKS.md` “Event stream” work. `Decoder::decode` used to silently stop when a final header or payload was incomplete; the fixed-size SLOTS and WRITTEN parsers also ignored partial trailing records. It now rejects incomplete framing. The Unix live list stage logs the malformed batch and uses its existing renderer-stop/drain path, and `Live::batch` logs and drops the invalid batch instead of presenting it as valid. ## Reference There is no D3D12 counterpart for this recorder-to-renderer wire framing. This hardens vkback's VICREC02 event consumer; it does not claim to implement the broader one-definition/one-decode task. ## Evidence - `cargo test --manifest-path greenfield/Cargo.toml -j 6 --locked -p vkback --lib live::liststage::tests`: 4 passed. The new test truncates a valid event batch at every byte boundary and checks incomplete SLOTS/WRITTEN records after a valid event. - Full `cargo test --manifest-path greenfield/Cargo.toml -j 6 --locked -p vkback` passed with host display/GPU access; the six vkback policy tests passed. - `cargo test --manifest-path greenfield/wine/Cargo.toml -j 6 --locked -p vkback-unix` passed; `cargo clippy` with `--all-targets -- -D warnings` passed for both `vkback` and `vkback-unix`. - No malformed capture was available locally, so this verifies the wire-format invariant and rejection behavior rather than reproducing a specific report. No title artifacts are included.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 16:01:55 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 17:37 UTC · original

Merged, thanks: a truncated event batch is rejected loudly instead of silently stopping short.

**@⁠vktory6** on GitHub · 2026-12-02 17:37 UTC · [original](https://github.com/vktory6/VKtory/pull/246#issuecomment-7353481050) Merged, thanks: a truncated event batch is rejected loudly instead of silently stopping short.
github-bot changed target branch from main to gh-pr/246/base 2026-12-02 18:27:01 +00:00
github manually merged commit 0c6eee4cfb into gh-pr/246/base 2026-12-02 18:27:03 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.