celld forged lease

✓ Passing Passing: the compiler rejects this program as expected.

Code

input.k

Actual compiler output

error[KORU030]: Phantom state mismatch: argument 'lease' has no tracked phantom state, but this event requires state '<lease>'.
  --> tests/regression/830_THE_WORLD/840_celld_forged_lease/input.k:34:0

❌ Compiler coordination error: Phantom semantic validation failed
   (set KORU_BACKEND_TRACE=1 for the backend return trace)

Must fail at runtime with:

CONTAINS has no tracked phantom state

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (own, capacity: 1, source: epoch: 0[i64], etag: 0[i64])
subflow ~cas.claim click a branch to expand · @labels scroll to their anchor
if (guard == own.etag)
subflow ~cell.write click a branch to expand · @labels scroll to their anchor
print.ln (expr: " {{ lease:s }} write e{{ own.epoch:d }} {{ cell:s }} <- {{ data:s }}")
subflow ~cas.release click a branch to expand · @labels scroll to their anchor
print.ln (expr: " {{ lease:s }} release")
flow ~stored click a branch to expand · @labels scroll to their anchor
stored (source: own.etag: 1)
flow ~cas.claim click a branch to expand · @labels scroll to their anchor
cas.claim (node: "node-b", guard: 0)

Test Configuration

MUST_ERROR