088 reject bare state outside declaring module

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

Code

input.kz

Supporting Files

lib/store.kz

Actual compiler output

error[KORU030]: Phantom state mismatch: expected 'input:secret' but got 'app.lib.store:secret!' for argument 's'
  --> tests/regression/300_ADVANCED_FEATURES/330_PHANTOM_TYPES/330_088_reject_bare_state_outside_declaring_module/input.kz:27:0

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

Must fail at runtime with:

CONTAINS error[KORU030]
CONTAINS Phantom state mismatch

Flows

flow ~make-secret click a branch to expand · @labels scroll to their anchor
make-secret (payload: "shh")

Test Configuration

MUST_ERROR