Repository navigation
docs: make changelog-json.md and run-record.md schema references with a real example each - #314
Merged
Merged
Conversation
… a real example each
2 tasks
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.
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 #306 and #313:
outputs.mdis the home of what each output file is for, and the glossary explains the terms, so the two schema pages can stop doing either.changelog-json.mdandrun-record.mdopened on purpose, publishing and.gitignoreadvice thatoutputs.mdandcosts-and-checks.mdalso give, repeated enum values that live elsewhere, and showed examples no run writes: thechangelog.jsonexample had a literal+intoolVersion, and the run record example was invented (owner/repo, a shortened hash).changelog-json.mdis the schema only. The opening linksoutputs.mdfor 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).###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 againstRenderingComposer.cs,ReleasePipeline.csand the stub run of docs: add outputs.md, every file a run writes and the shape of each audience #306.jq", with two commands and their real output, and the filters for breaking and user-visible changes.+, 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.mdis 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 tooutputs.md"The run record", which owns the output files. The flag rule is one sentence for when a flag has apullRequestand one for when it has none. One sentence before the metrics table says thatrephraseandfaithfulnessCheckcount calls whileruleBasedCheckandthoroughCheckcount findings. The notes on older versions are collected under Stability.changelog.json's history paragraph moved from its intro tooutputs.md("one file is one release notification"), next to the rest of what the file is for.Verified:
generate --no-publish --tag v0.1.0-preview.3on this repository with the binary frommain,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.jqoutputs are from the same file;select(.breaking)andselect(.userVisible)were run on it too.#provenance,#change-entry,#stability,#facts,#metrics,#schema) are kept.Tests: none, documentation only.