diff --git a/docs/architecture.md b/docs/architecture.md index 93ecc3e..8c1d00f 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -104,6 +104,7 @@ Important behavior details: - No module execution occurs despite `--modules` config support. - No LLM calls occur. - Success path is generally quiet on stderr. +- Source IDs are preserved into a canonical transcript before normalization; normalization then reassigns output IDs sequentially from `1`. ## Implemented data contracts @@ -206,6 +207,19 @@ Retention modes implemented in `ApplyRetention`: - `auto`: currently same as `never` for successful runs - failed runs are always retained +## Current tests and quality posture +Implemented tests currently cover: +- CLI argument handling and behavior (`internal/cli/run_test.go`) +- subprocess stdout/stderr and exit-code behavior (`cmd/audita/main_integration_test.go`) +- config/env/override validation (`internal/core/config/*_test.go`) +- transcript and glossary schema validation (`internal/core/schema/*_test.go`) +- deterministic normalization (`internal/core/normalization/*_test.go`) +- deterministic chunking and summaries (`internal/core/chunking/*_test.go`) +- proposal preview/apply semantics (`internal/framework/proposals/*_test.go`) +- contracts/foundation composition tests (`internal/framework/contracts/*_test.go`) + +Not covered yet (because not implemented): end-to-end module runner behavior, validator runtime flow, and real LLM integration. + ## Intended final architecture (not yet implemented) The intended end-state still matches the rewrite plan: - sequential module pipeline over a mutable working transcript diff --git a/docs/rewrite-notes.md b/docs/rewrite-notes.md index 4e7cd1e..f3acdcb 100644 --- a/docs/rewrite-notes.md +++ b/docs/rewrite-notes.md @@ -12,6 +12,7 @@ Implemented: - Per-run diagnostics directory plus normalization/chunking artifacts. - Minimal process report output (`--report-json` and run-dir `report.json`). - Framework foundation packages for contracts and proposal preview/apply semantics. +- Broad deterministic and CLI/subprocess test coverage for the implemented phases (`go test ./...`). Not yet implemented in runtime pipeline: - Module runner orchestration.