Repository navigation
Description
Summary
The state → lifecycle rename and the BYOL capability landing (live import, lifecycle plan, ownership markers, reconcile/apply Ops) are cohesive at the argument layer — the concept pages tell one consistent story. They did not propagate cleanly into the reference docs, the two *.op.ts guides, and the changelog. Audit below, grouped by severity. Each item is independently shippable.
Source of truth for vocabulary: code exports lifecycleSnapshot/lifecycleDiff (lexicons/temporal/src/op/activities/lifecycle.ts); ownership shipped (#119–#121); Flyway/Slurm retired (#181); orphan branch is chant/lifecycle (#154).
A. Self-contradiction — the retired "no plan" concession survives in drift-detection (highest severity)
concepts/drift-detection.mdx:101 still states chant can't compute a precise change set:
"No automatic plan/apply. Without authoritative state, chant can't compute a precise change set the way Terraform does. Diff output is informational."
This contradicts governance.mdx, comparison.mdx:38, introduction.mdx:14, durable-workflows.mdx:44, the index BYOL card — all of which sell a precise create/update/delete plan via ownership markers. It also contradicts the same page (drift-detection.mdx:60–63, which describes chant lifecycle plan + ApplyOp owned-delete). The :18–23 table row "No automatic plan/apply — agents verify before acting" needs the same treatment.
Acceptance criteria: drift-detection.mdx no longer claims chant cannot compute a change set; it points to chant lifecycle plan consistently with the concept pages; no internal contradiction remains.
B. Stale Op activity names — stateSnapshot / stateDiff
Code renamed these to lifecycleSnapshot/lifecycleDiff (#155). Docs still use old names:
guide/watching-lifecycle.mdx— lines 58, 59, 105, 121, 131, 135, 151guide/ops.mdx— lines 96, 216, 218, 227whats-new.mdx:56
contributing/lifecycles.mdx already uses the new names, so the docs disagree internally. The ops.mdx outcomeAttribute example (fn: "stateDiff") is copy-paste-broken.
Acceptance criteria: no stateSnapshot/stateDiff occurrences remain in docs; all replaced with lifecycleSnapshot/lifecycleDiff; code examples compile against the real activity names.
C. "Ownership hasn't landed yet" comments — but ownership shipped
Ownership marking landed (#119–#121; documented live in config-file, live-export, lexicons/overview, whats-new). Two files still call it unimplemented:
cli/import.mdx:35—--owned ... (inert until ownership marking lands)lexicon-authoring/observation.mdx:272—owned?: boolean; // inert until ownership marking lands
Acceptance criteria: both --owned/owned descriptions describe the shipped behavior (restrict to chant-owned resources via the live marker); no "inert/until lands" language.
D. Old noun "state" used where it now means lifecycle/snapshot
guide/live-import.mdx:18andcli/import.mdx:41— "unlikestate, which only reads scrubbed metadata" (stateis no longer a command/noun; should referencechant lifecyclesnapshot/observation).lexicon-authoring/observation.mdx:277andlexicon-authoring/live-export.mdx:23— "thestatecode paths" (module renamed tolifecycle).whats-new.mdxfrontmatter + heading (:3,:10) — "the state-model dial" (rest of docs: "the dial");:57references renamedcli/handlers/state.ts.
Acceptance criteria: no stale state noun/command/module/path references where the rename applies; changelog historical references are acceptable only if clearly historical.
E. cli/lifecycle.mdx internal inconsistencies
- Orphan branch name contradicts itself:
:27sayschant-state/<env>;:136sayschant/lifecycle. Correct value ischant/lifecycle(matches drift-detection, watching-lifecycle, whats-new).:27is doubly wrong (old prefix + nonexistent per-env suffix). - Synopsis (
:8–13) omitsplan, thoughlifecycle planis the flagship command with its own section at:73. - Frontmatter still reads "compare deployed infrastructure state."
Acceptance criteria: single consistent branch name chant/lifecycle; Synopsis includes plan; frontmatter reflects lifecycle framing.
F. whats-new.mdx advertises retired lexicons
:43FlywaylistArtifacts()(flyway: implement listArtifacts() — per-env migration history #54) and:44SlurmlistArtifacts()(slurm: implement listArtifacts() — partition state via sinfo #55) listed as shipped; both retired (chore: retire slurm and flyway lexicons #181).:99"patterns from all 9 shipping implementations" now overcounts (7 observation impls remain).
The lexicons/overview matrix is already correct (9 lexicons, no Flyway/Slurm) — the changelog lags it.
Acceptance criteria: no Flyway/Slurm capability rows present as currently-shipped; implementation counts match the post-retirement reality.
G. Minor / polish (optional, lower priority)
- Two diff vocabularies coexist — observation categories (
missing/orphan/disappeared/newly observed/drifted/unchanged) vs. change-set actions (create/update/delete/adopt/noop). Bridged (orphan → adopt) but no single mapping table. Consider one explicit crosswalk. - "No state to manage" (
introduction:6) vs. "State is essential" (governance:6) — deliberate rhetorical tension, reconciled inline. No change needed; noted for completeness.
Scope / non-goals
Docs-only. No code changes (the code is already correct; the docs lag it). Items A–F are the fixes a reader can actually trip on; G is optional polish.
Activity
docs: add observation-category → plan-action crosswalk (#187)
docs: propagate lifecycle/BYOL framing into reference, guides, change…