Skip to content

v0.51.0

Choose a tag to compare

@github-actions github-actions released this 08 Jun 05:18
· 760 commits to main since this release
39e4dc2

build folds into reconcile, materialization becomes system-pushed, the producer kinds and machine zones collapse onto one source + retention grammar, and the machine-derivable reference docs graduate to produced artifacts.

Changed (breaking)

  • build is removed; tend is now reconcile (ADR 0087). One verb runs the full two-phase produce → destructive-sweep under a shared lock, and every canon write reactively rebuilds its dependent produced entries (source.on_write: sync | async). Migration: drop all build calls (CLI + MCP); rename scripted/cron tend to reconcile — the verb, the MCP tool id, and the audit-log verb string.
  • Capabilities collapse to four — author, keep, propose, reconcile (ADR 0090). The fetch and build capabilities fold into reconcile; automation defaults to [reconcile]. Migration: a role with can: [fetch] / can: [build] (or the interim ingest) becomes can: [reconcile]; the old spellings are rejected at load with a hint.
  • One machine zone-kind and one produced entry-kind (ADR 0091, 0095). Zone-kinds become canon | workspace | machine | queue — the former quarantine + derived zone-kinds fold into one machine kind (the kind ⟺ capability mapping is a bijection again; at most one machine zone). Entry-kinds become leaf | nested | produced — the former derived + intake entry-kinds fold into one produced kind, with the produce-method (intake / derived / external) read off source.from. Migration: kind: quarantine / kind: derived on a zone → kind: machine; kind: derived / kind: intake on an entry → kind: produced. Both are rejected at load with a fold hint; no shim.
  • source: + retention: replace upkeep / lifecycle / materialize / intake / compute / template (ADR 0093). The old slots conflated production (how an entry's bytes are made) with retention (when an aged entry is retired). They split into an entry-level source: { from: project | handler | command } — one "acquire data from upstream" concept, where from must agree with kind: — and a glob-matched retention: { ttl, action: drop | archive } rule; both run through one produce engine. This is strictly more expressive (re-pull hourly and archive at 90 days is now sayable). The lifecycle: { on_expire: warn } form is removed (warn was dead since 0.50's pure-read get). Migration: rewrite upkeep: / lifecycle: / materialize: (and the old intake: / compute: / template: blocks) into source: + retention:. Old manifests fail at load with mechanical fold hints; no shim.
  • A source produces data; publish: is a list of targets (ADR 0094). A produced entry's stored form is data (e.g. .json); rendering moves entirely to the publish path. publish: is now a list — each element a { to:, template?:, inject_boot?: } file target (copies the data verbatim, or renders it through that target's own template) or a { tree: } subtree mirror — so one dataset can render to differently-shaped targets (CLAUDE.md vs AGENTS.md) without bespoke handler code. Published artifacts are clean content; textus's _meta provenance stays in the stored entry. Migration: the map publish: { to: [...] } / publish: { tree: } forms (and the older publish_to: / publish_tree:) are rejected at load — publish: is a list.
  • Hook events renamed (ADR 0094). RPC :resolve_intake → :resolve_handler; pub-sub :entry_put → :entry_written, :build_completed → :entry_produced (plus :entry_published and produce_failed). Migration: update hook subscriptions to the new names; old names fail at registration.

Added

  • Reference docs are produced, not hand-authored (ADR 0097, 0098). docs/reference/verbs.md and docs/reference/schema.md (projected from the live verb/schema registry) and the new docs/reference/adr-log.md (projected from the ADR files) are kind: produced entries published out, with a CI gate that fails when reconcile is not a no-op. Do not hand-edit them — edit the upstream source (the verb/schema code, or an ADR) and run reconcile; doctor flags a stale hand-edit as generator_drift.
  • The root README.md, CONTRIBUTING.md, and SECURITY.md are canon, published out (ADR 0103, 0104). They are authored under .textus/zones/knowledge/ and published verbatim to the repo root with an editor banner (the same pattern as docs/); a hand-edit to a front-door doc is clobbered by reconcile and caught by the CI no-op gate.

Changed

  • Docs SSoT/DRY cleanup (ADR 0098). The duplicated ADR index is single-sourced — the mechanical status board lives in docs/reference/adr-log.md, and the curated decisions README becomes an annotated reading guide; the verb producer depends on Read::Capabilities rather than reaching into Dispatcher internals; a conformance guard keeps the events / zones / mcp projections covered.

Internal

  • The architecture is now executable, and the produce / schema / port layers are decomposed (ADR 0092, 0099–0101, 0105–0109). The hexagonal layering is enforced by a conformance guard with the layer map written to lib/textus/ARCHITECTURE.md (0106); the verb token gains a build-time route ⟺ contract bijection guard (0105); the divergent staleness comparisons collapse into one Domain::Freshness::Evaluator (0099); the produce pipeline is gathered under lib/textus/produce/ with an acquire ÷ render split and the fetch_* fossils renamed (0100); two interface fossils are removed (0101); manifest/schema.rb splits its validation walk into Schema::Validator and its constants into Schema::Vocabulary + Schema::Keys (0107, 0109); every port becomes one shape — an instantiable class (0108, 0109); and the conformance spec tier is consolidated (67→19 loose) and coupled to the contract rather than to fixture spelling (0092). No behaviour, manifest-grammar, or verb-surface change.