Repository navigation
feat(output): write the customer rendering as a page of its own - #104
Merged
Merged
Conversation
The customer rendering was generated, checked, reviewed and then written nowhere: it existed only as a field inside changelog.json, so the audience the tool exists for had no output a person could publish. A run now writes `release-<tag>.md` in the published serialisation from `docs/output-format.md` of goldbarth/chartula-evals: YAML front matter, then the entries. - `title` comes from the tag, `publishedAt` from the date the tag was made, which `GitCliCommitReader` now reads and `CommitRange` carries. - `description` is written by the model in the same call as the entries, so it is a rephrasing of the same facts rather than a second call, and the faithfulness check covers it on the same footing as the text. The prompt and the parser share one constant, so a reworded prompt cannot silently lose the field. - A field whose source has nothing to give is omitted, never emitted empty: no `publishedAt` without a tag date, no `description` the facts cannot support, no `tags` while no labels reach the fact base (#98). A release with no customer entries produces no page at all. - The page is written under `--no-publish` like the other local outputs. Writing a file a person could publish is not publishing it. A preview now also shows the description it would publish, so the one field a preview could not vouch for is no longer the one that opens the page. Closes #103 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_018d26tuvXQg9Sekj8Ey7wS1
This was referenced Sep 4, 2026
goldbarth
pushed a commit
to goldbarth/chartula-evals
that referenced
this pull request
Sep 4, 2026
The render made after the outcome-slot change wrote a customer rendering of zero characters and no page, with no error: `ReleaseDescription.SplitOff` from goldbarth/chartula#104 lifted the whole answer out as the description. Four other candidates were ruled out by reading, and #104's own tests pinned the behaviour. A turn that produced no figure is still a turn, so it gets an entry. The run's `changelog.json` is committed as the evidence for what the customer field held; no `.md` was made from it because there is no customer section to cut out. The C3 change is still unmeasured, and the next render will carry four changes at once.
goldbarth
pushed a commit
to goldbarth/chartula-evals
that referenced
this pull request
Sep 4, 2026
`renderings.customer` in a run's `changelog.json` is the model's text alone. Since goldbarth/chartula#104 the customer rendering is also written as `release-<tag>.md`, and that file is the document a person would publish: front matter, then the entries. B2 judges the opening the format requires, so handing it the field fails a rendering for missing something Chartula wrote to a different file. `--page` names the release page and it becomes the customer section instead. The other two audiences are unaffected: neither has a published serialisation, so neither has a second file to read.
This was referenced Sep 17, 2026
goldbarth
added a commit
that referenced
this pull request
Oct 6, 2026
…ader (#333) Closes #307 - **Why:** a release whose changes reach no technical reader, such as one with only `chore:` and `docs:` pull requests, got an empty technical rendering, and Chartula wrote it as it was: a bare `## VERSION - DATE` heading in `CHANGELOG.md` and empty release notes, which for a published release replaced its notes with nothing. A reader could not tell that from a run that lost its text, and Common Changelog does not count an empty heading as a release (chartula-evals `docs/output-format.md`, rule 16). - **The sentence:** "This release has no features, fixes, performance improvements or breaking changes." It claims only what an empty technical rendering proves: every change that is new, fixed, faster, breaking or labelled as visible reaches that rendering. So it is also true for a release with no facts at all. - **Written by Chartula, not by the model:** `ReleasePipeline.NothingForTechnicalReaders` takes the place of the empty text when the pipeline writes `CHANGELOG.md` and the release notes. The release still costs no model call. - **`renderings.technical` stays empty:** `changelog-json.md` documents an empty string as "no change for that audience". Putting the sentence there would change that meaning, which the schema's stability rules say bumps `schemaVersion`, and a consumer could no longer tell a release with nothing to render from one with one entry. `changelog-json.md` now says the sentence is not in the file. - **The customer side is unchanged,** as #104 decided: no customer entries, no page. The product rendering has no file. - **Docs:** `outputs.md`, "A release with nothing to say", describes the sentence in `CHANGELOG.md` and the release notes, and that the model writes none of it. **Verified:** - Reproduced with a pipeline test before the change: the `internal-only-release` and `empty-release` fixtures, replayed through the real pipeline in `generate` mode, handed `""` to the `CHANGELOG.md` and release-notes writers. - End to end with the built CLI: a scratch repository whose `v1.2.0` holds a single `chore: bump dependencies` commit, GitHub on a local stub, `generate --tag v1.2.0 --no-publish --audience technical`. `CHANGELOG.md` reads `## 1.2.0 - <date>` followed by the sentence, `changelog.json` holds `"technical": ""`, and no request reached the model endpoint, which was not even running. Tests: `FixturePipelineTests` gains a theory over `internal-only-release` and `empty-release` that holds the `CHANGELOG.md` body, the release notes and the empty `changelog.json` rendering; the spy writers now keep what they were handed. All tests pass.
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.
What does this PR do?
A run now writes
release-<tag>.md: the customer rendering as a page you can publish, in the published serialisation fromdocs/output-format.md- YAML front matter, then the entries.Every field has a source, and a field whose source has nothing to give is left out rather than filled in:
titledescriptionpublishedAttagsAlso in this change:
GitCliCommitReaderreadscreatordate- the tagger date for an annotated tag, the commit date for a lightweight one - andCommitRangecarries it. It is nullable rather than defaulted to today, because an invented date is worse than an absent field.ReleaseDescription.Labeland the parser reads the same constant back, so a reworded prompt cannot silently lose the field.--no-publishlike the other local outputs. Writing a file a person could publish is not publishing it, so there is nothing for that flag to hold back.Why?
The customer rendering was generated, checked for faithfulness, reviewed - and then written nowhere. It existed only as a field inside
changelog.json, so the audience the tool exists for had no output a person could publish, and a consumer had to read the JSON and build the page themselves, which is the work the tool is supposed to have done.Measured, not assumed: on the rendering of 2026-09-03 the evaluation harness fails the grouping axis on the missing opening, and the same document with front matter prepended by hand passes it with nothing else changed.
Closes #103
Notes for review
changelog.jsonis unchanged. The description lives on the page and not in the record, so a fixture replayed fromchangelog.jsoncannot reconstruct the page's opening. Carrying per-audience metadata in the JSON is a shape decision of its own and would touch the documented format; it is not needed for a publishable file and is left out here deliberately rather than overlooked.Type of change
Checklist
.editorconfigREADME.md,docs/architecture.md)