Formats and artifacts
The Forma formats are distributed across semantic source, realization, project, verification and machine interfaces. Each format has a defined responsibility and a version compatible with the consumers that interpret it.
| Format | Use |
|---|---|
.fsl | Declarations and data of authoritative semantic source. |
.fsp | Realization bindings, requirements, limits and preferences. |
forma.toml | Project and package manifest. |
forma.lock | Resolved dependency basis. |
*.test.toml | Verification cases admitted by the test system. |
| JSON machine document | Structured projection of results and diagnostics per the operation’s schema. |
| Sealed artifacts | Version content accompanied by integrity identities and digests. |
Source .fsl
The source unit contains a module declaration. The module organizes definitions, imports, exports and applications. The surface grammar determines identifiers, expressions, declarations and contract bodies.
A qualified name is resolved under the basis of modules and interfaces. Source references, declarations and semantic referents keep their own identities.
Realization .fsp
A realization declaration selects targets and applies clauses to the admitted slots. bind establishes a binding; require expresses a requirement; limit bounds a resource; prefer guides selection; budget sets a budget on the corresponding slot.
Specificity resolution and field schemas belong to the language version. The plan uses the semantic identities already determined by the sources.
Manifest and lock
The manifest declares the package organization, its sources, dependencies and targets. The lock records the resolved selection of artifacts. The exact fields must be obtained from the schema or project reference of the revision used.
Changing the lock changes the resolution basis. Keep the file together with the verifications executed for the project.
Machine results
Machine projections keep typed fields for identities, bases, results and diagnostics. Each schema defines the admitted fields and the compatibility rules. Interfaces that refuse unknown fields must receive exactly the schema of the corresponding version.
The textual presentation is a projection of that result. When integrating with another program, use the identifiers and structured fields published by the contract, preserving the semantic categories.
External artifacts
Analytical models, calibrations, images and other inputs can remain outside the textual source. The realization binding identifies the required version and integrity. The application keeps the correspondence between the external artifact, the requirement and the produced result.