Repository navigation
Releases
v0.3.0.0
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.
v0.2.0.0
Coordinated major release of the Settei package family under the shared version 0.2.0.0 (PVP major bump, driven by breaking API changes). Two new packages — settei-kubernetes and settei-formats — make their first Hackage appearance here.
Packages
| Package | Hackage |
|---|---|
| settei | https://hackage.haskell.org/package/settei-0.2.0.0 |
| settei-env | https://hackage.haskell.org/package/settei-env-0.2.0.0 |
| settei-dhall | https://hackage.haskell.org/package/settei-dhall-0.2.0.0 |
| settei-kdl | https://hackage.haskell.org/package/settei-kdl-0.2.0.0 |
| settei-yaml | https://hackage.haskell.org/package/settei-yaml-0.2.0.0 |
| settei-kubernetes | https://hackage.haskell.org/package/settei-kubernetes-0.2.0.0 |
| settei-optparse-applicative | https://hackage.haskell.org/package/settei-optparse-applicative-0.2.0.0 |
| settei-formats | https://hackage.haskell.org/package/settei-formats-0.2.0.0 |
What's Changed
Breaking Changes
- settei:
resolvenow returnsResolveResultunconditionally — the typed outcome moves to itsanswerfield, and the provenance report and warnings are available for every resolution attempt, including failures. - settei-env: environment bindings are validated once at construction.
Bindingsis an opaque validated collection built bybindings/prefixedBindings;envSource/readEnvSourceare total;bindingsListinspects a validated collection. - settei-yaml: boolean scalars are restricted to the YAML 1.2 core schema — only case-insensitive
true/false, plain or!!bool. The YAML 1.1 spellingsy/yes/on/n/no/offare now plain text, eliminating the Norway problem. - settei-optparse-applicative:
ExplainModeand its parsers are replaced byDiagnosticMode, which also supports--check-config,--describe-config, and--describe-config-json.
New Features
- settei:
Functorinstance forDecoder; combinator kit (listDecoder,nonEmptyDecoder,parsedDecoder,rationalDecoder,doubleDecoder);whenConfig/whenEq/fallbackToconfig sugar;publicShowSetting/withRenderer;sourceFromPairs/SourceConstructionError;SensitivityConflictresolution error; decimal rendering of terminating rationals. - settei-env:
mergeBindingsto compose validatedBindings;renderEnvErrorText/renderEnvErrorsText. - settei-dhall / settei-kdl / settei-yaml: operator-readable, secret-safe adapter error renderers (
render*ErrorText/render*ErrorsText), with optional source positions for Dhall. - settei-kubernetes (new): mounted-directory source for projected ConfigMap/Secret volumes with per-file key bindings, atomic-writer symlink handling, and per-file provenance;
Settei.Kubernetes.Bindingsto derive validated env bindings from an object reference; freshness identity annotations (kubernetes.mount-path,kubernetes.file-modified,kubernetes.read-at). - settei-formats (new): tagged
FORMAT:PATHconfiguration inputs, a shared loader dispatching to the YAML/KDL/Dhall adapters, and a reusable--config FORMAT:PATHoption. - settei-optparse-applicative:
schemaDiagnosticandresolutionDiagnostichelpers.
Bug Fixes
- settei-yaml / settei-kdl: reject numeric values whose base-10 exponent magnitude exceeds 4096 instead of attempting an unbounded exact conversion at load time.
- settei-yaml: contain synchronous failures at the pure decode boundary (
YamlSyntaxErrorwith a fixed secret-safe message); asynchronous exceptions still propagate. - settei: merge duplicate sensitivities most-restrictively; merge repeated
annotateSourceannotations instead of replacing.
v0.1.0.0
Initial experimental release of the Settei configuration package family. All packages share version 0.1.0.0 and are released together.
Packages
| Package | Hackage |
|---|---|
| settei | https://hackage.haskell.org/package/settei-0.1.0.0 |
| settei-env | https://hackage.haskell.org/package/settei-env-0.1.0.0 |
| settei-dhall | https://hackage.haskell.org/package/settei-dhall-0.1.0.0 |
| settei-kdl | https://hackage.haskell.org/package/settei-kdl-0.1.0.0 |
| settei-yaml | https://hackage.haskell.org/package/settei-yaml-0.1.0.0 |
| settei-optparse-applicative | https://hackage.haskell.org/package/settei-optparse-applicative-0.1.0.0 |
What's Changed
settei
- Add inspectable Applicative and Selective configuration declarations.
- Add hierarchical resolution, ordered provenance, named defaults, secret-safe errors, static schemas, and versioned text and JSON reports.
settei-env
- Add explicit environment bindings, injected snapshots, and trusted Kubernetes object annotations.
settei-dhall
- Add typed Dhall-to-Settei translation with NoImports and LocalImportsWithin policies.
- Retain root and transitive import-closure provenance without claiming unavailable leaf-level import attribution.
settei-kdl
- Add the canonical KDL v2 mapping with exact spans, deterministic cardinality, explicit ambiguity errors, and mounted-file Kubernetes annotations.
settei-yaml
- Add a strict YAML mapping with exact node locations, explicit unsupported-feature errors, and mounted-file Kubernetes annotations.
settei-optparse-applicative
- Add ordered generic and named command-line overrides for optparse-applicative 0.19.