⚠
Broken The test itself needs fixing.
Sibling-field union (`player: Player, enemy: Enemy` in the store seed) is not the store surface. The signed declaration was `entity: Player | Enemy`. These pins must not stay green in stdlib.
Failure Output
🎯 Compiler coordination: Passes: 20 (flow-based: elaborate, analysis, emission) Code
// Disjoint extra leaves become columns. A kinded insert names only its
// member's leaves; the other kind's columns are zero-filled at the call
// site. A query reads a private leaf only after the guard narrows to a
// kind that owns it (`e is player` / `e is enemy`).
import std/io
import std/proto
import std/store
std/proto:f64(Health)
std/proto(Player) {
health: Health
score: i64
}
std/proto(Enemy) {
health: Health
damage: i64
}
std/store:new(arena, capacity: 8) { player: Player, enemy: Enemy }
std/store:insert(arena, kind: player) { health: 98.6, score: 3 }
std/store:insert(arena, kind: enemy) { health: 30.0, damage: 7 }
std/store:query(arena)
! query e when e is player |> std/io:print.ln("player score {{ e.score:d }} health {{ e.health:f }}")
std/store:query(arena)
! query e when e is enemy |> std/io:print.ln("enemy dmg {{ e.damage:d }} health {{ e.health:f }}")
Actual
player score 3 health 98.6
enemy dmg 7 health 30
Expected output
player score 3 health 98.6
enemy dmg 7 health 30
Flows
flow ~f64 click a branch to expand · @labels scroll to their anchor
f64 (expr: Health)
flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Player, source: health: Health
score: i64)
flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Enemy, source: health: Health
damage: i64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (arena, capacity: 8, source: player: Player, enemy: Enemy)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (arena, kind: player, source: health: 98.6, score: 3)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (arena, kind: enemy, source: health: 30.0, damage: 7)
flow ~query click a branch to expand · @labels scroll to their anchor
query (arena)
flow ~query click a branch to expand · @labels scroll to their anchor
query (arena)
Test Configuration
MUST_RUN