Repository navigation
Settei 0.3.0.0 is a shared PVP major release of all nine public packages. It adds a deployment workflow and a checked startup boundary, and introduces the new settei-preflight package.
Packages
| Package | Version | Hackage |
|---|---|---|
| settei | 0.3.0.0 | https://hackage.haskell.org/package/settei-0.3.0.0 |
| settei-env | 0.3.0.0 | https://hackage.haskell.org/package/settei-env-0.3.0.0 |
| settei-dhall | 0.3.0.0 | https://hackage.haskell.org/package/settei-dhall-0.3.0.0 |
| settei-kdl | 0.3.0.0 | https://hackage.haskell.org/package/settei-kdl-0.3.0.0 |
| settei-yaml | 0.3.0.0 | https://hackage.haskell.org/package/settei-yaml-0.3.0.0 |
| settei-kubernetes | 0.3.0.0 | https://hackage.haskell.org/package/settei-kubernetes-0.3.0.0 |
| settei-optparse-applicative | 0.3.0.0 | https://hackage.haskell.org/package/settei-optparse-applicative-0.3.0.0 |
| settei-preflight (new) | 0.3.0.0 | https://hackage.haskell.org/package/settei-preflight-0.3.0.0 |
| settei-formats | 0.3.0.0 | https://hackage.haskell.org/package/settei-formats-0.3.0.0 |
Family packages pin each other exactly (==0.3.0.0); upgrade them together.
Features
- Deployment configuration contracts (
settei,settei-env,settei-optparse-applicative):Settei.Contractexports input bindings, explicit default sources, deployment profiles, and safe default metadata without reading runtime inputs. It renders as text or as version-1settei.contractJSON via--deployment-contract/--deployment-contract-json. Guide: Author a first deployment. - Supplied environment name validation (
settei-env): an opt-in check compares the variable names a deployment supplies against declared bindings and external-consumer allowances. It reports unsupported or duplicate names as text or version-1settei.supplied-namesJSON. Guide: Check supplied names. - Deployment preflight harness (new
settei-preflight): runs an application's own check mode against proposed inputs. Environment and file channels are controlled, secrets are redacted by exact value, coverage is explicit, and the verdict ispass/inconclusive/fail. Partial coverage never passes. Includes thesettei-preflight --request PATH [--json]executable. Guide: Run preflight checks. - Structured application invariants (
settei,settei-optparse-applicative):Settei.Validateadds checked pure cross-setting rules that run after resolution. Results keep provenance and accumulate structuredinvarianterrors across startup, check, and explain modes. Guide: Declare invariants. - Checked diagnostic dispatch (
settei-optparse-applicative):prepareDiagnosticcompletes static diagnostics before runtime input acquisition. The application starts only on a successfulDiagnosticContinue.
Breaking changes and migration
ConfigErrorgainsInvariantError. Update exhaustive matches. Version-1 error JSON gains kindinvariant.DiagnosticModegainsDeploymentContractTextandDeploymentContractJson. Update exhaustive matches.- Call
prepareDiagnostic mode schema contractSupportbefore loading inputs, and handle everyDiagnosticPreparationconstructor.resolutionDiagnosticandvalidatedDiagnosticnow consume theRuntimeDiagnosticModetoken fromDiagnosticNeedsRuntimeand returnDiagnosticDecision(DiagnosticFailure,DiagnosticOutput,DiagnosticContinue). Nothingcontract support rejects both contract modes with the fixed textdeployment contract diagnostic is unavailable.- JSON: the bare
settei.schemaandsettei.resolutiondocuments are unchanged. The validated resolution JSON adds aninvariantsarray. A validated JSON explain failure emits two documents (settei.errors, thensettei.resolution).
Migrate source with the settei-upgrade Seihou blueprint, which contains the 0.2.0.0 → 0.3.0.0 edge. Upgrade all Settei dependencies together and resolve the Cabal plan first:
seihou install https://github.com/shinzui/settei.git --module settei-upgrade
seihou agent migrate settei-upgrade --from 0.2.0.0Full notes: compatibility and migration.
The adapter packages settei-dhall, settei-kdl, settei-yaml, settei-kubernetes, and settei-formats are released in lockstep with no API or behavior changes of their own.
Validated platforms
- GHC 9.12.4 / Cabal 3.16.1.0 on
aarch64-darwinran these checks: workspace build, all 570 tests in 14 suites, Haddocks,cabal checkfor each package, an isolated build and test of the unpacked source distributions (455 tests), andnix flake check. settei-preflightacceptsaeson >=2.2.4.1 && <2.4; its test suite passes onaeson2.2.4.1, 2.2.5.1, and 2.3.2.0.- All 13 Nix package outputs build on
aarch64-darwin. - Other flake-exposed systems are not yet release-validated. Preflight execution targets Linux and macOS.