026 unbound identifier refused

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

echo: hit
t1 result
echo: one
t2 partial step 1/2 trace:
probe -> {"branch":"found","value":"hit"} bound: r3 as h
echo -> {"branch":""} bound: r4
step 1/2 result: {"branch":""} bound: r4
step 2/2 validation-error: unbound 'h' on 'echo' — bind it with an arm (`| <branch> h |>`) or quote it for a literal

t3 refused unbound 'nope' on 'echo' — bind it with an arm (`| <branch> nope |>`) or quote it for a literal
t4 refused unbound 't' on 'echo' — bind it with an arm (`| <branch> t |>`) or quote it for a literal
t5 refused unbound 'h' on 'echo' — bind it with an arm (`| <branch> h |>`) or quote it for a literal

Expected output

echo: hit
t1 result
echo: one
t2 partial step 1/2 trace:
probe -> {"branch":"found","value":"hit"} bound: r3 as h
echo -> {"branch":""} bound: r4
step 1/2 result: {"branch":""} bound: r4
step 2/2 validation-error: unbound 'h' on 'echo' — bind it with an arm (`| <branch> h |>`) or quote it for a literal

t3 refused unbound 'nope' on 'echo' — bind it with an arm (`| <branch> nope |>`) or quote it for a literal
t4 refused unbound 't' on 'echo' — bind it with an arm (`| <branch> t |>`) or quote it for a literal
t5 refused unbound 'h' on 'echo' — bind it with an arm (`| <branch> h |>`) or quote it for a literal

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "binds", source: probe(1) echo(1))
subflow ~turn1 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"hit\")\n| found t |> echo(text: t)")
subflow ~turn2 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"hit\")\n| found h |> echo(text: \"one\")\necho(text: h)")
subflow ~turn3 click a branch to expand · @labels scroll to their anchor
run (br, source: "echo(text: nope)")
subflow ~turn4 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"hit\")\n| found t |> echo(text: \"f\")\n| absent a |> echo(text: t)")
subflow ~turn5 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"hit\")\n| found t |> echo(text: h.msg)")
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "b1", scope: "binds")

Test Configuration

MUST_RUN