CONTENT CONTRACT · VERSION 1
BindingDefinition
A filtered event subscription with one owner source and an explicit snapshot.
Signature
{ cases: ({BindingCase})?, event: EventKind, filter: EventFilter, id: ContentId, lasting: (BindingLasting)?, owner_from: BindingOwner, parameters: Parameters, script: ScriptId, snapshot: SnapshotSpec }Fields
| Name | Type | Meaning |
|---|---|---|
cases | {BindingCase} | Optional parameter table. Every matching row invokes the script once in row order, under its stable local identity; the common filter also applies. Items: 1…64 |
event | EventKind | Event kind or typed event payload selected by the handler declaration. |
filter | EventFilter | Definition references that restrict which matching events invoke the binding. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
lasting | BindingLasting | Who owns the lasting state its effects leave; a row's own overrides it. Required exactly when the script declares an effect that leaves owned state (`leaves`: walk, routine, behavior, spawn, faction, work). |
owner_from | BindingOwner | Event field that supplies the invocation owner. |
parameters | Parameters | Exact closed argument record supplied by the selected definition. |
script | ScriptId | Authority handler declared by the same package. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: script |
snapshot | SnapshotSpec | Explicit visibility requested for the frozen invocation snapshot. |