Repository navigation
docs: make cli.md the reference for every command, option, stream and exit status - #302
Merged
Merged
Conversation
… exit status Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BQ1Z71j4Q2W1CwGYjF55No
goldbarth
force-pushed
the
docs/cli-reference
branch
from
September 30, 2026 15:59
2396b66 to
b7ef2fa
Compare
goldbarth
added a commit
that referenced
this pull request
Sep 30, 2026
… for maintainers (#304) Follows #302, which made `cli.md` the reference the stable surfaces now link to. - **Why:** `docs/versioning.md` mixed a user's question (what may change, and when) with a maintainer's procedure (how a release is made), promised breaking changes "under their own heading", which no rendering does, and named "Public API" as a surface Chartula does not have. It is split: `versioning.md` for users, `docs/development/releasing.md` for maintainers. - **`versioning.md` keeps** the scheme, what "preview" (the label in the version) and "alpha" (the phase in prose) mean, the three exit criteria for 1.0.0, and what a breaking change costs after it. "Public API", the quick reference and the numbered sections go; the release assets move to `install.md`, where they already are, by link. - **A concrete list of stable surfaces,** each with its reference: CLI commands, options, defaults and exit status; configuration keys and their environment form; `changelog.json` and the run record by their `schemaVersion`; the file names; and the structure of the technical and customer renderings. The wording inside an entry and the product rendering are named as not covered, with the reason, so a tool knows to read groups and fields and not match entry text. - **Breaking changes as the renderings show them,** from `GroundedFactsFactory.cs` and `RenderingComposer.cs`: technical, first in its group with `Breaking:`; customer, under "What needs action", the first group, with `Breaking:`; product, first when `categories.breakingProminent` is on, without a marker. - **`releasing.md` takes the procedure,** in six steps, and adds what it missed: the version bump as its own `build:` pull request (filtered out as internal, so it never reaches its own notes); `preview` before `generate`; the settings the notes were generated with, which override the model `chartula.yaml` pins; reading the flags before publishing, since the draft does not mark them; committing `CHANGELOG.md` through a pull request as written, with the one hand edit to the note at its top, and only that file (the rest is ignored); the pull request description, with #280 as the example. - **A finding in `release.yml`, documented, not changed:** the workflow starts only for tags matching `v*-preview*`, so a `v1.0.0` tag would build nothing. `releasing.md` says the 1.0.0 release has to widen the trigger first. - **Left for 3.1:** the stable surfaces "file names" and "renderings" link to `cli.md#chartula-generate` until `docs/outputs.md` exists. - **README:** Releasing joins the "Working on Chartula" index, and the Versioning row says what the page covers now. **Verified:** - Every rule was checked against the code or the workflow it names: the version check and the tag trigger in `release.yml`, the trigger and the run in `install.yml`, the ignore rules in `.gitignore`, the version sources in the csproj, the group order and markers in `Core/Generation`, and that a `build:` title is dropped as internal (a real `preview` on `v0.1.0-preview.3` lists #253 as dropped). - The settings in step 4 are those the note in `CHANGELOG.md` records for `0.1.0-preview.2` and `0.1.0-preview.3`, and #280 describes the run. - Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test). Tests: none, documentation only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BQ1Z71j4Q2W1CwGYjF55No --- _Generated by [Claude Code](https://claude.ai/code/session_01BQ1Z71j4Q2W1CwGYjF55No)_ Co-authored-by: Claude <[email protected]>
goldbarth
added a commit
that referenced
this pull request
Oct 1, 2026
…udience (#306) Follows #302 and #304, which left the output list in `cli.md` and the stable surfaces "file names" and "renderings" pointing there until this page existed. - **Why:** what a run writes was spread over `cli.md` (a list of the files), the README (one sentence), `architecture.md` (the shape of each file and why the model does not decide it) and `versioning.md` (where a breaking change stands), and the shape of each audience was specified only in chartula-evals. A user could not see what a file would look like before paying for a run. - **`docs/outputs.md` is the one home** for the output files and the shape of each audience: a table of every output, what it is written from and when; why Chartula decides the structure and the model only the wording (#96); then each audience with its groups as a table, the reason for their order, the entry, and a real example. - **Technical:** `Changed`, `Added`, `Fixed` in Common Changelog's order, no `Removed` because no fact marks a removal; the `CHANGELOG.md` heading (version without `v`, the tag's date, never today's), what stays verbatim, and that a re-run replaces its section; the release notes as the same text without the heading, with the draft rules left to `github.md`. - **Customer:** the four groups by what the reader has to do, `labels.actionRequired`, the bold label and `**Breaking:**` in its place; `release-<tag>.md` with each front matter field, its source and when it is left out, the file name rule, and that the page is written with `--no-publish` too. - **Product:** one `### Other` heading, why the model sorts nothing into themes, `breakingProminent`, no file, only rendered when named, and outside the 1.0 promise. - **Short sections on `changelog.json` and the run record** say what each is for and link their schema pages, which stay the reference. - **A release with nothing to say** is described as the code does it: no model call, the bare heading in `CHANGELOG.md`, empty release notes, no customer page. The evals template asks for a notice there instead; this page describes what exists. - **Examples are real:** technical and customer are excerpts of the `gpt-6-sol` run on ServiceDeskLite `v1.9.0` from the model comparison (the run `costs-and-checks.md` already shows; `GroundedFactsFactory`, `RenderingComposer`, the composers and the prompts are unchanged since that build, except a visibility change in #292). Product is a new run on the same release with the comparison's settings, on 2026-10-01, 22,533 tokens. - **Moved here and replaced by a link:** the output list and the re-run sentence in `cli.md`; the two paragraphs "Every audience that has a written shape gets a file" and "The structure of a rendering is not the model's" in `architecture.md`, which keeps the code path (`GroundedFactsFactory`, `RenderingComposer`, the writers); the per-rendering breaking list in `versioning.md`, now one sentence. - **Links:** `versioning.md`'s rows "File names" and "The technical and customer renderings" point here; `getting-started.md` and the README short start link here; the README index gets an Outputs row under "Understanding the output". - **Code comments:** `GroundedFactsFactory.cs` and `CustomerPage.cs` name `docs/outputs.md` next to the evals templates they implement. The comments in `ChangelogPromptBuilder.Prompts.cs` keep pointing to chartula-evals only, because they cite the rubric and the wording rules, which this page does not hold. **Verified:** - Every structural rule on the page was run with the binary from `main` against a scratch repository and local GitHub and model stubs on 127.0.0.1, all three audiences: group order, `**Breaking:**` first, `action-required` under "What needs action", no reference for a commit without a pull request, `### Other` for product, the tag date of an annotated and a lightweight tag, the front matter fields. - The release with nothing to say was run the same way: no model request reached the stub, `CHANGELOG.md` got `## 1.2.0 - 2026-09-09` alone, no `release-v1.2.0.md`, empty renderings in `changelog.json`. - Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test). - `dotnet build` without warnings; only two doc comments changed in code. Tests: none, documentation only.
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.
Follows #299, which took the failure messages out of
cli.mdintotroubleshooting.md, and #301, which made the CLI refuse an option it cannot read as meant.cli.mdmixed reference with setup and concepts: a copied help text, a first-run style tour, the model failure messages, and the range rules. It becomes the reference only, so a reader finds every command, option, default, variable, stream and exit status in one place, and the rest where it lives.chartula --help, which prints from the binary and so always matches the installed version. In its place, one table of the commands (model calls, files, publishing) and one table of every option with its value, default and the commands that read it.--audiencemay repeat, every other option comes once;-hand--helpprint the help after a command too. The page shows the--nopublishmessage and a table of the other refusals (an option of another command, a missing value, an option given twice,=instead of a space, a word that is no option), each with the message the built binary printed.--tagand--repokeep their defaults with their messages;--since,--yes,--audienceand--no-publisheach keep a short section with the message a wrong value gives. The explanation of the range stays inwhat-goes-into-a-release.md.Program.cs,ReleaseCommand.csand the composition root, including that the range question needs stdin to be a terminal and the progress line updates in place only when stderr is one.Chartula__settings and the environment-only settings link toconfiguration.md; the install script variables link toinstall.md.doctor,--versionandpreviewas the free command it is (feat!: make preview free: show the facts and what generate would send, without a model call #292), and what a run prints while it works (feat(observability): show each step of a run while it works #297), stay; the first-run walkthrough stays ingetting-started.md.generatestays untildocs/outputs.mdtakes it.providers.md: one link pointed to the removed#when-a-model-call-fails; it points totroubleshooting.md#a-model-call-fails. README: the index row describes the page as it is.Verified:
mainagainst a scratch repository and local GitHub and model stubs, with stdout and stderr captured apart:--help, no arguments,help,--version, an unknown command, an unknown option,--tagwithout a value, an unknown audience,--sincewithout a value and with a ref that is no commit, an invalid--repo,previewwith and without--audienceand--no-publish,generatewith and without--no-publish,doctorwith and without--tag, andgenerate --help, and after fix(cli): refuse an option a command does not take, and honour --help after a command #301 every refusal in the page's table (--nopublish,--tga,--tagat the end and before--no-publish,--no-publishonpreview,--sinceondoctor,--tagtwice,--tag=v1.3.0, a barev1.3.0). The exit status of each matches the table.previewexample is a real run on this repository'sv0.1.0-preview.3; the--versionline is the build ofmain.Tests: none, documentation only.