Files
pitchfast/backlog/tasks/task-44 - Port-audit-pipeline-fully-into-the-MVP.md

2.4 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, priority, ordinal
id title status assignee created_date updated_date labels dependencies priority ordinal
TASK-44 Port audit pipeline fully into the MVP In Progress
2026-06-07 21:16 2026-06-07 21:34
high 46000

Description

Remove runtime dependencies on v2 reference files, bundle the v3 audit skill registry into the MVP, and ensure audit generation consumes website enrichment evidence from the lead's latest successful enrichment run.

Acceptance Criteria

  • #1 Audit generation no longer reads or imports v2_elemente at runtime
  • #2 MVP v3 audit skills are bundled through a production-owned source and selected during audit evidence building
  • #3 Audit generation evidence includes crawl pages, technical checks, and screenshots from the latest successful website_enrichment run for the same lead
  • #4 ScreenshotOne remains optional only until configured and no missing-key warning appears after the corrected Convex env is present
  • #5 Regression tests and local verification commands pass

Implementation Plan

  1. Add RED tests for bundled MVP skill registry and no v2 runtime dependency
  2. Add RED tests for audit evidence loading latest successful website enrichment data by lead
  3. Implement bundled MVP v3 skill registry and wire audit generation action to it
  4. Implement lead-based enrichment evidence lookup with audit-run screenshot fallback
  5. Clarify readiness copy for Next vs Convex env scope
  6. Run focused and full verification without closing the backlog task

Implementation Notes

Implemented GREEN slice after RED tests: added bundled MVP v3 audit skill registry, rewired auditGenerationAction away from v2_elemente runtime file reads, loaded latest successful website_enrichment evidence by lead in getAuditGenerationEvidence, preserved audit-run ScreenshotOne captures, and clarified settings readiness copy for Next.js vs Convex Action env scope. Focused tests passed for registry, audit evidence, action source, persistence source, and ops quality.

Masked Convex env check confirms SCREENSHOTONE_API_KEY is present in the dev deployment. AC #4 remains open until a fresh live audit run confirms no ScreenshotOne missing-key warning in Run Events.