Repository navigation
Description
Why
chant's positioning is Bring Your Own Lifecycle (BYOL): "Pluggable lexicons in. Pluggable lifecycles out. Pure synthesis in the middle." The product is the synthesis core; state / apply / drift / reconcile / retire are opt-in bolt-ons — the lifecycle, not the core.
The framing noun "state" pulled against that. "State" names one slice (and is already owned by Terraform); lifecycle names the whole create → change → reconcile → retire arc those tools annex, and no vendor owns the word. Planting the flag on "lifecycle" — consistently, in source and docs — is the positioning move.
chant has no customers, so this is the clean rename: no back-compat alias for the old command, but a short lc alias for ergonomics.
Scope
Rename the framing noun "state" → "lifecycle" across source and docs. Keep genuine technical/proper-noun usages: the artifact "state file" (the thing chant declines to host), "Terraform state", "stateless".
Source
- CLI:
chant state …→chant lifecycle …(snapshot/show/diff/plan/log), withchant lc …alias resolved in the command registry. - Module:
packages/core/src/state/→packages/core/src/lifecycle/. - Types/helpers:
StateSnapshot→LifecycleSnapshot;StaleStateBranchError→StaleLifecycleBranchError;fetchState/pushState/getRemoteStateBranchSha→…Lifecycle…. - Orphan branch:
chant/state→chant/lifecycle. - MCP tools:
state-snapshot/state-diff→lifecycle-snapshot/lifecycle-diff. - Op activities:
stateSnapshot/stateDiff→lifecycleSnapshot/lifecycleDiff(+ args/result types, builders, WatchOp/ReconcileOp/ApplyOp, example op).
Docs
- Page renames (+ sidebar + all cross-links):
concepts/state-models→concepts/lifecycle-models,guide/reconciling-state→guide/reconciling-lifecycle,guide/watching-state→guide/watching-lifecycle,cli/state→cli/lifecycle. - Framing: "state model" → "lifecycle model", "observational state" → "observational lifecycle".
- BYOL narrative on the landing page, introduction, and
lifecycle-models(architecture line + "bring your own lifecycle, chant makes it durable"). - New Contributing a Lifecycle guide (two doors: write a lifecycle as Ops, or — as direction — plug an existing one in).
Guardrails
- Open ≠ unopinionated: synthesis stays pure / deterministic / lint-gated. "Pluggable" applies to the lifecycle layer, not the compiler.
- Door 2 of BYOL ("plug in Terraform as a backend") is architectural direction, not a shipped feature — the seams exist (
exportResources/describeResources, ownership markers, local-vs-Temporal executor split), but it is framed as a design contract, not a feature list.
Delivered by
- refactor(core): rename state → lifecycle (CLI, module, types, branch) #154 — core CLI +
state/→lifecycle/module + types + branch + MCP tools (+lcalias) - refactor(temporal): rename Op activities stateSnapshot/stateDiff → lifecycle* #155 — Op activities
stateSnapshot/stateDiff→lifecycle* - docs: reframe state → lifecycle + Bring Your Own Lifecycle positioning #156 — docs reframe + page slug renames + BYOL landing/intro
- docs: add Contributing a Lifecycle guide #157 — Contributing a Lifecycle guide
Full test suite green on each (6033 passed); no Node-20 actions; docs link-check clean.
Activity
lex00 commentedon Jun 2, 2026
Shipped via #154, #155, #156, #157 — all merged to
main, CI green. Recording this as the writeup/spec for the change.