You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Report each finding in the shape the protocol asks for
The example protocol defines a finding as File, Lines, Issue, Comment. The
report was rendering a markdown heading and prose paragraphs instead, which is
readable but is not the structure someone deciding what to fix can scan.
Findings now carry labelled fields, with the rule code when there is one and
the mechanism that traces the finding to the change. Lines is a single number,
or a range only when the finding genuinely spans more than one. The quoted code
sits below, still byte-checked against the file, rather than inside the
sentence explaining the problem.
The tests passed both before and after that change, which is the more useful
half of this commit: they were asserting on the text of a finding and never on
its shape, so the format could have drifted without anything noticing. They pin
it now, and the mutation back to headings fails two of them.
The other half was missing further upstream. Nothing told the model what a
comment is for. The adversarial prompt now says it: the issue is one sentence
naming the problem, the comment explains what is wrong and what it breaks in
language someone who did not write the code can follow, and no code goes in the
comment because the code that proves the finding is quoted separately. A report
cannot make prose out of a comment full of code, so the instruction belongs
where the comment is written rather than where it is rendered.
0 commit comments