Skip to content

docs: lifecycle/BYOL framing not propagated to reference, guides, and changelog #187

Closed

Description

@lex00

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, 151
  • guide/ops.mdx — lines 96, 216, 218, 227
  • whats-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:18 and cli/import.mdx:41 — "unlike state, which only reads scrubbed metadata" (state is no longer a command/noun; should reference chant lifecycle snapshot/observation).
  • lexicon-authoring/observation.mdx:277 and lexicon-authoring/live-export.mdx:23 — "the state code paths" (module renamed to lifecycle).
  • whats-new.mdx frontmatter + heading (:3, :10) — "the state-model dial" (rest of docs: "the dial"); :57 references renamed cli/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: :27 says chant-state/<env>; :136 says chant/lifecycle. Correct value is chant/lifecycle (matches drift-detection, watching-lifecycle, whats-new). :27 is doubly wrong (old prefix + nonexistent per-env suffix).
  • Synopsis (:8–13) omits plan, though lifecycle plan is 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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions