Skip to content

docs: add troubleshooting.md, the message, cause and fix of the common stops - #299

Merged
goldbarth merged 1 commit into
mainfrom
docs/troubleshooting
Sep 30, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/troubleshooting

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #298, which added docs/costs-and-checks.md, the page this one takes the diagnosis sections from.

  • Why: the messages a run stops with were spread over cli.md, github.md, configuration.md, what-goes-into-a-release.md and run-metrics.md, each explained where its topic lives, but nothing let a user start from the message. docs/troubleshooting.md is that entry: message, cause, fix, with a link to the page that explains more.
  • It opens with 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).
  • The situations: no model key; GitHub cannot read the repository (404); a rejected token (401); a token that cannot publish, which stops generate before 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 at maxOutputTokens; 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.
  • Every message is from a real run of the built binary, in a scratch repository, with GitHub and the model served by a local stub (a mode per case: 404, 401, rate limit with x-ratelimit-remaining: 0, 403 with x-accepted-github-permissions, model 404/401, an unknown finish_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 to https://api.github.com/ and http://localhost:11434/v1. The line after The 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.
  • One home per explanation: a message appears here and, where it has one, on the page that explains its topic; the explanation itself stays there and is linked. From cli.md, the status-by-status account of a failed model call and the missing-key example move here and are replaced by links. From costs-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.
  • A message corrected on the way: the warning without a GitHub token said a run spends "roughly one [request] per pull request". It spends one per commit in the range, as docs/github.md says, 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 in GitHubTokenNotice.cs.
  • README: Troubleshooting joins the "Setting it up" index; getting-started.md links it under "Next".

Verified:

  • Every case ran with the binary built from this branch; the outputs match the page, and the corrected no-token warning was rerun after the fix.
  • Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test).
  • dotnet build -c Release without warnings, dotnet format --verify-no-changes clean.

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

…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
@goldbarth goldbarth self-assigned this Sep 30, 2026
@goldbarth
goldbarth merged commit f2b8f02 into main Sep 30, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/troubleshooting branch September 30, 2026 14:14
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]>
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