flybrain/services/flysim/crates/flybus/tests
acamilo 6a92a1902b BUS-02 review notes: recycled writers zero-filled, replays wait for the sealing reply, typed seal failures
The feed and the control API run over flybus in production, so these notes are treated as
live-path correctness.

- N3: the router empties and re-reserves a recycled writer's staging file before reissuing it,
  so no artifact sealed from it (by prefix or whole) carries the previous artifact's bytes;
  ArtifactWriter::seal's doc now holds for every writer. contractDigest text says so.
- N2: a sealing reply is sent with the worker's result cache held, so a duplicate replays the
  sealed artifacts instead of attaching the still-unsealed writer.
- N1: a refused sealing reply is answered as the handler's own seal failure was before BUS-02
  (BACKEND_FAILURE, mutation applied), cached the same way, worker marked failed, and logged.
- N5: a failed staging rename unlinks the writer's own staging file.
- N4: recycle without a sealing attachment is refused even when false; one writer named by two
  attachments is refused as INVALID_ENVELOPE; the SDK checks writers on rpc.call and publish
  replies too.
- N6: the store-directory cache is per client connection; bus-v1 notes the residual case.
- N7: the fly-edge stall test waits for the feed topic; SERVE-01 parity accepts a refused
  /stimulate drained one frame late (retryAfterMs one frame apart, nothing else).
- tests: the review's adversarial lifecycle suite (sealing_lifecycle.rs); recycled-writer content,
  rename failure and recycle edges (sealing.rs); replay-vs-sealing and typed refusal in the worker
  shell; smaller-after-larger artifacts through fly-edge and fly-control-edge.
2026-10-02 10:14:23 +00:00
..
common test(flybus): the BUS acceptance bullets that were unproven, and transport traces 2026-09-22 12:01:34 +00:00
artifacts.rs flybus: sealing sends, encode-once router, cheaper client hot path (BUS-02) 2026-10-02 04:28:05 +00:00
bus_acceptance.rs test(flybus): prove the two section 9 rows a review found cited but unproven 2026-09-22 12:39:07 +00:00
conformance_artifacts.rs flybus: deliveries carry read locations; small store I/O in place; no body copies 2026-10-01 23:57:29 +00:00
conformance_routing.rs flybus: assert the latest-mode guarantee, not the machine's timing 2026-09-22 17:05:25 +00:00
conformance_wire.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
example_demo.rs test(flybus): assert the example's output, and split the frame measurement up 2026-09-22 12:01:43 +00:00
integration.rs docs: the two sweep flakes are fixed, and one assertion that could not fail 2026-09-22 18:28:54 +00:00
perf.rs test(flybus): assert the example's output, and split the frame measurement up 2026-09-22 12:01:43 +00:00
pubsub.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
rpc.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
sealing.rs BUS-02 review notes: recycled writers zero-filled, replays wait for the sealing reply, typed seal failures 2026-10-02 10:14:23 +00:00
sealing_lifecycle.rs BUS-02 review notes: recycled writers zero-filled, replays wait for the sealing reply, typed seal failures 2026-10-02 10:14:23 +00:00
sol_rereview_regressions.rs fix(flybus): stop connection teardown being starved by the frame it waits for 2026-09-22 12:01:24 +00:00
sol_review_races.rs flybus: deliveries carry read locations; small store I/O in place; no body copies 2026-10-01 23:57:29 +00:00
wire.rs flybus: deliveries carry read locations; small store I/O in place; no body copies 2026-10-01 23:57:29 +00:00