Form catalog — construct capabilities#

The catalog of the construct capabilities that gate a surface construct: the subset of DS language features a program's settings can permit or forbid. Every capability here represents something a tier might not have. Setting one false means "rules on this tier don't have access to this construct," and the compiler refuses programs that use it. The registry of every capability is [LCAP].

The BNF does not change with any setting. Settings restrict constructs, not the grammar: rule authors always read and write the same syntax; only the available constructs vary.

Non-gateable language features — expression grammar, pattern matching, schema and rule declarations, truth maintenance, interpolation, the emit / log action surface, adapter dotted sugar, within / dwell temporal predicates, synthetic-identifier reservation, fact-category markers — are simply part of the language. They're covered by [LGRA] as the normative source and inventoried at [LLSU] as a cross-check.

What this is not#

  • Not a full language feature inventory. See [LLSU].

  • Not a subset-language definition. One BNF regardless of settings. Gating is compile-time validation against the program's settings, not parser variation.

  • Not a vehicle for tier authors to invent their own dialects of DS. The expressive surface a rule author writes against is the same everywhere; what differs is which capabilities the runtime provides to that tier's rules.


Conventions [LFCA.1]#

  • [LFCA.1.1] Stable name. Lowercase snake case, the capability's name in [LCAP.1]. Dialect definitions ([NDLC.2.1]) and use blocks ([LDIA.2.1]) set each capability by this name. Names don't change semantically across catalog versions.

see also: LCAP.1, LDIA.2.1, NDLC.2.1

  • [LFCA.1.2] Depends on. A capability that can only be true when another is. Every such dependency is a fundamental constraint ([LCAP.3.8]).

see also: LCAP.3.8

  • [LFCA.1.3] Refactor hint. Compile-error text when a program uses a construct whose capability is false. Surfaced in the error message ([LDIA.5.4]) to point the author at an alternative.

see also: LDIA.5.4

  • [LFCA.1.4] This catalog's membership. This document specifies the construct capabilities of [LCAP.1] in actions, series_capability, call_modifiers and expression_capability, and nothing else. Its size is stated once, at [LFCA.10.2].

    The storage and samples-plane capabilities are deferred with the storage layer they gate ([LSTO.2], [LSTO.3]). They stay in the registry, every program and dialect sets them false, and they are specified at [LCAP.2.10]. The hydration category ([LFCA.4]) is deferred with them.

    A name or number proto/capabilities.proto#Capability reserves is out of use and is never reused ([STYL.2.8.7]), so a dialect naming a reserved name gets DS_VALIDATE_DIALECT_UNKNOWN_CAPABILITY rather than a setting that does nothing.


see also: LCAP.1, LCAP.2.10, LFCA.10.2, LFCA.4, LSTO.2, LSTO.3

actions — the gateable action surface [LFCA.2]#

[LFCA.2.1] The action-level construct capabilities. A construct whose capability the program's resolved settings set false is refused ([LDIA.3.4.2]).

Name

Explanation

Refactor hint

call

call <domain>.<method> ... action — async invocation of a service hosted by an adapter or an integrator-registered call target, with a fact of the service's response schema arriving as the response

not generally avoidable. If disabled, rules cannot reach any service or adapter action. Move the rule to a tier where call is enabled.

publish

publish <Schema> ... — cross-tier upward fact flow with TTL / overflow policy

move the rule to a non-topmost tier.

cache

cache key: <k> value: <v> — write to the cache plane

keep the state in a logical fact instead. Reads are unaffected: cached(...) is not gateable ([LFCA.2.4]).

cache_delete

cache_delete key: <k>

use cache with a short TTL. Loses explicit invalidation.

ratified — see also: LDIA.3.4.2, LFCA.2.4

[LFCA.2.2] Notes on non-gateable actions:

  • [LFCA.2.3] emit (intra-tier fact assertion) and log are not in this catalog — they're always available. emit is fundamental to DS's reactive model; log is the observability primitive every dialect exposes.

  • [LFCA.2.4] cached(key) is the cache-read expression — a sync-intent language-level affordance, callable from a let RHS and a where per [LGRA.9.8.2] and [LSTO.4.3.1a]. It is not gateable at all, and the reason is that the cache is engine-owned ([LSTO.4.7]): every engine has one, a read takes no integrator callback, so there is no capability a tier could lack.

    The two cache writes remain gateable ([LFCA.2.1]), but on policy rather than capability — a tier may forbid rules from mutating cache state. That asymmetry is the whole of it: writes are a permission, reads are not.


ratified — see also: LFCA.2.1, LGRA.9.8.2, LSTO.4.3.1a, LSTO.4.7

hydration — bulk historical-record retrieval [LFCA.4]#

Deferred: not binding in this edition.

[LFCA.4.1] Bringing historical records back into working memory as facts the rule can match.

Name

Explanation

Depends on

Refactor hint

storage_hydrate_facts

call hydrate_facts schema=... window=... as=... retain=... [limit=...]

call

keep the facts live with long TTLs instead; the facts plane has no other read.

storage_hydrate_samples

call hydrate_samples entity=... field=... window=... as=... retain=... [limit=...]

call

maintain the aggregate in an in-memory series, where the program's series capability is true ([LFCA.5.1]).

see also: LFCA.5.1

[LFCA.4.2] Hydration's author-visible modifiers (retain, limit, an adapter's filter, the corr slot on hydration targets) are part of how hydration works and are not independently gateable. Disable the category as a unit when the tier has no facts- or samples-plane connection or when the working-memory budget can't absorb bulk loads.


series_capability — series infrastructure [LFCA.5]#

[LFCA.5.1] Whether the tier supports declared series with windowed aggregations.

Name

Explanation

Depends on

Refactor hint

series

a series declaration ([LGRA.7]) plus the full aggregation surface (mean, p95, stdev, direction, etc.) usable as expression atoms

the tier has no series subsystem. Restructure to not need windowed aggregation.

The two capabilities that would write series values through to the samples plane, sampled_slots and persist_on_series, are deferred ([LCAP.2.10]).

ratified — see also: LGRA.7, LCAP.2.10

[LFCA.5.2] A tier with series in memory but no samples plane sets series: true and both sampled_slots and persist_on_series to false. A tier with neither sets all three false.


Deferred: not binding in this edition.

call_modifiers — tighter control over the call surface [LFCA.6]#

[LFCA.6.1] Fine-grained control over call for tiers wanting stricter rate discipline than the default. A construct whose capability the program's resolved settings set false is refused ([LDIA.3.4.2]).

Name

Explanation

Depends on

Refactor hint

nocooldown

the bare nocooldown flag on call, for naturally-bounded calls ([LCRS.8.1])

call

use an explicit minimum numeric cooldown instead. The tier has disabled the opt-out, forcing every call to declare a real rate bound.

ratified — see also: LCRS.8.1, LDIA.3.4.2

[LFCA.6.2] Per [LCRS.8.1], cooldown on call is mandatory when call is true — no dialect can opt out. Setting nocooldown: false specifically says "even the opt-out is not acceptable; every call in this tier must have a numeric cooldown."


see also: LCRS.8.1

expression_capability — gateable expression surface [LFCA.13]#

[LFCA.13.1] Whether the tier carries a regular-expression engine at all.

Name

Explanation

Depends on

Refactor hint

regex

The whole regular-expression surface: the ~ and !~ match operators and regex literals in where ([LREG])

the tier has no regex engine. Match on an exact slot value, a prefix comparison, or a flag the adapter sets, or move the matching upstream into adapter parsing.

DS's regex semantics are RE2's ([LREG.8.1]), so a conforming engine is not a small dependency. A tier declining this form is declining RE2 — the reason the five embedded ports do, since RE2's binary-redistribution obligation then does not reach a microcontroller build.

The operators and the literals gate together as one form: they are one capability.


see also: LREG.8.1

Dependencies [LFCA.7]#

[LFCA.7.1] The dependencies among this catalog's capabilities are stated once, at [LCAP.3.8].

see also: LCAP.3.8

The default dialect [LFCA.8]#

[LFCA.8.1] The default dialect ([LDIA.9.2]) sets every capability in this catalog true: a program using it has the full construct surface this document specifies.


ratified — see also: LDIA.9.2

Catalog stability [LFCA.9]#

[LFCA.9.1] The form catalog is versioned.

[LFCA.9.2] When the registry gains a capability, [LDIA.9] states its setting in each built-in dialect, and every integrator dialect definition must set it, true or false, or fail to load ([NDLC.2.2]). There is no silent inheritance: a tier that restricts constructs does not acquire a new one at a runtime update.

see also: LDIA.9, NDLC.2.2

[LFCA.9.3] A dialect definition that names a capability absent from the registry fails with DS_VALIDATE_DIALECT_UNKNOWN_CAPABILITY; the integrator edits to drop the reference.

Catalog size and what may be gated [LFCA.10]#

  • [LFCA.10.2] Catalog is narrow. Seven capabilities in four categories: actions (4), series_capability (1), call_modifiers (1), expression_capability (1). The deferred storage and samples-plane capabilities ([LCAP.2.10]) are not counted.

    Every entry corresponds to something a tier can genuinely lack — a runtime capability, or a permission the tier withholds. The two are not the same and both are admissible: series is gated because a tier may have no registered backend, while cache is gated because a tier may forbid rules from mutating cache state. What is not admissible is gating something every engine inherently has, which is why cached(...) is absent ([LFCA.2.4]) and why there is no cache_ttl_arg — TTL support on an engine-owned cache cannot vary by tier.

    Three reasons to gate are legitimate, and they are not all the same kind of thing:

    1. Runtime-subsystem absence. The tier has no adapters, or no series backend — gate off the capabilities that depend on those subsystems.

    2. Latency budget. The tier cannot afford the round-trip of an async call — gate off call and everything downstream of it. This one is neither a capability the tier lacks nor a permission it withholds; it is a deployment choice, and it is admissible.

    3. Tier topology. The tier is topmost and has nothing to publish upward to — gate off publish.

ratified — see also: LCAP.2.10, LFCA.2.4