blit: the driven boot the reason move owed, and its register row

macos-15/x86/Vulkan, three rounds of the committed workload then a clean
SIGTERM: zero `FAIL` across 27 263 lines, 167 cadence windows all `busy=0` with
139 at `direct_frac=1.00`, `walk_records_render` 301 624 over 166 windows,
129 678 draws, first guest frame presented via rail resident.

139 of 167 is the same shape the three boots before it read — 26 firmware
windows with no guest frame, two crossover windows at 0.83 and 0.90, and every
window after them at 1.00. Moving the blit reason out of a thread-local and into
the value changes no frame, which is the claim.

**No blit refusal fired in the whole boot.** That is the honest reading and it
is recorded as such: it says the change introduced none, not that the nineteen
newly-named sites were exercised. A driven desktop does not refuse blits; those
nineteen are covered at their owner.

One `slate_source_stale` episode, one frame, at `display_enable_mask 0xd -> 0xc`
— the lawful case the epoch exists for. Recorded because the three rows above it
say the class was absent, and this boot ran 167 windows against their 99.

No code change. Register row only.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Anees IqbalandClaude Opus 5 committed 2026-09-03 18:23:54 +03:00
1 parent 13f9aa4938
commit b02efcef0b
1 file changed
+1
+1
View File
@@ -190,3 +190,4 @@ claim.
| *(no register row — `d6155cf1`, the window's licence moves to the type that owns the registry)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | Recorded here because it moved a rule rather than a file, and because the comment it replaced said the rule could not be moved. `invalidate_all_resident_holders` bumped two counters and its own doc conceded that "a *new* wholesale-invalidation site that bumps only one counter is exactly the defect, and no test relates a future site to this function". `pools::WINDOW_SOURCE_EPOCH` now moves inside `ResourcePools` at the three points a published resident's promise can end — `unregister_resident` (the sole `registry.remove`), `destroy_all` (the sole `registry.drain`, bumped on the line *above* the loop that frees the images), and `Drop for ResourcePools` (the `*pools = ResourcePools::new()` path that has no `ctx` to destroy anything through). `invalidate_all_resident_holders` keeps only `RESIDENT_RESOURCE_EPOCH`, which has no such owner. A wholesale site that forgets to call it can no longer strand a window stamp. **The boot:** zero `FAIL` lines, all five `window_source_*` divergence classes still absent, 122 cadence windows all `busy=0` with 97 at `direct_frac=1.00`, `walk_records_render` 264 964 and 155 742 draws — indistinguishable from `b37b6740`'s boot on the presenting path, which is the claim, since this changes only what happens when a registry goes away. The teardown the SIGTERM drives is the `destroy_all` this commit added a bump to: QEMU exited on signal 15, the harness reverted its clone, and the fail channel stayed at zero across all 24 005 lines. Replacement coverage: `the_resident_registry_has_exactly_one_removal_and_one_drain` (a source-level count over all of `pools/`, since `registry` is a private field and a third exit added later is a use-after-free nothing in the build would relate to this rule), `the_wholesale_bump_precedes_the_destruction_it_answers_for`, and two `Drop` tests — one that a pools carrying a window source moves the stamp when it goes, one that a pools carrying none moves nothing, because every test in this crate builds one. No test moved with this row; nothing moved to `dead/`. |
| *(no register row — `1fd17c08`, the promised access)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | The window's *second* registry dependency, closed, and the boot that says the closing is free. `ResidentAccess` is the `oldLayout`, `srcStageMask` and `srcAccessMask` of the barrier the present blit builds, so a resolution whose image is right and whose access is stale is an invalid transition rather than a torn frame — and `WINDOW_SOURCE_EPOCH` vouched only for the image. `ResourcePools::set_registry_access` is now the sole writer of a resident's access and moves the epoch when the value **changes** under a published identity. On a change and not on a write, because a colour target rendered again ends in the access it was already in and a per-write bump would send every present through host memory. **The cost, which the earlier census could not bound** — it compares publish-time against present-time and cannot see a change that reverts in between, and the window's own blit write-back is exactly such a change, once per direct present. **The boot: 123 cadence windows all `busy=0`, 95 at `direct_frac=1.00`** against 97 and 89 on the two boots before it, `slate_source_stale` absent, all five `window_source_*` classes still absent, zero `FAIL` across 23 822 lines, `walk_records_render` 275 915 and 171 675 draws. The rule fires and never reaches the window: the publish that follows a bump takes its stamp after it, and the only source that can go stale is one being re-presented without a new frame. Replacement coverage: `moving_a_published_residents_access_moves_the_window_stamp`, `rewriting_the_access_a_published_resident_already_holds_moves_nothing` (eight times over — the frame-cost rule), `moving_an_unpublished_residents_access_moves_nothing`, and `the_registry_writes_a_residents_access_in_exactly_one_place`, a source-level count over all of `pools/` taking any receiver rather than a binding named `slot`. No test moved with this row; nothing moved to `dead/`. |
| *(no register row — `a9a7d515`, the window reads no registry)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | **The host window's present path no longer touches the resident registry.** `begin_present`'s two `registry_get` calls are gone and with them the presenter's whole judgement of a resident: it takes the `WindowPresentResolution` the publish produced under the engine lock and checks one atomic stamp. This is what four commits of this session were for — the window thread can never hold a `&DeviceState` (the lock one comes behind is the drain's, held for a whole render tranche at 935-979 ms per exec packet), so the registry's move to the device needed the window to stop reading it rather than to read it more cheaply. Six `SlateReason` variants become two: `no_resident`, `content_not_ready`, `not_bgra` and `geom_mismatch` were the presenter judging what it had re-resolved, and are now decided by `resident_present_decision` a frame earlier and named there as `winpub_*` on the drain's route channel. **The boot: zero `FAIL` across 21 806 lines, 99 cadence windows all `busy=0`, 73 at `direct_frac=1.00` — every window past the 25 firmware ones and the one crossover, which is the same shape as the 97/123 and 97/122 the two boots before it read** — `slate_source_stale` absent, no `winpub_*` route fired at all, first guest frame presented via rail resident (same-device zero-copy), `walk_records_render` 275 577 and 176 642 draws, clean SIGTERM teardown. Replacement coverage for the four presenter-side classification tests that moved out from under: `the_publish_names_the_first_blocker_a_resident_carries` (the same ladder at its owner, plus the every-rung-failing case saying the coarsest wins), `each_publish_blocker_has_its_own_route_name` (each rung's `winpub_*` name, and that the accepting arm returns exactly `slot_window_resolution` of the slot it accepted at the epoch it read) and `a_declined_publish_vouches_for_nothing`. The seven divergence-census tests went with the census, which after this has nothing to compare. Nothing moved to `dead/`. |
| *(no register row — `13f9aa49`, the blit refusal carries its own reason)* | `vm/boot-x86.sh --device reims-vgpu-pci --testing --rail macos-15` (x86 macOS guest, Linux/KVM host, Vulkan rail), host-driven workload (`vm/drive-desktop.sh`, three rounds of launching and quitting five applications over ssh), then a clean SIGTERM teardown | Seam 6's disconnect list names `BLIT_FAIL_REASON` — "a thread-local carrying a reason the observation channel should carry" — and this is that item, closed. The rail's 177 checks collapse into six classes, so the specific cause had to travel somewhere; it travelled in a thread-local that `br` set, every command entry cleared, and `Refusal::refusal` read back on three unchecked assumptions (same thread, before any other write, at all). It also said nothing about the nineteen sites that never called `br` — `.ok_or(BlitStatus::Capacity)?` and `return Err(BlitStatus::GuestIo)` in the buffer↔texture aspect helpers — which reached the dispatch line as `blit_unattributed`. `BlitStatus` splits into `BlitFailure` (the six classes a caller branches on) and `BlitStatus::Failed { failure, reason }`, `br` is its only constructor, and a refusal with no reason is now unspellable; the nineteen did not compile until each named the check it had been discarding. **The boot: zero `FAIL` across 27 263 lines, 167 cadence windows all `busy=0` with 139 at `direct_frac=1.00`** — the 26 firmware windows with no guest frame plus two crossover windows (0.83, 0.90) account for the rest, the same shape as the 73-of-99 and 97-of-123 the boots before it read — `walk_records_render` 301 624 over 166 windows, 129 678 draws, first guest frame presented via rail resident, clean SIGTERM teardown and revert. **No blit refusal fired at all**, which is the honest reading of this boot: it says the change introduced none, not that the nineteen new slugs were exercised — a driven desktop does not refuse blits, and the nineteen are covered at their owner instead. One `slate_source_stale` episode, one frame, at `display_enable_mask 0xd -> 0xc`: the documented lawful case (the epoch moved between the publish's stamp and the present), reported here because the three rows above record it as absent and this boot is 167 windows against their 99. Replacement coverage: `a_refusal_cannot_be_spelled_without_the_check_that_fired` (which asserts the construction rather than the old `blit_unattributed` name, because there is no site left that can produce it), `a_refusal_names_which_of_the_collapsed_checks_fired`, and eleven copy/fill-executor tests that read the channel after the status now assert both in one `BlitStatus::Failed { .. }` literal — a stronger statement than the pair was, since it says the class and the check came from the same refusal, which is exactly what the thread-local could not promise. Nothing moved to `dead/`. |