Skip to content

docs: make changelog-json.md and run-record.md schema references with a real example each - #314

Merged
goldbarth merged 1 commit into
mainfrom
docs/reference-polish
Oct 1, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/reference-polish

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #306 and #313: outputs.md is the home of what each output file is for, and the glossary explains the terms, so the two schema pages can stop doing either.

  • Why: changelog-json.md and run-record.md opened on purpose, publishing and .gitignore advice that outputs.md and costs-and-checks.md also give, repeated enum values that live elsewhere, and showed examples no run writes: the changelog.json example had a literal + in toolVersion, and the run record example was invented (owner/repo, a shortened hash).
  • changelog-json.md is the schema only. The opening links outputs.md for what the file is for; the field rows link their home instead of repeating it (the title fallback, the seven categories, visibility, breaking, linked issues, llm.provider, thinking).
  • New "The renderings" says what a consumer gets: Markdown with a ### heading per group and one line per entry; no release heading and no front matter, so the customer description is not in the file; an empty string when the release has nothing for an audience; < escaped as \<; the product rendering only here. Each was checked against RenderingComposer.cs, ReleasePipeline.cs and the stub run of docs: add outputs.md, every file a run writes and the shape of each audience #306.
  • New "Reading it with jq", with two commands and their real output, and the filters for breaking and user-visible changes.
  • changelog.json escapes '+', quotes and every non-ASCII character #226 as a known issue, with what the real files escape: +, quotes, apostrophes, backticks, <, > and every non-ASCII character. changelog.json escapes '+', quotes and every non-ASCII character #226 names fewer; the run record of this PR shows all of them.
  • run-record.md is the schema only. "What it is not" and "When it is written" are gone: file naming, never published, .gitignore, and committing it only in an evaluation repository moved to outputs.md "The run record", which owns the output files. The flag rule is one sentence for when a flag has a pullRequest and one for when it has none. One sentence before the metrics table says that rephrase and faithfulnessCheck count calls while ruleBasedCheck and thoroughCheck count findings. The notes on older versions are collected under Stability.
  • changelog.json's history paragraph moved from its intro to outputs.md ("one file is one release notification"), next to the rest of what the file is for.

Verified:

  • Both examples are byte for byte what one real run wrote: generate --no-publish --tag v0.1.0-preview.3 on this repository with the binary from main, gpt-6-sol, thinking disabled, on 2026-10-01 (17,904 tokens, no flags). The run record shows one of its six facts; everything else is unchanged, and both blocks parse as JSON.
  • The jq outputs are from the same file; select(.breaking) and select(.userVisible) were run on it too.
  • Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test); the anchors other pages link into (#provenance, #change-entry, #stability, #facts, #metrics, #schema) are kept.

Tests: none, documentation only.

@goldbarth goldbarth self-assigned this Oct 1, 2026
@goldbarth
goldbarth merged commit 416e72f into main Oct 1, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/reference-polish branch October 1, 2026 14:43
goldbarth added a commit that referenced this pull request Oct 1, 2026
…eal release into a fixture (#316)

Follows #294, which made a fixture the `tag` and `facts` of a run
record, and #314, which made the run record page the schema it points
to.

- **Why:** `testing.md` explained the fixtures and the prompt snapshots
of `Chartula.Core.Tests` only. A contributor working on an adapter or on
the CLI found nothing on how those layers are tested, and the fixture
instruction ("copy those two fields") left out the one detail that
decides whether the new fixture passes.
- **A table up front** names each project, what it tests and how, so a
contributor knows where a new test belongs before reading further.
- **Running the tests:** the whole suite, one class or one test with
`--filter`, and why to name the project: on the solution, every other
project reports `No test matches the given testcase filter`.
- **`Chartula.Core.Tests`:** the fixtures as before, now with a numbered
procedure and a command that copies `tag` and `facts` out of a record
byte for byte. Not `jq`, which writes the escaped characters as plain
ones and fails `FactBaseFixtureTests`. The stand-in models and the
prompt snapshots stay; the reason no test can reach a model is one
sentence and a link to `architecture.md`, not a repeated argument.
- **`Chartula.Infrastructure.Tests`:** real git in `TempGitRepository`,
GitHub answered by a stub handler that also records the requests,
writers in a temporary directory. A git configuration that rewrites
`[email protected]:` URLs fails `Reads_the_url_of_the_named_remote`; the
page says so, and how to run without it.
- **`Chartula.Cli.Tests`:** the three ways it tests and which question
each answers: the built binary as a process (`CliProcess`, GitHub
pointed at `https://127.0.0.1:1/`), the production client factory with
an `HttpMessageHandler` as transport (`CreateChatClient`,
`DoctorTransports`), and the report around a `StubPipeline`.
- **Found while verifying, filed as #315:** a fixture from a real
release whose descriptions hold a code block fails
`Text_that_only_repeats_the_facts_is_never_flagged`, because the
rule-based check looks for the one-line rendering in descriptions that
keep their line breaks. The same causes false flags in a run for a
quoted phrase the description wraps. The page names the limit and links
the issue.
- **The page is titled "Testing"** now; the links that called it "Test
fixtures" (README, CONTRIBUTING, `architecture.md`, ADR 0001, the
recipe) say "Testing", and the two that are about fixtures point to the
fixture section.

**Verified:**
- The fixture procedure, followed as written, on a run record of a
release without code blocks in its descriptions: the copied file is
byte-identical to the record's fields, and with its constant on
`FactBaseFixture` the Core suite passes (496 of 496). The same procedure
through `jq` fails
`Every_fixture_is_exactly_what_a_real_run_would_write`; on the record of
`v0.1.0-preview.3` it fails the echo test as #315 describes. The
experiment files are not part of this PR.
- Both `--filter` commands were run as written; on the solution, the
other projects print the message the page quotes.
- The URL rewrite failure was reproduced with `GIT_CONFIG_COUNT=1`,
`url.https://github.com/[email protected]:`.
- The full suite passes: Core 490, Infrastructure 79, Cli 374.
- Every relative link and anchor in all Markdown files of the repository
resolves (script, with a negative test).

Tests: none changed, 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.

1 participant