Extension Capabilities Reference#

The registry of capabilities: the boolean settings every program has, from its dialect and its use block. Prefix LCAP.

This document is the authoritative registry and composition reference. It covers: every registered capability and its kind, the capabilities with engine consequences, the composition rules and fundamental constraints, the T_wcet impact of each combination, and the combination matrix.

Companion specs (full details):

  • realtime → [RTCT]

  • constspace → [LCSP]

  • linear_scan: false → [LNLS]

  • logical: false → [LNOG]

  • dynamic_ttl → [LDTL]

  • regex: false → [LNRE]

  • the other construct capabilities → [LFCA]


Registered capabilities [LCAP.1]#

A capability is a boolean setting with a stable name. Every program has a setting for every capability: its dialect's, with its use block's overrides applied ([LDIA.1.3]). The registry is the enumeration proto/capabilities.proto#Capability; the stable name of a member is its enum name without the CAPABILITY_ prefix, in lower case.

Capabilities are of two kinds, in one namespace:

  • a strategy capability chooses how the engine executes a program, and restricts constructs to those that strategy can run: realtime, constspace and linear_scan;

  • a construct capability permits a construct, and false forbids it: every other capability.

Capability

Kind

A build may omit its code

Specified at

realtime

strategy

yes

[LCAP.2.1]

constspace

strategy

yes

[LCAP.2.6]

linear_scan

strategy

no

[LCAP.2.2]

logical

construct

no

[LCAP.2.3]

dynamic_ttl

construct

no

[LCAP.2.4]

regex

construct

yes

[LCAP.2.8]

float

construct

yes

[LCAP.2.9]

call, publish, cache, cache_delete

construct

no

[LFCA.2.1]

series

construct

no

[LFCA.5.1]

nocooldown

construct

no

[LFCA.6.1]

sampled_slots, persist_on_series, storage_hydrate_facts, storage_hydrate_samples

construct

yes

[LCAP.2.10]

A runtime must contain the code for every capability marked "no". A runtime may be built without the code for a capability marked "yes"; it then refuses an artefact that requires that capability ([RDSC.16.2.7]).

realtime and constspace are deferred in this edition: the compiler refuses a program that sets either true ([LCAP.2.1.5]). So are the four storage and samples-plane capabilities ([LCAP.2.10]).

Which settings may be combined is constrained by [LCAP.3.8].


checks: alloy — defined in: proto/capabilities.proto#Capability — see also: LCAP.2.1, LCAP.2.1.5, LCAP.2.10, LCAP.2.2, LCAP.2.3, LCAP.2.4, LCAP.2.6, LCAP.2.8, LCAP.2.9, LCAP.3.8, LDIA.1.3, LFCA.2.1, LFCA.5.1, LFCA.6.1, RDSC.16.2.7

Capabilities with engine consequences [LCAP.2]#

This section specifies every capability whose setting changes how the engine executes a program, and every capability whose code a build may omit. The other construct capabilities are specified in [LFCA]. Whatever a capability selects, it must not change what a program computes ([LDET.1.12]).

see also: LDET.1.12

realtime [LCAP.2.1]#

A strategy capability. realtime: true imposes a two-phase lifecycle: INIT (schema load, pool allocation, presz, intern lock) and LIVE (pump only; zero allocation; bounded execution). Entry via go_live.

In LIVE mode every hash table, pool, and scratch buffer is pre-sized; no malloc/realloc call may occur. Every alpha test, join, TMS operation, and TTL tick must complete within the T_wcet budget.

realtime: true requires constspace: true ([LCAP.3.7]), and the compiler runs every constspace check under it ([LCAP.2.6]).

It leaves every other setting to the program. With linear_scan: true a join may scan, and its cost is bounded by the working-memory capacity rather than constant; with logical: true the TMS is present but rt_locked; with dynamic_ttl: false the TTL queue is the per-schema FIFO.

Deferred: not binding in this edition.

see also: LCAP.2.6, LCAP.3.7

[LCAP.2.1.5] realtime and constspace are not part of this edition. Both capabilities and everything they govern are deferred: the rest of this section, the realtime contract and its .dsrt file, the integrator's realtime surface, the contract binding, the built-in realtime dialect ([LDIA.9.3]), and the bounded-memory extension ([LCAP.2.6]) with its chapter. No conforming compiler or runtime is obliged to implement them. The compiler must refuse, with DS_VALIDATE_REALTIME_DEFERRED, each of:

  • a use directive naming the realtime dialect, at the dialect name, whatever its block overrides ([LDIA.3.2.3]);

  • a use block line setting either capability true, at the line ([LDIA.3.3.7]);

  • a dialect definition whose settings set either true, at registration ([NDLC.6.1]);

  • a compile invocation that passes --dsrt ([RCLI.1.9]).

It must not read a .dsrt file. Every program the compiler accepts therefore resolves both settings to false, and its artefact records them so ([RDSC.16.2.2]).

A runtime need not contain the code for either capability ([LCAP.1]). A runtime without it refuses an artefact that requires either with DS_ERR_DSC_CAPABILITY_ABSENT ([RDSC.16.2.7]).

linear_scan: false ([LCAP.2.2]) is admitted, with its own validation ([LNLS.3]). The section's own diagnostic codes stay allocated, and so do those of the deferred clauses that name them. The compiler raises none of them in this edition, because the capability is refused first.

ratified — see also: LCAP.1, LCAP.2.2, LCAP.2.6, LDIA.3.2.3, LDIA.3.3.7, LDIA.9.3, LNLS.3, NDLC.6.1, RCLI.1.9, RDSC.16.2.2, RDSC.16.2.7

The contract file [LCAP.2.1.1]#

A program has realtime: true through its dialect (the realtime dialect, [LDIA.9.3]) or a use block line ([LDIA.2.1]).

The realtime contract (pool caps, WCET budget, agenda capacity, etc.) lives in a sibling <basename>.dsrt file next to the rule source, NOT in the .ds file. The compiler reads the .dsrt at compile time and embeds the contract into the produced .dsc.

A realtime compile without a sibling .dsrt is a hard compile error (DS_VALIDATE_COMPILE_MISSING_DSRT). See [RTCT.4] for the .dsrt file format and the authoring workflow.

see also: LDIA.2.1, LDIA.9.3, RTCT.4

What the compiler checks [LCAP.2.1.2]#

Under realtime the compiler enforces every constspace check ([LCAP.2.6]), which realtime has by [LCAP.3.7]. Those include (compile errors, not warnings):

  1. No JSON path expressions — any slot-access chain that resolves to a JSON slot is rejected. JSON traversal is O(document) with no static bound.

  2. No unbounded string functions — expressions that produce a novel string at runtime, ~ on unbound strings, and ordering operators (<, >, <=, >=) between String slots without a declared capacity are rejected.

The full list is [LNLS.2.3].

see also: LCAP.2.6, LCAP.3.7, LNLS.2.3

What the compiler emits [LCAP.2.1.3]#

When all checks pass, the compiler:

  1. Loads the sibling <basename>.dsrt per [RTCT.4.1].

  2. Validates the [contract] section against the compiled rule network (one entry per alpha/beta/term node, one per series).

  3. Computes the canonical contract hash per [RBND.4b].

  4. Emits a RealtimeContract atom into the DSC carrying the contract values and the hash ([RTCT.6.2]).

  5. Populates DscHeader.rt_config_sha256 with the same hash ([RDSC.3.8]).

  6. Records realtime among the program's enabled capabilities in the CapabilityInfo atom ([RDSC.16.2]).

The DSC consumer (runtime loader) reads the RealtimeContract atom directly and enforces every cap per [RTCT.7]. No integrator-supplied sizing calls or environment variables participate.

see also: RBND.4b, RDSC.16.2, RDSC.3.8, RTCT.4.1, RTCT.6.2, RTCT.7

Loader and integrator contract [LCAP.2.1.4]#

A DSC carrying a RealtimeContract atom self-configures the engine, so the integrator supplies only what the DSC cannot know. Three steps, in order:

  1. Load the DSC — the RealtimeContract atom is parsed and the engine is marked as pending real-time configuration.

  2. Size the pools — supplying the working-memory cap initialises the pools ([LCSP.7.1]). It does not select the strategy: the artefact's settings already did ([NLFC.10.3]).

  3. Go live — the phase transition into LIVE ([LCAP.2.1]).

The sizing step is the integrator's because pool capacities come from the deployment's memory budget, not from the program. Everything else the RealtimeContract atom already determines.

Full loader behaviour is specified at [RDSC.16.3].

see also: LCAP.2.1, LCSP.7.1, NLFC.10.3, RDSC.16.3

linear_scan [LCAP.2.2]#

A strategy capability. linear_scan: false restricts programs to shapes in which an engine can bound every operation by a constant in the working-memory population or series depth, except the deadline heap's O(log N_ttl) under dynamic_ttl: true ([LCAP.2.4], [LCAP.3.3]): [LNLS.5.1] and [LDTL.6.3] state those bounds, and do not bind this edition. The bounds this edition's engine meets are [LNLS.5]'s and [LDTL.6.4]'s. The compiler enforces:

  • All multi-pattern joins must anchor on the identity slot of a logical-lifecycle schema on both sides (J_max = 1, proven structurally).

  • All String slots used in string operations (ordering, regex) must declare capacity N (O(len) → O(1)).

  • No JSON slots, no novel strings.

It does not require pool allocation, presizing, or go_live. linear_scan: true permits every shape. [LNLS] specifies linear_scan: false in full.

see also: LCAP.2.4, LCAP.3.3, LDTL.6.3, LDTL.6.4, LNLS.5, LNLS.5.1

logical [LCAP.2.3]#

A construct capability. logical: false forbids logical-lifecycle schemas and emit X logical. The TMS is not allocated, the retraction path loses the c_tms × n_ids term, and no cascade can occur. [LNOG] specifies logical: false in full.

Combined with linear_scan: false: because LNLS.3.3 requires logical-lifecycle schemas to prove J_max = 1, no multi-pattern rule can satisfy LNLS.3.3 without logical schemas. The effective result is single-pattern (alpha-only) mode: no beta network.

see also: LNLS.3.3

dynamic_ttl [LCAP.2.4]#

A construct capability. dynamic_ttl: true permits retain: <expr> on emit actions for TTL-lifecycle schemas, overriding the schema-level TTL for a specific emission.

It switches the engine's TTL subsystem from a per-schema FIFO queue (O(1) assert, O(expired × log n_schemas + n_schemas) tick) to a deadline min-heap (O(log N_ttl) assert and tick). The log factor in N_ttl is the cost of the per-emit flexibility.

With dynamic_ttl: false: per-schema FIFO queue; all facts of the same schema expire in FIFO order; tick is O(expired × log n_ttl_schemas + n_ttl_schemas) ([LDTL.6.1]).

see also: LDTL.6.1

constspace [LCAP.2.6]#

A strategy capability. constspace: true makes the engine use constant-footprint algorithms: the slab-pool / pre-sized-arena allocator, no allocation on the hot path (assert / pump / fire), bounded steady-state memory. It makes no WCET claim, requires no .dsrt contract, runs no INIT/LIVE lifecycle, and permits AOT CompiledCode atoms.

realtime: true requires constspace: true ([LCAP.3.7]): every realtime program is also constant-space, and the allocator mode is the same.

The compiler runs the constant-space gate, [LCAP.3.2] (no novel strings, no unbounded regex or string ordering, no JSON_PATH): each would violate "zero steady-state allocation." It does not require the identity-slot join ([LNLS.3.3]) or ban JSON slots; joins are bounded by the memory cap, which is finite.

Pool exhaustion is observable, not fatal: an assert returns a non-OK result, and a pump-time exhaustion drops the affected firing and warns through the log callback ([LCSP.2.3]). A program with realtime: false must not ship a .dsrt ([LCSP.4.2]). [LCSP] specifies constspace in full.


Deferred: not binding in this edition.

see also: LCAP.3.2, LCAP.3.7, LCSP.2.3, LCSP.4.2, LNLS.3.3

regex [LCAP.2.8]#

A construct capability. regex: true permits the whole regular-expression surface: the ~ and !~ match operators and regex literals ([LREG]). regex: false forbids all of them; [LNRE] specifies it in full, and [LFCA.13.1] carries the refactor hint.

A runtime may be built without its RE2-class engine ([LCAP.1]). Such a build refuses an artefact whose requires lists regex ([RDSC.16.2.7]).

see also: LCAP.1, LFCA.13.1, RDSC.16.2.7

float [LCAP.2.9]#

A construct capability. float: true permits the Float type. float: false forbids every construct whose type, or the type of any of its operands, is Float: a Float slot, literal, let, const or cast target, and every operator, builtin and series aggregation that produces a Float. The compiler rejects each with DS_VALIDATE_CAPABILITY_DISABLED ([LDIA.3.4.2]). What remains is exact integer arithmetic, logic, facts, time, strings and regex.

A runtime may be built without floating point, and with it the float half of the engine's arithmetic ([LCAP.1]). Such a build refuses an artefact whose requires lists float ([RDSC.16.2.7]).

ratified — see also: LCAP.1, LDIA.3.4.2, RDSC.16.2.7

The deferred storage and samples-plane capabilities [LCAP.2.10]#

Four construct capabilities gate constructs of the storage layer, which is not part of this edition ([LSTO.2], [LSTO.3], [LHYD.1]):

Capability

Would permit

sampled_slots

the sampled marker on a schema slot, routing its values to the samples plane

persist_on_series

persist <dur> on a series declaration, writing through to the samples plane

storage_hydrate_facts

bringing stored facts back as facts

storage_hydrate_samples

bringing sample history back as facts

They stay in the registry ([LCAP.1]), so their names and numbers keep their meaning for the edition that adds the storage layer. In this edition every program and every dialect sets each of them false. The compiler must refuse, with DS_VALIDATE_CAPABILITY_DEFERRED, a use block line setting one true ([LDIA.3.3.7]) and a dialect definition whose settings set one true ([NDLC.6.1]). A line or a setting naming one false is accepted.

No artefact the compiler accepts therefore enables or requires any of them, and a runtime need contain no code for them.

ratified — checks: alloy×2 — see also: LCAP.1, LDIA.3.3.7, LHYD.1, LSTO.2, LSTO.3, NDLC.6.1

Composition rules [LCAP.3]#

Rule 1 — linear_scan: false with logical: false implies alpha-only mode [LCAP.3.1]#

linear_scan: false requires the identity-slot EQ anchor (LNLS.3.3), which must be on a logical-lifecycle schema on both sides. logical: false forbids logical schemas. Therefore no multi-pattern rule can satisfy LNLS.3.3, and the LNLS.3.3c error fires for every multi-pattern rule.

Practical consequence: a program with both settings may only contain single-pattern rules. The beta network is absent; every operation is an alpha-level operation.

see also: LNLS.3.3, LNLS.3.3c

Rule 2 — the constant-space gate [LCAP.3.2]#

The constraints in the following table are compile errors under constspace: true, and so under realtime: true, which requires it ([LCAP.3.7]), whatever linear_scan is set to ([LNLS.2.3]):

Constraint

Reason

No novel strings (LNLS.3.2)

Intern table bounded; under realtime it is locked after go_live, and a novel string → DS_ERR_OOM

No sketch backends (LNLS.3.5)

O(n) compaction is unbounded; cannot appear in T_wcet

No unbounded regex (LNLS.3.7)

O(L×P) with run-time L; must have capacity to bound

No unbounded string ordering (LNLS.3.8)

O(len) strncmp; must have capacity

No JSON_PATH (LNLS.3.9)

Unbounded allocation

Constraints the constant-space gate does not include: LNLS.3.1 (no JSON slots), LNLS.3.3 (identity join), LNLS.3.10 (bounded strings for all string ops). These apply under linear_scan: false.

Deferred: not binding in this edition.

see also: LCAP.3.7, LNLS.2.3, LNLS.3.1, LNLS.3.10, LNLS.3.2, LNLS.3.3, LNLS.3.5, LNLS.3.7, LNLS.3.8, LNLS.3.9

Rule 3 — dynamic_ttl: true reintroduces a log factor [LCAP.3.3]#

dynamic_ttl: false keeps the per-schema FIFO TTL queue, so the TTL tick is O(expired × log n_ttl_schemas + n_ttl_schemas) whatever linear_scan is ([LCAP.2.4], [LDTL.6.1]). Its log factor is in the number of TTL schemas, which is fixed at compile time, so no term grows with N_ttl.

dynamic_ttl: true replaces the FIFO queue with a deadline heap: the TTL tick becomes O(expired × log N_ttl), which grows with N_ttl.

The combination of linear_scan: false and dynamic_ttl: true is permitted. Its TTL tick and its asserts, each O(log N_ttl) on the heap ([LCAP.2.4]), are the operations [LCAP.2.2]'s O(1) bound does not cover. What the combination costs realtime's T_wcet is [LCAP.3.9]'s.

see also: LCAP.2.2, LCAP.2.4, LCAP.3.9, LDTL.6.1

Rule 9 — dynamic_ttl: true under realtime and linear_scan: false [LCAP.3.9]#

Under realtime with linear_scan: false, every term of T_wcet but the TTL tick is O(1) in N_max ([LCAP.5]). With dynamic_ttl: true the tick is O(expired × log N_ttl) ([LCAP.3.3]), so the T_wcet formula is no longer O(1) in N_max. The compiler should warn of a program with all three settings. The warning has no DS_VALIDATE_* code, and a compiler emits only registered codes ([RCLI.5.1]), so the edition that admits realtime allocates one with it.

Deferred: not binding in this edition.

see also: LCAP.3.3, LCAP.5, RCLI.5.1

Rule 4 — logical is orthogonal to realtime [LCAP.3.4]#

realtime: true makes the TMS bounded (rt_locked, DS_TMS_INLINE = 16 inline IDs, withdraw_scratch pre-allocated). It does not eliminate the TMS.

logical: false eliminates the TMS entirely, whatever realtime is set to. Together they reduce T_retract by dropping c_tms × n_ids and removing cascade depth from T_wcet. The realtime compliance checklist changes: the TMS rt_locked check is replaced by "TMS absent" (LNOG.7.2).

see also: LNOG.7.2

Rule 5 — Settings compose by intersection [LCAP.3.5]#

Each restricting setting (a strategy capability set to restrict, or a construct capability set false) removes programs from the set of valid ones. A program must satisfy the restrictions of every setting it has simultaneously; one that fails any of them does not compile, whatever its other settings.

No setting relaxes a restriction another imposes. The only "interaction" is LCAP.3.1 (linear_scan: false with logical: false → alpha mode), which is a consequence of two restrictions combining, not a relaxation.

checks: alloy×2 — see also: LCAP.3.1

Rule 7 — realtime requires constspace [LCAP.3.7]#

constspace is the bounded-memory half of realtime ([LCSP.1.3]), and realtime: true requires constspace: true, as a fundamental constraint alongside those of [LCAP.3.8]. The compiler does not set constspace on the author's behalf: a program with realtime: true and constspace: false is a constraint violation ([LDIA.3.5.1]). realtime is the binding choice for every WCET/lifecycle decision; constspace contributes the alloc-free property and the unbounded-allocation gate ([LCAP.3.2]), and composes with the other settings by intersection like any other ([LCAP.3.5]).

Deferred: not binding in this edition.

checks: alloy×2 — see also: LCAP.3.2, LCAP.3.5, LCAP.3.8, LCSP.1.3, LDIA.3.5.1

Rule 8 — the fundamental constraints [LCAP.3.8]#

Every program's resolved settings, and every dialect's settings, must satisfy each of these. They are fixed rules of what the engine supports: neither an author nor a dialect overrides them, and the compiler switches nothing on or off to satisfy them ([LDIA.3.5.1]).

If this is true

this must be true

storage_hydrate_facts

call

storage_hydrate_samples

call

nocooldown

call

persist_on_series

series

The storage capabilities dispatch through call; nocooldown modifies a call; persist_on_series modifies a series declaration. The constraint between the two deferred strategies is [LCAP.3.7].


ratified — checks: alloy×7 — see also: LCAP.3.7, LDIA.3.5.1

T_wcet impact [LCAP.4]#

Let the base T_wcet formula be:

T_base = T_alpha + T_beta(N_max) + T_tms(n_ids) + T_agenda(log A)
       + T_fire(F_max × A_max × E_rhs)
       + T_ttl(expired × log n_ttl_schemas + n_ttl_schemas)

Each setting's effect on this formula:

Setting

Term affected

Change

realtime: true

All

Bounds every parameter; N_max, n_ids ≤ 16, A ≤ token_pool_cap. Formula becomes finite.

linear_scan: false

T_beta

O(N_max × T_j) → O(1); J_max=1 proven.

linear_scan: false

T_alpha string tests

O(len) → O(capacity) = O(1) via LNLS.3.10

logical: false

T_tms

c_tms × n_ids → 0 (TMS absent)

logical: false

T_retract cascade

No cascade depth multiplier

dynamic_ttl: true

T_ttl

FIFO, no term in N_ttl → heap O(expired × log N_ttl)

Under realtime: true, linear_scan: false (with dynamic_ttl: false, logical: true):

T_wcet = c_alpha × Σ_s(α_s × T_s)        ← all O(1) per LNLS.3.10
       + c_join  × F_max                  ← O(1) per join, J_max=1
       + c_tms   × 16                     ← constant (rt_locked)
       + c_agenda × F_max × log F_max     ← agenda heap
       + c_fire  × F_max × A_max × E_rhs  ← RHS evaluation
       + c_ttl   × (max_expired × log n_schemas + n_schemas)  ← FIFO constant

All parameters are compile-time constants. T_wcet is a fixed number.

Adding logical: false: — same formula, T_tms term = 0. Retract has no cascade.

Adding dynamic_ttl: true instead: — T_ttl = c_heap × expired × log N_ttl. This term grows with N_max (via expired_max ∝ N_max / min_ttl). T_wcet is no longer O(1) in N_max.


see also: LNLS.3.10

Combination matrix [LCAP.5]#

The combinations of the five settings with engine consequences for cost — realtime, constspace, linear_scan, logical and dynamic_ttl ([LCAP.2]). Of their 32 combinations, the 8 with realtime: true and constspace: false violate [LCAP.3.7]; the 24 others are listed. This edition admits only the 8 with both realtime and constspace false ([LCAP.2.1.5]); the matrix states the algebra of the settings, not what this edition admits. Properties:

  • Alloc-free: zero malloc/realloc in pump after go_live

  • Join O(1): J_max=1 proven; no left/right memory scan. The bound is [LNLS.5.1]'s, which does not bind this edition; its engine meets [LNLS.5.8]

  • No TMS: TMS not allocated; no cascade

  • TTL O(1): the TTL tick has no term in N_ttl; its one log factor is in the number of TTL schemas, which is fixed at compile time ([LCAP.3.3]). Whether the tick's total is a compile-time constant depends on a bounded N_max ([LDTL.7.1]), which is the T_wcet column's question and footnote ¹'s. The bound is [LDTL.6.3]'s, which does not bind this edition; its engine meets [LDTL.6.4]

  • String O(1): all string ops bounded by capacity

  • T_wcet fixed: the entire formula evaluates to a single number from the program and its declared bounds ([LCAP.4])

  • Alpha-only: no beta network (single-pattern rules only)

realtime

constspace

linear_scan

logical

dynamic_ttl

Alloc-free

Join O(1)

No TMS

TTL O(1)

String O(1)

T_wcet fixed

Alpha-only

false

false

true

true

false

✗

✗

✗

✓

✗

✗¹

✗

false

false

true

true

true

✗

✗

✗

✗²

✗

✗¹

✗

false

false

true

false

false

✗

✗

✓

✓

✗

✗¹

✗

false

false

true

false

true

✗

✗

✓

✗²

✗

✗¹

✗

false

false

false

true

false

✗

✓

✗

✓

✓

✗¹

✗

false

false

false

true

true

✗

✓

✗

✗²

✓

✗¹

✗

false

false

false

false

false

✗

✓

✓

✓

✓

✗¹

✓

false

false

false

false

true

✗

✓

✓

✗²

✓

✗¹

✓

false

true

true

true

false

✓³

✗

✗

✓

✗

✗¹

✗

false

true

true

true

true

✓³

✗

✗

✗²

✗

✗¹

✗

false

true

true

false

false

✓³

✗

✓

✓

✗

✗¹

✗

false

true

true

false

true

✓³

✗

✓

✗²

✗

✗¹

✗

false

true

false

true

false

✓³

✓

✗

✓

✓

✗¹

✗

false

true

false

true

true

✓³

✓

✗

✗²

✓

✗¹

✗

false

true

false

false

false

✓³

✓

✓

✓

✓

✗¹

✓

false

true

false

false

true

✓³

✓

✓

✗²

✓

✗¹

✓

true

true

true

true

false

✓

✗

✗

✓

✗

✓⁴

✗

true

true

true

true

true

✓

✗

✗

✗²

✗

✓⁴

✗

true

true

true

false

false

✓

✗

✓

✓

✗

✓⁴

✗

true

true

true

false

true

✓

✗

✓

✗²

✗

✓⁴

✗

true

true

false

true

false

✓

✓

✗

✓

✓

✓

✗

true

true

false

true

true

✓

✓

✗

✗²

✓

✓⁴

✗

true

true

false

false

false

✓

✓

✓

✓

✓

✓

✓

true

true

false

false

true

✓

✓

✓

✗²

✓

✓⁴

✓

¹ Not fixed without realtime, on every row that lacks it. Without it N_max is unbounded, so T_wcet cannot be computed to a number even when every per-operation cost is O(1). constspace does not lift this: it bounds the pools, so N_max is bounded under it, but [LCSP.3.1] declines a WCET claim outright — pump time is unbounded because expression depth, RHS action-sequence length and series-backend behaviour are unbounded under constspace alone. A bounded N_max is necessary for a fixed T_wcet and not sufficient.

² dynamic_ttl: true reintroduces O(expired × log N_ttl) in the TTL tick, removing the O(1) TTL guarantee, on every row that has it. Under realtime with linear_scan: false the compiler should warn ([LCAP.3.9]).

³ Alloc-free under constspace without realtime is the pooled guarantee, not the total one. [LCSP.2.1] binds assert, pump and fire to pools sized at boot, and names three paths that sit outside it: the string-intern table, which constspace cannot freeze because it has no go_live to freeze at ([LCSP.3.5]); series identity cardinality, which the event trace drives and nothing caps ([LCSP.3.6]); and a String-typed series, rejected outright for that reason ([LCSP.4.5]). The column's own definition above says after go_live — a milestone these rows do not have. Where realtime is also present the guarantee is the unqualified one and the mark is plain ✓.

⁴ Fixed, but not O(1) in N_max. realtime bounds every parameter ([LCAP.4]), so the formula still evaluates to a number. Some terms in it grow with the bounds:

  • with linear_scan: true, a join may scan, at N_max × T_j ([LCAP.2.1]);

  • with linear_scan: true, a string test costs up to the longest interned string. The intern table is locked ([RTCT.12.4]), so that length is known once the program loads, but not when it compiles;

  • with dynamic_ttl: true, the TTL tick is the deadline heap's O(expired × log N_ttl) ([LCAP.3.3]).

Only the rows with plain ✓ have a T_wcet that is O(1) in N_max.


checks: alloy×20 — see also: LCAP.2, LCAP.2.1, LCAP.2.1.5, LCAP.3.3, LCAP.3.7, LCAP.3.9, LCAP.4, LCSP.2.1, LCSP.3.1, LCSP.3.5, LCSP.3.6, LCSP.4.5, LDTL.6.3, LDTL.6.4, LDTL.7.1, LNLS.5.1, LNLS.5.8, RTCT.12.4

Versioning [LCAP.7]#

This is the v1 capability registry. Removing a registered capability, or changing its semantics, is a breaking change. A number or name proto/capabilities.proto#Capability reserves is out of use and is never reused ([STYL.2.8.7]).

[LCAP.7.1] Adding a capability requires, together:

  1. a member of proto/capabilities.proto#Capability, the next unused number, and a row in [LCAP.1];

  2. the clause specifying it: in [LCAP.2] if it has engine consequences, otherwise in [LFCA];

  3. its setting in each built-in dialect ([LDIA.9]);

  4. any dependency it has, as a fundamental constraint ([LCAP.3.8]);

  5. the compiler's gating of the constructs it governs, and its contribution to requires ([RDSC.16.2.8]);

  6. conformance tests: a program using a governed construct under false fails to compile.

Every integrator dialect definition must then set it, or fail to load ([NDLC.2.2]).

Most new language features are not capabilities: they are part of the language, available to every program ([LDIA.4.2]).


see also: LCAP.1, LCAP.2, LCAP.3.8, LDIA.4.2, LDIA.9, NDLC.2.2, RDSC.16.2.8