facets docs
DocumentLIVE

SL — The facets System Language, v1.18

Status: LIVE. Normative, and specified from the working implementation (2026-07-18). Parser and serializer: crates/facets-canvas/src/sl.rs. Boundary: compile_sl / emit_sl (crates/facets-kernel/API.md, "SL surface"). Round-trip goldens: crates/facets-canvas/tests/sl_roundtrip.rs over fixtures/sl/; formatting goldens: crates/facets-canvas/tests/sl_format.rs over fixtures/sl/stanza/. Design rationale and precedent research: docs/design/sl2-authoring-language.md. Issue: #82.

SL is a human-writable textual notation that compiles deterministically into a facets model. It is the third concrete syntax over the one neutral abstract spec the repo already holds — the canvas authors it by gesture, JSON serializes it, SL writes it as text. This document specifies the v1 language as it stands at v1.17 — v1.0 (2026-07-18) plus the additive revisions since, each marked (vX.Y, #issue) where it lands and rowed in §11: its lexicon, grammar, semantics, the annotation layer, the round-trip contract, and the structure/dynamics boundary. Three worked examples (the golden corpus) and a lineage section close it.


1. Design commitments

Status: normative. Each commitment is enforced by the implementation, and binds any second implementer of this core (germen already implements it).

Five commitments govern every rule below. Each is enforced by the implementation, not merely stated.

C1 — The compile step is a compiler, never an LLM. parse_sl is a deterministic function of the text: same input, same model, every run. An LLM may help a human write SL (docs/design/llm-integration-research.md), but nothing between the text and the model interprets, guesses, or smooths. The negative control is gpt-jargon, where the LLM is the interpreter on every run; SL is precisely not that.

C2 — The parser judges nothing about systemhood. SL's parser enforces only lexical and referential rules (tokens, declare-before-use, unique names). Legality — whether the described structure is a system under a lens — is the kernel's verdict, reached the same way canvas gestures reach it: the compiled CanvasModel flows through analyze_canvas, which projects and runs validate_mode. This is Mobus's own syntax doctrine operationalized: "The structure of a system being described is governed by the mathematical definition… Everything is determined a priori by the ontological commitments" (Ch. 4 §4.4.1.3). SL has no free grammar to enforce; structural legality is the syntax, and the kernel owns it.

C3 — The lexicon is the kernel's vocabulary, nothing more. A word earns a place in SL only if it names a distinction the neutral spec already carries (§3). Nothing in the language is programming-language furniture: no expressions, no variables, no control flow, no macros. Mobus classifies SL correctly: "SL is a 'description' language… different from a typical programming language, which is designed to describe algorithms" (§4.4.1); it "has more in common with… XML" (§4.5). Every SL statement is a declaration, not an instruction.

C4 — Presentation never contaminates meaning. Structure lines (§4) carry model content; @-prefixed annotation lines (§6) carry view state — positions, the active lens, an observer's direction toggle. The parser applies annotations but no systemhood-bearing fact depends on them; a diff of the structure lines shows systems changing, never node drags. One file holds both, annotations last (the Modelica precedent: layout is syntactically present, semantically null). Within the structure lines a third, authorial tier is named as of v1.7 (facets#411): description and grounding ride structure lines, project into Info, and round-trip, but no verdict reads them — two models differing only there are the same system. They are neither systemhood nor view; they are what the author says about the claim. description had these properties from v1.4 without a name for them.

C5 — Structure only; dynamics are declared elsewhere, and never as scripts. SL v1 describes C, N, E, G, B — the structural face. It contains no dynamical syntax and, by design, never an embedded simulator. §8 states this boundary precisely and argues it against Mobus's own embedded-scripts proposal.

2. The neutral spec (compile target)

Status: normative.

SL compiles to CanvasModel (crates/facets-canvas/src/canvas.rs:165), the editing model all three surfaces share. Its content divides into model content and view state:

Field Layer SL realization
things — id, name, role (Component/Environment), optional primitive, optional rule (an agent, §4.7), interface flag, optional child_model decomposition reference, optional stock_unit declared unit, optional Klir source-system metadata (scale, states, variable_kind) model component / source / sink / environment lines (§4.3)
time_unit — the model's time-unit symbol model time unit line (§4.9)
klir_level — the declared Klir epistemological level model level line (§4.10)
relations — a, b, name, is_bond, kind model flow lines (§4.4)
params / metrics — declared domain names over input knobs and computed readouts (walkthrough #18, #203) model param lines (§4.5), metric lines (§4.6)
boundary — porosity, perceptive_fuzziness model boundary line (§4.8)
system_type — kingdom, genus, domain model system / domain lines (§4.1–4.2)
things[].x, y (pixel positions) view @pos annotations, else auto-layout (§6.1)
lens (active reading) view @lens annotation, else caller-preserved (§6.2)
relations[].klir_directed (observer toggle) view @directed annotations (§6.3)
system_pos (where the system of interest sits) view @system annotation, else centred on its components (§6.4)

The model-content rows are the neutral spec proper; the view rows are the annotation layer. The compiled model is then compiled again by the existing deterministic project() into a WorldModel for validation and the lens palettes — SL adds a surface above an unchanged pipeline.

A concept-by-concept table setting each SL line beside its canvas gesture, JSON fragment, and kernel referent — "three concrete syntaxes, one neutral spec" made visible rather than asserted — lives in the reader's tour (#95), its single didactic home. The lexicon table (§3) already carries the kernel-referent column that table extends.

3. Lexicon

Status: normative.

Every SL word, with the kernel distinction that licenses it and the tradition(s) that contributed it. There are no other words.

SL is one unified language: the traditions contributed the words, and the language owns them now, with derivation acknowledged. Attribution is therefore a ledger, not a partition — and it is deliberately multi-tradition where the traditions converge. That component is both Bunge's word (composition C) and Mobus's (C in the tuple) is not an ambiguity to resolve; it is convergence evidence of exactly the kind the K≅2 program runs on. Rows crediting a single tradition mark a distinction that tradition alone contributed (mere is Bunge's; the work-process taxonomy is Mobus's; the observer's direction toggle is Klir's). Per-cell primary citations live in the terminology concordance (terminology-concordance.md), the SSOT this column summarizes.

Word Kernel distinction Contributed by Kernel referent
system the bounded whole being modeled; optionally names the SOI (v1.1, #84) Klir, Bunge, Mobus — the convergence word; the name is Mobus's SOI · Bunge's σ · Klir's S, bound to a proper name SystemType + CanvasModel.name
Conceptual, Concrete the two kingdoms of systems Bunge (Treatise Vol. 4, Post. 6.4) Kingdom
Physical, Chemical, Biological, Social, Technical the five genera of concrete systems Bunge (Post. 6.4); Klir's §2.4 type-(a) axis lands on nearly the same list Genus
domain the analyst's subject-area framing Mobus (the generic lexicon translated into domain-specific terms, §4.4) SystemType.domain
component a thing inside the boundary Bunge (composition C) and Mobus (C in the tuple) — shared; Klir diverges (things/elements) Role::Component
source, sink, environment a thing outside the boundary Mobus (Src/Snk environment objects); environment shared with Bunge (E) Role::Environment (§5.2 on the three words)
interface membership in the root membrane's I (flat I ⊆ C is the Lean's convention, Tuple.lean; the book makes interfaces components of the boundary subsystem — concordance row 9). The word is a claim, not a label: since #213/#225 an interface must carry a boundary-crossing flow or the kernel refuses the model at Operational — see §5.4. RESOLVED(#226, 2026-08-16): the pass-way declares as its own object (interface "Name" [protocol "…"]) and the processor it serves sits inside, associated by an interior flow — the split is the default authoring pattern; the stamped suffix form remains the merged special case for a component that IS a pass-way. No new node sort: both are components, I ⊆ C intact (the split is the InterfaceDecomposition.lean shape, SSF #43) Mobus (I in B; Fig 4.10's interface-serves-a-receiver/exporter-process) and Bunge ("interface points" = i/o terminals ∈ boundary, 1992) — shared Thing.interface + Thing.protocol
milieu one ambient condition variable in M — E = ⟨O, M⟩ per the lifecycle working paper (2026 oct-tuple revision; the Lean core carries the slot, MobusEnvironment.milieu, and proves the Mobus→Bunge projection discards it). Variables "surround or 'bathe' the system" and need no interface: a milieu line takes no flows and no position — the absence of edges IS the ontology. value declares a snapshot of the condition (milieu pH value 7.2); nothing dynamical reads it, deliberately (the paper marks that coupling an open research area) Mobus (lifecycle paper, M in E) CanvasModel.milieu / Environment.milieu (MilieuVariable)
usability + one of Resource, Disruption, Product, Waste what a boundary crossing IS to the system — a 2×2 of direction against value: useful in, harmful in, useful out, harmful out (v1.4, #331). The kernel has carried InteractionUsability from its first version; project() hardcoded every flow to Resource, so the distinction was unauthorable and a model needing it had to assert it in a comment. Undeclared is UNDECLARED, never Resource — only projection supplies the default Mobus (resources in, products and wastes out — ch. 10's archetypes, ch. 12's tactical coordination) Relation.usability → Interaction.usability
description prose about a thing or a flow, in the author's own words — restored in v1.4 (#326) after the rebuild dropped what the original BERT carried on every entity. Never semantics: no verdict reads it, and two models differing only here are the same system. It projects into Info.description, a facets-core field that existed from the start and received an empty string until this clause reached it. Since v1.5 (#399) it may sit on its own indented line directly beneath its declaration — the one clause that can, because it is the one clause whose value is a sentence (§4.3) house word; the DISTINCTION is old-bert's, and the destination field is facets-core's Thing.description / Relation.description → Info.description
primitive + one of Combining, Splitting, Buffering, Impeding, Propelling, Copying, Sensing, Modulating, Amplifying, Inverting the work-process taxonomy Mobus ProcessPrimitive
grounding whose word this thing or flow rests on (v1.7, facets#411): a grade from a closed, ordered vocabulary — unknown < third-party < asserted < observed < spec ≈ chain — and, optionally, the reference in the author's words (a file and line, a URL, an endpoint and date, a block number). Authorial tier (C4): projects into Info.grounding, round-trips, and no verdict reads it; if a grade ever needs to bite, that is a new ruling, not an extension. Rides environment lines, as description does and for the same reason. Takes the continuation form of §4.3, beneath the description when both are present house word; the DISTINCTION is the modeler's (if this element is wrong, whose word was wrong) Thing.grounding / Relation.grounding → Info.grounding
decomposes a component carries a child model that realizes it, gated by the boundary contract (β) Mobus (Eq. 4.3, the word's primary source) and Bunge (every system a component of its next supersystem) — shared; Klir least (his hierarchy is epistemological levels, not part-whole) System.child_model (ModelRef), checked by decomposition::check_decomposition
flow a drawn connection (edge in N or G) word: Mobus; the underlying relation is three-tradition (Klir dependency, Bunge connection/bond, Mobus flow) Relation
-> direction (from, to) Mobus (flows carry direction); contrast the observer's @directed Relation.a / .b
energy, matter, field, informational the connection-kind taxonomy Bunge, verbatim ("flows — of energy, matter, or fields … informational", CES 1979), mapping 1:1 onto Mobus substances (Material/Energy/Message; canvas.rs:64) Kind (the fifth value, Unspecified, is the absence of the clause)
mere bond vs mere-relation (B vs B̄) Bunge Relation.is_bond = false
ample availability assertion on an informational flow — present, never binding; no magnitude (#9) Mobus (Amplifying's min-selection, §Fig 3.19 signal+power semantics); the word is the model's, discovered by llm-market Interaction::ample
spill an overflow route on a flow out of a bounded stock (v1.17, #578, walk row 48): the flow carries whatever the stock cannot hold at its capacity, the same time step, and nothing else; without one, overflow dissipates as before. A Buffering's own law, so no magnitude: amount, unit and ample beside it are faults, as is a spill on an informational flow or out of anything but a Buffering component with a capacity. Through an interface the crossing leg of the same label carries it (Pond -> Outlet "spillway" spill, then Outlet -> Downstream "spillway"). A spill that loops back into its own stock in the same step is an anchorless loop and the run refuses it Mobus (containers have capacity, ch. 4; overflow, Fig 3.17) Relation.spill → Interaction.spill → OperationalFlow.spill → Wire.spill
conductance a field flow (v1.17, #574, walk row 48): flow A -> B : field "pipe" conductance 0.3 moves G · (potential of A − potential of B) a time unit, following the sign of the difference, so it runs both ways. one way after it holds the backward flow (a diode, a check valve). A backward flow needs a potential at both ends (a stock or a source). Each step's flow is capped at the amount that evens the two potentials out, so a field flow never overshoots, whatever Δt · G; the step's error shows as reaching level early. : field only; beside amount or ample a fault Fick, Fourier and Ohm (linear diffusion on a graph); Mobus (potential fields) Relation.conductance → a Force Interaction with a conductance parameter → OperationalFlow.conductance → a gradient Wire
capacitance a stock's quantity per unit of potential (v1.17, #574): its field flows compare level / capacitance, so tanks of different widths even out by height and capacitors by voltage. Default 1, the raw level. Buffering only, > 0 V = Q/C, h = V/A, T = Q/C_th Thing.cognitive_params["capacitance"] → Node.capacitance
potential a source's fixed potential for its field flows (v1.17, #574), apart from its emission rate (source Battery potential 12). Source lines only, > 0 a fixed-potential boundary (a battery, a reservoir at a fixed head) Thing.cognitive_params["potential"] → ExternalEntity.potential → OperationalTerminal.potential → Node.potential
informational (on a stock) a memory (v1.17, #576, walk row 48): component Memory primitive Buffering stock ideas time constant 5 informational. The messages flowing into it are inflows, not a gate; it forgets at level / time constant; its informational outflows carry its level, copied, not drained. Whether a stock is conserved follows from what it holds: information copies, so a memory is off the matter and energy books (conserved and the residual count matter and energy only). An informational flow into any other stock is still that stock's gate. A memory with forgetting is a leaky integrator, an EWMA: memory carried in the state, as #522 asks of a learning rule, while H stays the record of states (#97). Buffering only, bare Mobus (knowledge as the effect messages have on a system's structure); Shannon (information is not conserved) Thing.cognitive_params["informational"] → Node.holds_message
substance what flows, named apart from what the flow is called — "F-1.1 — iron-input" is a label, iron is a substance (#216, C4) Mobus (substances are what work processes transform); Bunge's flows are "of" something by construction Relation.substance → Substance.sub_type
amount the flow's magnitude per Δt — a structural attribute of the edge (it does not vary during a run), whose absence capped every SL model at rate 1.0 (#216, C1). A non-positive value is a parse fault; on a mere relation it is a contradiction and refused. Omitted ≠ 1: unauthored survives as its own state, and only projection supplies the kernel default Mobus (flows carry magnitude — §8.2's rate field, structural half) Relation.amount → Interaction.amount
unit (flow clause) the magnitude's unit (#216, C1); same word as the time unit header line, disambiguated by position Mobus (dimensional bookkeeping on flows) Relation.unit → Interaction.unit
weight per-transition count for the DTMC read (#67) — a non-negative integer; absent reads as the uniform 1 Klir (the directed-system observer's transition structure); SSF's kindCodomain .markov Relation.weight
boundary, porosity, fuzziness B's properties P = ⟨porosity, perceptive_fuzziness⟩ Mobus (B = ⟨P, I⟩) and Bunge (topological boundary, 1992) — shared concept; the property words are Mobus's CanvasBoundaryProps
stock a Buffering stock's declared unit — the stock accumulates its inflow over Δt, so its dimension differs from the flow's and carries its own unit (#76/#94) Mobus (stocks/buffers, the Buffering work process); the Stella/Vensim stock-flow convention Thing.stock_unit → AgentModel.stock_unit
initial the stock's starting level, welded to the stock clause so a dimensionless initial is unwritable (#112) — the archived reservoir's fact ("starts with a stock already full"), now sayable; the tether's t0 observation writes the same field, so an authored initial and a measured one are one kind of fact Mobus (a run's initial condition; the pointed-coalgebra reading, #112 proposal §2.a) Thing.initial_state["storage"] → AgentModel.initial_state["storage"]
release a Buffering stock's drain per time unit (#112) — the archived homeostat's fact, now sayable; Buffering-only, since no other primitive reads it. ≤ 0 is a parse fault (same rule as amount) Mobus (Buffering's release behavior); a parameter of the transition map (#112 proposal §2.b) Thing.cognitive_params["release_rate"] → AgentModel.cognitive_params["release_rate"]
capacity a Buffering stock's overflow ceiling (#112) — the storage clamp: a bounded tank overflows and the excess dissipates (Mobus Fig 3.17). Buffering-only; ≤ 0 is a parse fault Mobus (containers have capacity — Ch. 4) Thing.cognitive_params["capacity"] → AgentModel.cognitive_params["capacity"]
time constant a Buffering stock's first-order drain coefficient τ (#112) — release ≈ stock/τ, an exponential decay in place of the fixed-rate drain. Buffering-only; ≤ 0 is a parse fault; MUTUALLY EXCLUSIVE with release on one component (the engine prefers time_constant whenever both are set, so a co-declared release would never be honored — refused rather than silently overridden). constant is positional (§7.1), sitting behind the already-reserved time head Mobus (Fig 4.12's first-order regulator dynamics) Thing.cognitive_params["time_constant"] → AgentModel.cognitive_params["time_constant"]
setpoint an Inverting comparator's reference value (#112) — (setpoint − signal).max(0), Mobus Fig 4.12; the engine's own default is 1.0 (the bare 1 − signal). Inverting-only; ≤ 0 is a parse fault Mobus (Fig 4.12, the comparator) Thing.cognitive_params["setpoint"] → AgentModel.cognitive_params["setpoint"]
maintenance a Buffering stock's upkeep loss per time unit (#112; scaled by Δt like release, walk toy models) — Odum's depreciation outflow, charged from the stock every step and dissipated (Mobus Fig 3.17: "every store has one"). Buffering-only; ≤ 0 is a parse fault Mobus (Fig 3.17, Odum depreciation) Thing.cognitive_params["maintenance"] → AgentModel.cognitive_params["maintenance"]
backpressure a Modulating valve's throttle flag (#112) — a downstream throttled valve holds its release back rather than shedding it. Bare (no value); Modulating-only Mobus (the throttled-valve regulator) Thing.cognitive_params["back_pressure"] → AgentModel.cognitive_params["back_pressure"]
limiting a Combining process's Liebig flag (#342, v1.9) — throughput is bounded by the scarcest input kind rather than their sum (Mobus's combining process starves on the input it has least of). Bare (no value); Combining-only Mobus (the combining process; Liebig's law as its limiting case) Thing.cognitive_params["limiting"] → AgentModel.cognitive_params["limiting"] → Node.limiting
mass action a rate law on a Combining or Copying process (v1.17, #573, walk row 48): mass action <k> makes the process draw k · ∏ x each time unit, the product over the opening levels of the stocks it draws on (each physical flow from a stock into it, which gives that amount) and the stocks it reads (each informational flow from a stock into it, a catalyst the law multiplies by and does not use up). Without it a process passes what is pushed into it, which is the law's degenerate case. A stock that cannot cover every law drawing on it scales them down, each law taking the smallest scale among its drained stocks, so a reaction is scaled whole and a conserved total such as S + I + R holds (systems-science-foundations stoichRun_conserves, for exact arithmetic). > 0; Combining and Copying only. Since v1.18 (#584, walk row 57) k is the one component field a param may name for the command form (param "contact rate" : mass action of Infection range 0.05..0.5, §4.5), so an agent can set how fast an encounter runs; the range stays above zero, since a law at 0 is no law Mobus (a rate law lives on the work process); Guldberg and Waage's mass action, Kermack and McKendrick's SIR Thing.cognitive_params["mass_action"] → AgentModel.cognitive_params["mass_action"] → Node.mass_action
gain a Sensing process's gain k (#496, v1.9) — the multiplier between the level it reads and the signal it reports; default 1 (a sensor reports what it sees; the projection's blanket 0.5 no longer applies to Sensing). Since v1.15 (walk row 18) also an Amplifying process's gain: the multiplier from the weak signal to the strong one, the output capped by the power it is fed, min(signal · gain, power); the engine holds it as 1 + 9p, so gain is that multiplier, not p; default 5.5 (the projection's 0.5). Sensing and Amplifying only; > 0 on a sensor, > 1 on an amplifier (a gain of 1 amplifies nothing) Mobus (the sensor as transducer, ch. 4 Fig 4.10's message processor; Fig 3.19: amplification "adds energy (power) to a weak but modulated energy input to produce a 'copied' modulated high-powered energy flow output") Thing.agency_capacity → AgentModel.agency_capacity → Node.param
efficiency a Propelling process's efficiency η (v1.15, walk row 18): the share of what the pump is handed that it pushes on, out = in · η; the rest is lost to the work. Default 0.5 (the projection's blanket default). Propelling-only; greater than 0 and at most 1, because every work process loses some energy as waste heat and none makes more than it is given Mobus (Fig 3.19: "Propelling is work done to push a substance against a gradient, like a pump pushing water through a pipe"; ch. 4 Fig 4.5: the simple work processes "involve the consumption of energy and the loss of energy as waste heat"); the word is the engine's teaching card (facets-compose/src/docs.rs) Thing.agency_capacity → AgentModel.agency_capacity → Node.param
impedance an Impeding process's impedance (v1.15, walk row 18): the share of the flow it holds back, out = in · (1 − impedance); the engine holds the share passed, p = 1 − impedance. Default 0.5 (the projection's blanket default); a pass-way lowered to Impeding (§4.3) runs at impedance 0. Impeding-only; at least 0 and less than 1 (impedance 1 would stop the flow, which is not slowing it) Mobus (Fig 3.18: "impeding a flow or slowing the rate of flow with a consequent back-pressure"); the word is the engine's teaching card (facets-compose/src/docs.rs) Thing.agency_capacity → AgentModel.agency_capacity → Node.param
agent a decision-maker (v1.10, facets#269, ADR 0008): a thing of its own kind that reads one stock's level (or, v1.14, one physical flow), runs its rule and commands one work process. Mobus §11.2.1: "The agent is given agency … when its output signals command an actuator having the necessary power to affect changes on those conditions (requisite variety, Ashby 1958)". The ten work processes stay ten; an agent is not an eleventh Mobus (ch. 11 Fig 11.1: engine, decision model, memory) Thing.rule → AgentModel.policy → OperationalSpec.agents → NodeKind::Agent
watches the stock whose level the agent reads each tick — Mobus's "state information at time t"; the compiler draws the observation tap (v1.10, #269). watches flow <a> -> <b> ["label"] (v1.14, ADR 0008 D5) reads instead what one physical flow delivered on the last completed tick, the feedforward form; it draws no tap Mobus (§11.2.1 step 1; §12.3.2.3, feedforward: "measuring the value of inputs as compared with ideal values") the tap: a Relation of kind Informational, stock → agent; or Thing.watches_flow → AgentModel.observation → OperationalAgent.observation → Node.watch
rule + proportional the decision model: gain · (target − level), floored at zero — Wiener's error correction, Mobus §12.3.2; at gain 1 it is the Inverting comparator exactly, which is the equivalence the agent kind owes. The set is closed (ADR 0008 D4) and grows one rule at a time: threshold (v1.10), table and trace (v1.12) are built; Markov is named and not (v1.10, #269) Mobus (§11.2.1.1 "a simple thermostat"; §11.3.4.1 policy vs procedure) AgentRule → Policy
rule + threshold the on–off decision model: emit at or above above, else else — Mobus §11.2.1.1's purely reactive agent, "a simple thermostat is an easy example", and the first trajectory none of the ten primitives can produce (a square wave; the relay thermostat's overshoot is the bench witness, assets/bench/thermostat-relay.sl). Its refusal is requisite variety (§12.3.2.2): a command a gate cannot reach (above 1 on a Modulating or Buffering) is refused with the reach printed; equal emit and else decide nothing and are refused (v1.10, #269) Mobus (§11.2.1.1; Ashby's requisite variety, §12.3.2.2) AgentRule::Threshold → Policy::Threshold
above, emit, else (threshold clauses) where the switch turns, and the two commands it chooses between; above may be named by a param (§4.5) Mobus Thing.cognitive_params["above"], ["emit"], ["else"] → Policy::Threshold
below (threshold clause, optional) the hysteresis band (v1.11, facets#517): with below <n> the switch emits at or above above, takes else under below, and between the two holds its last command — a relay thermostat's dead band, what stops it chattering at one level. The hold is one bit of memory, the agent's own last command, which the engine already keeps as the node's activity; inside the band with no last command yet (the first tick), or with a last command that was not emit, it takes else, so a relay that starts in its dead band starts at else (Policy::decide_in; toy-model walk, 2026-11-03); a line without below reads none and means exactly what it meant before. Positive and under above; may be named by a param only on a line that declares it. Separating instance: the banded relay switches fewer times a day than the bare one (assets/bench/thermostat-band.sl) the on–off controller with hysteresis (Åström & Murray, Feedback Systems, 2008; Mobus §11.2.1.1's relay with a dead band) Thing.cognitive_params["below"] → Policy::Threshold { below: Some(_) }
target, gain (agent clauses) the rule's goal and its sensitivity — the declared policy, which the kernel's procedure enforces (§11.3.4.1: "the set point represents the ideal value … the procedures are embodied in the response mechanisms"). Both > 0; a param may name either (§4.5). The trace rule reads the same two words over its mean (v1.12) Mobus Thing.cognitive_params["target"], ["gain"] → Policy::Proportional, Policy::Trace
rule + table the graded decision model (v1.12, facets#269): a declared map from reading bins to outputs, under b1 emit o1 [under b2 emit o2 …] else oN — o1 under b1, o2 from b1 to under b2, and so on, oN at or above the last bound. Mobus §11.2.1.1's purely reactive agent with "an algorithmic or heuristic program of response"; no memory, a function of the reading alone. The bins are contiguous by construction, so bounds that do not strictly increase are the ADR's "overlapping or gapped bins" and are refused; one bin is a threshold and is refused with the threshold line spelled; a non-positive bound, a negative output and a command past a gate's reach are refused as for threshold. Witness: assets/bench/hospital-beds-table.sl against hospital-beds-agent.sl Mobus (§11.2.1.1) AgentRule::Table → Policy::Table { bounds, outputs, else }
under, emit, else (table clauses) one under <b> emit <o> pair per bin, in reading order, then else <o>. The bag and the session number the pairs from one (under1, emit1, under2, … else), so facets bench --set Gate.emit2=… reaches a bin's output and the inspector edits every number; adding or removing a bin is written in SL. No param names a bin (v1.12) Mobus Thing.cognitive_params["under1"], ["emit1"], … ["else"] → Policy::Table
rule + trace the decision model with a memory (v1.12, facets#269; the first use of the 8-tuple's H): window <n> target <t> gain <g> emits max(0, g · (t − mean of the last n readings, this tick's included)); before n readings exist, the mean of those seen. Mobus §11.2.1.1's adaptive reactive agent, which "tracks the input variables and responds in kind. This is the homeostatic mechanism". The window of readings is run state the engine owns, written once per tick after the decision (§4.7), never a field of the policy or the node; at window 1 the mean is the reading and the rule is proportional tick for tick, which is its control. Refusals: a window that is not a positive whole number (a zero window remembers nothing), a non-positive target or gain. Witness: assets/bench/thermostat-trace.sl against thermostat-agent.sl Mobus (§11.2.1.1; Fig. 11.1's experiential memory) AgentRule::Trace → Policy::Trace { window, target, gain }; the memory: Circuit::agent_readings
window (trace clause) how many of its own readings the trace rule's mean runs over, a positive whole number of ticks; may be named by a param (§4.5) (v1.12) Mobus (Fig. 11.1, "experiential memory") Thing.cognitive_params["window"] → Policy::Trace { window }
manages the work process the agent commands — one that reads a control signal (Modulating, Amplifying, a Buffering stock's release); the compiler draws the command wire. Never another agent at this stage (ADR 0008 D2) (v1.10, #269). manages param "<name>" (v1.13, ADR 0008 D1) is the command form: the agent writes the named param's knob at the end of every tick instead, and the param becomes required (§4.5, §4.7) Mobus (§11.2.1 "command an actuator"; §12.2.3.1 the operational agent; §12.2.3.2 the coordination agent that changes "an operational parameter") the command: a Relation of kind Informational, agent → process; or Thing.manages_param → AgentModel.command → Node.knob, written through Circuit::write_amount
reservoir a source's finite supply (#260, v1.9) — the total it can emit over a run, after which its flows stop; absent = the unbounded source the kernel always had. source lines only, > 0 Mobus (a finite resource in the environment; the run's horizon meets the supply's) Thing.cognitive_params["reservoir"] → ExternalEntity.reservoir → OperationalTerminal.reservoir → Node.reservoir
scale + one of Nominal, Ordinal, Interval, Ratio the measurement scale of a variable's state set — the level at which its values are comparable (v1.2, #154) Klir (the source-system characterization of a variable — §4, Table 4.1, the ground floor of his epistemological hierarchy) Thing.scale (ScaleType) — authored canvas-side metadata, read in the Klir register only; never projects
states the variable's state set, in Klir's set notation — {Green, Red}; {} is the explicit empty set (v1.2, #154) Klir (a source-system variable is characterized by its state set — §4, Table 4.1) Thing.states — same register-only standing as scale
kind (thing clause) + one of Basic, Support the basic-vs-supporting partition of the source variables — a semantic role the modeler declares, never readable off R; omitted reads as Basic, so the clause declares the rare support variable (v1.2, #154) Klir (basic variables are the observed quantities; supporting variables encode the support set — time, space, population — §4, Table 4.1) Thing.variable_kind (KlirVarKind) — same register-only standing as scale
time unit the model's time-unit symbol — what one Δt is called, so an intrinsic rate integrates in the author's vocabulary (kW → kW·h, #94) Mobus (Δt in the 8-tuple's time base); the symbol is display vocabulary, never a rescaling CanvasModel.time_unit → WorldModel.time_unit
level + one of Source, Data, Generative, Structure, Metasystem the model's declared epistemological level — where on Klir's hierarchy the author claims this model stands (v1.3, #288). The modeling relation is defined only within a level (§5.4 of Facets), so the declaration is what the cross-level refusal reads; undeclared gates nothing Klir (the epistemological hierarchy of systems — §4.5, and §5.4's "true categories in the sense of category theory") CanvasModel.klir_level (KlirLevel) — authored canvas-side metadata, read in the Klir register only; never projects
param (+ shares, range) a declared name over an input knob — one flow's declared amount, or a process's out-fanout presented as % shares, in the model's own vocabulary (walkthrough #18). Stores no value: the anchored amount IS the value house words (the distinction is the instrument's: domain names over declared inputs); the amounts themselves are Mobus's edge attributes (§4.4) ParamDecl / ParamAnchor — canvas-side; never projects
metric + share of flow / sum into a declared readout over the run — the output twin of param (#203): share reads composition (one flow as a fraction of its source's outflow), sum reads throughput (everything arriving at a thing); both evaluate over the recorder's executed per-flow series, never a free-floating number. The verb set is closed and grows one checkable verb at a time (ADR 0006) house words (the distinction is the instrument's: declared observables over the trace); Mobus's H supplies the record they read MetricDecl / MetricExpr — canvas-side; never projects
@pos, @lens, @directed, @system view state (§6) @directed is Klir's observer commitment (Facets Ch. 4); @pos/@lens are house words x/y, lens, klir_directed

Three absences resolved:

  • The system name landed (v1.1, #84 — closed 2026-07-18). Mobus's paragraph names its subject ("Process M", "Steel-Plant"); the kernel gained CanvasModel.name and SL gained system "Name" [: Kingdom[/Genus]] the same day, exactly on the C3 schedule the v1 spec committed to: the word entered the lexicon only once the kernel carried the distinction. The name is a quoted string, projects into the root system's info.name, and round-trips both ways (concordance row 1, "the named referent").
  • Klir source-system metadata landed (v1.2, #154 — 2026-07-24). The Klir lens could name a thing and its relations but not characterize its variables: Table 4.1 fixes a variable by its state set, its measurement scale, and its basic-vs-supporting standing, and none of the three had a word. scale, states, and kind entered the lexicon the day the neutral spec gained the three fields (ScaleType, Thing.states, KlirVarKind — the C3 schedule again). Unlike every other thing attribute they ride environment lines too (a revision within #154: Table 4.1 most wants the input variables characterized, and those are frequently the environmental drivers). All three are authored metadata read in the Klir register only — none projects to the kernel, so no systemhood verdict reads them (C2 untouched).
  • Decomposition by reference landed (#89 step 4 — merged 2026-07-20). Mobus's sub-paragraphs (§4.3.1) needed the kernel to carry the part-whole distinction first; it did once System.child_model (a ModelRef) and the Lean decomposition contract merged (steps 2–3, same day), so decomposes entered the lexicon on exactly the C3 schedule the name waited on — the word earns its place only once the kernel names the distinction. SL takes the reference form (the child is its own flat model, keyed by a stamped id — §4.3, §6 of decomposition-foundations.md), never nested block text: each SL file stays one flat paragraph, the recursion living in the reference index and not the page layout. The block form is the road not taken.

4. Grammar

Status: normative.

SL is line-oriented. A file is a sequence of lines, each independently one of: blank, comment, structure line, or annotation line — with one exception since v1.5, the indented description line (and, since v1.7, the indented grounding line), which belongs to the declaration directly above it (§4.3). A blank or comment line stands above whichever line comes next — it is that line's leading trivia — and format_sl (v1.6, §7.4, #302) is the one thing in this spec that reads a file's blank and comment lines as anything other than noise between structure lines; the compiler itself never does. In EBNF (terminals case-insensitive for keywords; names case-sensitive):

model       = { line } ;
line        = blank | comment | structure [ newline continuation ] | annotation ;
continuation = indent "description" string             (* v1.5, #399: the prose of the thing, iface,  *)
            | indent "grounding" gradeword [ string ] ; (*   milieuvar, or flow on the line directly   *)
indent      = one or more spaces or tabs ;             (*   above; indentation means nothing elsewhere; *)
                                                       (*   grounding: v1.7, #411, not on milieuvar    *)

structure   = system | domain | sysdesc | timeunit | level | thing | iface | milieuvar | agent | flow | param | metric | boundary ;
system      = "system" [ string ] [ ":" kingdom [ "/" genus ] ] ;
domain      = "domain" string ;
sysdesc     = "description" string ;                   (* unindented: the system's own prose, #326 *)
timeunit    = "time" "unit" name ;                     (* the Δt symbol, #94 *)
level       = "level" levelword ;                      (* the declared Klir level, #288 *)
thing       = thingword name { attr } ;
thingword   = "component" | "source" | "sink" | "environment" ;
iface       = "interface" ( "unresolved" | name )      (* the pass-way as its own object, #226; *)
              [ "protocol" string ]                    (*   resolves the stamped-vs-placed fork; *)
              [ "description" string ]                 (*   `unresolved`: the reserved pass-way, *)
              [ "grounding" gradeword [ string ] ] ;   (*   v1.8 #308, takes no protocol        *)
milieuvar   = "milieu" name [ "value" number ]         (* one ambient variable in M — E = ⟨O,M⟩, *)
              [ "unit" name ]                          (*   lifecycle-paper revision; no flows,  *)
              [ "description" string ] ;               (*   no position: it bathes, not plugs   *)
attr        = "interface" [ "protocol" string ]        (* merged form: this component IS the pass-way *)
            | "primitive" primword
            | "description" string                     (* prose, #326 *)
            | "grounding" gradeword [ string ]         (* authorial, #411; rides environment lines *)
            | "stock" name [ "initial" number ]        (* declared stock unit; starting level, #112 *)
            | "release" number                         (* Buffering drain per time unit, #112 *)
            | "capacity" number                        (* Buffering overflow ceiling, #112 *)
            | "time" "constant" number                 (* Buffering drain coefficient τ, #112 *)
            | "setpoint" number                         (* Inverting comparator reference, #112 *)
            | "maintenance" number                      (* Buffering upkeep loss per time unit, #112 *)
            | "backpressure"                            (* Modulating throttle flag, #112 *)
            | "limiting"                                (* Combining Liebig flag, #342, v1.9 *)
            | "mass" "action" number                    (* Combining/Copying rate law k, #573, v1.17 *)
            | "capacitance" number                      (* Buffering quantity per unit potential, #574, v1.17 *)
            | "potential" number                        (* source fixed potential, #574, v1.17; source lines only *)
            | "informational"                           (* Buffering memory, #576, v1.17 *)
            | "reservoir" number                        (* source finite supply, #260, v1.9; source lines only *)
            | "gain" number                             (* Sensing gain k, #496, v1.9; Amplifying gain, v1.15 *)
            | "efficiency" number                       (* Propelling efficiency η, v1.15, walk row 18 *)
            | "impedance" number                        (* Impeding impedance, v1.15, walk row 18 *)
            | "scale" scaleword                        (* Klir source-system metadata, #154; *)
            | "states" "{" [ name { "," name } ] "}"   (*   these three ride environment    *)
            | "kind" varkindword                       (*   lines too — §4.3                *)
            | "decomposes" string modelid ;            (* component lines only *)
agent       = "agent" name "watches" watched "rule" rule              (* v1.10, facets#269, ADR 0008: *)
              "manages" ( name | "param" string )                     (*   watch, rule, goal, manage;    *)
              [ "description" string ] ;                              (*   v1.13: the command form       *)
watched     = name                                                    (* a Buffering stock's level      *)
            | "flow" name "->" name [ string ] ;                      (* v1.14: a flow's last delivery  *)
rule        = "proportional" "target" number "gain" number          (* closed; grows one rule at a time *)
            | "threshold" "above" number [ "below" number ]          (* below: the hysteresis band, #517 *)
              "emit" number "else" number
            | "table" "under" number "emit" number                   (* v1.12: one pair per bin, bounds rising   *)
              { "under" number "emit" number } "else" number
            | "trace" "window" integer "target" number "gain" number ; (* v1.12: the window is the agent's memory *)
flow        = "flow" name "->" name [ ":" kindword ] [ string ]
              [ "substance" name ] [ "amount" decimal | "ample" ] [ "unit" name ]
              [ "conductance" number [ "one" "way" ] ] [ "spill" ]   (* v1.17 *)
              [ "mere" ] [ "weight" integer ]
              [ "usability" usabilityword ]              (* #331 *)
              [ "description" string ]            (* ample: informational only, no unit *)
              [ "grounding" gradeword [ string ] ] ;    (* last of all, #411 *)
gradeword   = "chain" | "spec" | "observed" | "asserted" | "third-party" | "unknown" ;
decimal     = nonnegative decimal number ;             (* "1.5"; 0 = arrested supply; negative refused *)
param       = "param" string ":" "flow" name "->" name [ string ]
              [ "range" number ".." number ]           (* walkthrough #18 *)
            | "param" "shares" string ":" "from" name
            | "param" string ":" field "of" name
              [ "range" number ".." number ]           (* #343: a component line's engine parameter *)
            | "param" string ":" ( "gain" | "efficiency" | "impedance" ) "of" name
              [ "range" number ".." number ] ;         (* v1.16: a work process's own parameter *)
field       = "release" | "capacity" | "time" "constant" | "setpoint" | "maintenance"
            | "target" | "gain" | "above" | "below" | "window"      (* the last five: an agent line's, #269, #517, v1.12 *)
            | "mass" "action" ;                                     (* v1.18, #584: a rate law's k; the command form's one field *)
metric      = "metric" string ":" "share" "of" "flow" name "->" name [ string ]
            | "metric" string ":" "sum" "into" name ;  (* #203; verb set closed, ADR 0006 *)
boundary    = "boundary" { propword number } ;
propword    = "porosity" | "fuzziness" ;

annotation  = "@pos" name number number
            | "@lens" ( "klir" | "bunge" | "mobus" )
            | "@directed" integer                        (* 1-based flow index *)
            | "@system" number number                    (* the SOI's own position *)
            | "@" word { token } ;                       (* unknown: skipped *)

usabilityword = "Resource" | "Disruption" | "Product" | "Waste" ;
kingdom     = "Conceptual" | "Concrete" ;
genus       = "Physical" | "Chemical" | "Biological" | "Social" | "Technical" ;
kindword    = "energy" | "matter" | "field" | "informational" ;
primword    = "Combining" | "Splitting" | "Buffering" | "Impeding" | "Propelling"
            | "Copying" | "Sensing" | "Modulating" | "Amplifying" | "Inverting" ;
scaleword   = "Nominal" | "Ordinal" | "Interval" | "Ratio" ;
varkindword = "Basic" | "Support" ;
levelword   = "Source" | "Data" | "Generative" | "Structure" | "Metasystem" ;
modelid     = "@" base58                              (* a stamped model id, model_id.rs *) ;

name        = word | string ;
string      = '"' { any character except '"' and newline } '"' ;
word        = run of non-whitespace characters excluding '"', ':', '#' ;
comment     = "#" to end of line (outside strings; also trailing) ;

Tokenization: whitespace separates tokens; "…" groups (no escape sequences — a name containing " or a newline is not expressible, §7.3); : is a standalone token; {, }, and , are standalone tokens (the set-literal punctuation, #154); -> is recognized as an arrow; # begins a comment outside strings.

4.1 system

At most one per file. Optionally names the SOI and asserts the modeler's ontological type: system "Steel-Plant" : Concrete/Technical. The name is a quoted string (never a bare word — the bare token after system is reserved against ambiguity with the type clause) and lands in CanvasModel.name; either part may appear alone (system "Bathtub", system : Concrete). Kingdom alone is legal; genus alone is not (genus is meaningful only within a kingdom — matching the kernel, where no validator gates system_type at all: it is semantic metadata, not a systemhood verdict). An empty name (system "") is a parse fault.

4.2 domain

At most one per file. The free-text subject area that frames narration: domain "steel manufacturing".

An unindented description "<prose>" line of its own is the system's description (#326): at most one per file, landing in CanvasModel.description beside the name, with the standing of every other description (§4.3) — prose, never semantics. Indented, the same words belong to the declaration above instead (§4.3, v1.5).

4.3 Thing lines

interface "Ore Gate" protocol "graded ore only" declares a pass-way as its own object (#226, resolved 2026-08-16): a component in I with no work-process character of its own. The split authoring pattern routes a crossing flow through it (flow Mine -> "Ore Gate", flow "Ore Gate" -> Furnace), so the processor the pass-way serves sits inside the boundary and the interface emerges from the act of writing the crossing flow. protocol is the pass-way's admission rule in the author's words (#333, Mobus Listing 4.2); it also rides the merged form (component X interface protocol "…"), and protocol without interface is a fault. Emit prefers the split form: an interface-designated component with no primitive, stock, engine params, or child emits as an interface declaration. A pass-way whose interior legs reach exactly one processor fuses into that processor's interface record at projection (#226) and the run is as if the pass-way were absent. A pass-way serving several processors, or none, does not fuse: since facets#493 it is lowered to an identity Impeding process at agency 1 — it passes everything it is handed and conserves by construction — so the split form stays executable whenever one boundary object honestly serves several residents. What such a door hands to each resident follows the interior legs' declared amounts; with none declared the door's outflow is split evenly, which is the Impeding fanout rule, not a claim about the domain.

interface unresolved (v1.8, facets#308) declares the one reserved pass-way: the landing for crossings whose interface is not yet identified. It is Mobus's stage 1 said in the kernel's own words — the box with its flows found and its membrane not yet read (Fig. 4.14) — where the walkthrough once stood a component named for the system (the wrapper the kernel now warns on, sole_component_decomposes). At most one per model; it takes description and grounding but no protocol (an interface not yet identified has no admission rule); the name is reserved on every other line (component unresolved, source unresolved are faults) and only the lowercase spelling is it. In the tuple it is one interface component like any pass-way, so nothing in the Lean changes; the canvas draws it dashed on the membrane. Stage 2 is the same model with named pass-ways; check_resolution_canvas(stage1, stage2) (§5.4) says whether the second resolves the first.

component Furnace primitive Combining interface declares a component, optionally designating it a work process of a named primitive kind and/or a member of the boundary interface set — the merged special case for a component that IS a pass-way. Without a primitive, the merged form is not the split form: component Aerator interface is a component on the membrane whose work process is not named yet (one to decompose, say), so a run refuses it and names both repairs, a primitive or interface Aerator; interface Aerator is a pass-way, which has no process of its own to name (toy-model walk, 2026-11-03). source / sink / environment declare environment things; the attribute words are rejected there (environment internals are opaque — Mobus §4.3.3.2.2, mirrored at canvas.rs:84). Names are unique per file; things must be declared before any flow references them. One exception, and it is a fold rather than a duplicate: source X followed by sink X (or the reverse) declares ONE neighbour that both supplies and receives, and compiles to the same thing environment X would — the canonical serializer writes it back as environment X. The second line may carry a description (kept when the first had none); any other attribute on it is the ordinary duplicate-name fault. Adopted 2026-09-09 (facets#377): the pair was the largest compile fault in every co-author run on both models, and a rule in the prompt did not remove it. Under the Mobus lens the merged form is warned (interface_does_work, facets#471) when the component stores or transforms what crosses: a declared stock, a Combining/Buffering/Copying/Amplifying/Inverting primitive, or an emitted substance it never receives. Mobus ch. 4: an interface passes, gates or filters; the receiver or exporter process behind it is a resident of its own. The split form carries no such claim.

component Furnace primitive Combining decomposes "furnace-interior" @Hrs6K91KnZZsiPcWzftv8U designates the component as decomposed: it carries a child model that realizes it (System.child_model, the reference form of §6 in decomposition-foundations.md — Option B, the child is its own model). Both halves are mandatory. The quoted string is a human label (it may drift under renames — the toolchain re-stamps, the compiler never resolves it); the @-prefixed token is the child's stamped model id, base58 per model_id.rs, and is the key. A name with no @id is a fault (unstamped reference — resolve via the library; stamping is later tooling, not the compiler's job); an id that fails the base58 decoder is a fault; a second decomposes on one line is a fault; decomposes on an environment thing is a fault (its internals are opaque). decomposes and interface on the same component was a fault in v1 and is legal since 2026-08-09 (#307, SSF #43): InterfaceDecomposition.lean covers flows crossing the parent membrane through the decomposed component, and the seam check carries that half (γsrc / γsnk and counterparty preservation) in facets-core::decomposition. decomposes emits last, after primitive and interface (§7.1). The system is never its own component (2026-10-09, #308): a model whose only component decomposes, with no interior relation, is a wrapper around its child — the system line is the box, and such a file is the child's opaque view drawn as a document, with a seam beneath it that cannot fail. The kernel warns (sole_component_decomposes, lens-neutral); the walk's root is the transparent model, and the opaque view is the canvas with the interior hidden. A one-component model that does not decompose is not a wrapper: it is Fig. 4.14's box, and the corpus keeps one.

component Battery description "the pack that rides out a cloudy week" declares what the thing IS, in the author's own words (v1.4, #326). Quoted, at most once per line, and — unlike every other attribute — it rides environment lines too (source Sunlight description "the only energy entering" is legal): the opacity rule of §4.3.3.2.2 is about an environment thing's INTERNALS, not about naming what it is, and the original BERT's descriptions sit mostly on environment entities. It is prose and never semantics: validate never reads it, so two models differing only in their descriptions are the same system and receive the same verdict. It DOES project — into Info.description, a facets-core field that has existed from the beginning and received String::new() at every construction site until this clause reached it. A # comment now round-trips too, through format_sl (v1.6, §7.4, #302) — the difference is that a description is model content: it projects, and two models differing only in their descriptions are different CanvasModels (equal only by the prose-is-never-semantics rule above), while two models differing only in comments are the same CanvasModel, full stop — comments never reach parse_sl's output at all. A second description on one line is a fault; an unquoted value is a fault.

source "GPU hosts" grounding unknown "no Venice document names a host" says whose word the thing rests on (v1.7, facets#411): a grade, then optionally the reference. The six grades are a closed vocabulary and an order — unknown (a drawn hole: nothing found says this, and the author is saying so) < third-party (someone else's prose about the subject) < asserted (the subject's own prose) < observed (the modeler measured it, dated) < spec (an artifact that executes) ≈ chain (verified source at a stated address and block, or a formal proof) — and the order is a reading aid for the canvas and the inspector, never a rule a verdict applies. Authorial tier (C4): it projects into Info.grounding, round-trips, is never read by validate, and rides environment lines on the same terms as description. At most one per declaration; an unknown grade is a fault; a second on one line is a fault. It takes the continuation form of §4.3 (indented, beneath the description when both are present), and the emitter always writes it that way. Not on milieu lines: an ambient variable is not a claim with a source in this sense, and nothing projects it to Info. The co-author drafter never writes a grade above asserted; chain, spec and observed are the modeler's to write.

The description may sit beneath its declaration (v1.5, #399). The same clause, on its own indented line directly under the line it describes:

component "Switchgear" interface
    description "Utility service entrance, breakers and automatic transfer switch."

The two spellings compile to the same model, and the inline one stays legal forever. The rule is deliberately narrow, because it is the only place in SL where one line depends on another. Only description continues: it is the one clause whose value is a sentence and the one clause that trails every carrier, so lifting it off the line moves nothing else; protocol, stock, unit, and the rest stay where they are, and a string still cannot span lines (§7.3). Only an indented line that opens with description is a continuation: any leading space or tab marks it (the amount is not significant), while an unindented description keeps the meaning it has always had, the system's own (§4.2). Every other indented line reads exactly as it did before v1.5, indentation ignored — an indented component B is still a component, and an indented primitive Combining is still the unknown-keyword fault it always was — so nothing that parsed before can newly fault. A wholly indented file is its dedented self: before any of this, the leading whitespace that every non-blank line shares (comments included) is dropped, so SL lifted out of a markdown list or a chat reply parses as if it had never been indented, continuations and the system's description alike. The shared indent is compared as an exact string prefix — a tab and four spaces share nothing, so mixed indentation is never guessed at, and only what every line truly has in common goes. Lines are never removed, so faults keep their physical line numbers. Directly beneath means the very next line: a blank line or a # comment in between breaks the attachment, and the continuation is refused rather than reaching upward past it for something to describe (an indented comment is still only a comment). A trailing # comment on the continuation line itself is fine. The carriers are exactly the lines that take the inline clause — component / source / sink / environment, interface, milieu, flow — including the second line of a folded source X / sink X pair, where the prose describes the one neighbour. Faults, each reported on the continuation's own line: nothing directly above; the line above did not parse (the message names that line — a description never attaches to a declaration that was refused); the line above is a kind that takes no description (system, domain, boundary, param, metric, an annotation, …); a description already given, inline or by an earlier continuation; and anything beside description "<prose>" on a continuation line.

component Battery primitive Buffering stock "kW·h" declares the stock's unit (#76/#94): a Buffering component's stock accumulates its inflow over Δt, so its dimension differs from the flow's, and the modeler declares the stock's own unit rather than the run copying the flow's. The unit is a name token — bare when identifier-shaped (stock ML), quoted otherwise (stock "kW·h"). A second stock on one line is a fault; stock on an environment thing is a fault (its internals are opaque). Undeclared, the run derives a display unit from the inflow and flags its provenance; the run panel's accept affordance writes the derived unit back as this clause.

component Reservoir primitive Buffering stock ML capacity 10 maintenance 0.2 extends the Buffering vocabulary (#112 slice 2): capacity <n> declares the stock's overflow ceiling (the storage clamp reads it — overflow dissipates rather than accumulating past it) and maintenance <n> declares its upkeep loss per time unit (charged from the stock every step, Δt times the declared rate, dissipated, never delivered). component Reservoir primitive Buffering stock ML time constant 3 declares the first-order drain coefficient τ in place of a fixed release rate — time constant is two tokens, constant sitting behind the already-reserved time head. All three are Buffering-only and ≤ 0 is a parse fault; time constant and release on the same component is also a parse fault, because the engine's drain arm prefers time_constant whenever both are declared, so the release would never be honored. component Thermostat primitive Inverting setpoint 0.8 declares the comparator's reference value (Inverting-only, ≤ 0 a parse fault; the engine's own default is 1.0, the bare 1 − signal). component Valve primitive Modulating backpressure declares the throttle flag (Modulating-only, bare — there is no magnitude to decline). A Modulating fed no physical flow is a gate on messages (v1.18, #587): it passes payload × command of the messages into it, where the command is an agent's or an Inverting comparator's message and every other message is payload (a source's, a memory's copy, a sensor's reading); with no command it sits open, as a valve does. Messages copy and are not conserved (Mobus; Bunge's informational connection), so nothing the gate stops is held back or ledgered: it ceases. backpressure on a message gate means nothing and is ignored. Selection on a count of messages is what it says (censorship, moderation, an admission rule on what is heard); a weaker or noisier message is Impeding or Amplifying on a signal, a different thing. Witness: assets/bench/censorship.sl, a regime holding what the public remembers at its line. component Infection primitive Combining mass action 0.5 (v1.17, #573) declares a rate law: the process draws 0.5 · S · I a time unit when a physical flow from the stock S and an informational flow from the stock I feed it; action sits behind the reserved mass head as constant sits behind time. Combining and Copying only, ≤ 0 a parse fault. A Copying whose output is a matter flow is Mobus's two-input form (v1.17, #575): the pattern, its informational input, copies freely, and the blank material is used up, so it makes min(pattern, material) and the unused material dissipates; with mass action the law sets how much material it draws. Each of the five is a fault on any other primitive, on an environment thing, or given twice on one line — the same discipline release already follows.

component Probe primitive Sensing gain 0.5, component Horn primitive Amplifying gain 4, component Pump primitive Propelling efficiency 0.9 and component Choke primitive Impeding impedance 0.3 declare a work process's own parameter (v1.15, walk row 18; gain on Sensing since v1.9, #496). The engine runs one number per process, Node.param, and four primitives read it: a sensor reports level · gain, an amplifier min(signal · gain, power) (its output may be declared : energy, Mobus's power amplifier, where the power drawn but not passed on is waste heat, or : informational, a preamplifier or relay whose output is read as a signal, where all the power drawn is dissipated; the cap holds either way, and the ledger says which the author meant), a pump in · efficiency, a resistance in · (1 − impedance). Before v1.15 only the sensor's could be written, and a loaded model carrying the number on the other three ran it while emit_sl dropped it, so the text and the run disagreed where no comparison of the text could see it. Each word says the number in the terms its primitive works in, not the engine's storage: an amplifier's gain is the multiplier itself (the engine holds p with gain 1 + 9p), and an impedance is the share held back (the engine holds the share passed, 1 − impedance). The map is one table, OWN_PARAMS (facets-core/src/own_param.rs, re-exported by sl.rs), which the parser, the knobs and the bench read. A bench knob takes the word and the value as the line writes them (facets bench --set Stage.gain=20, --set "Supply Line".impedance=0.9) and refuses what the line would refuse, with the same faults; on an agent, gain stays its rule's word. Each word is a fault on a primitive that does not read it (the fault names the primitives that do, and the line's own word when it has one), on an environment thing, or given twice. The ranges are what the processes can do: a gain above 0 on a sensor and above 1 on an amplifier, an efficiency above 0 and at most 1, an impedance from 0 up to but not including 1. Undeclared, the run uses 1 for a sensor and the projection's 0.5 for the others (gain 5.5, efficiency 0.5, impedance 0.5); a pass-way lowered to Impeding runs at impedance 0.

component Light scale Nominal states {Green, Yellow, Red} characterizes the thing as a Klir source-system variable (#154). Three clauses, each at most once per line, in any order among the attributes: scale <Nominal|Ordinal|Interval|Ratio> declares the measurement scale; states {A, B, C} declares the state set in Klir's set notation — a brace-enclosed, comma-separated list of value labels (bare or quoted; {} is a legal, explicit empty set; a trailing comma or a missing brace is a fault); kind <Basic|Support> declares the basic-vs-supporting standing (Basic is the default, so the clause exists to declare the rare support variable). The value words are keyword-case-insensitive like everything else and emit in the canonical capitalization shown. Unlike every other attribute, all three ride environment lines too — source Battery kind Support scale Ratio is legal — because Table 4.1 most wants the input variables characterized, and those are frequently the environmental drivers. A duplicate clause and an unknown scale or kind value are faults. The three are authored Klir metadata, read in the Klir register only: none projects to the kernel, so no systemhood verdict reads them (C2).

4.4 flow

flow "Iron Vendor" -> Furnace : matter "iron" declares a directed connection. The kind clause is optional (absent = Unspecified); the quoted label is optional (the flow's name); trailing mere declares a mere relation — Bunge's B̄, a relation that is not a bond, which exists only in the editing model and never projects.

The quantity clauses (#216, C1/C4) follow the label, in canonical order: substance water amount 1.5 unit "ML/mo". Each is independently omittable; each is a structural attribute of the edge, not dynamics — the test is that none varies during a run. Where amount acts, stated once so nobody decorates: on a flow originating at a source it is the absolute emission rate (per time unit); on a flow out of a component it is a relative weight for that node's fanout split — the absolute outflow of a stock is set by its release behavior, not by the edge. An amount on a single-outwire process edge is therefore inert, and authoring one is claiming something the run will not honor. Three rules the parser enforces rather than defaulting around: a non-positive or unreadable amount is a parse fault (the language refuses what it cannot mean — the same rule that will govern the #112 param clause); a quantity clause on a mere relation is a contradiction and refused (a non-bond never projects, so a magnitude on it could never mean anything); and omitted is not 1 — an unauthored amount stays unauthored in the model, and only projection conflates it with the kernel's default. weight <n> (#67) trails: a non-negative integer transition count for the Klir DTMC read, uniform 1 when absent.

usability <Resource|Disruption|Product|Waste> declares what this crossing IS to the system (v1.4, #331) — Mobus's 2×2 of direction against value. Undeclared is not Resource: an author who has not ruled has said nothing, and only project() supplies the historical default, exactly as amount does. It is read by the kernel: two edges between the same pair with the same substance but different usability are a genuine second channel and no longer warn as a duplicate (check_duplicate_edges), which is what the warning's own suggestion had promised since before the clause existed.

description "<prose>" trails the whole clause chain on a flow (v1.4, #326), for the same reason it emits last: it is the one clause whose value is a sentence, and keeping it at the end leaves the machine-readable clauses adjacent and scannable. Same standing as the thing-line clause — prose, never semantics, projects into the interaction's Info.description, round-trips. It takes the continuation form of §4.3 on the same terms (v1.5, #399): indented, directly beneath the flow line, and nothing else beside it. grounding <grade> ["<reference>"] trails even the description (v1.7, #411): both are prose-valued, so the two sentences bring up the rear and the machine-readable clauses stay adjacent. Same standing as on a thing line.

The label is a NAME; the sentence goes in description (#335). "published measurements" is a label; "PCE inflation, payrolls and unemployment — the FOMC steers by measurements of the economy, with their lags and revisions, not by the thing itself" is a description. This is a convention on authors, not a parser rule: a long label is legal SL, the kernel reads nothing from it, and refusing one would be the language enforcing taste. It is stated here because the alternative is measurable. Labels became sentences for a structural reason rather than carelessness — before description existed there was nowhere else to put prose, so the label was the only slot — and on federal-reserve.sl that produced 23 labels with 7 overlapping pairs, the widest 224px against a 30px parallel-sibling fan; moving the prose took the widest to 83px. Crowding cannot be zoomed away, either: every label sits inside one scale() group and nothing counter-scales, so text and separation grow together. Past roughly 28 characters the canvas elides the label and keeps the full text on hover, so a sentence in this slot is not merely cramped — it is not shown. Our own shipped models are held to the budget by a test (crates/facets-canvas/tests/examples.rs); assets/corpus/** is exempt, because those labels are transcribed from published figures and are their authors' words.

ample (#9) takes the amount slot and asserts availability instead of a magnitude: the signal is present and never the binding constraint. It was discovered by llm-market, where the only way to say "released weights never limit serving" was amount 100000 unit avail/day — a magic number leaked into the diagram by the grammar's lack of the word. Ample is not a quantity, so everything quantity-shaped beside it is refused: ample with amount is a contradiction; unit on an ample flow measures nothing; a mere relation cannot carry it (nothing that never projects can assert availability); and only an : informational flow can be ample — information copies freely, so "never binding" is a coherent claim there and nowhere else (matter and energy are metered). A param (§4.5) cannot anchor an ample flow — there is no magnitude to adjust. Engine semantics (held by the facets-compose equivalence test): an ample wire delivers zero quantity and instead holds availability gates open — Amplifying's min(signal·gain, power) selects power exactly as it would under an absurdly large metered signal, and Modulating/Buffering control gates read fully open. Run surfaces render the word, never a number.

4.5 param

A declared parameter (walkthrough #18): a domain name over an already-declared amount, so run surfaces can speak the model's own vocabulary ("Developer demand") instead of the kernel's mechanism taxonomy ("drivers · absolute rates"). Two forms:

param "Developer demand" : flow "Developer workload" -> "Developer clearing" range 0..12000 names one flow's declared amount. The optional quoted label after the endpoint pair disambiguates when several flows run between the same pair (naming an ambiguous pair without it is a fault, with the candidate labels listed). The optional range <min>..<max> declares inclusive slider bounds in the flow's own unit — the author's statement of the sensible span, never engine-enforced; min must satisfy 0 <= min < max, and a declared amount lying outside the range is a parse-time contradiction and refused.

param shares "Developer market share" : from "Developer clearing" names a component's whole out-fanout of declared amounts, to be presented as % shares. from must name a component (environment internals are opaque) with at least two outgoing declared amounts — a "split" of one thing is not a split. Normalization is presentation only: the model keeps raw weights (§4.4's fanout semantics are scale-free), and a share edit edits exactly one raw weight.

param "drain" : release of "Rain Barrel" range 0..40 (v1.9, facets#343, #463 move 3) names one of a component line's own engine parameters: release, capacity, time constant, setpoint or maintenance, the #112 set §4.3 already carries, and since v1.18 mass action, a Combining or Copying process's rate constant (#573, #584); a mass action range starts above zero, since a law at 0 is no law and the process would pass what is pushed. of must name a component that declares that field (a component with no release has nothing to adjust, and the fault names the repair). The value is the component line's; the param adds the domain name and the inclusive range, and a declared value outside the range is the same contradiction as for a flow. A run surface that turns this knob addresses the session by the field's key (release_rate, capacity, time_constant, setpoint, maintenance), the same word facets bench --set "Barrel.release_rate=…" takes. Five more fields belong to an agent line rather than a component line (v1.10, facets#269; v1.11, #517; v1.12): target and gain (the proportional and trace rules' declared policy), above (where a threshold rule switches), below (the band's floor, only on a threshold line that declares one) and window (a trace rule's memory); of must then name an agent running a rule that has the field and a line that declares it, and naming them on a component, or a component field on an agent, is a fault with the repair named. The session addresses them by the same words. A table rule's bins are not fields a param names (v1.12): the session and the inspector reach them by their numbered words (under1, emit1, … else), and SL is where a bin is added or removed.

param "stage gain" : gain of Stage range 1.1..30 and param "line loss" : impedance of "Supply Line" range 0..0.99 (v1.16) name a work process's own parameter (§4.3): gain on a Sensing or Amplifying component, efficiency on a Propelling one, impedance on an Impeding one. The word must be the one the component's primitive reads, and the fault names that primitive's word when it has one; of must name a component whose line declares the value (component Stage primitive Amplifying gain 5), and the fault names the repair. gain is also a proportional or trace rule's word: on an agent the param names the rule's gain, as above, and on a work process it names the process's own. The range is in the word's own terms, as the line writes the value, and must lie inside what the word can take: both ends must be values the line could declare, so an amplifier's gain range starts above 1 (1..30 is refused, since gain 1 is not an amplifier's), an efficiency's ends lie in 0 (exclusive) to 1, and an impedance's in 0 to 1 (exclusive). A declared value outside the range is the same contradiction as for a flow. The value lives where the component line put it, Thing.agency_capacity, in the engine's terms; the param stores none, and the anchor is ParamAnchor::Own { thing }, whose word is read off the primitive. A run surface turns it by its word, facets bench --set "stage gain"=20 by the param's name or --set Stage.gain=20 by the word, through OWN_PARAMS, and the run inputs show it as a slider in the word's terms, read off the thing's engine_knobs row. A command-form agent naming it is refused as coordination, as for a field.

A param an agent names is required (v1.13, ADR 0008 D1, the command form). An agent line may name a param as the knob it turns (manages param "<name>", §4.7), and a param so named stops being inert: it is required, exactly as a setpoint in Mobus is a declared value the procedure depends on, and removing it is a fault on the agent line (param "…" is not declared). Only a flow param with a range, a shares param of a two-way split, or (v1.18, #584) a mass action param with a range may be named: the range (0..1 for a share) is where the rule's command span is checked (§4.7), a flow or law param without one is refused with the repair named, and a flow param on a process's only physical outflow is refused as inert, since that amount is a fanout weight the engine never reads (§4.4). A law's range starts above zero, so a proportional or trace rule, whose span starts at 0, cannot command one; a threshold or table whose every output is positive can. A named param projects, as the agent's command, resolved to the interaction its knob sits on; the leg an author writes into a fused pass-way (§5.4, #226) names the crossing leg that survives, and an outbound crossing leg declaring no amount now takes its interior leg's, so the weight written on Fish -> Landing is the weight of the one wire that runs. Params no agent names keep every guarantee below.

A param stores no value — the value IS the anchored declared amount, which is why every anchor that resolves to nothing adjustable is a fault rather than a bag: an undeclared endpoint, a flow with no amount (the repair is named: add one), a mere relation (already excluded by §4.4 — a non-bond cannot carry an amount). Param names are unique per file — they are the stable references scenario overrides (#202) will hold. Params never project: project() ignores them entirely, so a model with and without its param lines projects byte-identically. They are presentation semantics carried by the canvas model, serialized skip-if-empty so pre-existing files are byte-identical. Params must appear after the flows they anchor (the single-pass discipline of §4.3 — declare before reference — applied to flows). A param is a bench knob by its name (facets bench --set stream=50, or --set '"outlet time"=5' for a spaced name): the flow or field it anchors is turned, as the run inputs card turns it; a shares param has one weight per branch, so its branches are turned by their flows. A flow knob takes the flow as the file writes it (brook|Stream|Inlet, where Inlet is a pass-way the projection fuses into the pond), found through the projection's own map from relation to interaction, and the post-fusion endpoints (brook|Stream|Pond) still work.

This clause is not the #112 typed-parameter territory (§8.2): those are the transition functor's own parameters (initial state, process constants), whose types await the functor decision. A param names a structural amount the grammar already carries; it adds vocabulary, never dynamics.

4.6 metric

A declared metric (#203): a domain name over a computed output of the run — the output twin of §4.5. A param names an input knob in the model's vocabulary; a metric names what the author wants to watch come out, so a run answers the author's questions first ("DeepSeek dev share") and the kernel-fidelity readouts second. Two verbs:

metric "DeepSeek dev share" : share of flow "Developer clearing" -> DeepSeek reads the anchored flow's executed per-tick delivery as a fraction of everything leaving its source that tick. The optional quoted label after the endpoint pair disambiguates same-pair flows, exactly as in §4.5. The source must have at least two outgoing flows — a share over a single outflow is identically 1, and a metric that cannot vary watches nothing (the separating-instance rule: a declaration nothing could falsify is refused, not rendered). Share is deliberately named as a produced observable: when an allocation becomes endogenous (#269), the same declaration reads the produced result with no rewrite.

metric "Opus tokens served" : sum into Opus reads everything arriving at the named thing, per tick, plus the run-end cumulative. The thing must have at least one inflow — a sum over none names a value the run never produces. Inflows carrying mixed units refuse at evaluation (their sum names no quantity).

A metric is a derived reading, never a new source of truth. Evaluation is arithmetic over the recorder's executed per-flow series (RunResultRich.flows — the circuit's own per-tick wire_history); a metric can state nothing the trace does not carry, and it carries the trace's provenance. Metric names are unique per file — they are the stable references scenario comparisons (#202) will hold. Metrics never project: like params they are presentation semantics on the canvas model, serialized skip-if-empty, appearing after the params block in canonical form. Declare after the things and flows they reference.

The verb set is closed, and grows one verb at a time (ADR 0006). When a model asks a question these verbs cannot state, the answer is a new verb with its own separating instance and its own row here — never an open expression grammar. A ranking is deliberately not a verb: the run deck orders any same-verb family by endpoint, which delivers the leaderboard as a view of declared metrics rather than a third thing to specify.

4.7 agent

agent Thermostat watches Room rule proportional target 2 gain 0.5 manages Switch declares a decision-maker (v1.10, facets#269; ADR 0008). Its four clauses are the four decisions an agent is, in the order Mobus's Fig. 11.1 runs them: what it watches (one Buffering component, whose level it reads each tick — "state information at time t"), the rule it runs (the decision model), the rule's numbers (the goal and the sensitivity, the declared policy of §11.3.4.1), and what it manages (one work process that reads a control signal: a Modulating valve, an Amplifying drive, or a Buffering stock's release). An agent is a thing of its own kind, inside the membrane like any component, and never a work process: the line takes no primitive, and the ten stay ten. It takes description and grounding in the continuation form of §4.3.

The compiler draws the wires. watches becomes an observation tap, an informational relation from the stock to the agent, labelled reading; manages becomes a command wire, an informational relation from the agent to the process, labelled command. Since v1.18 (#588) the command form draws its wire too: an informational relation from the agent to the actuator whose law the param names, labelled with the param's name. Mobus's agent commands a work process, never a flow and never the environment, so the wire lands on the process or stock a field, own or shares param names; for a flow param, on the process the flow leaves (the amount is its fanout weight), or, when the flow leaves an environment object, on the pass-way it enters (admission is the interface's work). The wire is the lenses' and the canvas's; the projection carries the command as the knob write and draws no interaction for the wire, since a message into the process would be a second, different command. The kernel read-back draws it again from the command. The author makes the two decisions once, in words, and the canvas shows them as edges. A flow written by hand against an agent duplicates one of them and is refused. @directed counts flow lines, never the drawn pair.

Two readings (v1.14, ADR 0008 D5). watches <stock> reads a level. watches flow <a> -> <b> ["label"] reads a flow: what that one physical flow delivered on the last completed tick, the number the run surface draws for it and the tick log records. It is Mobus's feedforward reading (§12.3.2.3, "measuring the value of inputs as compared with ideal values"), and the tactical agent's view of "the behaviors of the external agents" through what crosses the boundary (§12.2.3.2). The flow is named as param and metric name one, and must be declared above the line, so the line sits after the flows; the label disambiguates a pair carrying more than one flow. A flow watch draws no tap: the flow is already declared, and reading it takes nothing from it. Before the first tick nothing has been delivered and the reading is 0, so a step in a watched flow reaches the agent one tick late, as a level does. An informational flow is refused: it is a signal, and an agent reading another node's signal is the agent-over-agent case D2 defers; in SL that refusal covers every relation touching an agent, and ample (informational-only). The reading is committed state, so D2 and D6 hold unchanged: the step is still read-before-write and one deterministic transition. Its witness is assets/bench/thermostat-feedforward.sl: the compensator watches the heater's supply, a step in it reaches the room for exactly one hour and is then compensated, and the room relaxes back toward its level while, pinned open, it climbs toward twice it.

The rule set is closed and follows Mobus's agent types in order (ADR 0008 D4). proportional target <n> gain <n> emits max(0, gain · (target − level)), Wiener's error correction (§12.3.2); at gain 1 it is the Inverting comparator's setpoint − reading, and the thermostat traced both ways float for float is the equivalence the agent kind rests on (crates/facets-compose/src/circuit.rs, agent_proportional_traces_the_comparator_chain). Both numbers are declared, neither defaulted, both > 0: a zero gain watches nothing and is refused, which is the rule's separating instance. threshold above <n> emit <n> else <n> is the on–off rule, Mobus's "simple thermostat": emit at or above the level, else below it, the first trajectory no primitive can produce, and the relay thermostat's overshoot on the bench is its witness. Its refusals: a command a gate cannot reach (a Modulating or Buffering reads its command in 0..1, so emit 2 is refused with the reach printed, which is requisite variety made a parse fault, Mobus §12.3.2.2), equal emit and else, a non-positive above, a negative command. threshold above <n> below <n> emit <n> else <n> (v1.11, facets#517) adds the hysteresis band a relay thermostat has: emit at or above above, else under below, and between the two the command it gave last tick, which is what stops a relay chattering at one level. The band is one bit of memory, the agent's own last command, and the engine already holds it as the node's activity: a run with a banded agent is still one deterministic step on the product state (ADR 0008 D2, D6), the ADR's memory column notes the exception, and a line without below reads no memory at all. Its refusals: a below at or over above (no band, or a switch that turns back before it turns), a non-positive below, a param naming below on a line that never declares it. Its witness is assets/bench/thermostat-band.sl: the banded relay switches fewer times a day than the bare one, fewer again as the band widens.

table under <b1> emit <o1> [under <b2> emit <o2> …] else <oN> (v1.12) is the graded rule, Mobus's purely reactive agent with "an algorithmic or heuristic program of response": o1 when the reading is under b1, o2 from b1 to under b2, and so on, oN at or above the last bound. The bins are contiguous by construction, each running from the bound before to its own, so the one shape question is whether the bounds rise: bounds that do not strictly increase are what ADR 0008 D4 calls overlapping or gapped bins, and are refused with the bounds printed. One bin is one level with two commands, which is the threshold rule, and is refused with that line spelled (under 36 emit 1 else 0 is threshold above 36 emit 0 else 1). The other refusals are threshold's: a non-positive bound, a negative output, a command past a gate's reach, and every emit and else equal (the same command in every bin decides nothing; the fault names the repair). No memory: a function of the reading alone. The bag and the session number the pairs from one, under1, emit1, under2, … then else, so every number is a knob by a word (facets bench --set Gate.emit2=0.25@12) and the inspector edits each; adding or removing a bin is written in SL. Its witness is assets/bench/hospital-beds-table.sl against hospital-beds-agent.sl: at the four-day stay the one-level gatekeeper never closes and the ward settles at 32, while the table halves admissions from 20 beds and the ward saws between 19.4 and 22.9 across that bound.

trace window <n> target <t> gain <g> (v1.12) is the first rule with a memory, Mobus's adaptive reactive agent: it "tracks the input variables and responds in kind. This is the homeostatic mechanism". Each tick it emits max(0, g · (t − mean of its last n readings, this tick's included)); before n readings exist, the mean of those seen. How time moves it: observe, decide, remember, then the step. The agent reads the stock's pre-tick level as every tap does; the rule decides over that reading and the readings already remembered; the engine then writes this tick's reading into the agent's window, trimmed to n; and only then does the step commit the stocks. A decision never sees its own reading in its past. The window is run state the engine owns (Circuit::agent_readings, one buffer per agent), cleared by reset so a run starts with nothing remembered, and never a field of the policy or of the node: it is the first coordinate of H the engine reads back into T, and it sits in the product state ADR 0008 D6 names beside the stocks, so a run with trace agents is still one deterministic step (D2, D6). At window 1 the mean is the reading and the rule is proportional tick for tick, which is its control (crates/facets-compose/src/circuit.rs, agent_trace_remembers_as_run_state_and_window_one_is_proportional). Refusals: a window that is not a positive whole number of ticks (a zero window remembers nothing, the ADR's refusal), a non-positive target or gain as for proportional. Its witness is assets/bench/thermostat-trace.sl against thermostat-agent.sl: with a three-hour memory the room overshoots to 2.32 kWh against 1.90 and comes within 1% of its resting level from hour 26 against hour 3; with window 1 the two files trace digit for digit.

Named here and not built: Markov (#67; it changes the dynamics kind, so it waits for the heterogeneous-composition work). Anticipatory and intentional agents (§11.2.1.1) are out of this program's scope and the word learning is reserved for the former.

What every agent in a run shares (ADR 0008 D2). One dynamics kind, deterministic at this stage: given what it sees, an agent gives one answer per tick, so a run with agents is one Id-kind transition on a larger product state and the Lean obligation agent_step_is_product names it. Rule names mix freely. No agent watches or manages another agent at this stage (two parse faults); coordination, an agent changing another's target, is the stage after.

Two actuation forms, both built (v1.13). The signal form above is the operational agent (§12.2.3.1): manages <process> draws a command wire and the process gates on the number each tick. The command form, manages param "<name>", is the coordination form (§12.2.3.2, "change an operational parameter (e.g., the set point)"): the agent names a declared param of the same file, which must come before it, and writes that param's knob at the end of every tick. A line carries one form, never both. The param is a flow amount with a range, the shares of a two-way split, or (v1.18, #584, walk row 57) the mass action of a Combining or Copying process with a range, and it becomes required (§4.5). A share lands as (s, 1 − s) on the split's two weights; an amount lands where the bench knob lands (Circuit::write_amount, the path a human edit takes), so facets run, the app's run and the bench mean one model; a law's k lands on the process (Node.mass_action, the field --set <Process>.mass_action= writes), set, not scaled, and only above zero, so the law stays a law (has_law reads k = 0 as no law). Setting k between steps is within what stoichRun_conserves covers (rates there are arbitrary per step), which is a reading of the theorem, not a new one. Witness: assets/bench/sir-epidemic-agent.sl, the public cutting the encounter's contact rate, against sir-epidemic.sl. Requisite variety is a parse fault here too: the rule's command span (the emit and else values of a threshold or table; 0..gain · target for proportional and trace) must lie within the param's range (0..1 for a share), refused with both printed. A param naming any other engine field, or an agent's own field, is refused as coordination, the stage after (ADR 0008 D2); mass action is the one exception, because a rate constant is an operational parameter of a work process in Mobus's sense (§12.2.3.2) and no agent's.

When the command lands. Inside the step the order of §8.3 holds: observe, decide, remember, the stocks move, the record closes, and only then is the knob written, for the next tick. So the command form acts one tick after the signal form, whose command gates the same tick's release: on the fishery bench (assets/bench/logistic-harvest-quota.sl against logistic-harvest-agent.sl) the two sawtooths differ in phase and the landed totals differ slightly, while pinned closed the two forms trace one another to one f32 ulp and pinned open the command form is the aggregate control digit for digit. The knob stays written when the agent's decision does not change, and it is a knob like any other: a bench reset keeps knobs as they stand, so a reset after a command-form run starts under the agent's last command, which the agent overwrites at the end of tick 1. The knob log records an agent's write as an edit under the agent's name whenever the written value changes, and the tick log carries a decisions column (the agent, its reading, the policy's output, where it landed and what was written) in both forms.

Claim hygiene. Every surface that shows an agent's decision says the policy chose; none says the agent wanted.

4.8 boundary

At most one per file: boundary porosity 0.7 fuzziness 0.1. Key-value pairs in any order, either omittable; values are the root membrane's P. Absent line = unauthored (0.0, the kernel default).

4.9 time unit

At most one per file: time unit h. The model's time-unit symbol (#94) — what one unit of model time is called, landing in CanvasModel.time_unit and projecting to WorldModel.time_unit. The symbol is a name token (bare or quoted). It is display vocabulary, never a rescaling: Δt stays the pure number the run surface supplies; the symbol names what that number counts, so an undeclared kW-fed stock displays kW·h instead of the abstract kW·Δt. Absent = undeclared (the kernel never invents a symbol). An empty symbol is a parse fault. The step itself is a declared commitment of the run, not an approximation of anything continuous; what that means for a finding is stated in §8.3.

4.10 level

At most one per file: level Structure. The model's declared Klir epistemological level (#288) — the author's claim about where on the epistemological hierarchy (Facets §4.5: source → data → generative → structure → metasystem) this model stands, landing in CanvasModel.klir_level. The five values are Klir's own words, keyword-case-insensitive like everything else, emitted in the canonical capitalization shown. A second level line and an unknown value are faults.

The declaration matters because of what Klir says about the hierarchy: "the modeling relation can be defined only within each particular epistemological category of systems" (§5.4). Comparing two models across declared levels is therefore undefined in his framework, and the kernel refuses it with that sentence as the printed reason (lenses::check_cross_level) — faithfulness, not strictness. The refusal reads only declared claims: a model with no level line compares exactly as it did before the word existed, so the declaration gates a claim, never an absence. Like the §4.3 Klir metadata, the level is authored canvas-side and read in the Klir register only — it never projects, so no systemhood verdict depends on it (C2). It is the declared counterpart of the Klir register's derived GSPS position (the letter-string diagnostic): the diagnostic reads what the model honestly contains, the level reports what the author asserts it to be, and daylight between the two is a finding rather than an error.

4.11 Errors

Parsing collects all faults in one pass and reports each with its 1-indexed line — never a first-error-only bail, and never a guess. Fault classes: lexical (unterminated quote), unknown keyword, malformed clause, duplicate name, undeclared flow endpoint, redeclared singleton (system/domain/time unit/level/boundary), an unknown level value, attribute on an environment thing, unstamped or malformed decomposition reference, decomposes on an environment thing, duplicate decomposes, duplicate stock, an unknown usability value (#331), a duplicate or unquoted description (#326), the §4.3 continuation faults (v1.5, #399: an indented description line carrying anything but its quoted prose, one with no declaration directly above, one beneath a line that failed or that takes no description, one whose declaration already has its description), the grounding faults (v1.7, #411: an unknown grade, a duplicate on one line or across the line and its continuation, an indented grounding line carrying anything beyond its grade and quoted reference, one with no declaration above or beneath a line that takes none), duplicate or malformed Klir metadata clause (scale/states/kind — an unknown scale or kind value, a malformed state set), out-of-range @directed, malformed known annotation, the §4.5 param faults (unresolvable or ambiguous anchor, amountless anchor, degenerate or contradicted range, shares without a >=2 component fanout, duplicate param name), the §4.6 metric faults (unresolvable or ambiguous anchor, share over a single-outflow source, sum into a thing with no inflows, duplicate metric name), the §4.4 ample faults (beside amount, with a unit, on a mere relation, on a non-informational kind), and the §4.7 agent faults (v1.10, facets#269: watches a thing that is not a Buffering component, manages a process that reads no control signal or an agent, an unknown rule word, a rule missing one of its numbers or carrying them out of order, a non-positive target, gain or above, a negative or equal emit/else, a threshold command past a gate's reach, a flow written against an agent, a duplicate name; the band faults, v1.11, facets#517: a non-positive below, a below at or over above; the table faults, v1.12: no bin, one bin, a pair or the else out of place, bounds that do not strictly increase, a non-positive bound, a negative output, every output equal, a command past a gate's reach; the trace faults, v1.12: a window that is not a positive whole number, a non-positive target or gain; the flow-watch faults, v1.14, ADR 0008 D5: watches flow naming an undeclared endpoint, a flow not declared above the line, a pair carrying several flows with no label, a label that matches none, an informational flow; the command-form faults, v1.13, ADR 0008 D1: manages param naming a param the file does not declare above the line, a param anchored on an engine or agent field, a shares param whose split is not two-way, a flow param with no range, a flow param on a process's only physical outflow, a rule whose command span lies outside the param's range; and, under §4.5, target/gain named on a component, a component field named on an agent, below named on an agent whose line declares none, or any agent field named on an agent whose rule lacks it), the §4.3 engine-parameter faults (#112: release/capacity/time constant/maintenance off a Buffering component, setpoint off an Inverting component, backpressure off a Modulating component, mass action off a Combining or Copying component (v1.17), spill with a magnitude, on an informational flow, or out of anything but a Buffering component with a capacity, conductance off a : field flow or beside amount/ample, capacitance off a Buffering component, potential off a source line, informational on a thing line off a Buffering component (v1.17), a duplicate of any of the six on one line, a non-positive value where one is required, and release co-declared with time constant on the same component). The ACE/Gherkin discipline — deterministic parse, fail loud on anything ambiguous — is inherited deliberately.

These are parse faults, and they are not the only way a model is refused. A file can parse cleanly, compile to a model (§5.3), and still be refused by the kernel when a lens is entered — that refusal is the kernel's job, not SL's (§5.1), so it is deliberately absent from the list above. The list is complete for what the parser rejects and is not a map of every way a model can fail. §5.4 names the one class where a word in this language now carries an obligation the parser cannot check.

5. Semantics

Status: normative.

5.1 What a compiled model means

A parsed file denotes exactly one CanvasModel: things and relations in declaration order with sequentially assigned ids, the boundary and type assertion as written, view state per §6. What that model means as a system is not SL's to say: meaning is delivered by the kernel — project() compiles it to a WorldModel, validate_mode gates it at the active lens (Klir→Core, Bunge→Structural, Mobus→Operational), and the lens palettes render its formal object. SL is a notation for the model, not an authority over it (C2).

5.2 source, sink, environment — author intent, edge-derived identity

All three words compile to Role::Environment. The distinction they express — where flows originate and terminate — is derived from the drawn bonds, not stored: project() makes an environment thing a Source if it originates a bond, a Sink if a bond merely touches it, and omits it (an orphan) if no bond does. This is the Lean-proven canon from SL v0.1's own migration note (edge-derived role supersedes the stored ExternalEntityType). Consequently the three words are author-intent sugar: source X followed by flows into X is not a parse error — the kernel's reading simply differs from the label, and the canonical serializer (§7.1) rewrites the word to the kernel's reading. The text you get back tells you what you actually drew.

An object that both sends and receives is a two-sided black box (2026-11-03). The book-revisions' unified O and the Lean's EnvSources/EnvSinks (Systems/Mobus/Interface.lean) let one environment object be source and sink at once, its roles read off the flow directions. A plain environment object with flows both ways is that object. In a run it has two sides that do not touch: what it sends is its own given rate (an amount, a forced series, a reservoir), and what it receives it takes in and holds, counted as received by the environment exactly as at a sink, never as dissipated. Receiving does not change what it sends. This is the black box Mobus makes of an environment object, known only by what crosses its edge, and it follows from the Mealy form of a process (output = λ(state, input)): an environment object has no modeled state or organization, so nothing in it can turn what it receives into what it sends. When an author wants that turn modeled, the object has an organization worth stating, and the honest move is to widen the boundary and make it a component, or to decompose it as a system whose interfaces are its two sides (the Lean's crossingSources/crossingSinks, Systems/Core/InterfaceDecomposition.lean, already split a child's environment by direction). The run reads its level as what it has received so far (holds, starting from zero), and the canvas draws both sides: a pulse because it sends, a fill because it holds. Until this rule, the engine charged what a source received as dissipated, a defence from when the face refused such flows; the Federal Reserve example's interest and remittances, 490 a tick, were booked as destroyed.

5.3 Compilation is total on parse success

A file that parses always yields a model — including a structurally illegal one (e.g. a self-loop, which the Operational gate rejects). This is deliberate and matches the canvas: authoring states are routinely mid-thought, and the verdict pill / audit panel carry the kernel's issues live. SL does not gate compilation on validity; it gates nothing (C2).

5.4 interface is a claim the kernel checks, not a label the parser accepts

Resolution (v1.8, facets#308). Two models of the same system, the first landing crossings on interface unresolved, the second naming the interfaces: check_resolution_canvas holds when the crossings stage 1 left unresolved and the crossings stage 2 lands on new named interfaces are the same multiset — by direction, by substance kind as authored on the canvas, and by environmental counterparty name — and nothing in stage 2 still lands on unresolved. Interfaces stage 1 already named carry over unchanged. It is the seam contract's crossing half (InterfaceDecomposition, SSF #43) read between two stages of one model rather than between a parent and a child; it has no Lean transcription of its own. The kernel also holds the reserved name past the parser: a canvas rename that puts unresolved on a second thing, or on a thing that is not a pass-way, is refused (unresolved_duplicate, unresolved_not_passway).

Most words in the lexicon (§3) name a distinction the parser can settle on its own. interface no longer does. Since the 7/25 interfaces sweep (#213, #223, #225, #228) a flowless interface is ill-formed, and two kernel checks enforce it — both Error, at Operational and Full only:

  • check_interfaces_carry_flow asks a graph question: does any boundary-crossing flow touch this interface? Mobus's I is functional, not positional — an interface is a component that transports a flow across the boundary — so one that transports nothing is a mislabelled component. It mirrors the Lean structure field MobusSystem.interfaces_carry_flow (SSF #31), the converse of bipartite, which only ever quantified over edges.
  • check_interface_declarations_match_flows asks a consistency question: does an interface's own declared receives_from/exports_to agree with the interactions the model records? Neither check subsumes the other — a model satisfies the first and violates the second whenever an interface with a real crossing flow declares an exports_to naming a different sink than the flow goes to.

Core and Structural stay silent: Klir and Bunge carry no interface concept, so a stamp without its flow is not yet a claim either lens can read.

This changes nothing in the grammar. component X interface parses exactly as before, compilation stays total on parse success (§5.3), and a half-drawn model that has stamped the interface before drawing its flow is a normal authoring state, not a parse error. What changed is that the word now asserts something checkable, and the assertion is checked where every other systemhood verdict is — in the kernel, on lens entry.

6. The annotation layer

Status: normative; the "why a section, not a second file" defense is rationale (argued, adopted).

Annotations are @-prefixed lines, conventionally last in the file. Three are defined; unknown annotations are skipped, not errors — the ignorable contract that lets future view-state vocabulary degrade softly in old parsers. Malformed instances of a known annotation fail loud (§4.11).

Why a section, not a second file. The semantic requirement is only that presentation not contaminate meaning (C4), and a marked section satisfies it as fully as a separate file: the structure-lines diff is clean either way. Given that, one artifact wins — a model is one pasteable, reviewable, portable thing. Modelica made the same call (layout inline as annotation(…), semantically null, preserved on save); SVG/HTML keep style separable but co-located. Decided for v1; recorded in the 2026-07-18 session log.

6.1 @pos name x y

Pins a thing's pixel position. Things without @pos are placed by the deterministic auto-layout — same text, same picture. Components sit on an inner N-gon (a single component at the center, two side by side) whose radius grows with the count so that neighbours keep a label-wide chord. Environment things sit on an outer ring, clear of the inner one, by role: sources on the left arc, sinks on the right, never-wired environment things above. The layout reads the flows. Declaration order is the starting order and every tie-break, not a promise: the component ring is re-ordered when, and only when, another order draws strictly fewer wire crossings (a bounded search, so fewer, not provably fewest), and a side's environment things leave their even declaration-ordered spread to sit level with the components they exchange flows with only when that too draws strictly cleaner. A model that already draws clean is placed exactly in declaration order. Because layout is a function of the whole text, adding a flow can move things the flow does not touch; a second flow on an already-wired pair never does, and @pos lines (the pane's Layout only writes them) hold a picture still. Positions are view state; no verdict reads them.

6.2 @lens klir|bunge|mobus

Pins the active lens. The lens is a reading of the model, not a property of it — every model is a valid Core model regardless. Accordingly compile_sl reports whether the text pinned a lens (lens_explicit), and the reference UI preserves the author's current lens when it did not; the parser's own default (Mobus) applies only when there is no current lens to preserve.

6.3 @directed n

Marks the n-th declared flow (1-based) with Klir's observer orientation toggle — "directed systems" add an orientation the observer commits to (Facets Ch. 4); the kernel's dependency relation is ordered regardless, so this changes what the Klir lens shows, not the model. Exists so a serialized model loses no view state.

6.4 @system x y

Pins where the system of interest itself sits (2026-11-02). The Mobus canvas centres the membrane here and grows it, as a circle, to hold the components; without the line it centres on the components, so with one component, moving the component moved the system. The canvas writes the line the first time an edit is made on a model that lacks it, at the centre already drawn, so nothing moves. It is emitted whenever the model carries it and travels with the @pos block when a drag splices positions. View state; no verdict reads it, and project drops it (the archive keeps it).

7. Serialization and the round-trip contract

Status: normative (golden-tested, tests/sl_roundtrip.rs).

7.1 Canonical form

emit_sl writes a model as (a declaration's description and then its grounding, when present, follow it as indented continuation lines): system / domain / description / time unit / level lines; thing lines in things order (environment words edge-derived per §5.2 — the emitted word is the kernel's reading), then every agent line (v1.10, #269: after the things it may reference, its tap and command wire written as its watches and manages and never as flows; an agent that names a param or a flow, the command form of v1.13 and the flow watch of v1.14, waits instead until after the params that do not name it, and the params that name it follow it); flow lines in relations order, the drawn pair excluded; param lines then metric lines in declaration order (the input/output twins read together, §4.5–4.6); boundary if authored; blank line; @lens; @system when the model carries it; @pos per thing; @directed per directed flow. On a thing line the attributes emit in a fixed order: primitive, then interface, then stock (with its welded initial, component lines only), then the six typed engine parameters (#112) — release, capacity, time constant, setpoint, maintenance, backpressure, each present only when its key rides cognitive_params — then the Klir metadata — kind, then scale, then states (#154; the one attribute group environment lines also carry), then decomposes last (component lines only; the reference, quoted label plus @-id). A description never emits on the declaration's line: on every carrier — thing, interface, milieu, flow — it emits as the continuation line of §4.3, four spaces then description "<prose>", directly beneath (v1.5, #399). Always, not past some width: the form is then a pure function of the model with no number to tune, the declarations read as a column with the prose under them, and inline input normalizes to it in one pass. (The system's own top-level description line is unchanged.) Names emit bare when they read as identifiers and shadow no reserved word, quoted otherwise. The reserved set (RESERVED_WORDS, sl.rs) is §4's position-free keywords; the position-bound words — param, metric, ample, range, shares, from, the metric verb words share/of/sum/into, constant (sitting behind the time clause head), action (behind mass, v1.17), spill, conductance, one and way (flow-line words after the quantity clauses, v1.17), and the @lens values — never occupy a slot a name can reach, so a name matching one of them stays bare and still re-parses as itself. That the two lists together are exactly §4's terminals is held by tests/keyword_parity.rs. Floats emit via shortest-round-trip decimal representation, so re-parsing recovers them bit-exactly.

emit_sl itself never reads a comment, a blank line, or the order an author explained things in — none of that is in CanvasModel (§2), so emit_sl cannot see it. §7.4 is the separate function that does.

7.2 The contract (golden-tested)

Three guarantees, distinguished honestly (tests/sl_roundtrip.rs, tests/sl_format.rs):

  • SL-born models: identity, digit for digit. For any model produced by parsing (things-first declaration order, hence sequential ids), parse(emit(m)) = m as JSON — every field, including positions. Text-level: emit(parse(t)) is a fixpoint after one pass.
  • Arbitrary models: canonicalization. A canvas-born model may carry gap ids and interleaved authoring history; ids are machine mechanics, and names are the text surface's identifiers. The guarantee is emit(parse(emit(m))) = emit(m) — one pass lands in canonical form, and the canonical text is stable. Structure, names, kinds, bonds, positions, and view state all survive; only internal id numbering is normalized.
  • Authored text: formatting keeps every comment (v1.6, #302). format_sl (§7.4) keeps every comment and blank line a source carries: format(t) drops no # line; format(format(t)) = format(t); and parse(format(t)) = parse(t) as JSON — formatting never changes what a file means, only how it is laid out.

7.3 Unrepresentable shapes

emit_sl refuses loudly rather than lose information silently: a name or label containing " or a newline, and a system_type with genus but no kingdom, are errors. A third refusal since #216: a thing carrying the opaque engine-parameter maps (cognitive_params / initial_state, which the canvas carries so a loaded model's dynamical content survives) cannot be written down without narrowing when it holds anything SL has no production for. §4.3 now types initial_state["storage"] and six cognitive_params keys (release_rate, capacity, time_constant, setpoint, maintenance, back_pressure, each gated to its one reading primitive, #112) — a bag holding exactly those, correctly gated, emits; anything else still refuses and names the JSON export as the lossless path. This refusal does not become dead code as the typed set grows: cognitive_params is a HashMap fed by both SL parsing and raw JSON loads (compose's exporter, §8.2), so a loaded model can always carry a key the parser has never heard of, and the check is what stops that key from being silently dropped on emit. A fourth since v1.15 (walk row 18): a process's own parameter (agency_capacity) on one of the four primitives that read it emits as that primitive's word (§4.3), and a value outside the word's range refuses and names the JSON export, rather than being dropped. On a primitive the engine never reads it on, the number changes no run and is still dropped on emit. Nothing else in CanvasModel is outside the language. One asymmetry is accepted knowingly: primitive/interface on an environment thing (expressible in JSON, semantically inert — the kernel ignores both) is dropped on emit rather than round-tripped.

7.4 Formatting (v1.6, #302)

Status: normative (golden-tested, tests/sl_format.rs). No grammar change — this section is a contract revision only: it names a second, optional serializer and what it preserves that emit_sl does not.

format_sl(text) = emit_sl_with(parse(text), layout), where layout is a surface fact the parser reports alongside the model (SlParse.layout, never folded into CanvasModel — §7.2's contract for emit_sl is unchanged because emit_sl reads none of it) and emit_sl_with(m, None) = emit_sl(m), byte for byte. A faulted parse yields no layout; format_sl then returns the same faults parse_sl would, and writes nothing (gofmt semantics — no partial output on a broken file).

What layout carries, and how format_sl writes it back:

  • Leading trivia. The comment and blank lines standing above a declaration travel with it: reordering a file into canonical section order (§7.1) moves the declaration's trivia with it, not the lines that happened to sit above wherever it landed. A blank-line run collapses to one; trailing whitespace is stripped, and so is any indentation before a #.
  • Trailing trivia. A same-line # comment on a declaration's own line, or on its description continuation line (§4.3), re-emits two spaces after the line's content.
  • Section banners get no syntax of their own. A # ── flows ──-style line is ordinary leading trivia of whatever declaration follows it — §4 gains no new construct to name a banner.
  • @pos and @lens are authored-only. Where emit_sl (layout: None) writes one @pos per thing and always writes @lens, format_sl writes a position only for a thing whose source carried one, and @lens only if the source wrote it — formatting a file never invents a pin the author never placed.
  • An unrecognized @-annotation line survives verbatim, rather than being dropped by the ignorable-annotation contract (§6) the way plain emit_sl still drops it.
  • Trivia the parser cannot attach to any declaration — text after the last line it consumed — is written back at the end of the file, after the annotation block.

Two things this section deliberately does not cover, both later work: reemit_sl(source, model), which would apply a canvas edit to authored text in place (the layout shape above is expected to grow a name-keyed index for that); and a machine-comment convention for text an emitter generates and must not re-capture as authored trivia on the next format pass (the crossings comments of §5, sl.rs — currently regenerated fresh, never authored, so no such collision exists yet).

8. The structure/dynamics boundary

Status: rationale (argued, adopted). §8.1 argues the departure from Mobus; §8.2 adopts the forward position from dynamics-principled-position.md. The C5 boundary it defends is normative.

This section adopts docs/design/dynamics-principled-position.md (ADOPTED); that document is the single source of truth for the dynamics-record definition, and §8.2 references it normatively rather than restating it.

8.1 The departure from Mobus, argued

Mobus's answer to "how does a model carry dynamics" was embedded scripts: "Behaviors or dynamics are implemented using embedded scripts… transformations (T in Eq. 4.1) are expressed in transfer functions or simulation programs" (§4.4.1.2.3), inside a sysXML sketch he himself frames as "playful exploration" with "research… continu[ing]" (§4.5). SL rejects the mechanism while keeping the theory, and the rejection is not taste:

  1. It is not the theory's mandate. T's formal definition — "any suitable form, such as… formula, equation, or algorithm" (§4.3.3.4) — is implementation-neutral. The narrowing to scripts happens in prose about one candidate description language, not in the tuple's mathematics. Rejecting embedded JavaScript rejects an engineering guess Mobus hedged, not a theorem.
  2. Embedded scripts destroy checkability. A script is opaque to every validator: the semigroup contract, conservation ledgers, mode-transition witnesses, and the Lean structural theorems can say nothing about arbitrary code. The premise of this tool — a deterministic kernel owning truth — dies at the first eval.
  3. Declaration subsumes the need. Everything a per-element script legitimately expresses is expressible as declared data: a rate constant, a transfer-function family name plus parameters, a transition table, a distribution plus seed.

SL v0.1's §4 made the complementary error at the spec level: it named its runtime (System→Mesa agent classes, Bevy ECS targets, tick-modulo stepping). That coupling was the old headache, and it is the second thing this boundary is built to prevent: SL never names a simulator, and no simulator's shape leaks into SL.

8.2 What SL declares if it ever gains dynamical syntax

§8.2 adopts the declaration model of docs/design/dynamics-principled-position.md (ADOPTED); the position doc is the single source of truth for the dynamics-record definition. In brief: an SL model never contains a simulator — it declares a dynamics record per system whose fields are the support, the carrier (state space), the kind (transition functor), the invariants (conserved quantities and bounds — where conservation lives), and the rates/parameters of a named transfer-function family; engines interpret those declarations and are separately verified against the semigroup contract.

Four consequences the position doc establishes, recorded here so future SL versions do not regress:

  • Conservation is an invariant the model declares, not one the engine assumes (axis D of the dynamics taxonomy). The compose conservation engine is the first interpreter of one declarable kind — Id-functor, ℝⁿ carrier, additive conserved invariant — not the meaning of Run. An SL dynamics record must therefore treat conservation as one optional declaration among several, or it bakes in exactly the special-case-as-category error the research dismantled.
  • H is a record, never an input to T (three-tradition convergence: Willems, Bertalanffy, Mesarovic–Takahara). Any history-dependence belongs in the carrier; SL will never grow syntax that feeds H back into a transformation.
  • H starts at the point (2026-11-03). A run is the unfolding of a pointed coalgebra (X, x₀, T): the starting state x₀ (each stock's initial, zero when unsaid) and then x₁ = T(x₀), x₂ = T(x₁), and so on. So a run of N steps records N + 1 states, the first before anything has moved. What moves (a flow, a process's throughput, a source's emission) is the output of a step, not a state: one value per step, N in all, the i-th belonging to the step from instant i to instant i + 1. The two are never put on one index. Data lines up by the same rule: a stock column is compared at instants, its first row with x₀ (the tether already reads that row as the stock's starting level), and a flow column is compared per step. The kernel marks which series is which (holds, crates/facets-kernel/API.md), and the face reads both through one rule (atFrame, web/src/canvas/types.ts).
  • Δt is honored: amount is a rate per unit time, and the engine delivers the rate reading (#258/#259, closed 2026-07-27). Generated fluxes scale by Δt, forced series index by model time (a channel's own Δt is dt_stride × the model's time unit), and wires transmit within the step — wires transmit, stocks remember — so the same file over the same horizon produces the same totals at any step size. The invariant is held by crates/facets-canvas/tests/dt_invariance.rs (green, with its refutability re-proven by scripts/mutation_check.py). Two riders: under Mobus §4.3.3.6 Δt remains a level-indexed declaration, not a free refinement knob — the gate checks dimensional coherence, not numerical convergence — and a wiring loop containing no stock or level read is refused at the run seams (a loop of pure relays has no deterministic step), never silently granted a per-step delay.
  • A run advances over a positive, finite slice, or it is not a run (position doc §4 rule 3). A slice of zero is not a small step, it is not a step: it defines no transition, so there is nothing to record and the run is refused. If SL ever gains syntax for the support, a declared step of zero or a non-finite horizon is a refusal at the language level too, not a value an engine is expected to cope with.
  • In v1, the sanctioned path for dynamics is the tether/run-manifest (data + forcing, separately authored); the run is the machine's job. What is lost, stated honestly: the expressiveness of arbitrary protocol logic per element. That loss is the price of a checkable language, and it is paid knowingly.
    • Scope of that path, narrower than it reads. The tether carries forcing and comparison, not parameterization. Only Role::Flow columns with force: true inject values into a run; Role::Stock and Role::Param columns are read for empirical-versus-simulated comparison and inject nothing. The manifest therefore cannot set an initial stock or a release rate, and was never able to. This is the right division of labour and should stay: a parameter is a property of the model's design and belongs inside it, while forcing and empirical data are facts about the world and belong outside it.
    • A bypass exists, and it is a defect rather than a second path (#216). facets-compose's exporter writes AgentModel.initial_state and cognitive_params directly as JSON, around SL, around the canvas, and around the manifest. Every quantity in the three original demos (reservoir, homeostat, allocation) arrives this way — the SL-authored demos do not cross it: their models are machine projections of their .sl files, held to that by crates/facets-canvas/tests/sl_demos.rs (llm-market since #318; watershed and supply-chain were the other two until they were archived out of the shipped library, and their projections are frozen in assets/archive/demos/) — and the canvas discards both maps on load — which is why a demo round-trips into a different system while still reporting conserved=true. It is named here because a spec describing a boundary the shipped artifacts cross is the silent failure: nothing breaks, the document just stops being true. It is not hereby sanctioned; closing it is a defect fix, not a spec revision.
    • What closes it. Those two maps are untyped HashMaps because nothing has yet decided what the transition functor is, and a functor's parameters cannot be typed before the functor is chosen — that decision is #112's subject. Note the corollary, which cuts the other way: flow amount, unit, and substance name are already typed fields on Interaction and are not blocked by #112. They are structural attributes of an edge — they do not vary during a run — and their absence from §4's grammar was the reason no SL-authored model could emit at any rate but 1.0. Paid 2026-07-27 (#216 Wave 4): §4's flow production now carries all three, the canvas relation keeps them, and the demo round-trip test (canvas_round_trip.rs) holds the seam closed — leaving initial_state / cognitive_params as exactly #112's remaining scope.

8.3 Three objects, kept apart (2026-10-10)

A run involves three objects that are easy to run together in prose and are different things in the kernel. Stated once, with where each lives, so the words stay apart:

Object What it is Where it lives What it does not carry
The Mobus system the structure inside the boundary: components, flows, interfaces, the recursive decomposition facets-core (semantic authority), this language behaviour; two differently built systems are different systems even when their runs agree
The coalgebra the behaviour read on the boundary: a state and a rule for what comes next, X → F(X), with F the dynamics kind (deterministic, Markov, nondeterministic; SSF Systems/Dynamics/Transition.lean, the Mealy wrapper (kindCodomain k (out × X))^inp) the run; facets-compose's step; H as the state's image in the final coalgebra (existence per kind checked 2026-07-25) structure; two states no observer can tell apart are one state (bisimulation); conservation
The ledger the conservation bookkeeping across the boundary: emitted, stored, sunk, dissipated facets-core's typed flows and facets-compose's ledger the transition; it is an invariant the model declares (§8.2), not a property of F

Three consequences, each already held somewhere and gathered here:

  • Structure is refused on its own terms. A model can be refused for its structure (a crossing flow with no interface, a loop of pure relays) before any behaviour exists. The coalgebra is the shadow the system casts on its boundary, and the kernel does not take the shadow for the system.
  • Memory is a coordinate, never an input to T. A rule that reads the past (the threshold band's last command, v1.11; the trace rule's window of past readings, v1.12) folds that past into the state, so the step stays one transition on a product (ADR 0008 D6, SSF agent_step_is_product). A rule that rewrites its own parameters would need those parameters inside the state too; the word learning is reserved for that rule and it owes a restatement of the product theorem before it is built (§4.7).
  • The step is a modelling commitment, not an approximation. The engine advances by one declared slice; there is no continuous system underneath that the slice approximates. §8.2's invariant is exact where it is stated: conserved totals over a horizon do not depend on the step size. Event counts of a switching rule do: the banded relay thermostat switches 13 times a day at an hour step and 39 at a quarter hour (assets/bench/thermostat-band.sl), and both are the model's behaviour at that step, not errors against a true value. A finding quotes its step. Inside one step the order is fixed and the same for every stock and agent: observe, decide, remember, then the stocks move (§4.7).

9. Worked examples (the golden corpus)

Status: normative — the three examples are the round-trip goldens, so their behavior binds.

The three corpus files are committed at fixtures/sl/ and are the round-trip goldens; all three parse, emit, re-parse identically, and project clean at Core mode.

9.1 Process M (process-m.sl) — Mobus's own paragraph

Mobus's verbal exemplar: "Process M takes in materials A and B from sources 1 and 2 along with energy E from source 3 to make product Z with waste product X going to sinks 5 and 6 respectively" (§4.3.1). In SL, each clause becomes one line:

system "Process M" : Concrete
component Work primitive Combining interface
source "Source 1"
source "Source 2"
source "Source 3"
sink "Sink 5"
sink "Sink 6"
flow "Source 1" -> Work : matter "material A"
flow "Source 2" -> Work : matter "material B"
flow "Source 3" -> Work : energy "energy E"
flow Work -> "Sink 5" : matter "product Z"
flow Work -> "Sink 6" : matter "waste X"

With v1.1 (#84), "Process M" is finally the system's name, as in Mobus's own sentence; the lone component is its combining work process. What the paragraph carries that SL still does not: the efficiency figure — a process parameter in the §8.2 sense, waiting on #112's param clause. The rate refinement ("one mass of delivery each 24 hours") stopped being an example on 2026-07-27: amount 1 unit mass/day is now a flow clause (#216, C1), because a rate that does not vary during a run is a structural attribute, not dynamics.

9.2 Bathtub (bathtub.sl) — the stock-and-flow first lesson

system : Concrete/Physical
component Tub primitive Buffering interface
source Faucet
sink Drain
flow Faucet -> Tub : matter "inflow"
flow Tub -> Drain : matter "outflow"

Six lines, one Buffering work process, the canonical first model of every system-dynamics curriculum — and the demonstration that bare names need no quotes.

9.3 The hal stack (hal-projection.sl) — a real infrastructure system

system : Concrete/Technical
domain "sovereign AI infrastructure"
component Proxy interface
component DailyLoop interface
component Council
source Operator
sink UpstreamAPIs
flow Council -> Proxy : informational "convene models"
flow Proxy -> DailyLoop : informational "tool calls"
flow Operator -> DailyLoop : informational "requests"
flow Proxy -> UpstreamAPIs : informational "model requests"
boundary porosity 0.15 fuzziness 0.05

A three-component decomposition with two boundary interfaces, an authored membrane, and a domain framing — the working shape of a real model, ten structure lines.

10. Lineage

Status: informative.

Mobus, Ch. 4 (2015/2022). SL inherits the load-bearing insight — one definition, three coequal views (verbal, graphical, mathematical; §4.3) — the ontology-drawn lexicon, the system-paragraph as the verbal form, and the syntax-as-structural-legality doctrine (§4.4.1.3). It sheds his sysXML/XML serialization (the neutral spec's JSON already fills that role), his embedded-JavaScript behaviors (§8), and the 7-tuple's folding of E into G — the machine-checked authority is the 8-tuple with E first-class (Tuple.lean; E-as-first-class is the Lean formalization's improvement on the printed tuple, credited as such).

BERT SL v0.1 (bert/docs/system-language-spec.md). The prior spec in this lineage: a publication-grade lexicon and grammar for the data model — 40 concepts, ID encoding, the four Lean coherence constraints (its §2.6), edge-derived source/sink roles (its §1.2 migration note, adopted here as §5.2). What it lacked is exactly what this spec adds: a human-writable concrete syntax; v0.1's "speakable" mode was natural-language-to-model via chat, not a notation a person writes and diffs. Its §4 execution mapping (Mesa/Bevy) is shed per §8.1.

SL v2.0 addendum (system-language-spec-v2-addendum.md). Contributed the kernel re-founding (the 8-tuple as a generated view over a proven kernel) and the mode lattice; its mode-declaration surface syntax stayed cut — in facets, modes are the three lenses, view state on the neutral spec, which is why @lens is an annotation and not a structure line.

SysML v2 (formal/2026-03-02) — the architecture precedent, and the ontological foil. SysML v2 Part 1, the language specification, was formally adopted in March 2026 (OMG Systems Modeling Language, Part 1: Language Specification, formal/2026-03-02, 691 pp). It is the standards-body validation of the architecture SL inherits: one abstract syntax, concrete syntaxes as projections of it, the textual notation privileged because it maps losslessly while a diagram is a partial projection, semantics anchored in a kernel artifact (their KerML plus a semantic library; here the kernel plus Tuple.lean). It is also the exact inverse of C3. §7.1 states outright that the language carries no construct named system, subsystem, or component — "An entity with structure and behavior in SysML is represented simply as a part" — with domain terminology supplied through user-defined metadata (§7.27). SL's lexicon is the opposite commitment: every word names a kernel-licensed ontological distinction and nothing else (§3, C3). SysML v2 is ontologically agnostic by design, and correct for its job of building engineered systems; SL is the ontologically committed counterpart, for studying systemness. Primary cites: §7.1 and Figure 1 (§6.1). The audience and interoperability consequences are drawn out for readers in the language README's "Why SL, and when SysML" section (#99).

Precedents (research and verification marks in docs/design/sl2-authoring-language.md §4): SysML v2 (formal/2026-03-02) for the architecture — text and diagrams as projections of one abstract syntax, text privileged because it maps losslessly (the ontological contrast is drawn out above); Modelica for one-artifact/two-concerns (§6); Stella for the bar the tool clears — two coequal views of one model with a live validity signal; Quint for approachable-surface-over-fixed-semantics via a deterministic transpiler; ACE/Gherkin for the fail-loud parse discipline; gpt-jargon as the negative control (C1). For the dynamics boundary: Petri-net P-invariants and CRN conservation laws as the prior art for invariant-on-structure independent of the transition rule — the position §8 applies is their pattern, cited as lineage, not a rediscovery.

11. Known gaps and v1.1 candidates

Status: informative (roadmap; the honesty mechanism in place of a conformance clause).

Gap Tracked Direction
No root-system name shipped as v1.1 #84 (closed 2026-07-18) CanvasModel.name → system "Name" [: type] — see §3, §4.1
No decomposition / sub-paragraphs decompose-by-reference shipped (step 4) #89 (step 4 merged 2026-07-20) decomposes "label" @id → System.child_model — see §3, §4.3, §7.1; the reference form keeps each file one flat paragraph, the recursion in the id index
No Klir source-system variable characterization shipped as v1.2 #154 (landed 2026-07-24; spec caught up 2026-07-31 — the words shipped ahead of this document, the drift the keyword-parity gate now makes impossible) scale / states / kind → Thing.scale / .states / .variable_kind — see §3, §4.3, §7.1
No declared epistemological level shipped as v1.3 #288 (landed 2026-08-08, spec and parser together — the discipline #154's drift taught) level → CanvasModel.klir_level — see §3, §4.10, §7.1; the cross-level refusal is lenses::check_cross_level, printing Klir §5.4
A walk is three files and five gestures to load tooling shipped (no grammar change) facets#412 (2026-09-19) One .sl file may hold several system paragraphs; the app's Open… splits them, resolves a bare decomposes "Name" to the paragraph so named (relative to the referrer), has the kernel mint the ids, stamps both ends, saves the children, opens the root. The compiler is untouched: a bare reference in a single paragraph is still the §4.3 fault, and identity still never lives in the text
No decision-maker; a regulator was three primitives and no one to name who turned the knob shipped as v1.10 facets#269 (ADR 0008, 2026-10-10) agent … watches … rule … manages … (§4.7) → Thing.rule → AgentModel.policy → the seam's agents list → NodeKind::Agent; the thermostat two ways is the separating instance (assets/bench/thermostat-room.sl against thermostat-agent.sl)
The policy vocabulary stopped at one level and no memory shipped as v1.12 facets#269 (ADR 0008 D4, 2026-10-10) table under … emit … else … and trace window … target … gain … (§4.7); Policy::Table and Policy::Trace; the trace window lives in Circuit::agent_readings, run state the step writes after every decision; assets/bench/hospital-beds-table.sl and thermostat-trace.sl are the separating instances against their one-level and memoryless controls, and window 1 against thermostat-agent.sl is the identity
An agent could only signal a process; no agent could set a parameter shipped as v1.13 facets#269 (ADR 0008 D1, 2026-10-11) agent … manages param "<name>" (§4.7), the command form; Thing.manages_param → AgentModel.command → Node.knob, written at the end of the tick through Circuit::write_amount, the bench knob's own path; a named param is required (§4.5); KnobEdit carries its author and the tick log a decisions column; assets/bench/logistic-harvest-quota.sl against logistic-harvest-agent.sl is the separating instance (one tick of phase; pinned closed, one f32 ulp apart; pinned open, the control digit for digit). A command on a wider split, a component field or another agent's field is not designed
An agent could only read a stock's level shipped as v1.14 facets#523 (ADR 0008 D5, 2026-10-21) agent … watches flow <a> -> <b> ["label"] (§4.7), the feedforward form; Thing.watches_flow → AgentModel.observation → OperationalAgent.observation → Node.watch, the reading taken from the last completed tick's executed deliveries (Node.watched, run state zeroed on reset); assets/bench/thermostat-feedforward.sl is the witness (the step in the supply reaches the room for one hour, then is compensated; pinned open the room climbs toward twice its level). Watching an informational flow, another agent, or a metric is not designed
A process's own parameter ran but could not be written, except a sensor's gain shipped as v1.15 walk row 18 (docs/design/new-user-walk.md, 2026-11-03) gain on Amplifying, efficiency on Propelling, impedance on Impeding (§3, §4.3) → Thing.agency_capacity → Node.param, through OWN_PARAMS in sl.rs; emit_sl refuses a value outside the word's range (§7.2); engine_knobs offers each at the value the run uses
A process's own parameter could be written on its line but not named by a param shipped as v1.16 toy models, 2026-11-04 (gain of Stage refused as an agent word; impedance of … a syntax error) param "Name" : <gain|efficiency|impedance> of <component> [range …] (§4.5) → ParamAnchor::Own { thing }, the word read off the primitive through OWN_PARAMS, the range checked inside the word's own; round-trips through emit_sl; the run inputs slider reads the thing's engine_knobs row; facets bench turns it by the param's name or by the word
A flux could depend on two levels only through a sensor-held valve, and Copying took one input shipped as v1.17 #573, #575 (walk row 48, 2026-11-04) mass action <k> on a Combining or Copying line (§4.3) → Node.mass_action: the process draws k · ∏ x over the opening levels of the stocks it draws on and reads, scaled whole by a stock that cannot cover it; a Copying with a matter output takes blank material and makes min(pattern, material). Conservation for any rates: systems-science-foundations stoichRun_conserves. Not claimed: anything about the f32 stepper's rounding
A stock's overflow at capacity could only dissipate shipped as v1.17 #578 (walk row 48, 2026-11-04) spill on a flow out of a bounded stock (§3) → Wire.spill: the overflow goes down it the same step, the receiver evaluated after the stock's every inflow; through a fused interface the same-labelled crossing leg carries it
SL could not write a field flow; the engine's ran forward only and compared raw levels shipped as v1.17 #574 (walk row 48, 2026-11-04) : field ... conductance G [one way], capacitance on a stock, potential on a source (§3) → a Force interaction and a gradient wire, signed, capped at evening out. Not claimed: a proof that a network of field flows never overshoots; the cap is per wire, and the donor cap scales a stock's several flows together
A stock held only matter or energy; an informational flow into a stock was always a gate shipped as v1.17 #576 (walk row 48, 2026-11-04) informational on a stock line (§3) → Node.holds_message: a memory that adds up its messages, forgets over its time constant and is off the books. Taken by delegation: conservation follows from the kind held; one ledger for matter and energy; the receiver's kind decides gate or inflow. Not claimed: anything about #373 ask 3 beyond this worked case
A gate on an information flow could not be written: Modulating throttled matter and energy only, and a message into it was read as a control shipped as v1.18 #587 (2026-11-06) a Modulating fed only messages gates them (§4.3): payload × command, the command an agent's or a comparator's message, the rest payload; open with no command; nothing stopped is ledgered. check_gates_have_control reads a message gate as controlled only by a command. Witness assets/bench/censorship.sl. Not claimed: selection by content, which SL has no words for
The command form's command was no relation: no lens counted it and the canvas drew an agent that read and never acted shipped as v1.18 #588 (2026-11-06) the parser draws an informational relation from the agent to the actuator the param's knob belongs to, named by the param (§4.7); project skips it (the command is AgentCommand), to_canvas redraws it, emit_sl and @directed never count it, as for the tap
A rate law had no control port; an agent could scale a valve's release but not a law's k shipped as v1.18 #584 (walk row 57, 2026-11-06) param "<name>" : mass action of <process> range lo..hi (§3, §4.5) and manages param on it (§4.7) → AgentCommand::Law → OperationalCommand::Law → AgentKnob::Law, written onto Node.mass_action at the end of the tick, above zero only. sir-epidemic-agent.sl moved to it. Not claimed: a Lean statement about a k that changes between steps beyond stoichRun_conserves's per-step rates
The relay thermostat chattered at one level; no dead band shipped as v1.11 facets#517 (2026-10-10) threshold above <a> below <b> … (§4.7), the hysteresis band; Policy::Threshold { below }, one bit of memory the engine already held as the node's activity; assets/bench/thermostat-band.sl against thermostat-relay.sl is the separating instance (fewer switches a day as the band widens). Sensor lag, heater warm-up and an outdoor level stay in #517, each needing a word the engine does not carry yet
No way to say an interface is not yet identified shipped as v1.8 facets#308 (2026-10-09) interface unresolved, the reserved pass-way (§4.3), one per model, no protocol; check_resolution_canvas (§5.4); the steel plant at Fig. 4.14 and Fig. 4.15 is the separating instance (tests/resolution.rs)
No way to say whose word an element rests on shipped as v1.7 facets#411 (2026-09-18) grounding <grade> ["<ref>"] on thing, interface and flow lines → Info.grounding; authorial tier named in C4; six ordered grades; the Venice model is the separating instance
description could only ride its declaration's line shipped as v1.5 #399 (landed 2026-09-17) An indented description "<prose>" directly beneath the declaration; the narrow rule — no other clause continues, no multi-line strings — and canonical emit always uses it. See §3, §4.3, §4.4, §7.1. Comment and stanza preservation stays #302's
Comments and blank lines were not preserved on emit stage 1 shipped as v1.6 #302 (stage 1 landed 2026-09-17, epic #399) format_sl (§7.2, §7.4): a layout side-structure (SlParse.layout) the parser reports and emit_sl_with consumes; emit_sl/CanvasModel unchanged. Still open (stage 2+): a wasm export, reemit_sl(source, model) for canvas edits made against authored text, an orphan-comment policy for a deleted declaration, the reserved #~ machine-comment prefix, and a facets fmt CLI subcommand
milieu dynamics coupling absent by design lifecycle paper The paper marks how M's conditions influence the running system "an area for much more research"; a declared value is a snapshot, and nothing in the engine reads it until the theory states the coupling
interface + decomposes refused together (v1) lifted 2026-08-09 #89 The Lean contract covers a component's internal network only; when it grows the membrane-crossing case (flows through an interface component) the co-occurrence becomes legal and the interface/decomposes emission order (§7.1) gets revisited
No controlled systems-English tier (the verbal surface proper) design doc §5 stage 2 Fixed-grammar system-paragraph parsing to the same neutral spec
Compiled diagram can land partly off-viewport #83 Zoom-to-fit after compile (UI, not language)
Empty text compiles to an empty model silently session log 7/18 Possibly a nonempty gate or confirm in the pane (UI, not language)
Kind (5 values) collapses to 3 substances under project() canvas.rs:64 Not an SL defect — Kind survives the text round trip; noted for any WorldModel-mediated path
No dynamics declarations §8 If ever: the §8.2 record, never scripts, never a named simulator