Skip to content

fix(prompting): say where an outcome comes from, not only what is not one - #123

Merged
goldbarth merged 1 commit into
mainfrom
fix/where-an-outcome-comes-from
Sep 9, 2026
Merged

goldbarth merged 1 commit into
mainfrom
fix/where-an-outcome-comes-from

Conversation

@goldbarth

@goldbarth goldbarth commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

What does this PR do?

The outcome rule in CustomerFormat gains a first half that says where the
sentence comes from. The test that was there stays and becomes the check on what
that half produced.

+ - Write what the reader can now rely on from their side of the change,
+ not from the change: what they no longer have to do, no longer have to
+ check, no longer have to work around, or can now count on without looking.
+ For a fix it is never that the fault is gone - the fault is the opening,
+ and the outcome is what the reader no longer has to do about it. Take it
+ from the facts of this change, which usually say what it was for.
  - The outcome must survive this test: strike the opening clause and read
  what is left. If it only restates the opening, negates it, or names a value
  or a mechanism, it is not an outcome. ...

Why?

Ten of the 24 entries of the customer rendering of 2026-09-08 say what changed
and never what the reader gets from it. Nine of them fail nothing else, so this
one shape is the difference between 11 entries shipping and 20.

The test was already in the prompt when those entries were written. A test
rejects a sentence and does not produce one: a model that has written the
mechanism keeps the mechanism, because nothing has said what the sentence should
have been. Three of the ten, verbatim:

- **Configuration errors**: A mistake in `chartula.yaml` now stops the run with
  a plain `Configuration error: ...` message instead of an unhandled exception.

- **Fallback for missing PR data**: When a release has no associated pull
  requests, ... the changelog now falls back to the commit message or the pull
  request's description instead of leaving that change out.

- **Grouped by pull request**: Changes are now summarized per merged pull
  request rather than per raw commit, using each pull request's title,
  description, and labels.

The first two close on the negation of their own opening; the third never leaves
the mechanism.

Refs #122

The material is in the fact base, which is why this is a prompt change

Each of the nine entries that fail on this and nothing else was held against
test-runs/v0.1.0-facts.md in
chartula-evals on 2026-09-09.
Eight of the nine have their outcome in the facts they were written from:

Entry The outcome, in the facts
Configuration errors the run stops at startup rather than partway, and the message names the valid values
Fallback for missing PR data "never hard-fails solely because PR discipline is imperfect"
Configuration file "A present config refines behavior; it is never required"

The exception is the entry about linked issues, where the facts say the closing
keywords are parsed and nothing about what a reader gets from it. One of nine,
and nothing here changes how that case is rendered.

Verified

dotnet build Chartula.slnx -c Release: 0 warnings, 0 errors.
dotnet test Chartula.slnx -c Release: 433 passing (Core 324, Infrastructure
33, Cli 76), one of them new -
Says_where_an_outcome_is_taken_from_before_testing_the_one_written.

No run was made against a live model: what this changes is measured by the
harness, over three renderings, per the turn budget in its pipeline.md.

@goldbarth
goldbarth force-pushed the fix/where-an-outcome-comes-from branch from 43fcda0 to 2ba0455 Compare September 9, 2026 09:24
@goldbarth goldbarth self-assigned this Sep 9, 2026
@goldbarth
goldbarth force-pushed the fix/where-an-outcome-comes-from branch from 2ba0455 to ae4dab2 Compare September 9, 2026 09:30
… one

Ten of the 24 entries of the customer rendering of 2026-09-08 say what changed
and never what the reader gets from it, and nine of them fail nothing else. The
test that decides the case was already in the prompt when they were written. A
test rejects a sentence and does not produce one: a model that has written the
mechanism keeps the mechanism, nothing having said what the sentence should
have been.

The rule now says where the outcome is taken from before the test checks it -
the reader's side of the change, and for a fix what they no longer have to do
about it rather than that the fault is gone - drawn from the facts of the
change, which usually say what it was for.

Refs #122
@goldbarth
goldbarth force-pushed the fix/where-an-outcome-comes-from branch from ae4dab2 to e5dafca Compare September 9, 2026 09:33
@goldbarth
goldbarth merged commit b93ea94 into main Sep 9, 2026
@goldbarth
goldbarth deleted the fix/where-an-outcome-comes-from branch September 9, 2026 09:33
goldbarth pushed a commit to goldbarth/chartula-evals that referenced this pull request Sep 15, 2026
`sonnet-5-fix-outcome-v010-out`, rendered from Chartula `c72f068` with
`v0.1.0` at `8061f46`: 28 changes. Carries goldbarth/chartula#123, which
rewrites C3's target so a bug-fix entry closes on what the reader no longer
has to do rather than on the bug being gone, and #126, which adds the two
worked examples and aligns the prompt with the rest of the rubric.

Rows laid out by `labels.py init`, every verdict `?`.
goldbarth added a commit that referenced this pull request Sep 21, 2026
…d template (#197)

A pull request whose body was the untouched template became a fact
description, and the template's comments were read as facts: its
"Closes #123" example linked issue #123 at depth
title-description-and-issues, and a comment containing BREAKING CHANGE:
would have flagged the change as breaking.

HTML comments are now removed from every body, since GitHub does not show
them to a reader, and a body with nothing left but headings and checklist
items is no description. Everything downstream reads the same cleaned
description.

Closes #141
goldbarth added a commit that referenced this pull request Oct 1, 2026
…ape the template like the merged ones (#322)

Follows #316 and #318, after which CONTRIBUTING can link the testing
page and the ADR index instead of explaining either.

- **Why:** CONTRIBUTING told a contributor to clone `goldbarth/chartula`
as "your fork", had no word on branches, review or how a merge closes an
issue, did not say that a pull request's title and description become
Chartula's own release notes, listed types without saying which ones
reach a release, and asked for a PR description ("what and why") unlike
any that has been merged. The template asked for a type checkbox and a
checklist none of the merged pull requests fill in.
- **From a fork to a merged pull request** in six steps: fork and
`upstream`, a branch named after type and topic (as the 40 last merged
branches are), commit, open, review, merge. The merge step says what the
repository is set to do: squash, with the PR title as the commit title
and the description as the message, so `Closes #123` in the description
closes the issue and stays in the history.
- **"Your pull request is Chartula's input":** the title is the line a
release names the change by, its type decides whether it appears, and
the description is what the model reads, so it can reach a published
note. Links `writing-pull-requests.md` instead of repeating it.
- **Setup:** the exact SDK with an install command, and lock files: what
rewrites them, that they are committed with the change, and the locked
restore CI runs, as a command to check before pushing.
- **Build, test and format** as the three commands CI runs, a single
test with `--filter`, and the hook; the rest links `testing.md`.
- **Trying the CLI on a repository:** where the binary is, what
`preview`, `generate --no-publish` and `generate` cost or change, and
the local stub for the model path.
- **Types with a column "In the release notes",** worked out from the
category table and this repository's `chartula.yaml`: `refactor` and
`docs` appear only with `visibility:user-facing`, `test`, `build`, `ci`,
`chore` and `style` are dropped as internal, `revert` appears unless its
target is in the same release. Scopes are the folders, as before.
- **The pull request** describes the shape the merged ones share (the
`Closes` or `Follows` line, a bullet per decision with its reason, a
bold verification section, a `Tests:` line) with a shortened #301 as the
example, and keeps the short list of checks before opening.
- **Writing documentation** gives the rules the pages follow, from the
documentation plan, so a docs contribution needs no other source.
- **The template** has the same four parts with comments that say what
goes in each, and drops the type checkboxes and the checklist.

**Verified:**
- The merge settings from the repository API
(`squash_merge_commit_title: PR_TITLE`, `squash_merge_commit_message:
PR_BODY`), and that the last 20 commits on `main` are squash merges.
- The CI commands against `.github/workflows/ci.yml`; `dotnet restore
Chartula.slnx --locked-mode` passes on this branch.
- The type column against `what-goes-into-a-release.md` (categories,
what is dropped, who can meet a change, reverts) and
`GroundedFactsFactory.Reaches`.
- The example against #301's description; branch names against the head
branches of the last 40 merged pull requests.
- Every relative link and anchor in all Markdown files of the repository
resolves (script, with a negative test).

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