006 store reject watch body ambient context

✓ Passing This code compiles and runs correctly.

Code

input.kz

Backend must reject with:

CONTAINS watch body
CONTAINS ctx
CONTAINS write sites

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: game, source: entities: 0[i64])
flow ~setup click a branch to expand · @labels scroll to their anchor
setup

Test Configuration

Expected Error:

watch body references 'ctx', runtime state of the enclosing flow — a watch body executes at 'game's write sites, not here; bind it through a store or react at a write site