2.9 KiB
2.9 KiB
Audita Internal Overview
Scope
This document is the internal architecture entry point for developers and coding agents.
It summarizes:
- package boundaries;
- the main
processexecution path; - where to add new code safely.
Package Map
CLI and command orchestration:
internal/cli
Core deterministic components:
internal/core/configinternal/core/schemainternal/core/normalizationinternal/core/chunkinginternal/core/outputschemainternal/core/diagnosticsinternal/core/reportinginternal/core/modulecatalog
Framework orchestration and contracts:
internal/framework/contractsinternal/framework/modulesinternal/framework/proposal_generationinternal/framework/proposalsinternal/framework/runnerinternal/framework/validatorsinternal/framework/llminternal/framework/responseschemainternal/framework/structuredoutputinternal/framework/processreportinternal/framework/promptcontextinternal/framework/stagename
Domain implementations:
internal/modules/*internal/validators/*internal/prompts
Main Execution Path (audita process)
High-level flow:
- CLI loads effective config and validates CLI requirements.
- Run directory is created and invocation/effective config artifacts are written.
- Transcript/glossary files are loaded and parsed.
- Transcript is normalized and chunked.
runner.Runexecutes configured module instances.- Proposals are validated, applied deterministically, and serialized in selected output schema.
- Process report, utilization diagnostics, correction ledger, and retention decisions are finalized.
Boundary Summary
internal/core/*owns deterministic, reusable logic and persistence-independent rules.internal/framework/*owns orchestration contracts and reusable runtime plumbing.internal/modules/*owns module-specific proposal behavior and prompt usage.internal/validators/*owns validator composition and built-in chain assembly.internal/promptsowns embedded prompt assets and metadata registry.
Where To Add New Code
Add config fields:
internal/core/config
Add module behavior:
- one package under
internal/modules/<module_key> - registration/wiring through
internal/framework/modulesand config module list
Add validators:
- implementation under
internal/validators/<validator_key> - registry/chain wiring in
internal/validators
Add runtime orchestration behavior:
internal/framework/*(runner/proposal/validator/LLM plumbing)
Add CLI surface:
internal/cli