Skip to content

v0.3.0.0

Latest

Choose a tag to compare

@shinzui shinzui released this 21 Oct 20:54
· 2 commits to master since this release

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.Contract exports input bindings, explicit default sources, deployment profiles, and safe default metadata without reading runtime inputs. It renders as text or as version-1 settei.contract JSON 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-1 settei.supplied-names JSON. 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 is pass/inconclusive/fail. Partial coverage never passes. Includes the settei-preflight --request PATH [--json] executable. Guide: Run preflight checks.
  • Structured application invariants (settei, settei-optparse-applicative): Settei.Validate adds checked pure cross-setting rules that run after resolution. Results keep provenance and accumulate structured invariant errors across startup, check, and explain modes. Guide: Declare invariants.
  • Checked diagnostic dispatch (settei-optparse-applicative): prepareDiagnostic completes static diagnostics before runtime input acquisition. The application starts only on a successful DiagnosticContinue.

Breaking changes and migration

  • ConfigError gains InvariantError. Update exhaustive matches. Version-1 error JSON gains kind invariant.
  • DiagnosticMode gains DeploymentContractText and DeploymentContractJson. Update exhaustive matches.
  • Call prepareDiagnostic mode schema contractSupport before loading inputs, and handle every DiagnosticPreparation constructor. resolutionDiagnostic and validatedDiagnostic now consume the RuntimeDiagnosticMode token from DiagnosticNeedsRuntime and return DiagnosticDecision (DiagnosticFailure, DiagnosticOutput, DiagnosticContinue).
  • Nothing contract support rejects both contract modes with the fixed text deployment contract diagnostic is unavailable.
  • JSON: the bare settei.schema and settei.resolution documents are unchanged. The validated resolution JSON adds an invariants array. A validated JSON explain failure emits two documents (settei.errors, then settei.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.0

Full 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-darwin ran these checks: workspace build, all 570 tests in 14 suites, Haddocks, cabal check for each package, an isolated build and test of the unpacked source distributions (455 tests), and nix flake check.
  • settei-preflight accepts aeson >=2.2.4.1 && <2.4; its test suite passes on aeson 2.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.