- flybrain-core: LifNetwork::tick_spikes, the last CPU tick's spike list
(None under the GPU backend); a test proves it is exactly the neurons the
tick stamped and that window unions equal the last_spike_ms scan.
- legacy agent: Prepare runs its ticks one at a time and ORs each tick's list
into the transition's bitset; Commit uses it instead of scanning 139,255
last-spike times (falls back to the scan when no list is kept).
- legacy composition: a service session publishes its committed snapshot
every 60th boundary (plus every boundary with events or boundary actions);
nothing in the release subscribes, and each publication seals copies of
the frame and the audio.
- coordinator: a single dispatch job is called in place; worker shell moves
the reply result instead of cloning it; publication promotions begin when
Advance answers whatever the cadence.
- profile: record() for a sample from another clock; finer spans (shell,
local lane, handlers, advance parse/build, the brain's phase clock).
LegacySession starts in-process participants with Via::Local
(FLY_SESSION_LOCAL_LANE=0 keeps the bus path, a measurement knob). speed_ab
takes FLY_PERF_ARMS (local, bus, process), FLY_PERF_SERVICE (the service
host's per-frame reads), FLY_PERF_WORKERS (1 or 2 Tokio workers) and prints
the legacy brain's own tick time beside the session's.
R2-1: a failed step hands the begun captures to the writer before it reports the error, and LegacySession::flush_captures hands them over while the loop idles.
R2-2: completed_saves reports every queued save's outcome instead of stopping at the first error.
R2-3: the commit ends the in-flight admissions and records the pulses under one lock, and a sugar's reads and queueing take that same lock.
- worker: a handler may finish its reply outside the endpoint's lock
(HandlerReply::deferred); admitted mutations take the lock in arrival
order (LockOrder), so a request sent before another is handled first;
a reply's cache holds are taken concurrently.
- legacy agent: State.Capture copies the state under the lock and
encodes, digests and seals it off the lock, so the next Prepare ticks
while the payload is written.
- rpc: send/finish split (SentCall); the caller's holds on wanted
attachments are taken concurrently.
- coordinator: begin_capture sends every State.Capture and returns;
finish_capture collects them. LegacySession begins a boundary's saves
and collects them after the next transition, then queues them to the
writer thread.
- Coordinator::snapshot_every(n): a snapshot every n-th boundary plus
every boundary with events or boundary actions; a service session
publishes every other boundary, the legacy feed's 30 Hz from 60 Hz.
- In-process participants reach the router in memory (a separate process
still uses its socket).
- Spans on the agent's and the coordinator's capture path; tests/speed.rs
times the legacy frame's phases, its agent export, and a session save.
- legacy-gameboy-v1: the artifact-backed ledger, the palette seed and the
pending pulse (amendments of 2026-09-29).
- fly-session::profile: switchable per-phase spans (FLY_SESSION_PROFILE),
in the coordinator's phases, the world's advance and the agent's
prepare and commit.
- The world seals the view, the image and the audio chunk concurrently.
- Coordinator::bound_history: a service session keeps the newest 4096
transitions of trace, phase and audit logs and latency samples (it
grew without bound).
- tests/speed.rs: legacy loop against the session on one box, unpaced
and paced at 1x, in-process and process, with the span breakdown.
- B1: the pokered ledger's adapter state travels as an attachment
('reward', its JSON) beside a small typed value {reward: {digest,
byteLength}, ratchet, slotFilled}; Task gains capture_attachments /
validate_restore_with / install_restore_with, and the coordinator files
them as task-ledger-<name> payloads in captures and imports. Every
failure is an IncompatibleState error, so boot falls to the next
candidate. Tests: ledger_size (past 64 KB, and malformed ones).
- N1: a sugar admitted and not yet reported on by a commit is an active
pulse (AdmissionQueue::pending_stimulus_ms): two sugars between two
commits are one admission and one PulseActive, as the legacy drain.
- N3: a restore seeds the palette with the restored brain's RNG state,
as Sim::boot does; palette_seed holds on the cartridge that two seeds
press the same buttons (a fresh start's constant is therefore exact).
- N4: interval, milestone and after-rollback saves are queued to the
checkpointer's writer thread; startup and shutdown saves block.
- Boot parity adds row64 and the row65 yard (the largest ledgers); the
segments add them too. tests/speed.rs measures N5.
- The task ledger is STATE-02's TaskHalf ledger {reward, ratchet,
slotFilled} (pokered-task-ledger-v1); the task exposes its half, rank
and brain time for the host.
- The FLYSIM01 import uses legacy_checkpoint's halves, agent_payload
(the file's framebuffer as the next input, its reinforcement count)
and world_payload, with ids from the file; ImportSpec carries the
source scope.
- The coordinator can defer a rollback so the host captures first
(apply_pending_rollback) and takes a participant-coherent capture
for the legacy store (capture_payloads).
- LegacySession: attach_store (LegacyCheckpointer), save, advance in the
declared boundary order (slot save, milestone archive on a climb,
rollback, durable save after it, interval saves), shutdown_save; boot()
restores from the live stores in the legacy order and gate, one
session per attempt, fresh when the stores are empty.
- tests: fafb_boot_run_save_restore, the SHADOW-01 entry gate.
The live fly's composition under one coordinator: AGENT-01's agent,
ENV-01's world, and the Pokemon Red task and executor as one object
running the unchanged legacy engine (flysim's MacroLayer, flybrain-gb's
palette, executor, PokeState, reward adapter and ratchet) over MEM-01's
ImageReader of each boundary's memory image.
- task: Phase B decide over O[k], Phase C sample/observe/ratchet over
O[k+1], rollback clear_transient/cancel/observe over O'[k]; slot save
and rollback requests; legacy-transient-reset on restore; a reward
with no stimulation is a Reward alone; uncaptured reads are recorded.
- import: a FLYSIM01 checkpoint as the start (world, agent, task halves
in each participant's own format, the context from the checkpoint's
image), onto a replacement world.
- admission: sugar by flysim's RateLimiter against the last commit's
pulse; the operator reward pulse is refused.
- trace: the session's own FLY_TRACE lines and the comparison;
driver: the ROM tests' rotation stub readout for reward-bearing runs.
- tests: session_trace (toy raw from power-on; FAFB from the service
traces' checkpoints and from stream checkpoints, brain and driver
arms; in-process and process) and rollback_sequence (ROM-free).