Repository navigation
Closed
Description
cli/state.mdx is currently the home for the resource/artifact distinction, the six diff categories, and the non-authoritative snapshot model. That's the right home for command reference but it's diluted by usage instructions. A dedicated concept page lets new users grok the model before learning the commands.
Approach
Create docs/src/content/docs/concepts/drift-detection.mdx and trim cli/state.mdx to be more reference-y — keep flags, syntax, output examples; move the conceptual content to the new page.
Tasks
- Create
docs/src/content/docs/concepts/drift-detection.mdx - Section 1: The non-authoritative snapshot model — what chant chose vs what Terraform/Pulumi do, link to
concepts/comparison.mdx#state-authoritative-vs-observational - Section 2: Resources vs artifacts — entity-keyed (
describeResources) vs context-keyed (listArtifacts); when each applies - Section 3: The six diff categories with examples
- missing, orphan, disappeared, newly observed, drifted, unchanged (resources)
- added, removed, changed, unchanged (artifacts — no
declaredaxis)
- Section 4: When drift detection helps and when it doesn't
- Helps: catching out-of-band changes, cross-team coordination, audit trails
- Doesn't help: short-running deploys, stateless apps, deploys with full teardown each time
- Section 5: Trade-offs already covered in
comparison.mdx— no locking, no sensitive data, no automatic plan/apply - Trim
cli/state.mdxto a command reference; categories table stays for the user-facing flag, but the conceptual depth moves - Trim
concepts/philosophy.mdx:51-58"Operational Assistance" section since some of its content moves to this concept page - Add to sidebar under "Core Concepts" — recommend between "Choosing Your Deployment Model" and "TypeScript as Data"
- Cross-link from
cli/state.mdx,guide/watching-state.mdx,guide/ops.mdx#continuous-observation
Done when
- Concept page exists, sidebar-linked
-
cli/state.mdxis a command reference (no overlap on the model) - No duplicated content between
philosophy.mdx,comparison.mdx,cli/state.mdx, and the new page -
npm run buildindocs/succeeds
Out of scope
- New diff categories or model changes
- Per-lexicon implementation details (handled in
lexicon-authoring/observation.mdx)
Metadata
Metadata
Assignees
Labels
No labels
Activity