Update Managed Files - #563
Conversation
9dae334 to
87690cf
Compare
87690cf to
f8812f0
Compare
f8812f0 to
e062489
Compare
e062489 to
e7e2613
Compare
e7e2613 to
530f156
Compare
530f156 to
f460905
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f460905. Configure here.
| bold_line = f"**Verdict: {verdict_value}**" | ||
| if cleaned: | ||
| return f"{bold_line}\n\n{cleaned}" | ||
| return bold_line |
There was a problem hiding this comment.
First verdict match can mislabel review
High Severity
_official_verdict_match keeps the first standalone or glued Verdict and format_malware_review_verdict then deletes every other matching line. FORMAT_HEADING_RE does not recognize this prompt’s or: examples, and glued text after e.g. can count as official, so an early draft or echoed template can become the posted label while a later correction disappears.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit f460905. Configure here.


Note
Low Risk
Changes only affect Dependabot review workflow prompt text and post-processing of Cursor output; no application runtime or auth paths are modified.
Overview
This PR tightens how supply-chain malware Cursor output is formatted before it lands on Dependabot/Renovate PR comments.
The malware task prompt now requires the model to open with a standalone bold line (
**Verdict: benign**or**Verdict: malicious**), a blank line, then reasoning—not a plainVerdict:prefix or an inline verdict.After the agent runs, inline Python
format_malware_review_verdictparses the malware review text, picks the “official” verdict (standalone line or sentence-glued forms), strips duplicate verdict snippets from the body (including format-example lines), and re-emits a normalized block with the bold verdict first. That normalized text is what gets merged into the combined Cursor analysis comment.Reviewed by Cursor Bugbot for commit f460905. Bugbot is set up for automated code reviews on this repo. Configure here.