✓
Passing This code compiles and runs correctly.
Code
// ASPIRATION — TODO idea pin (Lars 2026-07-05: capture the ideas before
// the rung-one merge). Ruling queue (i), NEED-RULED with the chain-
// envelope lean: multi-write atomic grouping must exist; THE CHAIN IS THE
// ENVELOPE. A multi-field stored block is the block form of one chain:
// both cell writes land, THEN watch dispatch runs — hp's watch observes
// mp already settled. Today this exact shape is the loud rung-two wall in
// store.kz (multi-field stored blocks).
//
// Dispatch order at envelope end = write order within the block (LEAN,
// unruled detail).
~import std/io
~import std/store
~std/store:create(game) { hp: 0[i64], mp: 0[i64] }
~std/store:watch(game)
! hp h |> std/io:print.ln("hp {{ h:d }} mp {{ game.mp:d }}")
~std/store:watch(game)
! mp m |> std/io:print.ln("mp {{ m:d }}")
~std/store:stored { game.hp: 5, game.mp: 3 }
Actual
hp 5 mp 3
mp 3
Expected output
hp 5 mp 3
mp 3
Flows
flow ~create click a branch to expand · @labels scroll to their anchor
create (expr: game, source: hp: 0[i64], mp: 0[i64])
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (expr: game)
flow ~watch click a branch to expand · @labels scroll to their anchor
watch (expr: game)
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: game.hp: 5, game.mp: 3)
Test Configuration
MUST_RUN