Skip to content

Releases

v0.3.0.0

Choose a tag to compare

@shinzui shinzui released this 21 Oct 20:54

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.

v0.2.0.0

Choose a tag to compare

@shinzui shinzui released this 20 Jul 04:37

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: resolve now returns ResolveResult unconditionally — the typed outcome moves to its answer field, and the provenance report and warnings are available for every resolution attempt, including failures.
  • settei-env: environment bindings are validated once at construction. Bindings is an opaque validated collection built by bindings/prefixedBindings; envSource/readEnvSource are total; bindingsList inspects 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 spellings y/yes/on/n/no/off are now plain text, eliminating the Norway problem.
  • settei-optparse-applicative: ExplainMode and its parsers are replaced by DiagnosticMode, which also supports --check-config, --describe-config, and --describe-config-json.

New Features

  • settei: Functor instance for Decoder; combinator kit (listDecoder, nonEmptyDecoder, parsedDecoder, rationalDecoder, doubleDecoder); whenConfig/whenEq/fallbackTo config sugar; publicShowSetting/withRenderer; sourceFromPairs/SourceConstructionError; SensitivityConflict resolution error; decimal rendering of terminating rationals.
  • settei-env: mergeBindings to compose validated Bindings; 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.Bindings to 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:PATH configuration inputs, a shared loader dispatching to the YAML/KDL/Dhall adapters, and a reusable --config FORMAT:PATH option.
  • settei-optparse-applicative: schemaDiagnostic and resolutionDiagnostic helpers.

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 (YamlSyntaxError with a fixed secret-safe message); asynchronous exceptions still propagate.
  • settei: merge duplicate sensitivities most-restrictively; merge repeated annotateSource annotations instead of replacing.

v0.1.0.0

Choose a tag to compare

@shinzui shinzui released this 19 Jul 04:10

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.