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

Verification

Verification is layered. A green command establishes only the property that command exercises; it is not a substitute for a different semantic or formal claim.

Product-facing checks

From the repository root, build the CLI and exercise the public route:

cargo build -p formasl-cli --locked
./target/debug/formasl check examples/hello.fsl
./target/debug/formasl inspect examples/hello.fsl --view summary
./target/debug/formasl run examples/hello.fsl --gas 1000

These commands establish, respectively, that the example source checks, that a checked program has the reported structural summary, and that the selected runtime bridge returns a result under its supplied gas budget. They do not prove every application family, an external provider action, or a durable update.

For a machine consumer, request the successor schema explicitly:

./target/debug/formasl check examples/hello.fsl --format json --schema-revision 1
./target/debug/formasl run examples/hello.fsl --gas 1000 --format json --schema-revision 1

Validate the whole JSON envelope and operation-specific outcome. A process exit code alone is not a substitute for inspecting a REJECTED, UNSUPPORTED, or resource-exhaustion outcome.

The application host is verified the same way — against the real binary, not an in-process substitute (see Serving a FormaSL application):

./target/debug/formasl serve <project-dir> --port 0

A hosted world must answer GET /health with its project identity and serve operations whose machine envelopes are byte-identical to the CLI’s for the same project, lock, and inputs. A served 200 with a REJECTED aggregate is a semantic outcome riding transport success — read the envelope, not the status line.

Repository gates

The ordinary Rust gate set is:

cargo fmt --all --check
cargo check --workspace --all-targets
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
git diff --check

Run the focused user-documentation gate after editing this book:

cargo test -p formasl-cli --test user_docs_gate
mdbook build docs/user -d /tmp/formasl-user-book

The documentation gate checks navigation, links, option vocabulary, executable command fences, JSON envelope shape, and checkable FormaSL examples. It also parses the marked language-reference corpus in LANGUAGE-GUIDE.md at the frontend boundary: modules, declarations, claims, query, reasoning, transformation, scenarios/source evolution, composition, and .fsp realization all retain a parser-admitted representative. Those parser-level blocks intentionally prove concrete syntax, not a fabricated claim that every family has a productive runtime route.

The mdBook build checks rendering and local link resolution; it does not execute runtime semantics.

Formal-toolchain gate

The repository also carries an Agda formalization. Its check is distinct from the Rust product gate:

bash scripts/check_agda.sh

Run it when formal files or Rust-to-formal correspondence are in scope. A successful formal check establishes that the invoked Agda modules type-check in that environment; it does not by itself establish that an arbitrary source program has executed in the Rust product.

What to record

For a reproducible result, record the exact command, its exit status, the source/plan inputs, the requested schema revision, and the relevant typed outcome or diagnostic code. If a run depends on --gas, record the selected budget as part of the result: a higher budget can change OUT_OF_GAS into a completed fixed point without changing source text.

Assurance boundaries

EvidenceEstablishesDoes not establish
checksource accepted by the implemented frontend and semantic bridgeclaim truth or external fact acquisition
inspectreported checked structureapplication execution
runtyped result of the selected runtime bridgepersistence, provider invocation, or world update unless that bridge explicitly reports it
realizeplan-to-checked-program bindingexternal capability execution
analyzetyped outcome of one declared analysis application through the same engine as runclaim truth; a provider requirement is an outcome, not a performed computation
serveone resolved project served over loopback HTTP with machine envelopes byte-identical to the CLI’sexternal network exposure, provider availability, durable host-side state, or hot reload
test receiptreproducible per-case outcomes over the sealed subject with resolution digestsproduction authorization or transferable certification of semantic correctness
package seal / verifysealed bytes re-checked through the real public check, re-derived release id, verified digestsdeployment, remote publication, or execution of the sealed capability
Rust testsbehavior covered by those testsa proof of all language obligations
Agda checktype-checking of invoked formal modulesruntime conformance without a correspondence witness

Use Support and limitations when interpreting a completed outcome, and Errors and exits for typed failures.