Skip to content

feat(output): write the customer rendering as a page of its own - #104

Merged
goldbarth merged 1 commit into
mainfrom
feat/103-customer-page
Sep 3, 2026
Merged

goldbarth merged 1 commit into
mainfrom
feat/103-customer-page

Conversation

@goldbarth

@goldbarth goldbarth commented Sep 3, 2026 •

Copy link
Copy Markdown
Owner

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 from docs/output-format.md - YAML front matter, then the entries.

---
title: Release 0.1.0
description: Chartula runs end to end on a repository, from pull requests to notes for three audiences.
publishedAt: 2026-09-03
---

### What's New
...

Every field has a source, and a field whose source has nothing to give is left out rather than filled in:

Field Source Absent when
title the tag never - a page without a tag is not composed
description the model, from the release's facts the facts do not support a sentence
publishedAt the date the tag was made git gives nothing readable
tags labels on the pull requests always, for now - see #98

Also in this change:

  • The tag date reaches the pipeline. GitCliCommitReader reads creatordate - the tagger date for an annotated tag, the commit date for a lightweight one - and CommitRange carries it. It is nullable rather than defaulted to today, because an invented date is worse than an absent field.
  • The description is written in the same call as the entries. It is a rephrasing of facts already in front of the model, so a second call would buy nothing, and the faithfulness check covers it on the same footing as the text: the pipeline checks the description together with the body rather than beside it. The prompt asks for the line under ReleaseDescription.Label and the parser reads the same constant back, so a reworded prompt cannot silently lose the field.
  • A preview 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.
  • A release with no customer entries produces no page, rather than a page with an empty body.
  • The page is written under --no-publish like 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.json is unchanged. The description lives on the page and not in the record, so a fixture replayed from changelog.json cannot 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.
  • The description is not presented for review. Review returns one string, so the body is what a reviewer edits. The description still goes through the faithfulness check and is printed in the run's output.
  • Out of scope, as the issue says: the product audience (no written template), the file serialisation of the customer rendering (many releases in one document), where the file is written to beyond the working directory, and Labels missing from the fact base #98.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / internal
  • Breaking change

Checklist

  • The project builds and tests pass (385 tests, 53 new)
  • Code follows the formatting in .editorconfig
  • I've added or updated tests where it makes sense
  • I've updated documentation where relevant (README.md, docs/architecture.md)
  • No secrets or API keys are included in this change

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
@goldbarth
goldbarth merged commit 3ac3d57 into main Sep 3, 2026
@goldbarth
goldbarth deleted the feat/103-customer-page branch September 3, 2026 13:34
@goldbarth goldbarth self-assigned this Sep 3, 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.
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.
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.

[Feature] The customer rendering has no output of its own

1 participant