`crates/reims-vgpu` (both backends; the type is pure logic and its tests run on
every arm), plus the hang-bisect harness under `scripts/app-sweep-probe/`.
# The device change
`BufferWriteGens` hands a reader a `(epoch, gen)` stamp and answers
`quiet_since` by comparing both. The epoch exists so that a *forgetting* cannot
read as "unchanged": the whole-map clear at `MAX` bumps it, and the doc says why
in the direction that matters — an object forgotten silently reports a cache hit
for a window whose bytes moved.
`retire_task` forgot without bumping. Dropping `(5, 7)` at generation 3 and
letting a later task 5 declare three writes to a later object 7 puts the counter
back at 3 under an unchanged epoch, so a stamp taken before the retire compares
equal to one taken after across entirely unrelated bytes. The existing
`retiring_a_task_forgets_its_objects` did not catch it because it retired at
generation 1 and compared against 0, which differs by luck of the count.
Bumped, and only when an entry actually went — retiring a task that declared no
writes must leave every other reader's stamp alone, or task teardown by itself
would report every window as dirty.
Nothing decides a skip on this today; it is the instrument that would license a
content cache, so a false-quiet here is a wrong answer to the question "may a
cache serve these bytes again".
# The harness change
`hang-bisect.sh` took one `NAME=value` per arm and unset three variables by
name. It now accepts comma-joined pairs, so a single boot can run with every
narrowing switch off at once — which is the first question to ask of a hang, and
cheaper than bisecting a set that may contain no cause at all. The clear now
derives its list from the environment rather than from three names written here,
which could not go stale before and now cannot.
# Verified
`a_stamp_that_straddles_a_retire_is_not_quiet` and
`retiring_an_untracked_task_leaves_every_stamp_alone` added; the first confirmed
red with the epoch bump stubbed out (6 passed, 1 failed) and green with it.
`cargo test --lib` filtered to the module: 7 passed. Clippy `-D warnings` clean
on all three arms — `backend-metal` via `--target aarch64-apple-darwin`,
`backend-vulkan,host-window` native and via `--target x86_64-unknown-linux-gnu`.
Not verified: no live boot. The harness change is untested against a real arm
and is exercised for the first time by the run that follows this commit.
Co-Authored-By: Claude <noreply@anthropic.com>