Repository navigation
docs: say what the build actually does by default (#1312) - #1315
Merged
Merged
Conversation
An end-to-end read of the docs corpus turned up claims that contradict the source or each other. This fixes the hand-written ones; the stale generated At-a-Glance tables need a codegen decision first and are left to #1312. The load-bearing one is `--fold`. `resolveFoldEnabled()` has returned true by default since #1134, but the docs still described folding as opt-in — in the build flag table, in the Folded-vs-Run comparison (whose own table contradicted the paragraph above it), in the evaluator and evaluation-pipeline pages, and in quick-start, comparison, and writing-resources. A reader following those pages would have the wrong model of what `chant build` does to their source. Also corrected: `stateSnapshot`/`chant state snapshot` in the temporal Ops page (the activity is `lifecycleSnapshot` and the command is `chant lifecycle snapshot`); Node 20+ in the development guide against an .nvmrc and CI that both pin 24; "Ten lexicons" where twelve ship, plus the skills table's counts for AWS, K8s, and GitLab and its missing Fly and Fountain rows; five real commands absent from the CLI overview; a six-vs-seven split on the live-diff categories now that `unobserved` exists; and an `api/` content directory in docs/README.md that does not exist. The intrinsics "Folds?" preamble is generated, so docs-sections.ts is fixed alongside the four emitted pages to keep a regen from reintroducing it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jp6SP7ZiavhoEB1AFuwwoJ
…1312) Every lexicon's overview table had drifted from what the pipeline actually produces, and the `Lexicon version:` line had drifted furthest — AWS advertised 0.19.1 against a package at 0.34.1, fly and fountain still said 0.0.1. Rather than hand-patch generated pages, this runs the real `docs` pipeline for all twelve. The counts move to what the committed artifacts already contain: AWS 1700/9082 -> 1659/9059, Azure 1969/333871 -> 1989/14324, K8s 165/166 -> 198/336, fly 3 -> 6 resources, helm 7 -> 23 intrinsics. Azure's 333871 turned out to be plain staleness rather than a counting bug, and docker's hand-written table was already correct (1 pre-synth + 6 post-synth, verified by rule id). AWS's spec endpoint is unpinned, so a full `generate` would have folded an upstream CloudFormation spec upgrade into a docs change. The dist artifacts already in the tree produce counts identical to freshly generated ones for all eleven lexicons that had them, so those were used directly; only the manifest version needed syncing, which is what a re-bundle writes from package.json anyway. Helm had no dist and bundles offline, so it was built. Two things the regen exposed, both fixed at their source so a future run keeps them: - The k8s "Live Cluster" sidebar group (api-client, chant kube) had been added by hand to the emitted astro.config.mjs and was dropped on regen. It is now a `sidebarExtra` entry. - The AWS intrinsics guide claimed plain calls cannot fold and that #1044 "tracks changing that". #1044 landed; the generated Folds? column on the very next page says Yes for all nine. The guide's prose lives in the lexicon's codegen config, so the .mdx had been patched directly and the config never was. Fixed in the config, along with the fold-is-opt-in phrasing in the aws, github, gitlab, and helm docs configs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jp6SP7ZiavhoEB1AFuwwoJ
This was referenced Aug 2, 2026
lex00
added a commit
that referenced
this pull request
Aug 2, 2026
… (#1325) The completeness contract judged documentation by counting files — "at least 1 .mdx page" at tier 1, "at least 8" at tier 2 — and never opened one. A lexicon could ship eight stale, unreachable, hand-edited pages and pass both. That is how every At-a-Glance table drifted, and how azure, temporal, helm and github accumulated pages no sidebar points at. Counting even rewarded the orphans: azure cleared the >=8 check with ten of its fifteen pages invisible. Five codegen gaps, each found by fixing the one before it: - Emitted pages carried no provenance marker, so they get edited directly and the next regen reverts the edit. Every generated page now carries one, in the `{/* ... */}` form MDX accepts. - A generated page silently overwrote an `extraPages` entry claiming the same slug. Helm declared an "Intrinsics Reference" and a pre-synth rules page and shipped neither. Explicit authorship now wins and the collision is reported. - Suppressing a page stopped it being written but left the previous copy on disk — unreferenced, and indistinguishable from a hand-written page. The marker makes reaping safe: only a file this pipeline stamped is removed. - buildSidebar declined to link a generated `rules` page when a `lint-rules` page existed, while the pipeline emitted it anyway, guaranteeing an orphan. - Nothing reported pages absent from the sidebar. Starlight has no auto-discovery, so those are reachable only by typing the URL. The generator warns and `chant dev check-lexicon` gates on it at tier 1. Normalizing against the new check: helm's rescued page takes the `intrinsics-guide` slug aws and gitlab already use, azure/gcp/helm suppress the duplicate generated `rules` table in favour of their own `lint-rules` page, and azure, temporal, github, helm and aws declare their hand-written pages in `sidebarExtra`. Temporal deliberately keeps both: its `lint-rules` page links out to the generated table, the same overview/reference pairing aws uses. Also finishes #1315's sweep — its page intro, unsupported-patterns preamble and the EVL page still described running as the default. Claude-Session: https://claude.ai/code/session_01Jp6SP7ZiavhoEB1AFuwwoJ Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Fixes the hand-written half of #1312.
resolveFoldEnabled()(packages/core/src/config.ts:425) has defaulted totruesince #1134, but the docs still described folding as opt-in.concepts/typescript-as-data.mdxwas contradicting itself inside a single section: the prose called folding "the default build path" and the table two lines below it had aDefault staterow reading "Off". This reframes that comparison around fold-as-default, and follows through incli/build.mdx,architecture/evaluator.mdx,concepts/evaluation-pipeline.mdx,getting-started/quick-start.mdx,concepts/comparison.mdx, andguide/writing-resources.mdx.Also in scope, each verified against source rather than against another doc page:
stateSnapshot(env)/chant state snapshotin the temporal Ops page. Neither exists; it islifecycleSnapshotandchant lifecycle snapshot..nvmrc= 24 and threenode-version: '24'entries in CI.mainhas twelve. The skills table also undercounted AWS (2→3), K8s (7→9) and GitLab (2→3) and had no Fly or Fountain row; counts taken fromlexicons/*/src/skills/*.md.cli/overview.mdxwas missingcarve,describe,search, andvendor— all dispatched incli/main.tsand all with reference pages already written, just unlinked.unobserved(fix(core): observation contract — "not observed" is silently "not present" #1089) makes seven.docs/README.mddocumented anapi/content directory that does not exist, and omittedcomponents/andlocal-testing/.The intrinsics "Folds?" preamble is codegen output, so
docs-sections.tsis fixed alongside the four emittedintrinsics.mdxpages — otherwise the next regen puts the opt-in phrasing back.Left for #1312, because it needs a decision before a keystroke: the per-lexicon At-a-Glance tables are stale against their own generated
lexicon-*.json(AWS 1700→1659, Azure 1969→1989, K8s 165→198, Fly 3→6, Helm 7→23 intrinsics), Azure's333871property-type count looks like a codegen bug rather than drift, and those generated pages carry noDO NOT EDITmarker so hand-written prose has since been added into them. A regen today would destroy the K8s Quick Start and the AWS link list.Verification:
npm run buildindocs/— 149 pages, clean. The changed codegen string is not asserted bydocs-sections.test.ts, which checks only the table rows.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jp6SP7ZiavhoEB1AFuwwoJ