test: T-A38 root-cause proof — >768 KiB snapshot succeeds because duress rides its own frame The single test that proves the root-cause fix for the frame-ceiling bug, not just the new wire path. Combines the high-level end-to-end success assertion (T-A33) with the structural proof (T-A34): a payload whose combined raw exceeds the 768 KiB wire ceiling succeeds because the duress slot rides its own frame instead of piggybacking on the entries final chunk. Pre-v4.6.4, duress counted against the entries frame, so a single frame would exceed SNAPSHOT_FRAME_WIRE_CEILING and the receiver would reject the whole snapshot with ADOPT_SNAPSHOT_CHUNK_TOO_LARGE. T-A33 alone proves the high-level success; T-A34 alone proves the structural shape; T-A38 proves the root-cause: a >768 KiB payload succeeds BECAUSE duress is on its own frame (asserted by both frames being under the ceiling and combined raw exceeding it). That's the one test that distinguishes the wire-fix from the root-cause fix. Versions: peach-browser unchanged at 4.6.4 (T-A38 is part of the same duress-on-separate-frame feature; the wire shape and cap math already shipped at v4.6.4). Gate: tsc --noEmit RC=0; vitest run src/shared/vault-adopt.test.ts 26 tests / 0 failed (was 25 + T-A38 = 26); vitest run src/shared/vault-adopt-snapshot.test.ts 13 tests / 0 failed. pnpm run build RC=0 across Chrome Firefox Mobile.
$ koh steal kepr.uk/peach-browser@4c15b8de49bb
·
parent: 78b3d1638e51
discussion
log in to leave a comment.