Commit 3174674
fix(074): enforce mandatory Phase 2 discovery even with baseline (#105)
The orchestrator was skipping Phase 2 (fresh threat discovery) when all
baseline findings were classified as UNCHANGED, effectively echoing the
previous report without running any new analysis. This defeats the
purpose of re-scanning — code changes and missed threats can only be
caught by running fresh discovery.
Added two explicit NEVER-SKIP instructions to the orchestrator:
- Phase 2 header: CRITICAL block stating Phase 2 is mandatory
- Baseline-Aware Discovery section: MUST execute full dispatch table
Evidence: non-baseline run found 61 findings vs baseline run found
exactly 48 (matching baseline) with 0 NEW — Phase 2 was skipped.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 14878b8 commit 3174674
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| 277 | + | |
| 278 | + | |
275 | 279 | | |
276 | 280 | | |
277 | 281 | | |
| |||
0 commit comments