FormaSL User Guide
FormaSL is a language and reference product for checking, inspecting, and running semantic programs. This guide describes the public surface implemented by the current Rust workspace. It is deliberately narrower than a language roadmap: when a construct is admitted but its reference execution bridge has a limit, the limit is stated here rather than inferred away.
$ formasl --version
formasl 0.1.0
What is available now
The formasl command works on explicit .fsl source inputs and offers four
operations (plus project-mode test and package, see
Projects):
| Operation | Purpose | Required inputs |
|---|---|---|
check | Admit, resolve, and elaborate a source set into a checked program. | One or more .fsl files. |
inspect | Project a checked program into a curated view. | .fsl files and --view. |
run | Evaluate selected applications over a checked program. | .fsl files and explicit --gas; --app is optional. |
realize | Bind one explicit .fsp realization plan to exact checked-program bases. | .fsl files and exactly one --for <plan.fsp>. |
analyze | Run one declared analysis application (thin facade over run). | .fsl files, --app NAME, and --gas. |
serve | Host one resolved project as a long-lived application over loopback HTTP. | A project directory (uses forma.lock; see Serving). |
The public Rust facade provides the same operations—check, inspect, run,
and realize—as synchronous functions. Its support class is PREVIEW: it is
not a stable SDK, a network protocol, or a persistence protocol. See
Programmatic API before embedding it in another product.
Text output is for people. JSON output is a canonical formasl.machine machine
projection. Integrations should request JSON explicitly and select
--schema-revision 1 when they need the successor schema that represents the
current run-family outcomes.
Product boundaries in one page
- A
.fslsource unit declares semantic vocabulary, claims, applications, and compositions. It is not a live database or an implicit network request. - A
.fspsource unit is a realization plan. It binds named application or stage requirements to explicit capabilities; it does not alter the meaning of the.fslprogram and does not invoke a provider by itself. assert claimrecords an attributable source assertion. It is not a proof of truth, and a result produced byrunis not an authoritative source update.- The reference runner supports query, R1/R2/R3 reasoning, validation, governance, scenario, revision, source-evolution preparation, execution-request recording, observation standing, analysis routing, transformation projection, and composition. These families have distinct boundaries; for example, transformation evaluation is not covered and incorporation is reported as unsupported. Read Support and limitations before relying on a result family.
Reading routes
Authoring a program
Integrating the engine
Diagnosing a rejection or a non-complete run
How this guide stays tied to the product
The repository test crates/cli/tests/user_docs_gate.rs admits every
formasl source block in this guide, parses the marked full-surface reference
blocks in the language guide, executes documented CLI examples, resolves links
and referenced example paths, and parses the JSON examples. That gate is useful
evidence that the examples match the checked checkout; it is not a claim that
every possible program has been verified or that an execution result has
external authority.