Repository navigation
Description
What is wrong?
A fact's title and description reach the model as they are: appended to the fact's statement after ": " and " - ", in the rephrasing prompt and in the thorough check's prompt alike (GroundedFactsFactory.Build, ThoroughFaithfulnessChecker.ToGroundedFacts).
Nothing marks where the author's text starts or ends, nothing tells the model that it is data rather than instructions, and nothing bounds its size.
A pull request description is written by whoever opened the pull request, so on a repository that takes outside contributions, a description that says "ignore the rules above" sits next to Chartula's own instructions with nothing between them.
A very long description, such as a pasted log, is sent in full, once per audience and once per check.
The README names it under "Known limitations" ("Pull request text goes to the model as it is"), and the public roadmap lists it as the first point after the launch; this issue pulls its first part before the launch.
The rendering the thorough check reads is model output that may repeat such text, and is not delimited either.
Where to look
src/Chartula.Core/Generation/GroundedFactsFactory.cs, src/Chartula.Core/Faithfulness/ThoroughFaithfulnessChecker.cs, src/Chartula.Core/Prompting/ChangelogPromptBuilder.Prompts.cs, tests/Chartula.Core.Tests/Prompting/Snapshots/.
Done when
- Each fact's title and description reach both prompts between delimiters that the text itself cannot close.
- A description longer than a fixed limit is cut in the prompt, with a marker that says so; the fact base and the run record keep it whole.
- Both system prompts say that the quoted text is data to rephrase or check, never instructions; the thorough check's prompt delimits the rendering it checks the same way.
- Snapshots and the prompt hash are updated, and an evaluation run in chartula-evals shows the change does not move the output for the worse.
- The README limitation and the public roadmap say what is left: edits after the merge, links, and where a breaking status comes from.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(prompting): quote pull request text between tags and cut long de…
fix(cli): list each option once in the help, and bring the roadmap up…