013 node lease renewal

✓ Passing This code compiles and runs correctly.

Code

input.k

Supporting Files

world/room-lp/state.kv

Actual

slate cleared
slate cleared
slate cleared
alpha spawned room-lp
alpha committed visits=41
beta refused while lease live: alpha
alpha touched room-lp (lease renews)
beta refused past original deadline: alpha
beta activated after lapse, reads visits=41
alpha evicted its stale resident: held by beta
alpha drained 0
beta drained 1

Expected output

slate cleared
slate cleared
slate cleared
alpha spawned room-lp
alpha committed visits=41
beta refused while lease live: alpha
alpha touched room-lp (lease renews)
beta refused past original deadline: alpha
beta activated after lapse, reads visits=41
alpha evicted its stale resident: held by beta
alpha drained 0
beta drained 1

Flows

flow ~std/proto click a branch to expand · @labels scroll to their anchor
std/proto (room_state, source: visits: u32)
flow ~register click a branch to expand · @labels scroll to their anchor
register (scope: "cell", source: )
flow ~reset click a branch to expand · @labels scroll to their anchor
reset (world: "tests/regression/400_RUNTIME_FEATURES/470_FLEET/470_013_node_lease_renewal/world")
flow ~new click a branch to expand · @labels scroll to their anchor
new (alpha, scope: "cell", world: "tests/regression/400_RUNTIME_FEATURES/470_FLEET/470_013_node_lease_renewal/world", capacity: 8, lease-ms: 600)
flow ~new click a branch to expand · @labels scroll to their anchor
new (beta, scope: "cell", world: "tests/regression/400_RUNTIME_FEATURES/470_FLEET/470_013_node_lease_renewal/world", capacity: 8, lease-ms: 600)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (alpha)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (beta)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (alpha)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (alpha.room-lp)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (beta.room-lp)
flow ~sleep-ms click a branch to expand · @labels scroll to their anchor
sleep-ms (ms: 500)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (alpha.room-lp)
flow ~sleep-ms click a branch to expand · @labels scroll to their anchor
sleep-ms (ms: 300)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (beta.room-lp)
flow ~sleep-ms click a branch to expand · @labels scroll to their anchor
sleep-ms (ms: 600)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (beta.room-lp)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (alpha.room-lp)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (alpha)
flow ~std/node click a branch to expand · @labels scroll to their anchor
std/node (beta)

Test Configuration

MUST_RUN