007 store reject take leak

✓ Passing This code compiles and runs correctly.

Code

input.kz

Backend must reject with:

CONTAINS obligation
CONTAINS game
CONTAINS item

Error Verification

Actual Compiler Output

error[KORU030]: Resource 'i' obligation <game-item!> was not discharged. No event accepts <!game-item>.
  --> auto_discharge:23:0

❌ Compiler coordination error: Auto-discharge failed (multiple disposal options or no disposal event)
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/600_STDLIB/690_STORE/690_007_store_reject_take_leak/backend.zig:95:13: 0x1002e39d3 in emit (backend)
            return error.CompilerCoordinationFailed;
            ^
/Users/larsde/src/koru/tests/regression/600_STDLIB/690_STORE/690_007_store_reject_take_leak/backend.zig:202:28: 0x1002e4b63 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Flows

flow ~create click a branch to expand · @labels scroll to their anchor
create (expr: game, source: hp: i64, kind: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: game, source: hp: 50, kind: 1)

Test Configuration

MUST_FAIL

Expected Error:

obligation <game:item!> issued by take is never discharged — a taken row is owned and must be consumed or given back