This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 11/17/2026.

Spec

import std/spec

Koru Standard Library: spec — the contract vocabulary a declared

spec.kz · 2 tors · ~[comptime]· ~[runtime]

Koru Standard Library: spec — the contract vocabulary a declared · 18 more lines
Koru Standard Library: spec — the contract vocabulary a declared interface speaks, plus the generic `[comptime|norun] spec` declaration carrier and the `sites()` harvester shared by spec consumers. These types were uplifted from runtime.specs / interpreter.contracts / the interpreter's value-transport block: an interface descriptor (ScopeEvent) names inputs, branches, obligation create/discharge and the dispatcher contract — none of that is runtime-specific, it is the *spec of a surface*. std/runtime, std/interpreter and every consumer re-alias these names so emitted code (`koru_std.koru_runtime.ScopeEvent` in generated dispatchers, `koru_std.koru_interpreter.CreateSpec` in shape checking) keeps resolving to this single definition. `spec` is the generic declaration carrier: data attached to the AST as a [norun] site, harvested by a [comptime|command] consumer through `spec.sites(program, qualifier, tor)`. A domain that wants its own spelling declares its own [norun] tor and harvests it under its own qualifier — std/realize's `row`/`arm` are that, one level down.

spec

comptimenorun koru_std/spec.kz:22

spec.revision

retain koru_std/spec.kz:29