Skip to content

fix(osv): keep fresh reachability verdicts when enabling osv on an existing INFO.md (main) - #13

Merged
Nehanth merged 1 commit into
mainfrom
sync-main-osvpreserve-fix
Oct 21, 2026
Merged

Nehanth merged 1 commit into
mainfrom
sync-main-osvpreserve-fix

Conversation

@Nehanth

@Nehanth Nehanth commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Ports the preserve-path fix to fork main (same as PR vercel-labs#190 branch, commit dfe75b8).

Bug: enabling --osv on a project that already had a complete INFO.md overwrote the freshly generated analysis with old threat model + osvEnrichment.context. Because that context is now a prompt directive (not a self-contained section), the persisted INFO.md carried raw grading instructions and the real reachability verdicts were discarded — matcher generation saw the stale threat model.

Fix: when osv is enabled, keep the fresh analysis (verdicts included) rather than restoring the preserved copy. Non-osv preserve path unchanged. Adds a coordinator test (verified to fail without the fix).

🤖 Generated with Claude Code

…isting INFO.md

When osv was enabled on a project that already had a complete INFO.md, the
preserve path overwrote the freshly generated analysis with the old threat
model plus osvEnrichment.context. Since that context is now a prompt directive
(instructions to emit a graded Dependency reachability block), the persisted
INFO.md ended up carrying raw grading instructions and the real verdicts the
analysis agent just produced were discarded — so matcher generation saw the
stale threat model, not the reachability grades.

Enabling osv is a deliberate "re-analyze with dependencies in view" action, so
keep the fresh analysis (verdicts included) instead of restoring the preserved
copy. The non-osv preserve path is unchanged and still keeps curated content.

Adds a coordinator test for the osv + preserved-INFO.md path (verified to fail
without the fix).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Nehanth
Nehanth merged commit 4a705d2 into main Oct 21, 2026
@Nehanth
Nehanth deleted the sync-main-osvpreserve-fix branch October 21, 2026 01:07
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.

1 participant