Language surface — feature inventory#
An inventory of every feature the DS language exposes to rule authors, organised by category.
This is not the gating catalog. Most features here are grammar-level and not dialect-gateable; the BNF parses them identically regardless of which dialect a rule file declares. The narrow subset that is gateable — action- level forms that correspond to runtime capabilities a tier might lack — lives at [LFCA].
This doc earns its place as a cross-check for the BNF: it ensures [LGRA] covers everything authors can type.
What this is not#
Not the gating catalog. See [LFCA] for the narrow set of forms dialect registration calls reference.
Not a grammar. [LGRA] owns the BNF; this doc is an informal feature inventory.
Not a spec for any feature's semantics. Those live in per-topic spec docs; this doc points at them.
Not a source of truth for capabilities. [LCAP.1] is the registry, and a program sets them in its
useblock.
Why most of these aren't gateable#
A tier integrator's dialect is an action-and-capability allowlist, not a grammar subset. The BNF does not change between dialects. Expression grammar, pattern matching, schema declarations, truth maintenance, interpolation, and all the grammar primitives are always available and always parsed identically. Tier authors cannot invent a different DS; they can only restrict which actions their tier's rules can invoke and which runtime capabilities those rules may depend on.
Conventions [LLSU.1]#
[LLSU.1.1] Stable name. Lowercase snake case. Dialects reference forms by stable name; these names never change semantically across catalog versions. A form can be deprecated and retired, but not renamed while present.
[LLSU.1.2] Dependencies. Forms required by this form. A dialect enabling this form must also enable its dependencies.
[LLSU.1.3] Refactor hint. What a rule author does when their dialect disables this form. Surfaces in compile-error messages. "not generally avoidable" is a valid answer for foundational forms; the compiler repeats that text.
core — always on [LLSU.2]#
[LLSU.2.1] These are available to every program under every setting;
none is a capability ([LDIA.4.2]). A dialect definition naming one fails
to load with DS_VALIDATE_DIALECT_UNKNOWN_CAPABILITY ([NDLC.2.2]).
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
not generally avoidable |
|
|
not generally avoidable |
|
|
not generally avoidable |
|
LHS pattern matching on schema constructor |
not generally avoidable |
|
|
not generally avoidable |
|
|
not generally avoidable |
|
|
not generally avoidable |
|
|
not generally avoidable |
|
the expression grammar (arithmetic, comparison, bool ops) per EXPRESSIONS |
not generally avoidable |
|
|
not generally avoidable |
|
|
rewrite using the integrator-provided logging adapter if available |
see also: LDIA.4.2, LGRA.2.11.5, NDLC.2.2
[LLSU.2.2] Semantic specs: [LFAC], [LEXP], [LGRA].
expressions — the expression grammar [LLSU.3]#
[LLSU.3.1] The full expression surface from [LEXP]. Dialects can narrow this (disabling bitwise, disabling regex) without breaking anything else.
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
not generally avoidable |
|
|
not generally avoidable |
|
|
rewrite as |
|
|
not generally avoidable |
|
|
use an integrator call target for bit-twiddling |
|
unary |
not generally avoidable |
|
|
not generally avoidable |
|
postfix |
not generally avoidable |
|
|
use literal numeric values if inexact is OK |
|
|
inline with comparison + arithmetic |
|
the |
use an integrator call target |
|
the |
use an integrator call target |
|
series aggregations ( |
requires |
|
the |
use an integrator call target |
see also: LCST.4, LEXP.3.7.1, LIMP.3.3.4
[LLSU.3.2] Semantic spec: [LEXP].
logical — truth maintenance [LLSU.4]#
[LLSU.4.1] The logical modifier on emit, the tick-fact infrastructure
that drives time-bound re-evaluation, and the operator-log
entries for retract causes.
Name |
Explanation |
Dependencies |
Refactor hint |
|---|---|---|---|
|
|
|
use |
|
engine tick-fact plumbing for time-bound LHS tests |
|
disable only if the tier has a natural high-frequency clock source |
|
operator-log entries for logical-retract cause ( |
|
not generally avoidable for debuggability |
[LLSU.4.2] Semantic spec: [LLOG].
temporal — time-axis primitives on patterns [LLSU.5]#
[LLSU.5.1] Temporal predicates in LHS patterns. Timer-based RHS
continuations (after <dur>: and after <dur> as <expr>:)
are normative in v1 per [LTAC]
and [LRST], which itemise them.
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
compare |
|
|
not generally avoidable for absence-based rules |
|
|
none: the entry stamp has no other author syntax ([LEXP.9.5.2]) |
see also: LEXP.9.5.2
[LLSU.5.2] Semantic spec: [LGRA], [LFAC], [LSER] (for the dwell/no-op relationship).
adapter — dotted-syntax sugar for adapter-managed facts [LLSU.6]#
[LLSU.6.1] Per [LADP]. A dialect for a tier that doesn't connect to adapters can disable the category entirely.
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
spell out the constructor form: |
|
|
enumerate specific entities if the glob size is small |
|
schemas a discovery-driven adapter declares ([RARC.9.4.2]) |
use author-declared or fixed schemas |
|
|
stringify at the adapter and require rule-side parsing; or emit multiple narrow schemas per observed type |
|
|
drop live/snapshot filtering, or query a separate schema |
|
|
ignore own-action feedback avoidance |
see also: RARC.9.4.2
[LLSU.6.2] Semantic spec: [LADP].
call — async call/response [LLSU.7]#
[LLSU.7.1] Service invocation via the (domain, method) dispatch table. A response arrives as a fact of the service's response schema ([LCRS.4.3.1]) the rule can match in a sibling rule.
Name |
Explanation |
Dependencies |
Refactor hint |
|---|---|---|---|
|
|
not generally avoidable; this is the fundamental external-effect primitive |
|
|
|
|
not avoidable; every service declares its response |
|
the response fact, a |
|
requires re-designing around cache-based polling; usually a sign the tier is wrong |
|
|
|
silently swallow errors (usually wrong) |
|
|
|
accept compiler-generated corr ids (harder to grep in logs) |
|
|
|
not generally avoidable; this is the rate-limit safety |
|
the bare |
|
use a minimum cooldown value the tier's rate budget tolerates |
|
|
|
none: a response's lifetime is its schema's TTL ([LCRS.6.6.1]) |
|
adapter-side opportunistic batching of multi-entity calls |
|
write per-entity calls; adapter coalescing is transparent, so disabling here just disables the optimisation |
see also: LCRS.4.3.1, LCRS.6.3.3, LCRS.6.6.1
[LLSU.7.2] Semantic spec: [LCRS].
publish — cross-tier fact flow [LLSU.8]#
[LLSU.8.1] Upward fact flow to a higher tier (integrator-defined).
Distinct from intra-tier emit (in core) because it
crosses a tier boundary with TTL and overflow semantics.
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
reach the other tier through a |
|
|
accept the runtime's default policy |
[LLSU.8.2] Semantic spec: [LTIE], [LFAC], [RARC].
storage — the three storage planes [LLSU.9]#
[LLSU.9.1] The cache plane, per [LSTO]. The facts and samples planes, and hydration, are deferred ([LSTO.2], [LSTO.3], [LHYD.1]).
Name |
Explanation |
Dependencies |
Refactor hint |
|---|---|---|---|
|
|
not generally avoidable as a sync-read primitive |
|
|
|
keep the state in a |
|
|
|
let TTL expire the key (may be too slow) |
|
|
|
|
manage invalidation via explicit delete |
see also: LGRA.9.8.2, LSTO.2, LSTO.3, LHYD.1
[LLSU.9.2] Semantic spec: [LSTO].
series — observation-shaped series declarations [LLSU.10]#
[LLSU.10.1] Declared series naming the observations an author wants
on a slot's history (aggregation × time-model × accuracy);
the compiler picks backing structures from the matrix at
[LSER.18.1].
Aggregations are accessible as expression atoms (via
expr_aggregation_atom in the expressions category) and as
companion slots on bindings.
Name |
Explanation |
Dependencies |
Refactor hint |
|---|---|---|---|
|
top-level declaration: |
not generally avoidable if any aggregation is used |
|
|
parenthesised block options on the declaration line: |
|
omit (on |
|
|
|
use |
|
|
|
not generally avoidable for windowed questions |
|
|
|
approximate with |
|
|
|
use |
|
|
|
manually maintain via rule-based state |
|
|
|
manually compute via call target |
|
|
|
exact on a bounded window ( |
|
|
|
manually maintain set state per identity |
|
|
|
manually maintain a frequency table per identity |
|
|
|
manually maintain a set per identity |
|
|
|
use explicit |
|
|
|
inline via pattern-match on two timestamps |
|
|
|
unique-aggregation triples per slot, drop |
|
|
|
write the explicit |
A tolerance / confidence / delta /
bound deterministic phrase on an observation line is refused ([LSER.15.1]).
confidence, delta, bound and deterministic are ordinary identifiers,
not reserved words.
tolerance is reserved: it is the slot-level within-tolerance clause
([LFAC.2]). See [LSER.15].
see also: LFAC.2, LSER.15, LSER.15.1, LSER.18.1, LSER.7.6.1
[LLSU.10.2] Semantic spec: [LSER].
interpolation — string interpolation in action arguments [LLSU.12]#
[LLSU.12.1] Typed string interpolation per [LGRA].
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
manual string-concatenation call target |
|
format specifiers: |
pre-format the value via an integrator call target |
|
|
pre-format the value via an integrator call target |
|
|
bind intermediate value via an earlier rule |
|
|
not generally avoidable once |
[LLSU.12.2] Semantic spec: [LGRA].
fact_category — fact lifecycle discipline [LLSU.13]#
[LLSU.13.1] Schema-level declarations that shape fact lifetime.
Name |
Explanation |
Refactor hint |
|---|---|---|
|
|
use |
|
|
not generally avoidable for event-like facts |
|
engine-level no-op reassertion suppression |
live with dwell flicker and logical-fact flicker (breaks too many other things) |
[LLSU.13.2] Noop-suppression is an engine-level discipline invisible to rule authors but exposable as a catalog form so dialects that care about this invariant can ensure it's on.
[LLSU.13.3] Semantic spec: [LFAC].
synthetic — compiler-generated identifiers [LLSU.14]#
[LLSU.14.1] Synthetic names, the $-prefixed names the compiler and engine
make for themselves ([LLEX.10.6.1]). Author code can't produce these; dialects that disable this
category reject rule files containing any feature that
would require synthetic identifiers (essentially:
everything with any desugaring).
Name |
Explanation |
Refactor hint |
|---|---|---|
|
compiler-generated |
disabling effectively disables most of the language; not meaningfully avoidable |
see also: LLEX.10.6.1
[LLSU.14.2] Semantic spec: [LLEX.10.6.1] — a synthetic name is $ followed
by the name, and $ is not a NAME character, so no author name collides with
one. [LGRA.15.2] states the same as a property of the NAME terminal.
see also: LGRA.15.2, LLEX.10.6.1
The extension boundary [LLSU.15]#
What ships in v1 without an extension [LLSU.15.3]#
[LLSU.15.4] Test-mode runtime machinery (deterministic clock, adapter-mock contract, event-trace primitive, introspection queries) ships in v1 because it's how the runtime works under test — see [LTES]. This is not an extension; authors don't write test-only constructs in rule files. User rule tests in v1 are harness-side code that drives the runtime in test mode; rule files themselves use only base-language forms.
[LLSU.15.5] Activation-linked timer behaviour is part of the base language: [LSCP] (the
scope activationlifecycle) and [LRST] (theafter <dur> as <expr>:per-fact supersedure form).
ratified
Inventory scope [LLSU.16]#
[LLSU.16.1] v1 language inventory. This inventory covers the features the language has. Material held under
future/is out of scope.
[LLSU.16.2] Author-visible axis. Features here are things a rule author can type. Lowering details and engine-internal mechanisms that have no syntactic surface don't appear.
[LLSU.16.3] Not the gating surface. Most entries here are grammar-level — parsed identically regardless of dialect. The gating subset (action-level forms corresponding to runtime capabilities) is extracted to [LFCA]; only that subset has stable names dialect registration calls reference.
[LLSU.16.4] Capabilities. [LCAP.1] registers every capability a program's
useblock may set; a name outside that registry is a compile error ([LDIA.3.3.2]). Testing is not among them —.dstestis a separate file type, not a capability ([LTES.7.6], [LTSL]). The imperative-shaped surface (activation timers, per-fact supersedure) sits in the base language per [LLSU.15.5].
ratified — see also: LCAP.1, LDIA.3.3.2, LTES.7.6, LLSU.15.5
[LLSU.16.5] Role as BNF cross-check. Every feature in this inventory is covered by the BNF in [LGRA]; conformance for each feature lives under that feature's own clause.