Development cycle
The development of a FormaSL application goes through the definition of the domain, the formation of the modules, the composition of the operations and the binding to realization. Each stage produces information that makes it possible to locate errors and understand the results.
Start from the domain contract
Identify the referents, relations and roles needed by the application. Define which pieces of information are Claims, observations, derived results or decisions. Specify the contexts and temporal roles that change the interpretation.
Choose the reusable modules that already publish those contracts. Declare the application-specific elements in the consumer modules. The definition must make it possible to explain the meaning of inputs and outputs without depending on the physical representation.
Verify the formation
Use check over the set of sources or over the project target. The verification identifies problems of syntax, resolution, declarative category and static contracts. Fix the first cause indicated by the diagnostic before interpreting errors that follow from it.
Use inspect to examine the admitted program. This step is useful to confirm the selected declarations and resolved references, especially when there are aliases or several imported modules.
Execute the applications
Select the intended application for run. Examine the application’s result and its semantic status, beyond the operational summary. A query, an analysis and a governance judgment present their own results.
For gas-limited operations, record the budget used. Compare results only under compatible bases and completion conditions. A partial result can be useful when the consumer’s contract admits that use.
Bind the realization
Declare in the .fsp plan the bindings and restrictions required. Use realize to verify the selection of capabilities. External execution goes through the invocation, evidence and admission interfaces corresponding to the operation family.
Keep environment configuration separate from meaning declarations. Models, instruments, services and storage mechanisms must be identified by the revisions and guarantees the application requires.
Turn failures into verifications
For each corrected behavior, add a case that discriminates the expected result from the earlier failure. Record the application, its inputs, the basis and the outcome. Include valid negative results, missing information, conflicts and interruptions when those states are part of the contract.
The book’s example roteiro contains small domain cases, each accompanied by its purpose and verification criterion.