Skip to content

fix(review): tell the LLM cora-ignore markers are Cora syntax, not findings - #598

Merged
ajianaz merged 1 commit into
developfrom
fix/cora-ignore-prompt-596
Oct 8, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/cora-ignore-prompt-596

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

What

Extend the hardened system prompt clause (applies to review and scan, including user overrides) so the model treats cora-ignore: <rule> as Cora's own suppression syntax: not an instruction, and not itself reportable. The injection guard is unchanged (UNTRUSTED DATA stays).

Why

In v0.16.0 the LLM reported the marker line as MAJOR "Security scanner findings suppressed instead of remediated" (#596).

Testing

New prompt test; fmt, clippy -D warnings and prompt tests pass. Locally built binary: reviewing a staged file with a marker returned "No issues found" twice (it was flagged before).

Closes #596

🤖 Generated with Claude Code

@ajianaz
ajianaz merged commit af38448 into develop Oct 8, 2026
14 checks passed
@ajianaz
ajianaz deleted the fix/cora-ignore-prompt-596 branch October 16, 2026 00:43
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.

fix(review): LLM flags the cora-ignore marker itself as suppressed security findings

1 participant