flybrain/docs
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
..
design 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
publish flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
architecture-tour.md docs: the damage reward, and the v7 migration in deploy examples 2026-09-30 02:11:45 +00:00
control-api.md docs: control over the bus (CTRL-01) 2026-10-01 23:33:59 +00:00
dataset-format.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
feed-protocol.md docs: row 69, throw on low HP only and the fly names its catch 2026-09-29 18:54:57 +00:00
integration.md docs: the damage reward, and the v7 migration in deploy examples 2026-09-30 02:11:45 +00:00
limitations.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
loop-review.md loop recovery: an escalation ladder that unsticks a trap on its own 2026-09-28 21:23:33 +00:00
model.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
overview.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
plasticity.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
readout.md docs: PROF-02a and RT-01a, the legacy Game Boy composition on the session framework 2026-09-23 08:32:05 +00:00
rewards-learning.md docs: the stage folds a battle's damage hits into one ticker row 2026-09-30 02:41:58 +00:00
stream-mvp-plan.md docs: cutover to the session runtime 2026-10-01 20:47:16 +00:00
streaming-plan.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
verification.md flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00