Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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):

OperationPurposeRequired inputs
checkAdmit, resolve, and elaborate a source set into a checked program.One or more .fsl files.
inspectProject a checked program into a curated view..fsl files and --view.
runEvaluate selected applications over a checked program..fsl files and explicit --gas; --app is optional.
realizeBind one explicit .fsp realization plan to exact checked-program bases..fsl files and exactly one --for <plan.fsp>.
analyzeRun one declared analysis application (thin facade over run)..fsl files, --app NAME, and --gas.
serveHost 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 .fsl source unit declares semantic vocabulary, claims, applications, and compositions. It is not a live database or an implicit network request.
  • A .fsp source unit is a realization plan. It binds named application or stage requirements to explicit capabilities; it does not alter the meaning of the .fsl program and does not invoke a provider by itself.
  • assert claim records an attributable source assertion. It is not a proof of truth, and a result produced by run is 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

  1. Getting started
  2. Mental model
  3. Language guide
  4. Toolchain reference

Integrating the engine

  1. Programmatic API
  2. Toolchain reference
  3. Verification

Diagnosing a rejection or a non-complete run

  1. Errors and troubleshooting
  2. Support and limitations
  3. Toolchain reference

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.