Repository navigation
refactor(core): rename state → lifecycle (CLI, module, types, branch) - #154
Merged
Merged
Conversation
Plant the "lifecycle" flag in source: chant's framing noun moves from "state" to "lifecycle" (BYOL positioning). No customers, so a clean rename with no back-compat alias for the old command — but a short `lc` alias for ergonomics. - CLI: `chant state …` → `chant lifecycle …` (snapshot/show/diff/plan/log), with `chant lc` as an alias resolved in the command registry. - Module: packages/core/src/state → packages/core/src/lifecycle. - Types: StateSnapshot → LifecycleSnapshot; StaleStateBranchError → StaleLifecycleBranchError; fetchState/pushState/getRemoteStateBranchSha → fetch/push/getRemoteLifecycleBranchSha. - Orphan branch: chant/state → chant/lifecycle. - MCP tools: state-snapshot/state-diff → lifecycle-snapshot/lifecycle-diff. - All `chant state …` command strings updated, including the temporal lexicon activities that shell out to the CLI (their function names — stateSnapshot/ stateDiff — are renamed separately). The artifact name "state file" (the thing chant declines to host) is kept; only the framing noun changes. Op activity function names land in a follow-up.
This was referenced Jun 2, 2026
78 of 84 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First of the lifecycle-rename series (BYOL positioning: "Pluggable lexicons in. Pluggable lifecycles out. Pure synthesis in the middle."). chant has no customers, so this is the clean rename — no back-compat alias for the old command, but a short
lcalias for ergonomics.Source renames
chant state …→chant lifecycle …(snapshot/show/diff/plan/log);chant lc …alias resolved in the registry.packages/core/src/state/→packages/core/src/lifecycle/.StateSnapshot→LifecycleSnapshot,StaleStateBranchError→StaleLifecycleBranchError,fetchState/pushState/getRemoteStateBranchSha→fetch/push/getRemoteLifecycleBranchSha.chant/state→chant/lifecycle.state-snapshot/state-diff→lifecycle-snapshot/lifecycle-diff.chant lifecycle …(their function namesstateSnapshot/stateDiffare renamed in the next PR).Kept on purpose
The artifact name "state file" — the thing chant declines to host — stays; only the framing noun changes.
Tests
Added
lc-alias resolution tests; fixed the MCP tool-name ordering assertion. Full suite green: 6033 passed / 5 skipped, core typecheck clean.Next: PR2 renames the Op activities (
stateSnapshot/stateDiff→lifecycleSnapshot/lifecycleDiff); PR3 the docs; PR4 a "Contributing a Lifecycle" guide.