MILTON.DocumentGenerator
Document Generator Service
MILTON.DocumentGeneratoris the message-only worker that runs MILTON’s AI document-generation pipeline. It orchestrates block processing with a Wolverine saga and does the actual AI work in pure, infrastructure-free cores. It owns no domain data — the API owns all document/block state.
Architecture Hub
Navigate to the sub-components:
- Contracts - Message definitions and API contracts.
- Domain - Plain old C# objects and domain models used internally.
- Features - Vertical slices containing the core logic (
Requirements,Scanners,TestCases). - Infrastructure - Infrastructure bindings, e.g., Notifications.
- Persistence - Entity Framework DbContexts for saga state and Wolverine tracking.
- Prompts - The markdown AI prompt templates.
- Sagas - The Wolverine orchestration saga (
DocumentProcessingSaga).
Core Principles
- Message-Only Orchestration: Uses
DocumentProcessingSagafor loop orchestration. - Pure Logic Cores: The
Generation corestake input DTOs andIAIServiceto produce plain output DTOs. - S3 Claim-Checks: Large payloads travel via an S3 claim-check store.