040 world define persists across sessions

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

--- session a open
  defined greet
--- session a closed
--- session b open
  greet -> {"branch":"","value":"echo:hi"}
--- session b closed

Expected output

--- session a open
  defined greet
--- session a closed
--- session b open
  greet -> {"branch":"","value":"echo:hi"}
--- session b closed

Flows

flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "api", source: echo(1))
subflow ~do-define click a branch to expand · @labels scroll to their anchor
define (br, source)
subflow ~run-greet click a branch to expand · @labels scroll to their anchor
run (br, source: "greet(text: \"hi\")")
flow ~create click a branch to expand · @labels scroll to their anchor
create (id: "s1", scope: "api", world: "tests/regression/400_RUNTIME_FEATURES/440_RESOURCE_BRIDGE/440_040_world_define_persists_across_sessions/world")

Test Configuration

MUST_RUN

Post-validation Script: