The gate specified in the plan asserted that all six silent-loss counters read
zero, so any non-zero reading was a failure. Its first full run, on unmodified
9e3969b with no code change under it, read
visual-gate: FAIL — full mode, 3/3 probes green, counters over 4825975 B of
fail log: deferred_flush_lost=1 mapping_page_drift=1
That is the gate working, not the gate broken. The three probes are green; what
fired is one real pair of events this device has been producing all along.
Measured on x86/PCI, host GPU P8, one boot: two consecutive full gate windows
read 1 and 2, and the boot as a whole read 5 over about fifteen minutes. Every
one is the same shape — the guest re-points a 24-pixel-tall strip (1877x24 four
times, 43x24 once; at 1920 wide that is the menu bar) with no packet saying so,
page 0 of the cached list disagrees with a fresh walk, and the render is dropped
rather than landed. Four read reason=translation_moved, one no_translation.
Refusing the write is correct — landing at stale GPAs would scatter a frame into
guest memory the guest has since repurposed. Not re-landing it at the new
translation is an open defect, and it predates this gate.
So the budgets move out of the script and into `baseline.tsv`, one row per
class, each carrying the measurement that justifies it. Zero is the default and
four keep it. A class with no row is budgeted zero, so a forgotten row fails
strict rather than leaving the class unwatched. Every class that fired is named
in the verdict whether or not it was inside budget, so a PASS reading
`deferred_flush_lost=2/4` is never read as nothing lost.
Two other defects the live run found, both in the gate itself:
- `local name="$1" log="$WORK/$name.log"` does not see `$name` in the same
statement, so every run died at the first probe with an unbound variable.
- The 1-minute load average is not a settle signal until the guest has been up
longer than the average's own window. Measured on this boot: 40 s up reading
1.28, 65 s up reading 1.09, still climbing as the desktop loaded. The gate now
requires SETTLE_MIN_UPTIME (180 s) as well, read from `kern.boottime` rather
than from `uptime`'s prose — that string spells its own age "40 secs", "1 min"
and "1:23" by turns.
Component: `scripts/visual-gate`. No Rust and no device behavior.
Verified live, x86/PCI, `vm/boot-x86.sh --device reims-vgpu-pci --testing`, host
GPU at P8/180 MHz throughout:
visual-gate: PASS — full mode, 3/3 probes green, counters over 5747463 B of
fail log: deferred_flush_lost=2/2 mapping_page_drift=2/2
That run is what raised the budget from 2 to 4: it landed exactly on the
ceiling, which is not a margin. 4 is double the worst window observed.
Tests: `self-test.sh` is 14 cases now, up from 10. The two budget-boundary cases
read the boundary out of `baseline.tsv` instead of hardcoding it, so
re-measuring the standing rate moves one number in one place. Mutation-checked
as before: dropping the `^` anchor and matching route fields by prefix each fail
exactly one case.
Not verified: the menu-bar drift defect itself is recorded, not fixed. Nothing
here changes when a render is dropped.
Co-Authored-By: Claude <noreply@anthropic.com>
2.5 KiB
2.5 KiB
| 1 | # The budget each silent-loss class is allowed over one gate window. | ||
|---|---|---|---|
| 2 | # | ||
| 3 | # class<TAB>budget<TAB>the basis for that number | ||
| 4 | # | ||
| 5 | # Zero is the default and the only one that needs no argument. A non-zero | ||
| 6 | # budget is an admission that this device loses something today, and it does | ||
| 7 | # not belong here without a measurement and a reason. Never raise one to make a | ||
| 8 | # run pass; raise it only when a boot of the *unmodified* tree exceeds it, and | ||
| 9 | # say in the commit which boot. | ||
| 10 | # | ||
| 11 | # The plan that specified this gate asserted all six read zero. Two of them do | ||
| 12 | # not, and the first full run on unmodified HEAD is what said so. | ||
| 13 | deferred_flush_lost | 4 | Measured on unmodified 9e3969b, x86/PCI, host GPU P8: two consecutive full gate windows on one boot read 1 and 2, and the boot as a whole read 5 over about fifteen minutes. Every one of them is the paired consequence of a mapping_page_drift below and every one is a 24-pixel-tall strip — 1877x24 four times, 43x24 once, which at 1920 wide is the menu bar. 4 is double the worst window observed. It does not catch one extra dropped frame and nothing here claims it does; what it catches is a rail that has started dropping frames systematically, which reads in the hundreds rather than the units. |
| 14 | mapping_page_drift | 4 | The same five events, same boot, one per dropped render. Four read reason=translation_moved (the guest re-pointed a surface with no packet saying so, and page 0 of the cached list disagreed with a fresh walk) and one reason=no_translation (the task could not translate that page at all). Refusing the write is the correct answer in both — landing at the stale GPAs would scatter a frame into guest memory the guest has since repurposed — so what is lost is that the frame is dropped rather than re-landed at the new translation. That is an open defect on the menu-bar strip, not a gate artifact, and it predates this gate. |
| 15 | gw_audit_unsound | 0 | A standing alarm. Zero across the whole accumulated log to date; the gather witness refuting itself means a stale image is being served. |
| 16 | render_flush_over_guest_write | 0 | A standing alarm. Documented as expected-never; the ordering repair in flush_mapping_windows_before_fence is what keeps it so. If it fires that repair has broken. |
| 17 | tdc_overflow | 0 | Cannot fire unless REIMS_VGPU_PROBE_TILE_DIFF_CENSUS is set, and a gate run does not set it. |
| 18 | present_action_starvation | 0 | Zero across the whole accumulated log to date. MAX_UNPAINTED_PRESENTS holding the guest at the FIFO head would be a real change in backpressure behaviour. |