Repository navigation
feat(facts): carry the labels of a change into the fact base - #120
Merged
Merged
Conversation
`ChangeFact` held the title, the number and link, the category, the two flags, the linked issues and a description. Not the labels, although `ReleaseChange` carries them and the curation rules already read them. Today that is a gap. It becomes a blocker the moment a rendering wants subject matter in the output - tags on a customer release page, a filter on a site, grouping by topic rather than by change type. The fact base is the only source a rendering may draw from, so a label that never reaches it cannot be rendered, and a tag invented outside it is what the rule-based check flags as a name the facts do not support. They arrive verbatim and unfiltered, the ones curation acted on included: which labels an output shows is that output's decision, and a fact the base drops cannot be recovered further down. A commit carries no labels, so a commit-based change gets an empty list rather than a null. Labels are compared by content, like the linked issues, because a record compares a list by reference and two facts holding the same labels in different instances are one fact. `changelog.json` carries the field. An optional field is non-breaking per the documented contract, so `schemaVersion` stays 1, and a document written before the field existed reads back with no labels rather than with a null - as a test rather than as a claim. Nothing in the rendering path changed. This is the fact, not its use. Closes #98 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01XWVjjRRNBEJ1RowVL4i5DM
goldbarth
pushed a commit
to goldbarth/chartula-evals
that referenced
this pull request
Sep 8, 2026
`sonnet-5-labels-out`, rendered from goldbarth/chartula#120 and #121 with `--audience customer`: 24 entries, and 23 of the release's 28 changes reaching the prompt where 26 did, after three pull requests were labelled `visibility:internal`. Built without `--page`: `release-v0.1.0.md` was deleted before the case was made and the release description exists nowhere else, so the customer section is the model's text without the front matter. B2 judges the opening and cannot be read this turn.
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?
ChangeFactcarries the labels of the change, andchangelog.jsonwrites them.IReadOnlyList<int> LinkedIssues, + IReadOnlyList<string> Labels, string? Description)"linkedIssues": [12], + "labels": ["area:ui"], "description": "Adds a dark theme toggle."They arrive verbatim and unfiltered, the ones curation acted on included: which
labels an output shows is that output's decision, and a fact the base drops
cannot be recovered further down. A commit carries no labels, so a commit-based
change gets an empty list rather than a null.
Why?
ReleaseChangehas the labels andLabelRulePolicyalready reads them duringcuration, but they stopped there.
Today that is a gap. It becomes a blocker the moment a rendering wants subject
matter in the output - tags on a customer release page, a filter on a site,
grouping by topic rather than by change type. The fact base is the only source a
rendering may draw from, so a label that never reaches it cannot be rendered,
and a tag invented outside it is exactly what the rule-based check flags as a
name the facts do not support.
The decision behind it is written up in goldbarth/chartula-evals
docs/output-format.md, section Tags: tags come from pull request labels, neverfrom the categories and never from a fixed vocabulary.
Closes #98
Notes for review
LinkedIssuesandDescription. Both arecollections of the change's own metadata; the free text stays at the end. That
breaks every positional call site, which is the point - the compiler listed all
14 rather than letting one slide through.
record compares a list by reference, and two facts holding the same labels in
different instances are one fact.
schemaVersionstays 1. An optional field is non-breaking per thedocumented contract in
docs/changelog-json.md. A document written before thefield existed reads back with no labels rather than with a null the rest of the
pipeline would have to guard against - as a test rather than as a claim.
typical-releasegot real labels,commits-only-releaseempty lists, and the byte comparison against what thewriter produces is green, so they still represent real runs.
GroundedFactsFactoryand theprompts are untouched: this is the fact, not its use. The allowlist deciding
which labels reach an output belongs to the output-format work.
category cannot give, and a label is the only one that answers the question
being asked. It is not in here.
Type of change
Checklist
.editorconfig