The live checkpoints the boot parity starts from are pokered-unique8-v7 files;
since row 68 (v8) a boot takes them only with FLY_ACCEPT_ADAPTERS, as the
v0.6.7 deploy sets it. The test sets the adapter's own MIGRATES_FROM when the
environment names none; both runtimes read the same list.
The admission race test (TASK-01 R2-3) spawned its hammer before the first
iteration set the queue up; on a loaded build box the hammer could admit into
the empty initial queue, which is a legitimate admission, and fail the test.
- worker: local_lane_carries is every method but Worker.*, so an endpoint's
read-only extension (SERVE-01's Legacy.FeedStatus) no longer crosses the bus.
- ipc-v1 section 1, bus-v1 section 12, step-v1 and the framework README: the
in-process local lane and in-memory artifacts, dated 2026-09-30.
- 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).
macros-traps: row 68, the catalog's answer to row 67. Three starts x 120 brain
minutes from the row 67 checkpoint, v7 against v8 (the palette seed does not
diversify a run; the starts are the checkpoint and the game run 7 and 19 frames
ahead of the brain). v8 beat the Jr. Trainer in 2 of 3 (one also took the
Boulder Badge), v7 in 0 of 3; the move choice did not shift more under v8 than
under v7 (BUBBLE about 15% -> 20% in both), so no learned preference is shown
inside two brain hours. stream-mvp-plan: an unreleased status line.
rewards-learning: the catalog row, "Damage rewards" (what counts as the fly's
attack, the magnitudes against the catalog, what cannot be farmed, why `damage`
has no feed counter, the measured press-to-payout delay against the 5 s trace,
the migration) and an honesty paragraph. flysim.md: v7 -> v8 under "Restoring
across an adapter version", with the exact compatibility-string change.
macros-wram: hWhoseTurn, wPlayerMoveNum, wEnemyMonPartyPos and the stale
wEnemyMon. Deploy examples name pokered-unique8-v7 (example.env: add v6 to keep
the pre-v0.6.0 milestone archives restorable).
The example composition's adapter and FLYSIM01 string move to v8 with the live
adapter, and the fixtures are regenerated by update_fixtures (composition digest
44916db0... -> d37ccb40...); invalid.json's hand-written cases follow, with the
one deliberately mismatched string moving from v6 to v7 so it is still the
previous adapter. Branches that carry these fixtures (the port stack) regenerate
them the same way on rebase.
The operator's decision of 2026-09-29, chosen over a pad rule that would have
withheld a stat move once used: pay the fly for the HP its own attack removes
from the Pokemon it is fighting, so the move that deals damage is worth more
than the one that does not. Row 67: the live fly lost the Pewter Gym's Jr.
Trainer 29 times running with TAIL WHIP 155, BUBBLE 23, TACKLE 0, and nothing in
the catalog paid for anything inside a battle it did not win.
`damage`, the twelfth kind, 80 ms. 0.20 per whole enemy Pokemon's max HP, paid
in proportion on the sample the HP drops; +0.05 when the fly's hit knocks out a
trainer's Pokemon; at most 0.50 a battle (the trainer rule's own value, which
two Pokemon reach exactly). A wild battle pays at the wild-KO rule's scale, 1,
1/2, 1/3, for its first three battles per (map, species, level) that paid any
damage, then nothing, and a rollback blocks every key that has paid
(damageCounts, replay-blocked damage:<key>). Trainer battles keep no lifetime
ledger: a trainer is fought again only after losing to it.
The fly's attack is a drop in wEnemyMonHP on a sample where hWhoseTurn ($FFF3,
counted from the hJoyLast anchor to the end of HRAM) reads 0 and wPlayerMoveNum
is not STRUGGLE. ApplyDamageToEnemyPokemon runs in ExecutePlayerMove with it 0;
the enemy's poison, burn and Leech Seed ticks (HandlePoisonBurnLeechSeed picks
the enemy's HP because it is 1), its recoil, confusion self-hit, Explosion and
Substitute all land with it 1. Every drop moves the target's mark, so a tick is
never paid later as part of a hit. A target is (wEnemyMonPartyPos, species,
level) and keeps its lowest HP for the battle, so a heal is never paid twice and
a switch back keeps its mark; it is marked when it first reads full HP, because
InitBattleVariables leaves the last battle's wEnemyMon in place -- in the row 67
ring that is the same trainer's Diglett at the HP it won with.
v7 -> v8. STATE_VERSION stays 4: damageCounts and battle.damage are optional and
absent in a v7 state, which restores with no wild key paid and a battle in flight
marked where it stands, so nothing lost before the restore is paid.
MIGRATES_FROM is [v7, v6]: the chain composes, since v7's own migration (the
item seed) still runs in this build on the first sample without items:seeded.
Feed: `damage` has no counter (RewardKind::from_adapter -> None). On `wildwin`
the stage would fold every hit into "N wild wins", false of a trainer battle and
of one the fly goes on to lose. A hit reaches the page as a reward event with
its own label, HIT #<species> FOR <n> HP[ KO]; the feed's closed kind set does
not move.
The compatibility string differs from main's in exactly one segment:
pokered-unique8-v7 -> pokered-unique8-v8.
Tests: the rule (fly's turn vs the enemy's, Struggle, heal, switch, twin slots,
stale enemy, restored battle, cap, knockout, wild scale, round trip); the adapter
(proportional pay, TAIL WHIP nothing, poison then hit, the ring's second battle,
wild scale and rollback, one read per address, checkpoint round trip, a v7 state
mid-battle); compat_migration (v7 and v6 FLYSIM01 envelopes refused without
their own opt-in and restored with it; the v7 one mid-battle pays only what
follows); rom_damage (FLY_ROW67_CHECKPOINT: the live v7 string and ledger
migrate; from the live state BUBBLE and TACKLE are paid on every drop they cause
and TAIL WHIP never, the fly's hits land with hWhoseTurn 0 and the enemy's with 1).
resolve_wram.py --emit resolved both from ram/wram.asm at the pinned commit,
each bracketed by pinned anchors (wWalkCounter/wEnemyMonSpecies and
wEnemyMonHP/wEnemyMonStatus): $cfd2 and $cfe8. 77 of 81 pinned addresses
re-derived, no disagreement. wEnemyMonPartyPos is battle_struct's third field
(macros/ram.asm: Species db, HP dw, PartyPos). gen_symbols.py's EXTRA_RAM
carries both so a regeneration keeps them.
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.
- worker: one Shell per worker serves its bus loop and a LocalLane. A local
request goes through the same admission (classification, body digest,
result cache, arrival-order ticket, endpoint lock) and answers the same
SessionRpcOutcome, without a bus message. Worker.* stays on the bus.
HandlerCtx::seal keeps a local request's reply media in memory.
- rpc: a WorkerRef carrying a lane sends endpoint methods over it; sealed reply
handles reach the caller in memory under the same reference; a bus call
carries sealed copies of in-memory attachments (promote).
- launcher: Via::Local offers in-process participants over their lane.
- coordinator: publication attaches sealed copies of in-memory media, begun
when Environment.Advance answers; defer_snapshots (publish without waiting
for admission, settled at the next snapshot); digest_views and media_bytes
as SERVE-01 has them.
- legacy env/agent: frame, memory image, audio and spike bitset sealed via
HandlerCtx::seal; the spike bitset is built eight neurons a byte.
- profile: span maxima, enabled(); the agent runs the brain's phase clock
when profiling.
- tests: every synthetic transport test also runs over the local lane; the
two publication-identity checks state the sealed copy there.
Artifact::in_memory holds an immutable buffer in the caller's address space
(store id 'in-memory', no digest): it reads, clones and retains like any other
handle without a router round trip, and a bus call, reply or publish refuses it
as an attachment before anything is sent. Artifact::to_memory reads a sealed
handle into one under the same reference. PERF-01's local lane hands these
between participants of one process.
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.
/healthz goes green before the first snapshot is published, and until
then /status carries the placeholder header (a one-rung BOOT ladder). A
loaded box read that window and failed 'the ladder length is in
/status'. Bounded wait (30 s); every assertion unchanged.
macros.md 12.32 and the 13.1 table rows; macros-wram.md 15 (the two
naming bytes); feed-protocol: padEmptyMs is 0 on the keyboard;
macros-traps row 69 with the ROM tests and the connectome survey.
review-state-02 N3: the error made fly-reset-to-milestone exit non-zero
after a finished reset, so fly-loop-reset reported it failed and the
stream's splash said so.
- 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.
rom_catch: the low-HP pad is the ball (FLY_ROW69_CHECKPOINT), the
keyboard after a catch is the fly's own buttons and closes, a fly that
types nothing is ended by the bound, and the two naming bytes are where
the cartridge stores them. The row 66 catch drive passes the readout's
own buttons and leans on A and B on the keyboard.
rom_macros_mode: the keyboard is drawn, so its CONFIRM is not an
Unknown pad on nothing.
Two operator decisions (2026-09-29, row 69).
Throw on low HP only: in a wild battle with THROW BALL dealt and the
wild Pokemon at the HP where ItemUseBall's HP factor saturates
(W = (MaxHP*255/BallFactor)/max(HP/4,1) >= 255: about a third for a
Poke Ball, a half for a Great Ball), MOVE 1-4, SWITCH, RUN and the bag's
BACK are withheld. ITEM stays for a hurt thrower. Every precondition of
THROW BALL still gates it, so no ball, a caught species or a trainer
gives the ordinary pad back.
Let the fly name it: the naming screen is read (menu bytes, the
keyboard's box, the underscores; wNamingScreenNameLength and
wNamingScreenSubmitName pinned from the cartridge's own stores) before
the battle test and reads Unknown. Its pad is the fly's own D-pad, A, B
and START, passed through Observed::raw while nothing is bound. Once
the name is full or sixty brain seconds have run, CONFIRM alone is
dealt and presses START until the keyboard closes.
Also moves two doc comments row 66 split from their items (review N3).
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).
- A task declares the inspection attachments it reads; the coordinator
holds them (O[k] until its transition is evaluated) and hands the task
and the executor their bytes (task::Inspection).
- The executor's clock is the agent's brain time after Prepare.
- Evaluation.slot_saves: Environment.SaveSlot at the boundary reached.
- A declared rollback policy runs itself: Ready(e,k) -> RollingBack(k)
-> Ready(e',k) with RestoreSlot, Task::rollback, Agent.Rollback; a
composition that declares it needs agents that advertise it.
- AdmissionQueue: admitted stimuli cut into each Prepare, ended applied
or aborted; the last commit's stimulusRemainingMs for the edge.
- Coordinator::import: a checkpoint of another format as a session's
start, through the ordinary group restore (Ready(0) -> Restoring(k));
Task::restored re-observes the restored world and must agree with the
recorded contexts. capture_participant, import_scope.
- Composition setters: environment config, media, decision schema,
world state format, per-agent model versions; StepDetails for parity.
- ENV-01's interim 'declared rollback pauses' test now states the rule:
a declared policy needs participants that apply it.
AGENT-01 review: learning.updates fell back to plasticity.updates on every FLYSIM01 round trip.
Both runtimes now count reinforcement calls the same way (one per commit while the rule is
enabled) and write the count as the optional manifest member reinforcements, which old readers
ignore and old files lack (a reader then starts from plasticity.updates, once). The import's
checkpoint id is the file's generation (flysim01-g<N>), and the agent worker checks for a
staged or activated restore before it builds the replacement network.