20 KiB
Documentation Consistency Audit
Reviewed: 2026-12-01
Baseline: 1b7742cd385c8852e058898ba1e25b928bc4eb9d
Scope And Evidence
The review compared current-facing documentation with the implemented code, focused tests, accepted ownership decisions, and the documentation policy. It covered the root and examples READMEs, CLI and configuration references, operations and troubleshooting, internal and integration documents, package/API comments, maintained YAML examples, development instructions, and the release/deployment instructions and automation. Narratio has no separate maintained container or service deployment recipe in this baseline.
The policy's current-behavior, canonical-owner, example-validity, and upstream documentation rules informed the findings. Code discovery used the knowledge graph, supplemented by source inspection where Go receiver-method indexing was incomplete. No production code, tests, configuration examples, or documents under review were changed.
Verification used Go 1.27.4 on Linux:
- Fresh
go test -count=1 ./...passed, including maintained-example loading, documentation-link checks, and release/workflow checks. go vet ./...and a temporary CLI build passed.- The production/testing walkthrough's validate, show, sources, diff, and artifact-catalog commands succeeded against the maintained local fixtures. Help for the root, plan, preflight, cleanup, and regeneration commands agreed with their documented command paths and installed selectors.
- Native inspection of the minimal pipeline confirmed the documented effective defaults, including the empty Audita output-schema selector and ordinary publish defaults. An explicit configuration in another example is not a different application default.
- A read-only check inspected 148 local Markdown fragment links. Its only apparent missing heading was an old profile heading linked from the historical v2.0.0 release note. Current-facing local targets passed the existing link test and this additional check. The existing test checks file existence, not heading existence or prose accuracy.
Commands used no live providers, paid APIs, remote publication, destructive cleanup, or release publication. Tests establish their exercised behavior; passing them does not validate every prose claim. External URLs were treated as references, not as evidence that current upstream services or tools were tested live.
Historical release notes were read as records of their tagged versions. Accepted ADR context and consequences were distinguished from current behavior references; the policy permits a decision to precede implementation. Existing audit records describe pending findings. None of these were treated as a claim that historical or proposed behavior must be implemented now.
Current Architecture
Narratio is a fixed-stage Go orchestrator:
prepare → transcribe → merge → polish → normalize → trim → render → extract → analyze → publish → notify → cleanup.
Notify is currently a no-op. The application owns CLI composition, acquisition,
session locking, planning, execution, and restore. ConfigKit owns configuration
resolution through its final handoff; Narratio derives separate domain catalogs
and plans. CommandKit and ckconfig provide native CLI and inspection behavior.
Stages coordinate WhisperX HTTP transcription, Seriatim transcript operations, Audita polishing, Notarius extraction, and Scriptorium bounds/analysis. Typed speaker and analysis checkpoints share a manifest persistence boundary. Manifest-backed product identities govern reuse and resolution. Completed products occupy flat transcript/artifact locations; run-local attempts retain diagnostics and expose latest-attempt views. Publication uploads immutable objects and a commit before advancing the current pointer. Restore verifies declared objects and installs the manifest last; authorized cleanup separately removes local run history. ReleaseKit owns native release mechanics.
DOC-01 — P2: Recovery examples publish before the stated inspection step
Status: Open
Documentation. Troubleshooting, lines 690–696,
instructs operators recovering an unsupported manifest to run an unbounded
narratio run, then force publish. The following sentence says to inspect the
regenerated records and publish explicitly. Its publish-failure section also
places run ... --stage publish --force in the Diagnostics block
(lines 884–889), alongside inspection commands.
Implementation and discrepancy. BuildFullPlan, line 127, and the canonical registry, line 61, include publish, notify, and cleanup in an unbounded run. The command can therefore advance remote current state before the proposed inspection, and can remove run diagnostics when automatic cleanup is enabled. The subsequent force publish is a second publication attempt. The command in the diagnostics block also performs publication rather than inspection. These effects agree with the CLI and operations guide, but not the recovery sequence implied by the troubleshooting text. The assembled full-run test checks the complete canonical order.
Correct behavior and remediation. If inspection before publication is the
intended recovery workflow, bound regeneration through analyze, inspect the
results, and then publish explicitly. Move the forced publish command from
diagnostics to the repair/retry step, identifying its remote mutation. A viable
alternative is to retain the full-run recovery example and explicitly describe
its publication and possible cleanup effects, removing the claim that
inspection precedes publication. This finding calls for truthful instructions,
not an additional CLI confirmation or publication restriction.
DOC-02 — P3: Operator guidance incorrectly requires force after enablement
Status: Open
Documentation. Operations, lines 196–201, says that successful no-output render, publish, and analyze results are reused on later runs and tells operators to force the stage after enabling or configuring it. This contradicts the same document's semantic-resume explanation and the focused render, publish, and analyze documents.
Implementation and discrepancy. Render enablement is included by
renderStage.SemanticConfigFingerprint in
semantic_contracts_refinement.go,
line 130. Publish enablement/upload policy is likewise fingerprinted in
semantic_contracts_delivery.go.
The sensitivity tests cover these changes. Analysis
resume reconciliation, line 13,
plans newly selected or newly enabled missing artifacts. The shared
execution decision, line 45, runs a
succeeded stage when its resume evidence is non-current without requiring force.
Correct behavior and remediation. An ordinary invocation selecting the affected stage detects these observable configuration changes. Force remains appropriate for intentional replacement of current results or private upstream changes Narratio cannot observe. Correct the operator paragraph and link to the focused evidence descriptions. Alternatively, replace the repeated enablement explanation with a short link to that resume contract. Preserve the distinction between successful no-output results and explicit self-skips.
DOC-03 — P3: Internal resume summaries describe obsolete fingerprint inputs
Status: Open
Documentation and implementation. Three related descriptions have drifted:
- Analyze, lines 79–83, includes effective
render-debug behavior in the artifact fingerprint. The payload and artifact
structs in analyze_fingerprint.go,
lines 49–63, contain no debug selection. The explicit
TestAnalyzeFingerprintIgnoresRenderDebugSelectiontest in analyze_fingerprint_test.go, line 136, verifies that toggling it preserves product identity. - Prepare, lines 67–73, includes stable-input ownership and a party mode in its fingerprint description. semantic_contracts_initial.go, lines 19–40 and 98–168, records stable input kind/presence and the players schema, not source ownership or a selectable party mode. Its source comment expressly keeps ownership as provenance. The sensitivity test verifies that changing source ownership or relocating equivalent sources preserves the fingerprint.
- Manifest, lines 275–289, lists extraction, analysis, and cleanup validators and describes prepare reuse as an aggregate fingerprint alone. Prepare also implements ValidateResume, line 36, checking current sources and durable prepared files. The nearby transcribe row already acknowledges its speaker reconciliation; the overview should distinguish these validators consistently.
Correct behavior and remediation. Debug selection and stable-input ownership alone do not change these product fingerprints. Prepare combines semantic configuration with content/source validation; its fingerprint alone does not establish reuse. Update the summaries from these current typed payloads and validator implementations. A smaller alternative is to remove duplicated field inventories from the manifest overview and link to each stage's corrected resume section. Do not change fingerprint contracts or add invalidation to satisfy the obsolete prose.
DOC-04 — P3: Seriatim reports are documented as canonical artifact outputs
Status: Open
Documentation. The output lists in
merge, line 16, and
normalize, line 14, advertise
artifacts/seriatim.report.json and
artifacts/seriatim.normalize.report.json.
Implementation and discrepancy.
merge.go, line 82, selects the run-local
logs directory for its report, and
normalize.go, lines 74–80, does the same.
Each stage returns only its canonical transcript as Outputs; an enabled report
is included in Logs. The reports are available through the corresponding
latest-attempt log view and follow run-history retention. They are not promoted
into the flat canonical artifact directory. The existing descriptions also
conflict with the content classification in
ADR 0001 and the
workspace reference.
Correct behavior and remediation. List the transcript as the substantive stage output and describe the optional report as a diagnostic. Link to the operations owner for physical placement and retention. Alternatively, give outputs and diagnostics separate subsections with that same ownership link. Moving report files back into canonical artifacts would reverse the selected workspace design and is not a documentation fix.
DOC-05 — P3: Annotated example comments retain obsolete contracts and defaults
Status: Open
Documentation. pipeline.full.annotated.yml contains three misleading annotations despite being valid executable YAML:
- Line 210 says configured-artifact input sources require matching authored
depends_onmembership. - Line 27 labels
OBJECT_STORAGE_KEY_IDandOBJECT_STORAGE_KEYas defaults. - Line 7 describes cleanup as removing a run-scoped work directory, omitting its current whole-session run-history scope.
Implementation and discrepancy.
resolveArtifactDependencies,
line 17, infers dependencies from configured-artifact inputs and unions them with
explicit ordering edges. The
dependency tests and
the maintained split bundle exercise input-only edges. These inputs do not
require a duplicate authored depends_on entry.
S3 credential references default to absent. The S3 constructor, line 77, uses explicit captured static values only when the pair is configured; otherwise the default provider chain is retained. The names in the example are operator-selected references, not automatically recognized defaults.
buildCleanupPlan, line 27, targets the session's entire runs directory after authorization. This includes earlier failed attempts and diagnostics, as correctly described in operations.
Correct behavior and remediation. Correct these comments and link to the configuration and cleanup owners where details are needed. An alternative is to remove volatile explanatory comments and retain only short labels plus those links. Example-loading tests validate the YAML and effective domain values; they cannot detect incorrect natural-language annotations. No new dependency, credential alias, or cleanup contract is needed.
DOC-06 — P3: Internal credential ownership descriptions predate native bootstrap
Status: Open
Documentation. File operations, lines 37–39,
assigns credential mode policy and environment precedence to internal/app.
Adapters, lines 85–88, says application-owned
object-store construction loads filesystem secrets before invoking the factory.
Implementation and discrepancy.
configurationAcquisition.Pipeline,
line 65, prepares the selected source before its typed load. The production
dependency in command_dependencies.go,
lines 29–36, delegates this to
configkit.LoadSecretsIntoEnvironmentFromConfig.
Object-store construction, lines 11–29,
only invokes the configured factory with already-resolved configuration; it
does not load or inspect credential files. Permission requirements are operator
policy in operations.
The stale descriptions assign implementation responsibilities to Narratio that the native integration deliberately moved upstream. They disagree with ADR 0003, the configuration reference, and configuration internals.
Correct behavior and remediation. Describe invocation acquisition as the caller of ConfigKit's configured startup, and the storage factory as a consumer of resolved values. Link to ConfigKit for bootstrap/precedence behavior and to operations for local credential permissions. Removing credential-policy prose from the generic file helper document is a viable simpler alternative. This does not call for restoring Narratio-side bootstrap, file-mode enforcement, or upstream configuration inspection.
DOC-07 — P3: Internal glossary inventories omit the combined prepared document
Status: Open
Documentation. Manifest, line 377, describes four prepared glossary kinds. Publish, line 64, and restore, line 40, likewise describe four prepared glossary documents carried across publication and restore.
Implementation and discrepancy. Preparation produces five envelopes:
party, campaign, setting, spells, and combined. The inventory in
prepare resume, line 57, verifies
all five. collectPublishPreparedInputs,
line 31, includes both the four individual descriptors and the combined
descriptor. The
prepared-input publication test,
line 61, checks all five remote declarations. The
committed restore test, line 46,
includes and restores glossaries/combined.yml.
The configuration reference, prepared source inventory, and prepare output list already describe the combined product. It is important to distinguish five retained inputs from the four individual glossaries intentionally passed to Audita.
Correct behavior and remediation. Update the manifest/publish/restore summaries to include the combined prepared input. Prefer linking to the prepared-input inventory instead of repeating counts in multiple documents. Explicitly listing five names in each location is viable but increases drift risk. Keep Audita's four-file invocation description unchanged.
DOC-08 — P3: Logging package documentation advertises a removed responsibility
Status: Open
Documentation. logging/doc.go, line 1, says the package provides structured logger construction.
Implementation and discrepancy.
logging.go defines the Reporter
interface and nil-safe Info/Warn/Debug/Progress forwarding helpers. It exposes
no logger constructor. Invocation presentation is supplied through the native
CommandKit boundary. The current
internal overview describes the small reporting
interface correctly.
Correct behavior and remediation. Update the package summary to identify the reporting interface and helpers. Alternatively, use a short reference to the implemented reporting owner. No logger factory or new logging abstraction is required; this is a stale GoDoc comment.
Existing Implementation Gaps And Audit Boundaries
Some documentation/implementation mismatches already have implementation findings. They remain pending rather than becoming additional prose fixes:
- EH-01 in the error-handling audit: identified domain configuration failures can exit 1 instead of the documented input status 2. Preserve the selected exit-status contract when fixing classification.
- CN-03 in the concurrency audit: the exceptional late-reap path can return before ownership settles, contrary to the documented subprocess lifecycle. Do not erase that selected ownership boundary merely to match the defective branch.
- FC-01/FC-02 in the correctness audit and CX-01 in the complexity audit cover previous-input dependency closure, carried-publication/restore authority, and inconsistent audio discovery. Those need their recorded implementation decisions and tests, not a general weakening of current manifest or input contracts.
The reviewed release runbook agrees with the module-selected ReleaseKit tool, release profile, CI toolchain, three build targets, delivery token mapping, and source-tag completion boundary. The maintained CLI command tree and native inspection walkthrough are current. No additional platform support, live upstream compatibility result, historical-note rewrite, or stronger runtime guarantee is proposed by this audit.
Review Outcome
Eight documentation findings warrant follow-up. Prioritize DOC-01's recovery sequence because it changes the consequences of copying the instructions. The remaining findings correct stale behavior, path, inventory, example, and ownership descriptions. Use the canonical owners and existing behavioral tests when updating them; no production-code changes are required to resolve these eight documentation findings.