025 unknown field is refused at dispatch

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

echo: ok
t1 result
t2 refused unknown field 'bogus' on 'echo'
echo: a
t3 partial step 1/2 result: {"branch":""} bound: r2
step 2/2 validation-error: unknown field 'stray' on 'echo'

t4 refused unknown field 'foreign' on 'echo'
t5 denied notaverb

Expected output

echo: ok
t1 result
t2 refused unknown field 'bogus' on 'echo'
echo: a
t3 partial step 1/2 result: {"branch":""} bound: r2
step 2/2 validation-error: unknown field 'stray' on 'echo'

t4 refused unknown field 'foreign' on 'echo'
t5 denied notaverb

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "fields", source: probe(1) echo(1))
subflow ~turn1 click a branch to expand · @labels scroll to their anchor
run (br, source: "echo(text: \"ok\")")
subflow ~turn2 click a branch to expand · @labels scroll to their anchor
run (br, source: "echo(text: \"x\", bogus: \"3\")")
subflow ~turn3 click a branch to expand · @labels scroll to their anchor
run (br, source: "echo(text: \"a\")\necho(text: \"b\", stray: \"z\")")
subflow ~turn4 click a branch to expand · @labels scroll to their anchor
run (br, source: "probe(path: \"hit\")\n| found t |> echo(text: \"inner\", foreign: \"1\")")
subflow ~turn5 click a branch to expand · @labels scroll to their anchor
run (br, source: "notaverb(bogus: \"1\")")
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "b1", scope: "fields")

Test Configuration

MUST_RUN