Skip to content

docs: make cli.md the reference for every command, option, stream and exit status - #302

Merged
goldbarth merged 1 commit into
mainfrom
docs/cli-reference
Sep 30, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/cli-reference

Conversation

@goldbarth

@goldbarth goldbarth commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Follows #299, which took the failure messages out of cli.md into troubleshooting.md, and #301, which made the CLI refuse an option it cannot read as meant.

  • Why: cli.md mixed 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.
  • The copied help text is gone. The page points to 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.
  • How options are checked, as fix(cli): refuse an option a command does not take, and honour --help after a command #301 made it: options follow the command in any order, --audience may repeat, every other option comes once; -h and --help print the help after a command too. The page shows the --nopublish message 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.
  • --tag and --repo keep their defaults with their messages; --since, --yes, --audience and --no-publish each keep a short section with the message a wrong value gives. The explanation of the range stays in what-goes-into-a-release.md.
  • New: what goes to stdout and what to stderr, from Program.cs, ReleaseCommand.cs and 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.
  • Exit status as a table of every case that gives 0 and 1.
  • Environment: the three credential variables with a link to their home each; Chartula__ settings and the environment-only settings link to configuration.md; the install script variables link to install.md.
  • doctor, --version and preview as 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 in getting-started.md.
  • Kept for 3.1: the list of outputs under generate stays until docs/outputs.md takes it.
  • providers.md: one link pointed to the removed #when-a-model-call-fails; it points to troubleshooting.md#a-model-call-fails. README: the index row describes the page as it is.

Verified:

  • Every command, option and message on the page was run with the binary from main against 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, --tag without a value, an unknown audience, --since without a value and with a ref that is no commit, an invalid --repo, preview with and without --audience and --no-publish, generate with and without --no-publish, doctor with and without --tag, and generate --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, --tag at the end and before --no-publish, --no-publish on preview, --since on doctor, --tag twice, --tag=v1.3.0, a bare v1.3.0). The exit status of each matches the table.
  • The preview example is a real run on this repository's v0.1.0-preview.3; the --version line is the build of main.
  • Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test).
  • No code, comment or message changed.

Tests: none, documentation only.

@goldbarth goldbarth self-assigned this Sep 30, 2026
@goldbarth
goldbarth merged commit ebece74 into main Sep 30, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/cli-reference branch September 30, 2026 16:07
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.
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.

2 participants