⚠
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
// Tag synthesis (write-demand): the store holds Players and Enemies over
// ONE folded Health column, and because inserts name kinds the store
// synthesizes a hidden `kind` column (seed order, 1-based: player=1,
// enemy=2). The query reads `e.kind` like any column — no hand tag, no new
// syntax. When this landed, 690_273's manual tag became the same shape
// minus synthesis.
import std/io
import std/proto
import std/store
std/proto:f64(Health)
std/proto(Player) {
health: Health
}
std/proto(Enemy) {
health: Health
}
std/store:new(arena, capacity: 8) { player: Player, enemy: Enemy }
std/store:insert(arena, kind: player) { health: 98.6 }
std/store:insert(arena, kind: player) { health: 72.0 }
std/store:insert(arena, kind: enemy) { health: 30.0 }
std/store:query(arena)
! query e when e.kind == 2 and e.health < 40 |> std/io:print.ln("hurt enemy {{ e.health:f }}")
Actual
hurt enemy 30
Expected output
hurt enemy 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)
flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (Enemy, source: health: Health)
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)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (arena, kind: player, source: health: 72.0)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (arena, kind: enemy, source: health: 30.0)
flow ~query click a branch to expand · @labels scroll to their anchor
query (arena)
Test Configuration
MUST_RUN