--- id: TASK-38 title: Add ScreenshotOne missing-key run warning status: Done assignee: [] created_date: '2026-06-06 21:41' updated_date: '2026-06-10 19:27' labels: [] dependencies: [] priority: high ordinal: 40000 --- ## Description Emit a best-effort warning run event when an external audit needs screenshots but SCREENSHOTONE_API_KEY is not configured, while keeping audit classification and AI stages running. ## Acceptance Criteria - [x] #1 needsScreenshots with missing SCREENSHOTONE_API_KEY writes a warning run event through appendRunEvent - [x] #2 warning logging is best-effort and cannot fail the audit run - [x] #3 needsScreenshots false does not emit the missing-key warning ## Implementation Plan 1. Inspect current ScreenshotOne skip path and source-contract style 2. Add RED source-contract for warning event and best-effort guard 3. Run focused test to capture RED 4. Implement minimal runtime warning inside needsScreenshots missing-key branch 5. Run focused tests green and broader tests if practical 6. Self-review and report without staging or commits ## Implementation Notes RED verified: pnpm exec tsc -p tsconfig.test.json passed, then node --test .test-output/tests/external-audit-pipeline-source.test.js failed only on missing ScreenshotOne config warning message (actual index -1). GREEN verified: focused node --test .test-output/tests/external-audit-pipeline-source.test.js passed 11/11 after implementation. Full pnpm test passed 357/357 with exit 0. ## Final Summary Closed per explicit user request while switching project tracking to pitchfast.