facets docs
DocumentLIVE

Quickstart — from zero to a judged model

Status: LIVE. A ten-minute path through the instrument: author a system as text, read the kernel's verdict on it, break it on purpose and watch the refusal hand you the repair, then open a model that runs against real data. Text only for now: the illustrated walkthrough is unbuilt and untracked — it was recorded in parked.md when #126 was retired, and the #80 this line used to defer to never covered it. New terms link to the terminology concordance on first use; the glossary is the fast reference.

Prefer to touch before you read? Start a New model and choose Build it: drop work processes from the Build rail, wire them, press Run, and turn a knob while it runs. It keeps running past the run length until you pause it. Come back here when you want the judged-model path. The design record is design/one-surface.md; the older sandbox surface, with Troncale stamps, is still at ?sandbox=1.

0. Install the prerequisites

Every command here is a just recipe, so install just first — it is the one thing nothing in the repo can install for you:

brew install just          # macOS
# Debian/Ubuntu: sudo apt install just   ·   anywhere with Rust: cargo install just

Then let the repo name whatever else is missing:

just preflight

It checks python3, Rust, the wasm target, clippy, wasm-pack and Node, and prints the exact install line for each one it does not find. Run it until it says All set. The full table, with why each tool is needed, is README's Prerequisites.

1. Open the app

From the repo root:

just dev      # installs web deps if needed, rebuilds the wasm kernel, starts the Vite dev server

Open the URL it prints (usually http://localhost:5173 — it moves to the next free port if that one is taken, so read the URL rather than assuming it).

You land on a start screen with two doors: New model and Open a model.

2. Author a model as text

Click New model. A start surface offers two ways in: Build it on the canvas, or Describe it in plain language (which needs a reasoner). Click skip for now. (The model's name, Bunge's kingdom and genus, and a subject domain are set from the model's name in the top bar, or by the system line of the text below.)

You are on a blank canvas. Click SL in the top bar to open the text pane. SL is the repo's textual system notation and the fastest way in.

The pane is not empty — it arrives seeded with a worked example, Mobus's steel plant, so there is always something to read. Select all of it and replace it with fixtures/sl/bathtub.sl:

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

@lens mobus

A faucet fills a buffering stock (Tub), a drain empties it — the classic stock-and-flow first lesson.

3. Compile and watch the canvas render

Press Compile (or ⌘⏎). SL is a deterministic compiler, never an LLM: the same text always produces the same model.

What you get first is a draft preview with Accept and Discard — the compile is proposed, not imposed. Accept it, and the canvas renders the two flows and three things. The text pane and the canvas are two surfaces over one neutral spec — edit either, and they round-trip.

4. Read the verdict panel

The kernel judges the model under each lens. The verdict panel shows, per lens, whether the model holds as a system and — where it does not — the precondition it failed, quoted. Every verdict cites its reason; nothing is a shrug. This is systemhood being decided, not styled.

Switch between Bunge and Mobus in the top bar and watch the same model described in two vocabularies. Klir, the relational floor, joins the bar when the page is opened with ?lens=klir. That is the instrument's point: one model, faithful views.

5. Break it on purpose — the step that matters

This is where you find out what the tool actually is. Delete the sink Drain line from the text pane, leaving the flow that points at it:

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

@lens mobus

Compile. It refuses, and the refusal reads:

line 5: `Drain` is not declared (declare things before flows) — fix: add `sink Drain`
        above this line, or `component Drain` if it sits inside the boundary

Read what that gives you: what is wrong, where (line 5), which rule (declare-before-use), and the line to type. It does not guess what you meant and quietly generate something plausible — it stops, names the rule, and hands back a repair. Every fault in the file is reported in one pass, not one at a time.

Put sink Drain back and compile again. That loop — refuse, name the repair, fix, pass — is the instrument.

More failures to learn from live in fixtures/sl/teaching/: a graded set starting from a two-line first model, including two files that fail on purpose, each documenting its own expected error and line number.

6. Step up to a real work process

Back in the text pane, paste fixtures/sl/process-m.sl — Mobus's own textbook paragraph (multiple inputs combining into a product plus waste), written in SL:

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"

@lens mobus

Compile it, read its verdicts under each lens, and compare how the Bunge and Mobus panels (and Klir's, with ?lens=klir) each describe the same model in their own vocabulary.

7. Watch one run

A model you just authored has structure and declared amounts but no data, and the readout says so: "Nothing has run yet. Press ▶ Run in the header, or set the run length in the rail first. No data is needed: the declared amounts govern until a column is bound." A run driven by observed numbers needs a model and a data series and a mapping between them. That bundle is what the library's data-fed entries carry.

To see one:

  1. Home in the top bar → Open a model. Leaving unsaved work raises a discard? confirmation first — accept it; nothing above was worth keeping.
  2. The library is one list, filtered by tags: genus, tradition, and Bench (the models that exist to test the instrument).
  3. Open LLM Serving Market, the data-fed entry. (It opens on its bundle, the OpenRouter routed-share vintage in assets/data/, which the bundle is generated from.)

It runs on open. The run panel reports the run, the conservation invariant the model declares holding as nothing lost or created, and a run ledger — the per-step accounting that shows the invariant holding, or where it does not. ▶ Run in the strip under the diagram re-runs it (the trace auto-plays once); Δt and T sit in the run card beside the diagram and set the step and the horizon.

The engine's run is one dynamics-kind: a deterministic map over ℝⁿ stocks under a model-declared additive invariant, with the agent layer's rules inside the same step (ADR 0008); a discrete-time Markov chain is the second run mode (run_markov, crates/facets-compose/src/markov.rs). Further kinds are declarable. The ledger is a result shown in the panel, not a saved tier (Save ≠ Export).

Two entries carry a bundle today, LLM Serving Market and Translation Apparatus (assets/demos/); every other entry opens on its declared amounts and runs from them.

Optional: the co-author

The SL pane's Co-author tab drafts SL from a description in prose. It is off until you turn it on, and it sends your text only to the address shown. At facets.systems that address is the facets reasoner, Halcyonic's own service, which asks a frontier model on your behalf under an anonymous session; nothing you draw on the canvas leaves the page. Change the address to a reasoner you run and nothing reaches Halcyonic. The kernel still judges everything the co-author produces: it drafts, it never decides systemhood.

With claude-opus-5 or claude-sonnet-5 as the drafter, the tab offers Careful (the default: the drafter thinks first, often 30 to 60 seconds) or Fast (it answers sooner, often under 20). The choice changes how long the drafter deliberates and nothing else: the kernel checks every draft either way, and each turn in the history says which one wrote it.

Running your own needs a service at that address, answering POST /analyze and POST /author-sl. The reference implementation, the General Systems Reasoner, is not public, so the co-author is currently out of reach for readers outside Halcyonic. Everything else in this document works without it.

Where to go next