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

Dependencies and distribution

Packages distribute FormaSL modules, sources and targets. Dependency resolution selects the artifacts that form the program’s basis. The lock records that selection, while the sealing process organizes a distributable version with verifiable identities and integrity digests.

Declare interface dependencies

A dependency must publish the declarations the consumer needs. Use the package interface to identify types, relations, theories and operations. Avoid depending on internal paths that are not part of that interface.

Compatibility is examined according to the declaration’s category. A name change can be accommodated by an alias; a change of type contract or of result requires verifying the guarantees used by the consumer.

Fix the resolution

The lock file records selected versions and artifacts. Include it in the project’s reproduction material. A dependency update produces another formation basis and must be accompanied by the verifications of the affected targets.

Historical result references remain bound to the basis in which they were produced. Updating a dependency for new executions is a change of the program, not a reinterpretation of earlier results.

Seal and verify the version

The package family offers the sealing and verification operations. Sealing gathers the package material according to its distribution contract. Verification reconstructs the identity and checks the artifacts’ digests.

Keep with the version the manifest, the lock, the sources, the plans and the associated verifications. Identify separately the external artifacts the realization requires, such as models or calibrations.

Distribution and execution

A distributed version makes artifacts available for resolution. Realization selects concrete resources to execute the applications. Publishing a package, publishing an authoritative source state and starting an execution have their own contracts.

The update guide describes how to evaluate interface and interpretation changes before replacing a dependency used in production.