MILTON.DocumentGenerator

Document Generator Service

MILTON.DocumentGenerator is 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 DocumentProcessingSaga for loop orchestration.
  • Pure Logic Cores: The Generation cores take input DTOs and IAIService to produce plain output DTOs.
  • S3 Claim-Checks: Large payloads travel via an S3 claim-check store.