modcomms/backend/app/agents
michael 3a5c3bcde3 Implement revision-aware proof analysis pipeline
When a subsequent revision of a proof is uploaded, the analysis now takes
place in context of the previous version's results. The system identifies:
- Resolved issues: fixed in the new revision
- Outstanding issues: still present from previous version
- New issues: introduced in the new revision

Key changes:
- Add resolvedIssues, outstandingIssues, newIssues fields to SubReview
- Add PreviousReviewContext model for passing previous review data
- Update all specialist agents to accept previous_review context
- Extend GeminiService with include_revision_fields parameter
- Add get_latest_version_review() repository method
- Update LeadAgent to synthesize cross-version context in summary
- Fetch previous analysis in WebSocket handler for revisions

First version analysis continues to work exactly as before with revision
fields set to null.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 10:04:16 -06:00
..
__init__.py Restructure agent system: remove Tone, split Channel, implement Legal 2026-01-24 11:58:17 -06:00
base_agent.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00
brand_agent.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00
channel_best_practices_agent.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00
channel_tech_specs_agent.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00
lead_agent.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00
legal_agent.py Implement revision-aware proof analysis pipeline 2026-01-25 10:04:16 -06:00