Files
narratio/docs/roadmap/audit/catalog.md
Eric Rakestraw adf4dc87e0
All checks were successful
ci/woodpecker/push/verify Pipeline was successful
Remove completed session restore planning documents
2026-12-02 18:01:37 +00:00

51 KiB
Raw Blame History

Consolidated Audit Catalog

Catalogued: 2026-12-01

Repository baseline: 191bd4342bc75246caf8bd3d65f33fb8f5f0b8df.

Scope And Use

This catalog accounts for 53 findings across all 11 audit reports in this directory, consolidated into 43 entries: one P1, twelve P2, and thirty P3. Every original finding belongs to one catalog entry. Original-entry links retain the detailed code references, evidence, alternatives, and qualifications.

The original source reports retain their historical open statuses and evidence. The catalog records subsequent verified remediation without changing those reports. Only audit documents changed between the first audit's code baseline and this review's baseline. The original evidence therefore concerns the same application code as it stood at the audit baseline; its limits still apply: source-established hazards are distinct from dynamically reproduced failures, and green tests do not disprove unexercised conditions.

Entries are ordered first by the highest source priority and then by likely consequence and breadth: data safety and lifecycle integrity, valid-workflow failures/resource pressure, followed by maintainability and smaller hygiene corrections. Ordering within a priority is a review judgment, not a new severity assessment or a measured production-impact ranking.

This is an inventory, not a staged implementation plan. Directions summarize the audits' possible remedies without closing unresolved operational choices. Required regression work is included with its associated production finding; the independent S3-upload test gap remains separate. Related entries identify shared change surfaces, not extra prerequisites.

Remediation Ownership And Remaining Decisions

Published-artifact import is implemented; Restore Internals describes its behavior. The audio-inputs roadmap records shared audio discovery and the approved multi-format extension of CAT-12. Disposition notes below relate findings to these features without expanding their scope. Unless assigned otherwise, a finding remains independent audit remediation. Shared code does not make a refactoring a prerequisite or assign the whole finding to a roadmap.

Seventeen entries are closed by the safety, transfer, audio discovery, S3 planning, prerequisite-history, publication-import, and associated documentation work; 26 remain open. Planned identifies an agreed remedy awaiting implementation. Potentially eliminated requires verification that the offending lifecycle is removed. Coordinate identifies shared changes, not a commitment that a related feature implements the entire finding. Findings close only after their relevant behavior or code removal is verified. Original audit reports, finding identities, priorities, and source links remain unchanged.

Directions for CAT-01, CAT-02, CAT-04, CAT-05, and CAT-09 reflect subsequent agreed choices. CAT-12 also reflects the approved audio selection and naming decisions. Other direction paragraphs retain the audit's candidate remedies; agreed choices and roadmap ownership are identified by the disposition notes.

Decisions on audio generation/size handling, subprocess completion, publication source lifetimes, and audio selection and naming are agreed and implemented. Topic 1 records cancellation-aware workspace lock waiting, now implemented. Remote checkpoint timing and failure handling are deferred, not decisions blocking publication import.

Consolidation Decisions

  • Production defects and their matching test gaps share entries: CN-01/TE-04, FC-02/TE-02, CN-03/TE-05, FC-01/TE-03, and EH-01/TE-06.
  • Repeated ownership findings share entries: CX-01/BN-04, CX-02/EQ-04, CX-05/EQ-03/BN-05, and CX-06/BN-03. The last entry retains CX-06's broader extraction-evidence consideration as well as publication.
  • Related but distinct problems remain separate: graph ownership versus repeated reverse-index construction; prerequisite selection versus history hydration; extraction protocol ownership versus large-function decomposition; transfer-size enforcement versus sibling-temp reuse; and manual-clean safety versus its dead file-target branch.
  • Cross-references in audit summaries are not counted again. Deliberately retained behavior, rejected generalizations, and areas with no actionable finding are outside this catalog.

Architecture Context

Narratio remains a fixed-stage orchestrator. The application coordinates invocations, locks, plans, stages, and restore; adapters own external transports. ConfigKit supplies completed configuration, CommandKit/ckconfig supply native CLI/inspection, and Narratio derives separate domain catalogs. Manifest-backed speaker/artifact checkpoints and valid supplied records govern product reuse. Publication selects immutable inventories through a current pointer, restore saves a merged local baseline last, and cleanup has a separate authorization/lifecycle. See the implemented overview and architecture policy.

Prioritized Findings

CAT-01 — P1: Coordinate whole-session deletion with active invocations

Status: Closed

Closure. The stable workspace lock and command wiring are covered by internal/artifacts/local_test.go and internal/app/clean_lock_test.go. Acquisition-path progress reporting and its command-level regression were completed in 89c8e5d; the review follow-up is resolved.

Disposition / owner. Independent locking remediation — the agreed direction permits one workspace-wide lock. Restore uses that coordination; locking remains a separate remediation. Cancellation-aware waiting is implemented and verified.

Original findings: CN-01, TE-04.

Original issue. Manual session clean and --all bypass session locking and can delete the in-tree lock pathname while a run, restore, or preflight still holds its inode. A new invocation can then lock a replacement inode and overlap the original writer. Existing cleanup tests never combine manual deletion with an active invocation.

Agreed remedy. Use a stable coordination identity or admission gate that survives deletion, including admission of new sessions during --all. Use cancellation-aware waiting and identify the lock being waited on. Add real-lock, controlled-interleaving coverage for deletion, a second contender, and cancellation while waiting. The already-locked final cleanup stage is a different operation.

Related: CAT-39.

CAT-02 — P2: Make restored carried products agree with manifest authority

Status: Closed

Closure. Inventory-based import records validated local supplied products without installing remote execution evidence. The publish–lock–generate–republish round trip for a transcript and configured artifact, downstream source resolution, and republishing are covered by import_workflow_test.go. Restore Internals describes the implemented product-import model.

Original findings: FC-02, TE-02.

Issue. After publishing A, locking its source, generating B locally, and republishing, the remote commit carries A while its session-manifest snapshot retains B's completion evidence. Restore can succeed with A's bytes and B's checksum/fingerprint authority; normal resolution then rejects the restored product. Separate publish/restore tests miss this interaction.

Direction. Use publication import and locally synthesized completion instead of restoring historical execution evidence. Retain publish–lock–regenerate–republish–restore–resolve round trips for built-in and configured outputs, verifying usable restored products without reconstructing their historical generation fingerprints or provenance.

Related: CAT-20.

CAT-03 — P2: Enforce non-forced session creation at the write boundary

Status: Closed

Closure. Exclusive local creation and conditional remote upload are covered by internal/app/session_init_conflict_test.go.

Original findings: CN-02.

Original issue. Local stat-then-write and remote Exists-then-unconditional-upload allow concurrent session init calls to overwrite a destination without --force. Both can report success; local writes can also truncate or mix content.

Agreed remedy. Use exclusive local creation and the existing remote absence precondition for non-forced writes. Keep deliberate forced replacement separate and test competing creators. A preliminary existence check may inform diagnostics but cannot authorize the later write.

CAT-04 — P2: Bind prepared S3 audio bytes to their observed generation

Status: Closed

Closure. Response-bound audio identity, replacement, reuse, and rollback are covered by internal/audio/s3_audio.go and internal/stage/prepare_test.go.

Disposition / owner. Independent audio-acquisition remediation — discussion topic 4 selects accepting the raw-audio generation actually downloaded; this is implemented and verified. This is separate from the audio-inputs roadmap's discovery changes. Publication import relaxes generation-history requirements for imported products, not source identity for local audio reuse.

Original findings: CN-04.

Original issue. Preparation records listing metadata from generation A but can download same-sized generation B. Its checksum then describes B while source provenance describes A, allowing incorrect reuse after a remote rollback.

Agreed remedy. Retain metadata from the same opened response as the streamed body. Accept and record that observed raw-audio generation when the download passes existing acquisition checks, even if it differs from the earlier listing. Test replacement between listing and reading, including rollback/reuse. This corrects per-object consistency without a whole-session snapshot guarantee or automatic retries until sources stop changing.

Related: CAT-06.

CAT-05 — P2: Retain subprocess and stream ownership through delayed completion

Status: Closed

Closure. Waiter joining and delayed output ownership are covered by internal/adapters/subprocess/execution.go and execution_test.go.

Disposition / owner. Independent subprocess remediation — discussion topic 5 selects joining process/output completion after bounded termination escalation, before releasing resources; this is implemented and verified. Publication import does not remove downstream process ownership.

Original findings: CN-03, TE-05.

Original issue. The exceptional final reap timeout can return without receiving the wait result. ProcessState inspection, redactor flushing, diagnostic closure, and caller-owned result-file closure can then overlap a still-active waiter or stream copier. Current tests exercise ordinary shutdown or pre-populated completion, not delayed completion beyond escalation.

Agreed remedy. Retain bounded graceful-to-forceful escalation, then join process and output completion before reading process state, flushing/closing diagnostics, or returning resource ownership to callers. Add a controlled delayed-wait/stream test for release ordering and preserved error causes. Exceptional I/O delays can outlast escalation timers; no absolute return-time guarantee or early-return ownership handoff is required.

CAT-06 — P2: Stop known-size downloads before oversized bodies exhaust staging space

Status: Closed

Closure. Bounded response streaming and consumer regressions are covered by internal/adapters/storage/stream_test.go, internal/app/restore_commit_test.go, and internal/stage/prepare_previous_test.go.

Disposition / owner. Coordinate — restore uses verified downloads. Transfer-size enforcement remains a separate audit remediation across all listed callers. Discussion topic 4 approves bounded known-size streaming with existing unknown-size behavior; this is implemented and verified.

Original findings: RS-02.

Original issue. Restore, previous-input hydration, S3 audio, and immutable-object verification can know the expected size yet copy the entire body before rejecting oversize. Invalid responses can fill temporary storage and hold the session lock unnecessarily.

Agreed remedy. Enforce the existing known size during transfer, with correlated response metadata and size-plus-one detection, then close/remove failed staging. Retain checksum/generation checks and installation ordering. Test early rejection and destination preservation; a declared zero size is known. Unknown-size audio needs no newly invented universal cap.

Related: CAT-04, CAT-21.

CAT-07 — P2: Correct recovery instructions that publish before inspection

Status: Closed

Closure. Inspection-first regeneration and the mutating retry are corrected in docs/troubleshooting.md; documentation checks pass.

Disposition / owner. Coordinate documentation — recovery guidance reflects publication import. Explicitly verify the inspection-before-publication sequence; a restore documentation rewrite alone does not close this finding.

Original findings: DOC-01.

Original issue. Troubleshooting's unsupported-manifest recovery invokes a full run, then force publish, while describing inspection before explicit publication. The first command can already publish and run authorized cleanup. A separate diagnostics block also includes a mutating forced publish.

Agreed remedy. For inspection-first recovery, bound regeneration through analyze, inspect, and then publish. Alternatively, describe the full run's publication/cleanup effects accurately. Move publication retries out of the inspection-only diagnostics sequence. This is a documentation correction, not a new command confirmation or publication restriction.

CAT-08 — P2: Stream local audio copies instead of buffering whole recordings

Status: Closed

Closure. Streaming atomic input copying and replacement behavior are covered by internal/stage/prepare.go and prepare_copy_test.go.

Disposition / owner. Independent copy-resource remediation — coordinate with the audio-inputs roadmap, which reuses the copy path. Multi-format discovery does not remove whole-file buffering.

Original findings: EF-01.

Original issue. The changed/missing local-copy path hashes a recording, reads all its bytes into memory, then writes them atomically. One large speaker file therefore requires recording-sized auxiliary RAM despite sequential processing.

Agreed remedy. Use the existing streaming artifact/file-copy mechanism while preserving unchanged-destination checks, naming, workspace modes, atomic visibility, and recorded checksums. The improvement is O(1) auxiliary buffering relative to file size, not asymptotically faster I/O. No new audio-size limit is required.

CAT-09 — P2: Bound publication's simultaneously open source descriptors

Status: Closed

Closure. Sequential confined source transfers, same-handle uploads, and pointer preservation are covered by internal/stage/publish_transfer.go and publish_lifetime_test.go.

Disposition / owner. Independent publication-resource remediation — coordinate with the publication's snapshot removal. Removing one manifest source does not bound the remaining descriptors; discussion topic 6 selects sequential source opening, verification, upload, and closure, accepting late-source failure after unselected uploads. This is implemented and verified.

Original findings: RS-01.

Original issue. Publication retains descriptors for every run file, previous-cache source, selected output, and committed manifest until its final defer, although uploads are sequential. Valid larger inventories can exhaust lower process descriptor limits before transfer begins.

Agreed remedy. Plan identities, destinations, and rules upfront; then open, verify, upload, and close sources one at a time. Preserve confined regular-file opening, checksum checks, and hashing/uploading through the same descriptor. Validating every source before any upload is no longer required. A late invalid source may leave an unselected attempt, while pointer-last publication preserves the current selection on failure. No artifact-count cap, source-snapshot system, or new cleanup subsystem is needed.

Related: CAT-14.

CAT-10 — P2: Hydrate previous inputs for the full analysis prerequisite closure

Status: Closed

Closure. The shared closure and prerequisite-inclusive history collector were implemented in a057ce3 and 7a25a50. Preparation-to-analysis and semantic resume regressions landed in 76f9918, with restore, status, and preflight coverage in 663e02e. Reference preparation retains its separate acquisition and workflow boundaries.

Original findings: FC-01, TE-03.

Original issue. Preparation and previous-cache restore collected history requirements from enabled/explicit targets only, while analyze separately scheduled prerequisites. A prerequisite's required history could remain unavailable despite an available remote product; optional history could disappear silently. Existing tests covered these mechanisms separately.

Implemented direction. A shared prerequisite-inclusive requirements view feeds preparation, semantic evidence, store composition, and restore. Explicit targets remain separate for force and publication. Regression tests cover selected children and disabled prerequisites, required and optional history, unrelated-work exclusion, and restore.

Related: CAT-17.

CAT-11 — P2: Verify the bytes supplied to the production S3 upload adapter

Status: Closed

Closure. SDK-boundary upload bytes and reader failures are covered by internal/adapters/storage/s3_backend_test.go.

Original findings: TE-01.

Original issue. The SDK fake records upload requests without consuming their bodies. Replacing the production body with unrelated fixed bytes survived the full suite; higher-level storage fakes bypass that mapping. This is a demonstrated protection gap, not a finding that the unmodified adapter sends wrong bytes.

Agreed remedy. Consume and compare upload bytes in the narrow SDK fake for file and conditional-reader uploads, retaining key/precondition assertions and appropriate stream-error coverage. A local HTTP SDK test is an alternative; live S3 is unnecessary.

CAT-12 — P2: Share audio discovery and accept valid same-basename recordings in inspection

Status: Closed

Disposition / owner. Implemented and verified under the audio-inputs roadmap and discussion topic 7.

Closure. internal/audio owns local and S3 selection, prepared names, and speaker-ID collision checks. Preparation, reuse, and inspection consume these selections; transcription accepts manifest-selected files and uses the shared filter for fallback. Audio discovery and real preparation/inspection tests cover same-basename and mixed-format selection; transcription retry and WhisperX HTTP and replay tests cover durable reuse and byte-preserving transport. Full tests, race tests, vet, and build pass on Go 1.27.4.

Original findings: CX-01, BN-04.

Issue. Preparation and operator inspection independently implement source resolution, filtering, eligibility, duplicates, and ordering. Preparation preserves distinct same-basename recordings with unique prepared names; inspection rejects them. The audits also identify differing duplicate-path and file-eligibility handling.

Direction. Give read-only audio selection a shared owner, preferably internal/audio. Keep materialization and checkpoint transitions in preparation and reporting in app. Apply the approved regular-file requirement and the roadmap's shared case-insensitive filter for automatic discovery; explicit local file selections and manifest-registered audio remain extension-agnostic. Preserve duplicate-resolved-source rejection, existing local prepared-name disambiguation, and the separately selected S3 basename rule. Retain stem-based speaker IDs and reject remaining cross-extension stem collisions during discovery, identifying both sources after existing disambiguation. Verify consistent mixed-format selection, downstream acceptance, transport, and local retry across consumers without imposing backend codec guarantees.

Related: CAT-13.

CAT-13 — P2: Give S3 session planning the evidence needed for truthful reuse decisions

Status: Closed

Disposition / owner. Implemented and verified under the planning/preflight decision.

Closure. Planning supplies the object store to the shared preparation validator for eligible S3 reuse. Unavailable evidence reports an unverified source and preserves the normal rerun. The application regressions in plan_s3_test.go and session_readiness_test.go cover observed reuse, change, access failure, and preflight cancellation; prepare_resume_test.go covers unavailable and insufficient identity evidence. Full tests, race tests, vet, and build pass on Go 1.27.4.

Original findings: FC-03.

Original issue. The planning projection omits the object store needed to inspect S3 audio identities. Resume converts that missing collaborator into 'inputs changed', so plan can predict prepare reruns and dependent invalidation while actual execution reuses identical evidence.

Direction. Supply read-only remote identities to the shared planning decision, or explicitly report conditional/unverified evidence if remote inspection is intentionally unavailable. Test unchanged, changed, and unavailable identities while proving no workspace mutation. Keep this distinct from local audio discovery disagreement.

Related: CAT-12.

CAT-14 — P3: Close temporary committed-manifest cleanup gaps

Status: Closed

Closure. Publication no longer creates or uploads a temporary session execution-manifest snapshot; the inventory commit is encoded and written by publish_commit.go. The removed temporary-file lifecycle and its ownership gap no longer exist. Publication tests verify that no execution ledger is emitted.

Original findings: RS-03.

Issue. Publication can orphan a system-temp committed-manifest file when writing/closing fails or opening it fails before the transfer collection accepts ownership. These files are outside run-history cleanup.

Direction. Make the creator own removal immediately, and retain caller cleanup until transfer ownership is explicit. Exercise write/close/handoff failure paths. Straightforward deferred cleanup suffices; this is distinct from intentionally retained attempt diagnostics.

Related: CAT-09, CAT-21.

CAT-15 — P3: Preserve input-error classification for resolved domain validation

Status: Open

Original findings: EH-01, TE-06.

Issue. Cross-document storage/audio conflicts and product-destination collisions return ordinary errors, so commands exit 1 instead of the documented identifiable-input status 2. Existing tests check rejection or synthetic markers but do not carry these real failures through the CLI.

Direction. Use a narrow cause-preserving domain input marker at the rejection/classification boundary, or integrate suitable checks with native validation diagnostics. Add real-command cases for both conflicts, valid counterparts, and joined operational/cancellation precedence. Environmental failures stay operational; no new validation rule is needed.

CAT-16 — P3: Flatten inspection-error aggregation

Status: Open

Original findings: EF-05.

Issue. Repeated errors.Join(previous, next) creates a left-nested publication-inspection error tree. Formatting F bounded-size failures takes quadratic cumulative copying and linear nesting, particularly during storage outages.

Direction. Collect ordered failures and join once. Preserve per-output details, partial results, and errors.Is/errors.As causes. Existing preflight collectors provide a local pattern.

Related: CAT-25.

CAT-17 — P3: Centralize configured-artifact dependency queries

Status: Open

Disposition / owner. Independent dependency-refactoring owner — restore coverage uses a fixed stage/output coverage mapping, not this configured-artifact graph. Do not make graph consolidation a prerequisite; coordinate only where existing artifact reconciliation is actually changed.

The CAT-10 work moved the existing prerequisite closure, ordering, and dependency normalization to internal/artifacts; broader graph ownership and dependent queries remain open.

Original findings: CX-05, EQ-03, BN-05.

Issue. One derived edge relation has separately maintained normalization, validation adjacency, topological ordering, prerequisite traversal, and reverse-edge mechanics. Targets-only selection is easily confused with required work, as the history-hydration defect illustrates.

Direction. Expose a small validated dependency view alongside the derived artifact catalog, or a narrow key/edge package if dependency direction requires it. Share deterministic order, closure, and dependent queries while retaining origin diagnostics and caller-owned force/reuse/invalidation policy. Keep configuration definitions, runtime availability, and the fixed stage relation distinct.

Related: CAT-10, CAT-18.

CAT-18 — P3: Reuse the analysis reverse-dependency index within an invocation

Status: Open

Original findings: EF-02.

Issue. Each new/changed completion rebuilds and sorts the unchanged reverse graph. Independent artifacts still incur quadratic setup work. This performance issue can be fixed independently of broader graph ownership.

Direction. Construct the immutable reverse index once and reuse it for success/failure invalidation. Preserve traversal ordering, eligibility, and invalidation timing. Complete-collection checkpoint costs remain separate.

Related: CAT-17.

CAT-19 — P3: Describe stable prepared products once for materialization and reuse

Status: Open

Disposition / owner. Coordinate — reference preparation supports imported products and reuse. Review the shared stable-product description there to avoid another parallel inventory; the import feature does not itself perform this consolidation or replace evidence for locally prepared products.

Original findings: CX-02, EQ-04.

Issue. Preparation, party/player writing, resume reconstruction, managed-kind matching, and semantic presence repeat stable-product inventories and dependency mappings. Existing renderers and source descriptors are already shared, but callers can omit different products.

Direction. Use a small stage-owned read-only product description backed by current descriptors, with separate write and expected-evidence projections. Preserve snapshot normalization, combined-glossary dependencies, source relocation, ConfigKit immutability, and bounded presence-only fingerprinting. Keep audio and previous acquisition explicit and retain independent literal inventory/corruption tests.

Related: CAT-34.

CAT-20 — P3: Share typed publication control evidence across producer and consumers

Status: Open

Disposition / owner. Coordinate — inventory-based import changed publication consumers and extraction availability. Typed local control evidence remains a separate simplification; neither snapshot removal nor import completion automatically centralizes the remaining codecs.

Original findings: CX-06, BN-03.

Issue. Publish writes map-based completion/outcome evidence; cleanup and app inspection independently reconstruct keys, status strings, types, and in-memory versus JSON-decoded collection shapes. Extraction has a related producer/reader metadata boundary.

Direction. Start with narrow typed publication values and codecs under an existing shared owner, preserving the JSON shape. Keep cleanup authorization and tolerant display policy at their callers. Apply the same treatment to extraction evidence where useful; leave free-form diagnostics flexible. Test direct and persistence-round-trip use. Typing does not resolve carried-product authority.

Related: CAT-02.

CAT-21 — P3: Share closed sibling-temporary-file creation mechanics

Status: Open

Disposition / owner. Coordinate — restore retains staging and validation before installation. Reassess the common mechanics across the surviving download callers; helper extraction remains separate from both product import and CAT-06's transfer bounds.

Original findings: EQ-02.

Issue. Audio, previous-input hydration, and ordinary restore repeat creating, writing, closing, and error-cleaning a sibling temporary file before domain-specific verification and installation.

Direction. Use a small internal/fileops helper returning an owned closed temporary path, or a narrowly scoped cleanup callback. Keep selection, cancellation, validation, root confinement, and installation with callers. Atomic reader-copy helpers that install before validation are not substitutes. Retain representative consumer failure/retry tests.

Related: CAT-06, CAT-14.

CAT-22 — P3: Share the minimal transcript-envelope predicate

Status: Open

Original findings: EQ-01.

Issue. Seriatim, Audita, stage acceptance, and artifact resolution independently implement the same JSON top-level segments array check. Their surrounding filesystem and diagnostic rules legitimately differ.

Direction. Prefer a byte-oriented predicate in existing internal/contracts, leaving acquisition, bounds, file eligibility, and contextual errors at each boundary. Preserve empty arrays and unrelated members; do not impose segment IDs or a universal downstream schema. Keep independent literal fixtures and representative adapter/consumer tests.

CAT-23 — P3: Move Notarius native output mapping and executable lookup to their boundary

Status: Open

Original findings: BN-02.

Issue. Stage code implements Notarius lane-ID sanitization and native bundle filenames, and performs executable discovery shared by execution and readiness. These are external-protocol/launch details rather than Narratio product policy.

Direction. Move native mapping to the existing adapter through a narrow resolver or requested-output result contract; route executable selection through adapter/composition. Stages retain required-lane selection, canonical names, collisions, confinement, bounded JSON checks, checksums, and promotion. This ownership correction is distinct from decomposing the large stage functions.

Related: CAT-24.

CAT-24 — P3: Separate trim/extract invocation phases from product acceptance

Status: Open

Original findings: CX-03.

Issue. Large stage entry points interleave layout, disabled branches, debug rendering, native execution, validation, promotion, and metadata. Extraction readiness and execution also repeat resolved invocation options.

Direction. Extract cohesive typed operations and shared invocation options, keeping explicit orchestration and one final acceptance path where behavior is shared. Preserve validation before promotion, post-call reference verification, and failure diagnostics. Avoid a generic stage framework or helpers that only relocate statements.

Related: CAT-23.

CAT-25 — P3: Separate inspection/readiness collection, assessment, and presentation

Status: Open

Disposition / owner. Coordinate — publication import supports inspection and readiness for supplied inputs. The broader separation of collection, assessment, and presentation retains independent audit ownership; do not require it before adding coverage-aware decisions.

Original findings: CX-04.

Issue. Operator entry points mix local/remote evidence acquisition, independent probes, preparation outcomes, cancellation, policy interpretation, and report mutation. Scriptorium discovery interpretation is interleaved with transport iteration.

Direction. Collect cohesive typed results, isolate tool-specific readiness and pure requirements interpretation, then project the existing reports. Preserve partial findings, independent work after ordinary failures, preparation-blocked checks, cancellation, read-only inspection, and preflight effects. No check registry or stronger readiness rule is required.

Related: CAT-16.

CAT-26 — P3: Place diagnostic-view layout grammar with canonical workspace paths

Status: Open

Original findings: BN-01.

Issue. Fileops constructs and recognizes Narratio-specific run/stage/log/debug/probe paths independently of the canonical path owner. A layout change therefore spans file mechanics and multiple domain callers.

Direction. Move the existing view operation to internal/artifacts and its path model, or consider a focused workspace owner if the broader extraction is justified. Keep ordinary root-scoped file mechanics in fileops and attempt/cleanup decisions in callers. Retain advancement, failure, self-skip, reuse, and confinement coverage.

CAT-27 — P3: Index repeated previous-input and prepared-record lookups

Status: Open

Disposition / owner. Coordinate — inventory-based import changed previous-input discovery and prepared-record consumers. Reassess the surviving scans after those changes; inventory-only selection does not by itself remove repeated linear lookups.

Original findings: EF-03.

Issue. Requirement resolution repeatedly scans remote commit declarations, local input identities are repeatedly selected from manifest lists, and optional-absence reporting repeatedly searches skipped names.

Direction. Build phase-local source/kind indexes and skipped-name membership sets (or use appropriate sorted lookup). Keep one selected commit, candidate multiplicity, ambiguity checks, deterministic result order, and content verification. Index selection rather than caching payloads across invocations.

CAT-28 — P3: Index restore report action updates

Status: Open

Disposition / owner. Coordinate — restore reporting remains implemented. Carry or index action identity if that path is changed; new manifest construction alone does not fix quadratic report updates.

Original findings: EF-04.

Issue. Each restored object's success/failure searches the report's full action list, yielding quadratic bookkeeping when all actions download.

Direction. Use a private composite-key-to-report-index map or carry the original index with execution actions. Preserve report order and shape and the separate manifest-last installation order.

CAT-29 — P3: Correct force-after-enablement guidance

Status: Closed

Closure. Operations explains automatic reassessment of observable enablement/configuration changes, explicit force for current-result replacement or private changes, and independent supplied coverage.

Original findings: DOC-02.

Issue. Operations says newly enabled/configured render, publish, or analyze requires force, contradicting current fingerprints and reconciliation.

Direction. Explain automatic reruns for observable configuration changes when the affected stage is selected. Reserve force guidance for intentional current-result replacement or private upstream changes. Link to canonical resume descriptions rather than repeating stale behavior.

CAT-30 — P3: Correct internal resume and fingerprint descriptions

Status: Closed

Closure. The focused analyze, prepare, and manifest descriptions now distinguish diagnostic render-debug, provenance-only input ownership, and prepare's durable-copy and current-source checks.

Original findings: DOC-03.

Issue. Analyze prose incorrectly includes debug selection in fingerprints; prepare prose includes source ownership/party mode; the manifest overview omits prepare's durable source/content validator.

Direction. Describe the current typed payloads and prepare's combined semantic/content checks, or shorten the overview to links to focused stage owners. Preserve diagnostic-only debug selection and provenance-only ownership. Correct prose without changing fingerprints to match it.

CAT-31 — P3: Correct annotated-example dependency, credential, and cleanup claims

Status: Open

Original findings: DOC-05.

Issue. Comments require redundant authored depends_on edges, label example S3 secret-reference names as defaults, and understate cleanup as one run's work directory.

Direction. State inferred input dependencies, operator-selected credential references, and whole-session run-history cleanup accurately. Link to the configuration/operations owners. YAML-loading tests cannot detect incorrect comments.

CAT-32 — P3: Document Seriatim reports as diagnostics

Status: Open

Original findings: DOC-04.

Issue. Merge and normalize output lists advertise canonical artifacts/ report files, while implementation retains reports in run-local logs and returns only canonical transcripts as substantive outputs.

Direction. Separate products from diagnostics and link to the workspace/retention owner. Keep the selected content taxonomy; moving reports back to canonical artifacts is not a prose fix.

CAT-33 — P3: Align credential-ownership descriptions with native ConfigKit startup

Status: Open

Original findings: DOC-06.

Issue. Internal fileops/adapter prose assigns credential precedence/mode responsibility to app and describes bootstrap during object-store construction. Actual acquisition delegates configured startup to ConfigKit before typed loading, and storage consumes resolved values.

Direction. Describe native startup at acquisition and link upstream for its semantics; link operations for operator-managed permissions. Remove stale credential-policy prose from file helpers. Do not restore duplicate bootstrap or filesystem enforcement in Narratio.

CAT-34 — P3: Include the combined glossary in prepared-input documentation

Status: Closed

Closure. Manifest, publication, and restore documentation include the combined document alongside the four individual envelopes. The manifest description retains Audita's four-envelope input distinction.

Original findings: DOC-07.

Issue. Manifest/publish/restore summaries count four retained glossaries, omitting the combined fifth envelope that is prepared, committed, and restored.

Direction. Include combined alongside party/campaign/setting/spells, preferably linking to one inventory instead of repeating counts. Audita intentionally receives four individual envelopes; keep that distinct.

Related: CAT-19.

CAT-35 — P3: Remove assertions on incidental serialization and validation order

Status: Open

Original findings: TE-07.

Issue. A metadata test freezes JSON object-member order and a campaign test with multiple invalid conditions freezes the first diagnostic. Valid internal reorderings fail despite equivalent contractual results.

Direction. Assert JSON structure/omissions and the intended validation condition without prescribing irrelevant order. Retain canonical-byte assertions where bytes actually define fingerprints or remote contracts; do not delete meaningful boundary tests.

CAT-36 — P3: Remove confirmed orphaned production and test helpers

Status: Open

Original findings: DD-01.

Issue. Reachability analysis and source review identify six disconnected production helpers and six unused test helpers across Notarius, cleanup, configuration, and fixtures.

Direction. Remove the exact source-listed declarations and newly unused imports/files. Retain live path/bundle validation, supported callbacks, and independent preparation assertions. Verify current references before deletion; no replacement abstraction or compatibility shim is needed.

CAT-37 — P3: Remove unused constants and retired workspace path fields

Status: Open

Original findings: DD-02.

Issue. Six disconnected constants and unused SessionPaths.ReportsDir/ConfigDir fields, assignments, and directory constants preserve obsolete names without providing runtime capabilities.

Direction. Delete only the listed inert model elements. Keep active artifact vocabulary and commit/path helpers. This does not authorize deleting session directories, changing layout, migrating sessions, or inventing an output fallback.

CAT-38 — P3: Remove inert extraction descriptor fields and nil-only plumbing

Status: Open

Original findings: DD-03.

Issue. Four extraction fingerprint fields are JSON-excluded and unused. An extraction evidence contract field has no non-nil producer and is passed through redundant extraction-only plumbing.

Direction. Remove those fields and extraction-only parameters/copies while retaining live analyze/catalog/manifest contracts. Existing fingerprint bytes can remain unchanged. No schema migration, stricter lane check, or retired configuration descriptor is needed.

CAT-39 — P3: Simplify manual clean to its live directory-only contract

Status: Open

Original findings: DD-04.

Issue. Both CLI cleaning modes always pass directory=true; file-target behavior and wrapper variants survive only through unit tests.

Direction. Use one live directory validation path and remove the forwarded mode, file-only branch, and obsolete wrappers/tests. Preserve confinement, symlink/root/traversal checks, dry runs, missing targets, and deletion scope. This simplification is separate from the workspace-lock remediation in CAT-01.

Related: CAT-01.

CAT-40 — P3: Remove the superseded publish-default mutation helper

Status: Open

Original findings: DD-05.

Issue. applyMissingPublishDestinations has only a test caller whose explicit destination makes the call a no-op. Production uses native ConfigKit normalization and the shared derivation directly.

Direction. Remove the obsolete writer and irrelevant call; retain derivation and explicit-destination protection through the live boundary. Do not alter configuration ownership or introduce new destination semantics.

CAT-41 — P3: Remove the duplicate normalized-transcript test

Status: Open

Original findings: TE-08.

Issue. Two differently named analyze tests have identical bodies and assertions for the same manifest-authoritative normalized source.

Direction. Keep one authority test and delete its exact duplicate. Retain neighboring source-kind and missing-input cases, which protect different behavior.

CAT-42 — P3: Discard the unused normalized-path result while retaining validation

Status: Open

Original findings: DD-06.

Issue. Input hashing reassigns a normalized relative path that is never used afterward; only the validation error matters.

Direction. Discard the unused return value explicitly. Preserve the normalization call and error check, which enforce live path confinement.

CAT-43 — P3: Correct the logging package summary

Status: Open

Original findings: DOC-08.

Issue. GoDoc advertises structured logger construction, but the package supplies a Reporter interface and nil-safe forwarding helpers, with presentation supplied by CommandKit.

Direction. Update the package summary or link to the implemented reporting owner. No logger constructor or new logging abstraction is needed.