2026-07-04 03:07:56 +00:00
# Internal Overview
2026-07-26 13:26:20 +00:00
This document is the implemented component map for Notarius. Normative
2026-07-17 03:06:23 +00:00
boundaries and dependency direction belong in
2026-07-26 13:26:20 +00:00
[Architecture ](../policy/architecture.md ). User and operator contracts belong
in the [CLI ](../cli.md ), [Configuration ](../config.md ),
2026-07-17 03:06:23 +00:00
[Operations ](../operations.md ), and [integration contracts ](../integrations/ ).
2026-07-04 03:07:56 +00:00
2026-07-16 21:42:24 -05:00
## Execution Path
2026-07-04 03:07:56 +00:00
2026-07-26 13:26:20 +00:00
~~~
cmd/notarius -> internal/cli -> configuration and production composition
-> internal/framework/pipeline -> logical output files
-> internal/cli -> durable output and optional state/debug data
~~~
2026-07-04 03:07:56 +00:00
2026-07-26 13:26:20 +00:00
The CLI is the application boundary: it discovers configuration, composes
production registries and runtime collaborators, invokes the framework, and
places returned files. The framework resolves and prepares a fixed extraction
pipeline, then returns logical results without owning process behavior or
physical state roots.
2026-07-16 21:42:24 -05:00
2026-07-26 13:26:20 +00:00
## Components
2026-07-16 21:42:24 -05:00
2026-07-26 13:26:20 +00:00
| Area | Implemented owners | Responsibility |
2026-07-16 21:42:24 -05:00
| --- | --- | --- |
2026-07-26 13:26:20 +00:00
| Executable and command boundary | **cmd/notarius ** , **internal/cli ** | Process entry, command dispatch, configuration discovery, production composition, runtime collaborator setup, durable file placement, and user-facing reporting. |
2026-08-25 02:03:11 +00:00
| Build information | **internal/buildinfo ** | Resolves a stable linked release tag or build metadata for the diagnostic root version command. |
2026-09-13 17:26:57 +00:00
| Configuration | **internal/core/config ** | ConfigKit document definition, source-aware normalization, runtime conversion, structural validation, safe inspection, effective resolution, and resolved-composition redaction. |
2026-07-26 13:26:20 +00:00
| Generic models | **internal/core/source ** , **internal/core/artifacts ** , **internal/framework/contracts ** | Source documents and chunks, manifests and provenance, plus typed artifact, reference, validation, output, and structured-completion contracts. |
| Pipeline framework | **internal/framework/pipeline ** | Registries, profile and reference resolution, typed preparation, validation, retry coordination, ordered execution, handoff, and result assembly. |
| LLM and prompt runtime | **internal/framework/llm ** , **internal/framework/promptfs ** | Provider-neutral structured completions, scheduling, profile recording, prompt assets, schema registration, and credential-shaped-value redaction. |
2026-08-09 17:05:17 +00:00
| Semantic reconciliation | **internal/framework/semanticreconcile ** | Bounded source-backed candidate preparation, request-local handle proposals, deterministic assessment, typed plan application, and reconciliation identity metadata; see [Module Internals ](modules.md#semantic-reconciliation ) and [D&D Module Internals ](dnd.md#semantic-registry-reconciliation ). |
2026-08-05 00:49:15 +00:00
| Embedded LLM content | **assets ** | Read-only centralized LLM-facing content, scoped by its consuming package; see [LLM Runtime ](llm.md#prompt-and-schema-assets ) and [D&D Module Internals ](dnd.md#prompt-construction ). |
2026-07-26 13:26:20 +00:00
| Runtime state | **internal/core/fileio ** , **internal/core/debugbundle ** , **internal/framework/checkpoint ** , **internal/framework/chunkplan ** , **internal/framework/chunkmap ** , **internal/framework/debug ** | Confined atomic files, debug bundles, checkpoint and chunk-plan state, accepted chunk maps, and pipeline-facing debug recording. |
| Production extensions | **internal/modules/generic ** , **internal/modules/seriatim ** , **internal/modules/dnd ** | Domain-neutral extensions, Seriatim input support, and D&D extraction families registered into the production catalog. |
Generic core and framework packages do not depend on production extensions.
Concrete extensions depend inward on their contracts and are registered only at
the CLI composition boundary.
2026-07-16 21:42:24 -05:00
2026-07-17 03:06:23 +00:00
## Focused Documentation
2026-07-16 21:42:24 -05:00
2026-07-26 13:20:18 +00:00
- [Configuration Internals ](configuration.md ): loading, validation, effective
resolution, redaction, and resolved-composition identity.
- [CLI Internals ](cli.md ): command dispatch, production composition, run
2026-07-26 13:26:20 +00:00
orchestration, and terminal reporting.
- [Pipeline Internals ](pipeline.md ): resolution, preparation, execution,
validation, typed handoff, and framework state hooks.
2026-07-18 13:08:27 +00:00
- [Run State Internals ](state.md ): output, cache, debug collaborator
composition, and path safety.
2026-07-26 13:26:20 +00:00
- [LLM Runtime ](llm.md ): structured completion, scheduling, prompt assets,
profiles, and secret handling.
2026-08-09 17:05:17 +00:00
- [Module Internals ](modules.md ): generic extension registration, artifact
families, module construction, semantic reconciliation, validation, and
reference mechanics.
2026-07-26 13:30:36 +00:00
- [D&D Module Internals ](dnd.md ): shared D&D extractor conventions, generated
reference projections, and lane-specific exceptions. Durable D&D and
Seriatim data shapes remain in the [integration contracts ](../integrations/ ).
2026-07-26 13:26:20 +00:00
Use this map to find an owner, then read the focused document and its tests
before changing behavior.