050 star t handle tokens

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

reslib/res.kz

Actual

mint: ok (holds 1)
used v=42
bound-grab: ok (holds 1)
seq-guess refused: 'r' wants a live <opened> — 'h:Res:1' names nothing the session holds. Mint one through a verb whose signature ends '-> <opened!>'
hex-guess refused: 'r' wants a live <opened> — 'h:Res:ffffff' names nothing the session holds. Mint one through a verb whose signature ends '-> <opened!>'
release: ok (holds 0)
spent-grab refused — grab did not run

Expected output

mint: ok (holds 1)
used v=42
bound-grab: ok (holds 1)
seq-guess refused: 'r' wants a live <opened> — 'h:Res:1' names nothing the session holds. Mint one through a verb whose signature ends '-> <opened!>'
hex-guess refused: 'r' wants a live <opened> — 'h:Res:ffffff' names nothing the session holds. Mint one through a verb whose signature ends '-> <opened!>'
release: ok (holds 0)
spent-grab refused — grab did not run

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "res", source: reslib.res:mint -> mint(1) reslib.res:grab -> grab(1) reslib.res:release -> release(1))
subflow ~step click a branch to expand · @labels scroll to their anchor
run (br, source)
subflow ~step-quiet click a branch to expand · @labels scroll to their anchor
run (br, source)
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "tok", scope: "res")

Test Configuration

MUST_RUN

koru.json: