Repository navigation
docs: add troubleshooting.md, the message, cause and fix of the common stops - #299
Merged
Merged
Conversation
…n stops Also corrects the warning without a GitHub token: a run spends one request per commit in the range, not one per pull request. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BQ1Z71j4Q2W1CwGYjF55No
This was referenced Sep 30, 2026
goldbarth
added a commit
that referenced
this pull request
Sep 30, 2026
… exit status (#302) 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 #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 (#292),** and what a run prints 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 #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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BQ1Z71j4Q2W1CwGYjF55No --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <[email protected]>
goldbarth
added a commit
that referenced
this pull request
Sep 30, 2026
…its issue (#303) Follows #299 and #301; after them every issue the documentation plan waited for is closed. - **Why:** `ROADMAP.md` described plans in internal terms ("pull request text as data", "an author-supplied outcome as a fact source"), linked only three of its points, still listed the launch work as it stood before `doctor`, `--version` and the thorough-check measurement landed, and did not say which point removes which known limitation. A reader could not tell what a point changes for them, whether work on it exists, or when a limitation goes away. - **One bold sentence per point on what changes for the user,** then at most one sentence of detail. The internal wording is gone. - **Every point links its issue or milestone, or says "No issue yet".** The issue list was checked in full: only the GitHub Action (milestone 6), native AOT (milestone 8) and #249 have one; the rest have none, and the page says so rather than implying work in progress. - **"Now" names the actual launch scope:** the three open issues of the Launch milestone (#210, #211, #226), each as what it changes, and this documentation rework, which has no issue. `chartula doctor`, `--version` and the thorough check's measured default (#176) are shipped and leave the list; `doctor` joins the sentence on what the alpha has. - **#249 joins point 2,** which it is: a run with flags stops before it writes, and a published release is not changed unasked. The working-tree protection in the same point has no issue and says so. - **GitLab joins as point 9,** last, since the order after it was not decided; the README's "GitHub is the only source" is the limitation it removes. - **Plans and limitations each live in one place:** the README keeps the limitations, the roadmap names each one it removes with the README's exact wording (checked by script: all eight names match a README bullet), and the README's introduction to the limitations points to the roadmap for the order instead of saying "after the alpha". - **Point 5 is worded from stored facts, not from `changelog.json`:** since #294 the facts with their descriptions are in the run record, and `changelog.json` no longer carries what rendering needs. Point 8 no longer promises a runtime-free binary, because the binaries are already self-contained (`docs/install.md`); it says what native AOT changes, a native executable that starts faster. **Verified:** - Every issue and milestone link was checked against the GitHub API, and the open issues of each milestone against the points that name them. - 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]>
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 #298, which added
docs/costs-and-checks.md, the page this one takes the diagnosis sections from.cli.md,github.md,configuration.md,what-goes-into-a-release.mdandrun-metrics.md, each explained where its topic lives, but nothing let a user start from the message.docs/troubleshooting.mdis that entry: message, cause, fix, with a link to the page that explains more.chartula doctor, which finds most of the setup and range situations before anything is spent, and says which ones it cannot find (a spent rate limit, a first tag, everything that only shows once the model writes a whole release).generatebefore its first model call (fix(pipeline): check that the token may publish before the first model call #285); the rate limit, with and without a token; a configuration error; a shallow clone; a first tag without a terminal; a failed model call by status (404, 401 with and without a key, 403), an unreachable endpoint, and an answer the SDK cannot read, kept apart from an unreachable one (fix(cli): report an answer the SDK cannot read as unreadable, not as unreachable #288); an answer that does not match the facts; an answer cut off atmaxOutputTokens; a context window too small; a thorough check that verified nothing; a slow run, read from the progress lines (feat(observability): show each step of a run while it works #297) and the run summary.x-ratelimit-remaining: 0, 403 withx-accepted-github-permissions, model 404/401, an unknownfinish_reason, a reported prompt of 120 tokens, prose instead of a verdict, a cut answer, a 4 s delay per call). Paths are anonymized to/work/my-repo, the stub's address tohttps://api.github.com/andhttp://localhost:11434/v1. The line afterThe endpoint said:came from the stub, so the page shows it as...and says its wording depends on the provider. The slow run's summary is the real local run from the chartula-evals sweep already used in docs: add costs-and-checks.md, one home for the run summary and the measured costs #298.cli.md, the status-by-status account of a failed model call and the missing-key example move here and are replaced by links. Fromcosts-and-checks.md, the three diagnosis sections (slow run, unreadable check, cut prompt) move here; the summary page keeps a short list of the lines that point to a problem, each linking its section.docs/github.mdsays, so a release merged with merge commits was underestimated. The class comment also still claimed that an exhausted limit fails with a 403 naming a commit; the run names the rate limit (GitHubErrorResponse.cs). Both are corrected inGitHubTokenNotice.cs.getting-started.mdlinks it under "Next".Verified:
dotnet build -c Releasewithout warnings,dotnet format --verify-no-changesclean.Tests: full suite passing (920), no test changed; no test asserts the warning's wording.
🤖 Generated with Claude Code
https://claude.ai/code/session_01BQ1Z71j4Q2W1CwGYjF55No
Generated by Claude Code