49 lines
2.1 KiB
Markdown
49 lines
2.1 KiB
Markdown
---
|
|
id: TASK-46
|
|
title: Add Convex specialist fan-out audit pipeline
|
|
status: In Progress
|
|
assignee: []
|
|
created_date: '2026-06-08 09:04'
|
|
updated_date: '2026-06-08 09:19'
|
|
labels: []
|
|
dependencies: []
|
|
priority: high
|
|
ordinal: 48000
|
|
---
|
|
|
|
## Description
|
|
|
|
<!-- SECTION:DESCRIPTION:BEGIN -->
|
|
Implement an evidence-first specialist fan-out/fan-in audit generation pipeline in Convex so audits produce verified, reviewable findings before German copy and publication.
|
|
<!-- SECTION:DESCRIPTION:END -->
|
|
|
|
## Acceptance Criteria
|
|
<!-- AC:BEGIN -->
|
|
- [x] #1 Specialist audit stages run after evidence collection and before German copy
|
|
- [x] #2 Specialist findings include typed evidence refs and unsupported claims are rejected
|
|
- [x] #3 Verified findings are persisted separately and surfaced on audit detail pages
|
|
- [x] #4 Quality review blocks when either model QA or German copy guard fails
|
|
- [x] #5 Skill summaries use real registry purpose or instructions
|
|
- [x] #6 Schema, evidence, action-source, persistence, quality gate, and UI tests pass
|
|
<!-- AC:END -->
|
|
|
|
## Implementation Plan
|
|
|
|
<!-- SECTION:PLAN:BEGIN -->
|
|
1. Add RED tests for specialist schemas, evidence IDs, action ordering, persistence, QA gates, and UI rendering
|
|
2. Implement schema validators and evidence ledger helpers
|
|
3. Add auditFindings persistence and detail query joins
|
|
4. Wire specialist fan-out stages and evidence verifier before German copy
|
|
5. Make qualityReview model invalid state blocking and improve skill summaries
|
|
6. Update audit detail UI to render findings with evidence chips
|
|
7. Run focused tests, typecheck, and full test suite where feasible
|
|
<!-- SECTION:PLAN:END -->
|
|
|
|
## Implementation Notes
|
|
|
|
<!-- SECTION:NOTES:BEGIN -->
|
|
RED: pnpm exec tsc -p tsconfig.test.json fails because AuditEvidenceInput has no evidenceLedger and lib/ai/schemas exports no specialist/verifier schemas yet. This is the expected missing-feature failure.
|
|
|
|
GREEN: Focused audit fan-out/source/UI tests passed 67/67. Full pnpm test passed 384/384. Implemented specialist fan-out stages, evidence ledger, auditFindings persistence, blocking model+guard QA, real skill summaries, and findings-first audit detail UI.
|
|
<!-- SECTION:NOTES:END -->
|