Repository navigation
fix: keep the reason in each flag, and bound the customer outcome by the facts - #252
Merged
Merged
Conversation
added 2 commits
September 24, 2026 15:20
The check's answer had a single claim field, so the model returned the flagged passage and nothing about what was wrong with it. A flag without its reason leaves the reviewer to redo the check: a smoke run on one release came back with three quoted passages and 165 output tokens. The answer now carries the claim and its reason as separate fields, and the prompt asks for both. The flag text reads "<claim>" - <reason>, as FaithfulnessFlag.Text and the run record already describe it. A claim without a reason is kept, and quotes the model put around the claim are not doubled.
The customer format requires an outcome on every entry and names "no longer have to" as its form. Over three runs of one release, 17 of 33 thorough-check flags quoted that outcome: a model instruction read as a guarantee, a behaviour promised beyond the part of the product it holds in, or something the reader no longer has to do that no fact says they ever did. An outcome now carries the limit the facts name, and a model instruction counts as an outcome stated as what the product tells the model, rather than failing the mechanism test. Something the reader no longer has to do is named only when the facts say they had to do it; the fix rule allows what they can now count on instead.
This was referenced Oct 1, 2026
goldbarth
added a commit
that referenced
this pull request
Oct 1, 2026
…, and drop private links (#317) Closes #309 - **Why:** the README opened on a run against `goldbarth/Ingestor`, a private repository, so its example could not be checked, and `docs/outputs.md` linked five pull requests of the private ServiceDeskLite. Beyond that, the page described the check before showing why a release owner would want it, and kept status, start and publishing behavior apart from each other. - **The opening says what work Chartula does,** in ordinary words before any term: it reads the merged pull requests, decides what the release contains before a model writes, writes notes for developers, users and product managers, and reports the statements it finds the pull requests do not back. No glossary link interrupts the first paragraph. - **The example is public and real:** the run that wrote Chartula's own release notes for `v0.1.0-preview.3` (2026-09-24, `gpt-6-sol`, recorded in its run record and named in `CHANGELOG.md`'s note). #252 measured fewer overpromising outcomes, 5.7 to 1.75 flags per run; the customer entry promised users they "can count on" it; the thorough check flagged exactly that sentence, the rule-based check had nothing to find. It reads as pull request, entry and finding, then why it matters to whoever publishes. The raw flag and provenance from the record sit in a collapsed `<details>`, byte for byte. - **"Try it" puts status, prerequisites, install and the three commands in one place,** and says beside `generate` what it writes, that a published release's notes are replaced, and that `--no-publish` leaves GitHub alone. Getting started and CI are the two next steps, for a first local run and for a team's pipeline. - **"How the check works" replaces the promises** and says only what the code does: the change set and structure are fixed before the model, a mismatched answer fails, two checks with their scope, flags as advice that block nothing, and the comparison against pull requests rather than code. "Neither check catches every unsupported statement" is stated outright; nothing claims time saved or correctness. - **Known limitations are grouped** by source data, checking, publishing, and installation and support, with every bullet and its wording kept, since `ROADMAP.md` names them. - **The documentation index is grouped by what the reader wants to do:** start, understand the output, automate, look up, contribute. Every page from before is still listed. - **`docs/outputs.md`:** the technical example is now the section a real run wrote for Chartula's own `v0.1.0-preview.3` (2026-10-01), so every reference in it resolves; the customer and product examples keep the ServiceDeskLite release, whose runs are public in chartula-evals, and link nothing of it. - **`docs/glossary.md`:** "Audience" no longer says the texts "cannot disagree"; a shared fact base gives them the same changes, categories and breaking status, not a guarantee of agreement. **Verified:** - Every statement about behavior was checked against the code: the planned entries and `FindMismatch` (`GroundedFactsFactory.cs`, `RenderingComposer.cs`), the two checks (`RuleBasedFaithfulnessChecker.cs`, `ThoroughFaithfulnessChecker`), flags never blocking (`ReleasePipeline.cs`), drafts and replaced notes (`GitHubReleaseNotesWriter.cs`). - The example was checked against its sources: the entry in the run's `release-v0.1.0-preview.3.md`, the flag and its `pullRequest` in the run record (rule-based 0 flags, thorough 1, only-thorough 1), and the figures in #252's description. The finding is justified: #252 reports fewer such flags, not none. - The README renders through GitHub's Markdown API with all eight sections, the `<details>` block with its JSON, and the five index tables. Light and dark appearance and a narrow width were not inspected in a browser. - The eight limitation names `ROADMAP.md` quotes still match README bullets word for word (script). - No page links a private repository (search for Ingestor, ServiceDeskLite and port-tidewatch links). - Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test); the badge points to `#try-it`, which replaced `#status`. Tests: none, 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 #250 and #251, and the flag review of the ServiceDeskLite
v1.9.0comparison runs they were built for.Two commits, each on its own:
fix(faithfulness): keep the reason in each thorough-check flag{ claim, pullRequest }. With a field named only for the claim, the model returned only the claim: a smoke run came back with three quoted passages, no word on what was wrong with them, and 165 output tokens for two checks. A flag without its reason makes the reviewer redo the check, and it breaksFaithfulnessFlag.Text, documented as "what was flagged, and why".{ claim, reason, pullRequest }, and the prompt asks for the quoted words and the reason.CallValidityjoins them into the flag text as"<claim>" - <reason>.reasonin the run record would be absent for half the flags. Record schema and docs stay as they are; the code now matches them."“...”".thorough-systemsnapshot andpromptHash(sha256:a642c294...).fix(prompting): bound the customer outcome by what the facts establishcustomersnapshot andpromptHash(sha256:18467240...).Verified on real runs:
goldbarth/ServiceDeskLitev1.9.0 --since 675555a7, 18 facts,gpt-5.6-solrendering and checking throughopenai-compatible, thinking disabled. Three runs before the second commit, four after.docs/measurements.md(2026-09-24).Tests:
ChatModelTests(claim and reason joined, a claim without a reason kept, an already quoted claim not quoted twice), prompt snapshots forthorough-systemandcustomer. Full suite 830 passing, build without warnings,dotnet formatclean.