Expand description
Shared types for the WhippleScript rule-machine runtime.
Modules§
- json
- Generic JSON/string parsing utilities shared across the platform.
Structs§
- Construct
Field - Construct
Grammar - A DR-0011 grammar object: the single source of the construct’s parse shape.
Kept as plain validated strings, matching the rest of the registration data.
Two shapes are manifest-expressible:
effect_operation(CONSTRUCT_GRAMMAR_SHAPE_EFFECT_OPERATION,<keyword> [<connective> <slot>]* [{ payload }]? as <binding>) anddeclaration_block(CONSTRUCT_GRAMMAR_SHAPE_DECLARATION_BLOCK, an order-free block of named clauses). Theshapestring discriminates:clausesisSomeexactly fordeclaration_block, andslots/payload/binding/target_capabilitycarry theeffect_operationshape (empty/None/"none"/empty otherwise). - Construct
Grammar Clause - One clause of a
declaration_blockgrammar: a named value (thenamemay be multi-word), akindfromCONSTRUCT_GRAMMAR_CLAUSE_KINDS, whether it isrequired, whether it takes alistof values, and an optional introducing connective fromCONSTRUCT_GRAMMAR_CLAUSE_CONNECTIVES. Aflagclause carries no value: it is never alistand never has aconnective(DR-0011 amendment, mirrored inbuild.rs). - Construct
Grammar Payload Field - One field inside the optional payload block: a named expression, required or not.
- Construct
Grammar Slot - One ordered grammar slot: a named value (
identifier|expression), optionally introduced by a fixed connective word fromCONSTRUCT_GRAMMAR_CONNECTIVES. - Construct
Interface - Construct
Registration - Contract
Registry - Compile-time library and effect-contract registry.
- Contract
Registry Diagnostic - Effect
Contract - Library
Registration - Platform
Construct Catalog - Platform
Construct Family - Platform
Construct Lowering - Platform
Reserved Keyword Privilege
Enums§
- Construct
Lowering Authority Profile - Construct
Target Capability Policy - Severity
- The single diagnostic severity scale, aligned 1:1 with the LSP severities
(spec/error-handling.md). This is the canonical set for every diagnostic-
producing surface (check, lint, LSP, test).
noteis NOT a severity — it is related information attached to a diagnostic. Inbox-item / notification “severity” is a distinct concept and is not this type. - Typed
Output Validation
Constants§
- CONSTRUCT_
FAMILY_ ASSERTION - CONSTRUCT_
FAMILY_ DECLARATION_ BLOCK - CONSTRUCT_
FAMILY_ EFFECT_ CONTRACT - CONSTRUCT_
FAMILY_ EFFECT_ OPERATION - CONSTRUCT_
FAMILY_ PROJECTION_ READ - CONSTRUCT_
FAMILY_ RULE - CONSTRUCT_
FAMILY_ SOURCE_ DECLARATION - CONSTRUCT_
GRAMMAR_ BINDING_ MODES - CONSTRUCT_
GRAMMAR_ CLAUSE_ CONNECTIVES declaration_blockclause connectives: the Shape 2 slot connectives plusby(ledgerpartition by). Mirrorsbuild.rs’sCLAUSE_CONNECTIVES.- CONSTRUCT_
GRAMMAR_ CLAUSE_ KINDS declaration_blockclause value kinds (DR-0011 Shape 1, mirrorsbuild.rs’sCLAUSE_KINDS).- CONSTRUCT_
GRAMMAR_ CONNECTIVES - CONSTRUCT_
GRAMMAR_ SHAPE_ DECLARATION_ BLOCK - CONSTRUCT_
GRAMMAR_ SHAPE_ EFFECT_ OPERATION - CONSTRUCT_
GRAMMAR_ SLOT_ KINDS - CONSTRUCT_
INTERFACE_ CAPABILITY - CONSTRUCT_
INTERFACE_ CARDINALITY_ EXACTLY_ ONE - CONSTRUCT_
INTERFACE_ EFFECT_ HANDLE - CONSTRUCT_
INTERFACE_ PHASE_ COMPILE_ RUNTIME - CONSTRUCT_
LOWERING_ ASSERTION_ CHECK - CONSTRUCT_
LOWERING_ CAPABILITY_ CALL - CONSTRUCT_
LOWERING_ CLOCK_ SOURCE - CONSTRUCT_
LOWERING_ CORE_ EFFECT - CONSTRUCT_
LOWERING_ METADATA - CONSTRUCT_
LOWERING_ METADATA_ ONLY - CONSTRUCT_
LOWERING_ PROJECTION_ VIEW - CONSTRUCT_
LOWERING_ RESOURCE_ EFFECT - CONSTRUCT_
LOWERING_ RULE_ TEMPLATE - CONSTRUCT_
LOWERING_ SCHEDULE_ EMITTER - CONSTRUCT_
LOWERING_ SIGNAL_ EMIT - CONSTRUCT_
LOWERING_ SIGNAL_ SOURCE - CONSTRUCT_
LOWERING_ TYPED_ EFFECT_ CALL - CONSTRUCT_
PLATFORM_ STATIC_ GUARANTEES - CONSTRUCT_
SCOPE_ RULE_ BODY - CONSTRUCT_
STATIC_ CONTRACT_ PINNED - CONSTRUCT_
STATIC_ DETERMINISTIC - CONSTRUCT_
STATIC_ NO_ DIRECT_ FACT_ WRITE - CONSTRUCT_
STATIC_ NO_ DIRECT_ RULE_ FIRE - CONSTRUCT_
STATIC_ NO_ HIDDEN_ AUTHORITY - CONSTRUCT_
STATIC_ NO_ PACKAGE_ LIFECYCLE - CONSTRUCT_
STATIC_ NO_ PACKAGE_ SCHEDULER - CONSTRUCT_
STATIC_ NO_ RUNTIME_ INPUTS - CORE_
CAPABILITY_ CALL_ CONSTRUCT_ ID - IMPLEMENTATION_
STAGE - Current implementation stage for the active redesign.
- MESSAGING_
SEND_ CAPABILITY - The
messaging.sendcapability id — the target of thesendconstruct and the id of itscapability.calleffect contract. - PLATFORM_
CONSTRUCT_ CATALOG
Functions§
- std_
messaging_ send_ construct std.messagingsendconstruct registration (effect_operation → capability.call).- std_
messaging_ send_ effect_ contract std.messagingmessaging.sendcapability.calleffect contract — the target thesendconstruct lowers to.- version
- Returns the workspace package version.