2026-11-27 04:48:10 +00:00
|
|
|
# Adopt Audita v4.2, runtime glossaries, and diagnostic destinations
|
2026-10-04 12:28:09 +00:00
|
|
|
|
|
|
|
|
## Purpose
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Adopt Audita v4.2.0 directly for transcript polishing. Preserve Narratio's
|
2026-11-26 14:25:43 +00:00
|
|
|
orchestration and output validation while using Audita's native configuration,
|
|
|
|
|
processing, and reporting contracts. Place the corrected transcript, ordinary
|
|
|
|
|
reports, and optional debug evidence in their Narratio-selected destinations.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
This roadmap supersedes the v4.1 adoption proposal and records the agreed
|
|
|
|
|
runtime-glossary ownership boundary. It defines the target and required changes;
|
|
|
|
|
implementation stages belong in a subsequent plan.
|
2026-11-26 14:25:43 +00:00
|
|
|
The [workspace roadmap](workspace.md) owns shared layout, latest-attempt views,
|
|
|
|
|
and retention behavior. Its referenced ADRs remain Proposed.
|
|
|
|
|
|
|
|
|
|
## Reviewed Baseline and Upstream
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Narratio baseline: `3b1718c44fcd893dc8c91a9bfe3950653ed7f19e`.
|
|
|
|
|
The reviewed Audita v4.2.0 tag identifies commit
|
|
|
|
|
`973b24e46618dc785751fa7c803e7c16c900353f`.
|
2026-11-26 14:25:43 +00:00
|
|
|
|
|
|
|
|
Canonical upstream references:
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
- [v4.0 release notes][v4], [v4.1 release notes][v41], and
|
|
|
|
|
[v4.2 release notes][v42].
|
2026-11-26 14:25:43 +00:00
|
|
|
- [CLI][cli], [configuration][config], and [operations][operations].
|
|
|
|
|
- [Application schema v3 migration][schema-migration] and
|
|
|
|
|
[v4.1 migration][migration].
|
|
|
|
|
- [Subprocess integration][subprocess], [input contract][inputs], and
|
|
|
|
|
[output/report contract][outputs].
|
|
|
|
|
|
|
|
|
|
Audita remains a separately installed executable. Its current library versions
|
|
|
|
|
require no Narratio dependency upgrade for this adoption. Narratio's maintained
|
|
|
|
|
Go toolchain already meets Audita's source-build minimum.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
The separate [D&D recipe repository][recipes] was also reviewed at commit
|
|
|
|
|
`6d5e66dcfca4bb5971a8423332a19ce884b846c0`. Its overlays passed offline checks
|
|
|
|
|
against v4.2.0. Its README still describes the runtime interface as unreleased;
|
|
|
|
|
updating that upstream statement is a documentation follow-up, not an adapter
|
|
|
|
|
dependency. There is no remaining upstream feature blocker for the glossary
|
2026-11-27 14:09:11 +00:00
|
|
|
handoff or synthetic-transcript preflight. The Open Decisions below concern the
|
2026-11-27 14:26:25 +00:00
|
|
|
remaining configuration-contract choices.
|
2026-11-27 04:48:10 +00:00
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
## Current Narratio Behavior
|
|
|
|
|
|
|
|
|
|
The [Audita integration](../integrations/audita.md),
|
|
|
|
|
[polish internals](../internal/stage-polish.md), and
|
|
|
|
|
[configuration reference](../config.md#audita-selection-and-credentials)
|
|
|
|
|
describe implemented behavior:
|
|
|
|
|
|
|
|
|
|
- The adapter invokes `process` with the base transcript, `--glossary` pointing
|
|
|
|
|
to prepared `inputs/glossary.yml`, and a run-local transcript destination.
|
|
|
|
|
- Optional module selection uses `--modules`; omission, an empty list, order,
|
|
|
|
|
and repeated modules have distinct existing meanings.
|
|
|
|
|
- Config, overlay, proposal/validation profile, description, and transcript
|
|
|
|
|
output-schema selectors are forwarded when selected.
|
|
|
|
|
- The adapter supplies no debug, work-directory, or reporting flags. Ordinary
|
|
|
|
|
reports are discovered beside the staged transcript.
|
|
|
|
|
- Only a successful validated transcript becomes canonical. Available reports,
|
|
|
|
|
captured streams, and the invocation record are diagnostics.
|
|
|
|
|
- Configured credential references use shared exact-name forwarding and
|
|
|
|
|
captured-stream redaction.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Audita v4.2 rejects the current glossary and module flags. The old adapter and
|
2026-11-26 14:25:43 +00:00
|
|
|
new executable therefore require a coordinated cutover. The prior roadmap's
|
|
|
|
|
v3-only profile migration is insufficient.
|
2026-10-04 12:28:09 +00:00
|
|
|
|
|
|
|
|
## Targeted End State
|
|
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
### Native processing and configuration ownership
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Narratio invokes Audita v4.2's `process` command with explicit transcript input
|
2026-11-26 14:25:43 +00:00
|
|
|
and output paths, its existing supervisor timeout, and selected supported
|
|
|
|
|
resource/configuration overrides. Audita owns its application schema v3,
|
|
|
|
|
`pipeline.stages`, glossary collections, PromptKit resources, and processing
|
|
|
|
|
preflight. Narratio owns stage selection, input handoff, result validation,
|
|
|
|
|
manifest evidence, and promotion.
|
|
|
|
|
|
|
|
|
|
Retain independent downstream config and overlay selection. Narratio's pipeline
|
|
|
|
|
overlay does not imply an Audita overlay. Retain supported profile, description,
|
|
|
|
|
and transcript output-schema overrides with their upstream meanings: process
|
|
|
|
|
flags affect root settings, while explicit Audita per-entry settings retain
|
|
|
|
|
their native precedence.
|
|
|
|
|
|
2026-11-27 14:09:11 +00:00
|
|
|
Replace the removed `--glossary` interface with native runtime inputs. Retire
|
|
|
|
|
`pipeline.audita.modules` and its request/runner plumbing. Operator-maintained
|
|
|
|
|
Audita configuration owns `pipeline.stages`, including ordering, repetitions,
|
|
|
|
|
and normalization-only processing; Narratio prepares inputs and selects the
|
|
|
|
|
configuration. Do not translate the retired module list into generated config.
|
2026-11-26 14:25:43 +00:00
|
|
|
|
|
|
|
|
Audita checks selected profiles and glossary-correction entries before preparing
|
|
|
|
|
processing outputs or making model calls. Consume its ordinary outcomes and
|
2026-11-27 14:09:11 +00:00
|
|
|
diagnostics through Narratio's preflight orchestration rather than implementing
|
|
|
|
|
a second Audita processing-readiness engine.
|
2026-11-26 14:25:43 +00:00
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
### Runtime glossary handoff and ownership
|
|
|
|
|
|
2026-11-27 14:09:11 +00:00
|
|
|
Narratio owns domain-specific glossary selection, projection, and preparation.
|
|
|
|
|
ConfigKit owns generic resolution, imports, inheritance, and composition through
|
|
|
|
|
its native workflow. Audita owns final composition with its configuration,
|
|
|
|
|
interpretation of the supplied collections, and processing.
|
|
|
|
|
|
2026-11-27 14:58:02 +00:00
|
|
|
Narratio prepares four shared domain collections and supplies all four to Audita:
|
2026-11-27 14:09:11 +00:00
|
|
|
|
|
|
|
|
| Collection | Source and preparation |
|
|
|
|
|
| --- | --- |
|
|
|
|
|
| `party` | Project character IDs, names, and aliases from the required canonical party roster into Audita entries. |
|
|
|
|
|
| `campaign` | Prepare the operator's campaign glossary terms using Audita's native entry structure. |
|
|
|
|
|
| `setting` | Select and prepare reference vocabulary from a catalog using a setting ID, such as `forgotten_realms`. |
|
|
|
|
|
| `spells` | Select and prepare spell vocabulary from a catalog using a system ID, such as `5e`. |
|
|
|
|
|
|
2026-11-27 14:58:02 +00:00
|
|
|
These collections cover the anticipated vocabulary needs. Other subprocesses
|
|
|
|
|
may consume subsets or consumer-specific projections and combinations. Save all
|
|
|
|
|
prepared collections and projections as shared domain inputs with content
|
|
|
|
|
evidence, rather than private Audita-adapter files. Preserve named collections
|
|
|
|
|
where the consumer supports them; add a projection only for a demonstrated
|
|
|
|
|
consumer need, without a generic projection framework.
|
|
|
|
|
|
|
|
|
|
Catalog definitions belong in application/pipeline configuration, supplied by
|
|
|
|
|
the installed catalog's importable fragment. Campaign configuration selects the
|
|
|
|
|
setting, system, and campaign vocabulary. Session configuration may override
|
|
|
|
|
those choices through the existing campaign/session input model; omission
|
|
|
|
|
inherits the campaign choice.
|
|
|
|
|
|
|
|
|
|
Campaign vocabulary may be supplied by an external `glossary_file`, an inline
|
|
|
|
|
`glossary` collection with native `entries` and optional `instruction`, or both.
|
|
|
|
|
Use native ConfigKit import and composition semantics when both are supplied.
|
|
|
|
|
Both forms resolve to one campaign collection and share preparation, preflight,
|
|
|
|
|
and execution paths. Finalize external-file wiring and native precedence in the
|
|
|
|
|
configuration contract; do not introduce a separate merge mechanism.
|
|
|
|
|
|
2026-11-27 14:09:11 +00:00
|
|
|
Setting and system catalogs are configuration data mapping identifiers to
|
2026-11-27 14:26:25 +00:00
|
|
|
reference sources, extensible without Go changes or a custom loader. Each
|
|
|
|
|
identifier selects one entry file; that file may use native ConfigKit imports
|
|
|
|
|
to compose reusable fragments. The campaign selects its setting and system.
|
|
|
|
|
Unknown identifiers and unreadable selected sources fail early with contextual
|
|
|
|
|
diagnostics.
|
2026-11-27 04:48:10 +00:00
|
|
|
|
|
|
|
|
Narratio supplies prepared collection files with repeatable `--glossary-file`
|
|
|
|
|
arguments. Files use Audita's wrapperless native collection shape. A file may
|
|
|
|
|
contain multiple collections; input order is significant under the upstream
|
2026-11-27 14:09:11 +00:00
|
|
|
composition rules. Resolve selected vocabulary and imports with ConfigKit and
|
|
|
|
|
capture fully resolved, standalone glossary projections as prepared inputs.
|
|
|
|
|
Preserve collection boundaries, instructions, extensions, and native presence
|
|
|
|
|
semantics. Do not add Narratio-specific collision or merge rules.
|
2026-11-27 04:48:10 +00:00
|
|
|
|
2026-11-27 14:09:11 +00:00
|
|
|
Record prepared content evidence and supply the same prepared vocabulary to
|
|
|
|
|
preflight and processing. Preparation and resume use shared production paths;
|
|
|
|
|
polish consumes the prepared data rather than reopening live vocabulary sources.
|
|
|
|
|
Audita's private configuration and references remain downstream-owned. These
|
|
|
|
|
snapshots do not promise identical future model results.
|
2026-11-27 04:48:10 +00:00
|
|
|
|
|
|
|
|
Audita's runtime files preserve the selected main's companion discovery, overlay
|
|
|
|
|
context, and bootstrap. Supplying definitions does not select them; native root
|
|
|
|
|
and per-entry selections remain in Audita configuration. Narratio need not expose
|
|
|
|
|
new glossary/protection selection flags for this adoption.
|
|
|
|
|
|
|
|
|
|
Follow the [upstream configuration contract][config] at both composition
|
|
|
|
|
boundaries. Runtime files compose first; their supplied entry lists then replace
|
|
|
|
|
configured lists at CLI precedence while unrelated collections remain. Runtime
|
|
|
|
|
inheritance resolves within supplied files and imports, separately from application
|
|
|
|
|
inheritance. Final inspection records the CLI assignment; detailed file/import
|
|
|
|
|
provenance remains with the preliminary load. Use these native capabilities
|
|
|
|
|
without reconstructing effective Audita configuration or provenance in Narratio.
|
|
|
|
|
|
|
|
|
|
Audita's optional collection `instruction` field carries proposal guidance and
|
|
|
|
|
remains in the repair conversation. Preserve operator-supplied instructions;
|
|
|
|
|
domain guidance can live in the selected recipe. Narratio supplies the native
|
|
|
|
|
data format rather than maintaining Audita prompt templates or validator rules.
|
|
|
|
|
|
2026-11-27 14:58:02 +00:00
|
|
|
Notarius v0.9.0 adoption and upstream Notarius enhancements or feature requests
|
|
|
|
|
belong to a separate, subsequent roadmap. This scope establishes shared Narratio
|
|
|
|
|
inputs without prescribing that every consumer accept all four collections.
|
|
|
|
|
Reconcile existing uses of `glossary_file` and the monolithic glossary source
|
|
|
|
|
explicitly in the implementation plan; do not silently reinterpret downstream
|
|
|
|
|
bindings or add legacy format detection or conversion.
|
|
|
|
|
|
|
|
|
|
### Canonical glossary format
|
|
|
|
|
|
|
|
|
|
The reference-catalog repository owns the canonical interchange format document,
|
|
|
|
|
a versioned JSON Schema (for example, `schemas/glossary-v1.schema.json`), and
|
|
|
|
|
small valid and invalid examples. Narratio owns source selection, preparation,
|
|
|
|
|
and projection behavior and links to that format contract. A common format is
|
|
|
|
|
the intended basis for reuse across consumers; each consumer still owns its
|
|
|
|
|
interpretation and processing rules.
|
|
|
|
|
|
|
|
|
|
Start with Audita's existing wrapperless mapping of collection names to
|
|
|
|
|
collections. Define a reusable collection schema with `entries` and optional
|
|
|
|
|
`instruction`; entries retain native `id`, `name`, `category`, optional fields,
|
|
|
|
|
and supported extensions. Reuse that schema for inline campaign vocabulary,
|
|
|
|
|
individual collections, and documents containing multiple collections. The four
|
|
|
|
|
Narratio roles do not restrict the names allowed by the general format schema.
|
|
|
|
|
|
|
|
|
|
Validate decoded YAML data against JSON Schema after ConfigKit resolves imports,
|
|
|
|
|
inheritance, and composition. Do not require every authored fragment to satisfy
|
|
|
|
|
the complete-document schema. Integrate validation with shared acquisition and
|
|
|
|
|
preparation paths using existing library capabilities. Retain semantic checks
|
|
|
|
|
where needed, such as entry-ID uniqueness within a collection; schema validity
|
|
|
|
|
alone does not establish processing readiness.
|
|
|
|
|
|
|
|
|
|
Version the format separately from vocabulary releases. Identify the format
|
|
|
|
|
through its schema identity and documented contract, without inserting a
|
|
|
|
|
top-level version field into Audita's collection mapping. Consumers use a pinned,
|
|
|
|
|
locally available schema rather than fetching it during execution.
|
2026-11-27 04:48:10 +00:00
|
|
|
|
|
|
|
|
### D&D recipes and operator readiness
|
|
|
|
|
|
|
|
|
|
The external D&D recipe repository owns recipe role meanings, processing stages,
|
|
|
|
|
profiles, and domain guidance. Document selecting its production/testing overlays
|
|
|
|
|
as an operator workflow, with a selected recipe revision. Operators may maintain
|
|
|
|
|
their own Audita configurations and overlays. Preserve Narratio's independent
|
|
|
|
|
downstream selectors; choosing a Narratio overlay does not automatically select
|
|
|
|
|
a D&D recipe. Narratio does not bundle or regenerate the upstream pipeline.
|
|
|
|
|
|
2026-11-27 15:04:58 +00:00
|
|
|
### Preflight after preparation
|
|
|
|
|
|
|
|
|
|
Execution follows configuration acquisition and validation, `prepare`, preflight,
|
|
|
|
|
then processing beginning with `transcribe`. Run full native `audita preflight`
|
|
|
|
|
through `internal/preflight` when polish is projected to execute. Move existing
|
|
|
|
|
Scriptorium execution preflight checks to the same boundary, retaining their
|
|
|
|
|
target selection and finding policies. Preparation may complete or be reused;
|
|
|
|
|
preflight runs before the first selected processing stage that follows it.
|
|
|
|
|
|
|
|
|
|
Preflight is an invocation check, not a durable stage with reusable success.
|
|
|
|
|
Check relevant work on each invocation because credentials and provider readiness
|
|
|
|
|
can change. Bounded runs that omit `prepare` use the verified prepared inputs
|
|
|
|
|
they will consume, without implicitly preparing again. Missing prerequisites
|
|
|
|
|
produce actionable errors. Invocations with no relevant work invoke no downstream
|
|
|
|
|
preflight. `session plan` remains subprocess-free.
|
|
|
|
|
|
|
|
|
|
Preparation, including audio downloads, occurs before these checks. This accepts
|
|
|
|
|
preparation costs in exchange for checking actual prepared inputs before expensive
|
|
|
|
|
processing. Retain native Audita provider smoke checks; they may contact services
|
|
|
|
|
and consume usage.
|
|
|
|
|
|
|
|
|
|
`session validate` uses the same downstream checking paths against existing
|
|
|
|
|
prepared inputs, with Audita checked when polish is enabled. If required prepared
|
|
|
|
|
inputs are unavailable, report that preparation is needed. Do not implicitly run
|
|
|
|
|
`prepare`, download audio, or create candidate glossaries. Basic configuration
|
|
|
|
|
checks can still report their findings. Full validation performs native destination
|
|
|
|
|
probes and provider calls and is not described as read-only or offline.
|
2026-11-27 14:09:11 +00:00
|
|
|
|
|
|
|
|
Maintain one representative synthetic transcript as a Narratio-owned integration
|
2026-11-27 15:04:58 +00:00
|
|
|
asset, embedded in the executable with `go:embed`. Materialize it in invocation-
|
|
|
|
|
scoped temporary storage for Audita and clean it up afterward. It is not a shared
|
|
|
|
|
domain input or canonical session transcript. Supply it with the actual prepared
|
|
|
|
|
glossaries, selected configuration, overlay, profiles, credentials, processing
|
|
|
|
|
settings, and intended destinations.
|
|
|
|
|
Use ordinary prepared-input resolution and share adapter invocation construction
|
|
|
|
|
with production execution. Create destination parents required for Audita's
|
|
|
|
|
native probes. Preflight itself must not promote outputs, mark processing
|
|
|
|
|
complete, invalidate results, or advance latest-attempt views.
|
|
|
|
|
|
|
|
|
|
Any unsuccessful preflight stops processing with Audita's diagnostic explanation.
|
|
|
|
|
Completed preparation remains available for reuse, and any normal invalidation
|
|
|
|
|
caused by preparation remains in effect. Preflight failure does not roll back
|
|
|
|
|
those transitions. Consume native outcomes and captured diagnostics without parsing
|
2026-11-27 14:09:11 +00:00
|
|
|
human-readable reports into a second readiness model. No upstream extension or
|
|
|
|
|
relaxation of Audita's required processing inputs is needed.
|
|
|
|
|
|
|
|
|
|
Report the scope accurately: configuration and provider readiness were exercised
|
|
|
|
|
using synthetic transcript content. Audita still checks the actual transcript
|
|
|
|
|
when processing begins, and provider readiness can change afterward. A known-good
|
|
|
|
|
fixture is not compatible with every possible configuration; for example, a
|
|
|
|
|
requested section count may be infeasible for it. Such failures remain errors.
|
|
|
|
|
Address concrete fixture conflicts when encountered rather than adding
|
|
|
|
|
speculative fixture-generation or configuration-rewriting machinery.
|
2026-11-26 14:25:43 +00:00
|
|
|
|
2026-10-04 12:28:09 +00:00
|
|
|
### Products and diagnostics
|
|
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
Narratio supplies destinations for each actual polish attempt:
|
2026-10-04 12:28:09 +00:00
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
| Content | Target destination and control |
|
2026-10-04 12:28:09 +00:00
|
|
|
| --- | --- |
|
2026-11-26 14:25:43 +00:00
|
|
|
| Corrected transcript | Run-local staging via `--output`, followed by existing validation and promotion to `transcripts/polished.json`. |
|
2026-10-04 12:28:09 +00:00
|
|
|
| Ordinary reports | `runs/<run_id>/polish/logs/` via `--report-dir`. |
|
2026-11-26 14:25:43 +00:00
|
|
|
| Captured stdout/stderr and Narratio invocation record | The same run-local polish log directory. |
|
|
|
|
|
| Optional debug evidence | `runs/<run_id>/polish/debug/` via `--work-dir`; Audita may create its own nested run directory. |
|
|
|
|
|
|
|
|
|
|
Use the shared workspace path owner and create required destination parents
|
|
|
|
|
before invocation, as required by Audita's output contract. The workspace work
|
|
|
|
|
adds `logs/polish` and `debug/polish` latest-attempt views and retention protection.
|
|
|
|
|
The adapter uses actual run paths rather than maintaining its own link scheme.
|
|
|
|
|
Native adoption and explicit destinations can land before those shared views.
|
|
|
|
|
|
|
|
|
|
Discover `errors.yml`, `recoveries.yml`, and `report.md` in the requested report
|
|
|
|
|
directory, including available failure reports. Keep the existing transcript and
|
|
|
|
|
report bounds, path validation, and declared diagnostic publication behavior.
|
|
|
|
|
Reports remain optional diagnostics. A successful invocation can contain
|
|
|
|
|
recoverable model errors; a nonzero outcome, including a late report failure,
|
|
|
|
|
does not authorize transcript promotion merely because output bytes exist.
|
|
|
|
|
|
|
|
|
|
### Debug selection and ordinary production behavior
|
|
|
|
|
|
|
|
|
|
Add optional `pipeline.audita.debug`, defaulting to false. True requests
|
|
|
|
|
`--debug`; false or omission supplies no debug override. Supply `--work-dir`
|
|
|
|
|
to select the diagnostic destination without implicitly enabling capture.
|
2026-11-27 04:48:10 +00:00
|
|
|
Audita v4.2 enables retained capture through its debug CLI/reporting mode; this
|
2026-11-26 14:25:43 +00:00
|
|
|
roadmap adds no downstream YAML debug-enable setting.
|
|
|
|
|
|
|
|
|
|
Ordinary production operation supplies neither `--debug` nor `--reporting=false`.
|
|
|
|
|
Keep Audita's default reporting behavior and explicit downstream configuration
|
|
|
|
|
choices. No new Narratio reporting toggle or debug-disable override is needed.
|
|
|
|
|
Audita's new token-summary and live-progress flags need no Narratio controls for
|
|
|
|
|
this adoption.
|
|
|
|
|
|
|
|
|
|
Debug selection and destination changes alone do not invalidate a completed
|
|
|
|
|
transcript. Operators use the existing force workflow to obtain fresh evidence.
|
|
|
|
|
Keep full debug bundles local under the workspace roadmap's agreed behavior;
|
|
|
|
|
Narratio supplies the root and does not parse, repackage, or implicitly publish
|
|
|
|
|
their contents. Existing declared diagnostics retain their publication behavior.
|
|
|
|
|
|
|
|
|
|
### Credentials, failure handling, and compatibility
|
|
|
|
|
|
|
|
|
|
Retain Narratio's configured secret-reference resolution and exact-name
|
|
|
|
|
forwarding, including shared keys such as `OPENROUTER_API_KEY` and
|
|
|
|
|
`RAKESTRAWHOME_API_KEY`. Audita/PromptKit own backend credential selection;
|
|
|
|
|
Narratio does not enumerate private backend definitions or invent key aliases.
|
|
|
|
|
Audita's native ConfigKit bootstrap may supply child credentials according to
|
|
|
|
|
its own configuration. Preserve Narratio's captured-stream redaction; Audita
|
|
|
|
|
v4 does not provide application-wide credential substitution in arbitrary
|
|
|
|
|
diagnostic artifacts.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Use a clean v4.2 cutover with manual deployment configuration migration.
|
2026-11-27 14:09:11 +00:00
|
|
|
Do not add legacy parsers, automatic conversions, compatibility shims, or
|
|
|
|
|
version-dependent adapter branches anywhere in this adoption. Migration guidance
|
|
|
|
|
describes operator changes to the new contracts. Narratio continues to accept
|
|
|
|
|
success with recoverable model errors and preserves the original causes and
|
|
|
|
|
available evidence on failure.
|
2026-11-26 14:25:43 +00:00
|
|
|
Current treatment of older completed files after invalidation or failed
|
|
|
|
|
replacement remains unchanged.
|
2026-10-04 12:28:09 +00:00
|
|
|
|
|
|
|
|
## Required Changes
|
|
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
### Deployment migration
|
|
|
|
|
|
|
|
|
|
Replace Audita application schema v2 with schema v3 and native resource
|
|
|
|
|
definitions using the upstream guides. Move module order to `pipeline.stages`
|
2026-11-27 04:48:10 +00:00
|
|
|
and glossary definitions/selections to native collections and runtime inputs.
|
|
|
|
|
Preserve intended campaign terminology, including migration of
|
2026-11-26 14:25:43 +00:00
|
|
|
legacy `summary` context to `description` where applicable.
|
|
|
|
|
|
|
|
|
|
Remove obsolete confidence settings and prompt fields. Remove root and per-entry
|
|
|
|
|
`llm.repair_attempts`; selected prompts now own structural output contracts and
|
|
|
|
|
repair budgets. Audita's semantic correction-repair budget remains separate.
|
|
|
|
|
Its new semantic repair behavior and changed structural-repair default can
|
|
|
|
|
change model-call counts. Document budget review without imposing new Narratio
|
|
|
|
|
limits or silently overriding Audita's settings.
|
|
|
|
|
|
|
|
|
|
Operators maintain native prompts/profiles, production settings, and testing
|
|
|
|
|
overlays. Link upstream for formats, whole-record prompt replacement, bootstrap,
|
|
|
|
|
and validation commands. Narratio does not parse and rewrite private Audita
|
|
|
|
|
configuration. Explicit downstream paths remain useful for predictable selection.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
The v4.1-to-v4.2 release itself requires no configuration schema migration;
|
|
|
|
|
Narratio still needs the full transition from its v2 integration. Select and
|
|
|
|
|
install external D&D overlays independently when desired, following their own
|
|
|
|
|
contract and installation instructions.
|
|
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
### Narratio configuration, adapter, and polish integration
|
|
|
|
|
|
2026-11-27 14:09:11 +00:00
|
|
|
Replace obsolete glossary argument construction with the native prepared-file
|
|
|
|
|
handoff and remove the module-selection surface.
|
2026-11-27 04:48:10 +00:00
|
|
|
Update request types, composition, configuration validation/defaults, examples,
|
|
|
|
|
and the polish stage's required inputs together. Preserve supported selectors
|
|
|
|
|
and their omission semantics.
|
|
|
|
|
|
2026-11-27 14:09:11 +00:00
|
|
|
Prepare and record all four glossary collections under the shared input/path
|
|
|
|
|
owners. Bind polish's required inputs and semantic
|
2026-11-27 04:48:10 +00:00
|
|
|
evidence to the prepared content it actually consumes. Keep generated glossary
|
|
|
|
|
data separate from immutable resolved Narratio configuration. Final filenames,
|
|
|
|
|
projection details, and schema fields belong in the implementation plan once
|
2026-11-27 14:26:25 +00:00
|
|
|
the remaining configuration-contract choices are resolved. Use shared resolution/projection
|
2026-11-27 14:09:11 +00:00
|
|
|
helpers and reuse prepared content between preflight and execution rather than
|
|
|
|
|
independently rebuilding it for each path.
|
|
|
|
|
|
|
|
|
|
Extend `internal/preflight` and the Audita adapter for native preflight with the
|
|
|
|
|
maintained synthetic transcript. Reuse execution selection and validation target
|
|
|
|
|
selection, subprocess supervision, credential forwarding, and diagnostics.
|
2026-11-27 15:04:58 +00:00
|
|
|
Keep glossary materialization in normal preparation and move execution preflight
|
|
|
|
|
to the shared boundary after preparation. Reuse verified prepared files rather
|
|
|
|
|
than introducing temporary candidate glossary handoffs. Integrate destination-
|
|
|
|
|
parent creation with the shared workspace owner and preserve preparation's
|
|
|
|
|
normal stage and manifest transitions.
|
2026-11-26 14:25:43 +00:00
|
|
|
|
|
|
|
|
Carry report/debug destinations and the enable-only debug choice through the
|
|
|
|
|
adapter boundary. Align report discovery and polish's expected-path checks with
|
|
|
|
|
the selected report directory. Update generated invocation records and safe
|
|
|
|
|
result metadata to reflect actual arguments, destinations, and credential names.
|
|
|
|
|
|
|
|
|
|
Update polish semantic evidence for result-affecting selector changes and any
|
|
|
|
|
changed input handoff. Obsolete evidence is reconsidered when polish executes
|
|
|
|
|
or is resume-checked under existing rules. Operational diagnostics and credential
|
|
|
|
|
rotation remain outside substantive result identity. Stable downstream selectors
|
|
|
|
|
do not expose private prompt/configuration edits to Narratio; forcing polish
|
|
|
|
|
remains the operator workflow for those edits.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Audita v4.2 completes normalization and chunk planning before report initialization.
|
|
|
|
|
An early failure may leave no reports; preserve the existing optional-diagnostic
|
|
|
|
|
behavior and original subprocess cause. Ordinary transcript/report schemas are
|
|
|
|
|
unchanged from v4.1. The new `run` alias requires no Narratio adapter change;
|
|
|
|
|
continue invoking `process`.
|
|
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
### Workspace integration and documentation
|
|
|
|
|
|
|
|
|
|
Keep link rotation, cleanup protection, physical layout cutover, and restore
|
|
|
|
|
changes in the workspace scope. Skipped stages preserve previous views; actual
|
|
|
|
|
attempts advance them even on failure. An attempt without capture exposes its
|
|
|
|
|
own empty debug directory under that scope's design.
|
|
|
|
|
|
|
|
|
|
When implemented, update the Audita integration contract, polish internals,
|
2026-11-27 14:09:11 +00:00
|
|
|
configuration/examples, preflight internals, and operator guidance. Describe the
|
|
|
|
|
shared Audita and Notarius configuration/overlay development workflow with upstream links rather
|
2026-11-26 14:25:43 +00:00
|
|
|
than duplicating library manuals. Update the workspace roadmap's outdated
|
|
|
|
|
upstream-request description when the coordinated work lands: v4.1 already
|
|
|
|
|
supports independent report and debug destinations.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Link to the external recipe contract for its roles and model choices and to
|
|
|
|
|
Audita's native inspection/preflight documentation for diagnostics. Document
|
2026-11-27 14:09:11 +00:00
|
|
|
Narratio-specific projection, catalog selection, prepared-input, and force behavior
|
2026-11-27 15:04:58 +00:00
|
|
|
locally. Explain preflight timing, preparation reuse after failure, automatic
|
|
|
|
|
provider checks, synthetic-transcript scope, and validation's prepared-input
|
|
|
|
|
requirements and side effects in validation and execution guidance. Update the
|
|
|
|
|
existing Scriptorium preflight timing documentation with this coordinated change.
|
2026-11-27 04:48:10 +00:00
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
### Verification
|
|
|
|
|
|
|
|
|
|
Use focused offline tests for native invocation, the selected glossary handoff,
|
2026-11-27 14:09:11 +00:00
|
|
|
module-surface removal, independent destinations, enable-only
|
2026-11-26 14:25:43 +00:00
|
|
|
debug selection, and shared credential forwarding. Cover empty selections,
|
|
|
|
|
ordered/repeated processing where applicable, and native root/per-entry selector
|
|
|
|
|
precedence without inventing a Narratio precedence rule.
|
|
|
|
|
|
2026-11-27 04:48:10 +00:00
|
|
|
Cover party IDs/names/aliases in the native projection, separate collection
|
2026-11-27 14:58:02 +00:00
|
|
|
preservation, inline/file campaign vocabulary, setting/system selection,
|
|
|
|
|
preparation failures, and standalone
|
2026-11-27 14:09:11 +00:00
|
|
|
snapshots from native imports and composition. Verify that preflight and polish
|
2026-11-27 14:58:02 +00:00
|
|
|
consume the same prepared vocabulary and consumer bindings are changed only
|
|
|
|
|
through explicit input-contract changes. Verify the resolved schema contract
|
|
|
|
|
and saved projections at the shared input boundary. Upstream owns the full native merge, instruction, and
|
2026-11-27 04:48:10 +00:00
|
|
|
inspection behavior; a representative controlled compatibility check is enough
|
|
|
|
|
at Narratio's boundary.
|
|
|
|
|
|
2026-11-27 15:04:58 +00:00
|
|
|
Verify full preflight after completed or reused preparation, provider checks
|
|
|
|
|
remaining enabled, shared execution/validation paths, and failure before
|
|
|
|
|
processing. Cover bounded runs using existing inputs, missing prepared inputs,
|
|
|
|
|
and preservation of preparation results and normal invalidation after failure.
|
|
|
|
|
Validation must not implicitly prepare inputs. Exercise the maintained embedded
|
|
|
|
|
synthetic transcript against a controlled Audita invocation and cover a fixture-dependent
|
2026-11-27 14:09:11 +00:00
|
|
|
configuration failure without suppressing it. Default tests simulate provider
|
|
|
|
|
outcomes; they do not make paid smoke calls.
|
|
|
|
|
|
2026-11-26 14:25:43 +00:00
|
|
|
Verify optional and failed reports, failed output delivery, and transcript
|
|
|
|
|
validation/promotion. Preserve existing resume/force behavior and demonstrate
|
|
|
|
|
the semantic-evidence cutover for affected polish selections. Shared latest-view
|
|
|
|
|
and cleanup tests belong to workspace work.
|
|
|
|
|
|
|
|
|
|
Default Narratio tests use subprocess doubles and temporary filesystems, with
|
|
|
|
|
no dependency on sibling checkouts, real credentials, or paid providers. An
|
2026-11-27 04:48:10 +00:00
|
|
|
optional controlled Audita v4.2 compatibility check can supplement them. The
|
|
|
|
|
reviewed release passed focused offline glossary/inspection/preflight tests,
|
|
|
|
|
and both external D&D recipes passed their offline configuration and
|
|
|
|
|
normalization checks. Those checks establish integration behavior, not editorial
|
|
|
|
|
quality or live-provider readiness.
|
|
|
|
|
|
|
|
|
|
[v4]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/releases/v4.0.0.md
|
|
|
|
|
[v41]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/releases/v4.1.0.md
|
|
|
|
|
[v42]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/releases/v4.2.0.md
|
|
|
|
|
[cli]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/cli.md
|
|
|
|
|
[config]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/config.md
|
|
|
|
|
[operations]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/operations.md
|
|
|
|
|
[schema-migration]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/migrations/v3.md
|
|
|
|
|
[migration]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/migrations/v4.1.md
|
|
|
|
|
[subprocess]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/integrations/subprocess.md
|
|
|
|
|
[inputs]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/integrations/transcript-glossary-files.md
|
|
|
|
|
[outputs]: https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/integrations/output-files.md
|
|
|
|
|
[recipes]: https://forge.maximumdirect.net/eric/audita-pipelines-dnd/src/commit/6d5e66dcfca4bb5971a8423332a19ce884b846c0/README.md
|
2026-11-26 14:25:43 +00:00
|
|
|
|
2026-11-27 14:26:25 +00:00
|
|
|
## Reference Catalog Distribution and Development
|
|
|
|
|
|
|
|
|
|
The separate [narratio-reference-catalog repository][catalog] owns vocabulary,
|
2026-11-27 14:58:02 +00:00
|
|
|
catalog entries, the glossary format/schema, source organization, attribution,
|
|
|
|
|
and bundle release history.
|
2026-11-27 14:26:25 +00:00
|
|
|
Narratio owns the catalog configuration contract, domain selection, projections,
|
|
|
|
|
prepared inputs, and preflight. Audita owns native glossary interpretation.
|
|
|
|
|
|
|
|
|
|
Install a selected catalog tag or commit locally and import its configuration
|
|
|
|
|
fragment through Narratio's native ConfigKit workflow. Catalog identifiers map
|
|
|
|
|
to entry files using source-relative paths. A setting entry supplies `setting`;
|
|
|
|
|
a system entry supplies `spells`. Entry files may import reusable fragments;
|
|
|
|
|
Narratio does not introduce another ordered-source composition interface.
|
|
|
|
|
Operators extend catalogs through their own native configuration. Narratio does
|
|
|
|
|
not download references, manage updates, or resolve versions at runtime.
|
|
|
|
|
|
|
|
|
|
Vocabulary releases are independent of Narratio releases. Record tested
|
|
|
|
|
Narratio/Audita versions in catalog release documentation without synchronized
|
|
|
|
|
version numbers. Ordinary vocabulary corrections can retain an identifier;
|
|
|
|
|
materially different rulesets can coexist under distinct identifiers. Prepared
|
|
|
|
|
session vocabulary changes through normal input-change and preparation behavior,
|
|
|
|
|
not merely because an installed catalog was updated during processing.
|
|
|
|
|
|
|
|
|
|
Use sibling checkouts of Narratio, the reference catalog, and Audita for local
|
|
|
|
|
development. Local development configuration can import the sibling catalog;
|
|
|
|
|
maintained production examples must not depend on developer checkout paths.
|
|
|
|
|
No submodule or Go workspace is required for the data repository.
|
|
|
|
|
|
|
|
|
|
Develop the configuration contract and a minimal bundle together. The bundle
|
|
|
|
|
should contain its catalog fragment, one setting entry, one system entry, and
|
2026-11-27 14:58:02 +00:00
|
|
|
representative vocabulary demonstrating native imports, and the format schema
|
|
|
|
|
with validation examples. Then exercise one
|
2026-11-27 14:26:25 +00:00
|
|
|
complete production path: selection, party/campaign preparation, all four
|
|
|
|
|
prepared collections, and full Audita preflight. Expand reference content once
|
|
|
|
|
that handoff works. Implementation stages belong in the subsequent plan.
|
|
|
|
|
|
|
|
|
|
Narratio's default tests use checked-in synthetic fixtures without sibling
|
|
|
|
|
checkout dependencies. The catalog should have an offline compatibility check
|
|
|
|
|
that loads its actual bundle through the supported configuration path and
|
2026-11-27 14:58:02 +00:00
|
|
|
checks the resulting collections against the pinned shared schema and Audita's
|
|
|
|
|
native contract. Controlled
|
2026-11-27 14:26:25 +00:00
|
|
|
integration checks can exercise working checkouts before release; provider smoke
|
|
|
|
|
calls remain explicit integration runs, not ordinary catalog tests.
|
|
|
|
|
|
|
|
|
|
[catalog]: https://forge.maximumdirect.net/eric/narratio-reference-catalog
|
2026-11-27 14:09:11 +00:00
|
|
|
|
2026-11-27 14:26:25 +00:00
|
|
|
## Open Decisions
|
2026-11-27 14:09:11 +00:00
|
|
|
|
2026-11-27 14:58:02 +00:00
|
|
|
The catalog model, configuration ownership, session overrides, shared glossary
|
|
|
|
|
format, and inline/file campaign vocabulary are settled. Finalize the concrete
|
|
|
|
|
configuration fields and external-file import wiring with the minimal catalog
|
|
|
|
|
bundle, including native precedence when both campaign vocabulary forms are
|
|
|
|
|
present. Identify the explicit cutover for existing glossary fields and source
|
|
|
|
|
IDs without expanding this scope into Notarius adoption. Exact prepared filenames
|
|
|
|
|
and package-level mechanics belong in the implementation plan.
|