From 85150268609cc775c58eab952cead2deccd62ed8 Mon Sep 17 00:00:00 2001 From: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta Date: Sun, 2 Aug 2026 02:15:52 -0400 Subject: [PATCH] docs(terminal): keep split slicing mutations package-scoped Co-authored-by: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta Signed-off-by: npub1mprnacetjua2xx3p5eddmhxyk6wv929ymm5py8kd2xfxurxahspqqlgyta --- desktop/src-tauri/crates/buzz-terminal/tests/slicing.rs | 9 +++++++++ .../crates/buzz-terminal/tests/slicing_adversarial.rs | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/desktop/src-tauri/crates/buzz-terminal/tests/slicing.rs b/desktop/src-tauri/crates/buzz-terminal/tests/slicing.rs index 3a3834404..e027bfbc1 100644 --- a/desktop/src-tauri/crates/buzz-terminal/tests/slicing.rs +++ b/desktop/src-tauri/crates/buzz-terminal/tests/slicing.rs @@ -1,6 +1,15 @@ //! The work-denominated slicing seam: what bounds one lock hold, what bounds //! the queue behind it, and what proves the work was actually done. //! +//! **This is half a suite.** The adversarial resize and overflow cases live +//! in `slicing_adversarial.rs`, split out for the file-size ratchet; the two +//! files are one set of contracts. A mutation check scoped with +//! `--test slicing` covers 20 of 76 package tests and can report a confident +//! pass while the killing fixture sits in the sibling file. Dropping the +//! scrollback debt does exactly that, then dies under the package. +//! +//! Mutation checks run the package, never a file: `cargo test -p buzz-terminal`. +//! //! Every assertion here is an **exact** expected value, never a `> 0`. A fix //! that bounds the lock by *dropping* work instead of deferring it reports a //! beautiful latency and a perfect screen-content receipt -- DECALN fills the diff --git a/desktop/src-tauri/crates/buzz-terminal/tests/slicing_adversarial.rs b/desktop/src-tauri/crates/buzz-terminal/tests/slicing_adversarial.rs index 6bf7c1d96..c70402d7c 100644 --- a/desktop/src-tauri/crates/buzz-terminal/tests/slicing_adversarial.rs +++ b/desktop/src-tauri/crates/buzz-terminal/tests/slicing_adversarial.rs @@ -1,4 +1,13 @@ //! Adversarial slicing cases for resize debt, oversized atoms, and arithmetic extremes. +//! +//! **This is half a suite.** The remaining work-bound cases live in +//! `slicing.rs`; the two files are one set of contracts split only for the +//! file-size ratchet. A mutation check scoped with `--test slicing_adversarial` +//! covers 4 of 76 package tests and can report a confident pass while the +//! killing fixture sits in the sibling file. Sizing from the whole budget does +//! exactly that, then dies under the package. +//! +//! Mutation checks run the package, never a file: `cargo test -p buzz-terminal`. use buzz_terminal::fences::{ max_atom_work, max_drain_work, slice_bytes_remaining, Fences, WORK_BUDGET,