Skip to content

docs: README sections for dump-cluster/plan/web/sql2hcl, dump-sql reference, FAQ recipes#157

Merged
orian merged 1 commit into
mainfrom
docs-command-sections
Jul 18, 2026
Merged

docs: README sections for dump-cluster/plan/web/sql2hcl, dump-sql reference, FAQ recipes#157
orian merged 1 commit into
mainfrom
docs-command-sections

Conversation

@orian

@orian orian commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Finishes #97. The issue's CLAUDE.md-staleness and operational-policy items were fixed in earlier hygiene work; this lands everything its status comment still listed as open:

  • README sections for the four commands that had none: dump-cluster, plan (cross-role planning), web, and sql2hcl — a paragraph + runnable example each, linked to their full reference sections. The intro command list also gains locate (it post-dates the list) and now links examples/manifest/, the flagship worked example that no top-level doc referenced.
  • dump-sql in the reference — it was absent from docs/README.hcl.md entirely; the new section documents the apply ordering, the -- database: header, beautified view CREATEs, and its round-trip-fidelity role.
  • FAQ operational recipes — three new entries covering the introspect/dump-sql/sql2hcl ground the FAQ never touched: capturing an existing cluster as HCL (-allow-raw + -exclude explained), seeding a fresh ClickHouse (server-faithful dump-sql vs source-of-truth diff-from-empty -sql), and applying a hand-written SQL migration with the sql2hcldiff -sql verification loop.

Every recipe was executed against the built binary before being written down — including web -manifest serving all six compositions of examples/manifest/ and the sql2hcl stdin pipeline.

Docs-only; no code changes. (concept.md rewrite remains tracked separately, per the issue.)

Closes #97

…erence, FAQ recipes

Closes the remaining items of #97 (the stale-CLAUDE.md and
operational-policy items were fixed earlier; this is the rest):

- README gains a dedicated section per previously-undocumented command:
  dump-cluster (fleet dumps, out-dir reset, non-fatal per-node
  failures), cross-role planning (globally-ordered operation list, node
  matching, provenance), the web UI (auto-reload, manifest mode), and
  sql2hcl (supported statements, schema-only boundary, diff -sql
  pairing). The intro command list gains locate and links
  examples/manifest, which no top-level doc referenced.
- docs/README.hcl.md gains the missing dump-sql section (apply-ordered
  replayable DDL, beautified view CREATEs, round-trip role).
- FAQ gains three operational recipes: capturing an existing cluster as
  HCL (introspect/dump-cluster with -allow-raw and -exclude), seeding a
  fresh ClickHouse (dump-sql vs diff-from-empty -sql), and applying a
  hand-written SQL migration via sql2hcl.

Every recipe and claim was verified against the built binary, including
web -manifest serving all six compositions of examples/manifest.

Closes #97
@orian
orian merged commit 923f0a5 into main Jul 18, 2026
16 checks passed
@orian
orian deleted the docs-command-sections branch July 18, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: README sections for plan/web/sql2hcl/dump-sql/dump-cluster; orphaned examples/manifest; stale CLAUDE.md lines; operational policies

1 participant