Repository navigation
feat(faithfulness): name the pull request behind each flag - #250
Merged
Merged
Conversation
The thorough check names, with each claim, the pull request whose fact it rephrases. Each fact in the check's prompt opens on its number in brackets, the one place the model may take it from: titles and descriptions mention issue numbers that read like pull requests. Chartula keeps the number only when the fact base has that pull request. A number it does not have stays in the flag's text as the check's lead. The run record writes each flag as an object with text and pullRequest, so its schema version goes to 2.
This was referenced Sep 24, 2026
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 the flag review of five ServiceDeskLite
v1.9.0runs recorded with #227: 5 of 38 flags named a pull request anywhere in their text. The other 33 had to be traced to their fact by hand, and repeats across runs could only be grouped by how alike their wording was.{ claim, pullRequest }per claim.ThoroughFaithfulnessCheckerkeeps the number only when the fact base has that pull request, the same rule as for categories and links: the model never decides what is a fact.[#n], and the prompt says to take the number from there only. Titles and descriptions mention issue numbers (build: bump version to 0.1.0-preview.2 #245's title ends in(#243)), which read like pull requests.pullRequestbut stays in the text as(The check named #243, which is not a pull request of this release.), so the reviewer keeps the lead.docs/run-record.mdsays so.flagsbecomes[{ "text", "pullRequest"? }]. Changing the element type is breaking, so the version is bumped rather than adding a parallel field that repeats every flag text. The record is local only, and nothing in chartula-evals reads its flags.! #223: ....IRunMetricsstays string-based: the pipeline passes the flag texts, so the thorough-only count means what it did.thorough-systemsnapshot andpromptHashupdated (sha256:abf516c2...), so runs before and after differ inpromptHash, as they should.Verified end to end, no paid tokens: binary with this change against local Ollama (
gemma3:12b,factBase.depth: title-only),generate --no-publish --tag v0.1.0-preview.2in a scratch clone of this repository:{ "text": ..., "pullRequest": 242 }.claimstring,pullRequestinteger or null; OpenAI strict mode requires both.Tests:
ChatModelTests(claims with and without a number, a claim without text does not count),ThoroughFaithfulnessCheckerTests(a fact opens on its number, a known number is kept, an unknown one is dropped and noted),ReviewPresentationTests(a flag opens on its pull request),RunRecordJsonSerializerTests(flag objects, schema version 2). Full suite 821 passing, build without warnings,dotnet formatclean.