311 lines
18 KiB
Markdown
311 lines
18 KiB
Markdown
# Adopt Notarius v0.10.0
|
|
|
|
## Purpose
|
|
|
|
Adopt Notarius's native execution, output, and cache contracts while removing
|
|
Narratio machinery for retired upstream interfaces. Preserve Narratio's ownership
|
|
of prepared inputs, extraction requirements, durable artifacts, and stage reuse.
|
|
|
|
This is a proposed Narratio cutover. Upstream schema and readiness gaps are
|
|
resolved; remaining Narratio projection choices are recorded in the
|
|
[coordinating schema roadmap](schemas.md). Implementation is one end-to-end
|
|
cutover, without compatibility aliases, legacy conversion, or a second adapter.
|
|
|
|
## Upstream Baseline
|
|
|
|
The latest upstream release verified on 2026-11-29 is **v0.10.0**, at commit
|
|
`752c9b44d2c0bb3bfb1e02a5d4379f7cc5b6261e`. Notarius remains a separately installed
|
|
executable; adopting it does not require importing its Go packages into Narratio.
|
|
|
|
Canonical references:
|
|
|
|
- [Release notes](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/releases/v0.10.0.md)
|
|
- [Migration guide](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/consumers/native-migration.md)
|
|
- [Subprocess guide](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/consumers/subprocess.md)
|
|
- [CLI reference](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/cli.md)
|
|
- [Configuration](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/config.md)
|
|
- [Published domain files](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/integrations/json-output.md)
|
|
- [Complete D&D workflow](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/consumers/dnd-pipeline.md)
|
|
|
|
The [current integration](../integrations/notarius.md) targets the v0.8.1
|
|
receipt/index contract. v0.10.0 removes that protocol and changes invocation,
|
|
configuration, caching, and validation controls. Its domain artifact schemas and
|
|
lane filename mapping remain unchanged.
|
|
|
|
## Ownership And Scope
|
|
|
|
Follow [ADR 0003](../adr/0003-assign-configuration-ownership.md): ConfigKit owns
|
|
configuration resolution, CommandKit owns native CLI behavior, and Narratio
|
|
consumes resolved values to orchestrate the pipeline. Notarius owns its pipeline,
|
|
prompts, profiles, validation, fallback construction, and accepted-result cache.
|
|
|
|
Do not duplicate downstream configuration resolution, infer provider settings,
|
|
implement semantic validation already owned by Notarius, or inspect private
|
|
cache/debug formats. Preserve shared subprocess supervision, credential supply,
|
|
redaction, cancellation, and native error handling.
|
|
|
|
The [workspace roadmap](workspace.md) owns broader filesystem reorganization.
|
|
This adoption must remove index-dependent assumptions wherever they occur, but
|
|
does not require that reorganization. Use the workspace paths in effect when
|
|
implemented, through the existing path owner. Reconcile overlapping extraction
|
|
and debug work rather than implementing two competing layouts.
|
|
|
|
## Native Invocation
|
|
|
|
Keep the native `notarius run <pipeline_id>` route. Update the adapter's argument
|
|
vector to use these interfaces:
|
|
|
|
| Concern | Target behavior |
|
|
| --- | --- |
|
|
| Transcript | `--input-file <absolute final trimmed transcript path>` replaces `--input`. |
|
|
| Configuration | Preserve the selected `--config` path; forward `config_overlay` through `--overlay`. |
|
|
| Machine report | Request `--format json` instead of `--json`, independently of Narratio's own output format. |
|
|
| References | Retain repeated `--reference <selector>=<verified snapshot path>`. |
|
|
| Output | Supply a Narratio staging root through `--output-dir`. |
|
|
| Cache | Use native `--cache auto\|bypass\|refresh`; remove `--resume` and `--chunk_cache`. |
|
|
|
|
Preserve omitted versus explicitly supplied overlay values and let Notarius
|
|
interpret them. Keep flags after the complete command path. Run the selected
|
|
pipeline normally: Narratio's required-output map does not implicitly become a
|
|
`--lane` filter that changes execution or generated dependencies.
|
|
|
|
Keep the existing minimal child environment and exact-name credential forwarding.
|
|
Use Notarius's native input-based LLM session selection unless a separate product
|
|
requirement calls for an override. Do not add generic execution overrides or
|
|
version negotiation merely to perform the cutover.
|
|
|
|
## Completion And Required Artifacts
|
|
|
|
Wait for successful process completion before parsing stdout. The native report
|
|
provides `pipeline`, `artifact_count`, and an absolute `output_directory`, with
|
|
optional `debug_directory` and positive `fallback_count`. It is not a versioned
|
|
receipt, validation ledger, or artifact inventory.
|
|
|
|
Use the reported directory as the exact run root beneath the supplied staging
|
|
root. Read required lane files at the documented `lanes/<mapped-lane-id>.json`
|
|
paths. Apply the upstream filename mapping for custom lane IDs; do not silently
|
|
restrict operators to the simple IDs used by the maintained D&D example.
|
|
|
|
Every configured extraction output remains required. Check the expected pipeline,
|
|
safe file placement, regular-file status, bounded JSON readability, and checksums
|
|
using existing production machinery. Keep each output's `lane_id`; remove
|
|
`media_type`, `schema_id`, `schema_version`, and `module_key` descriptor
|
|
constraints. Notarius no longer emits descriptors to compare with them. Trust
|
|
its native publication contract for domain validation; Narratio does not add
|
|
independent payload-schema or semantic validation. Preserve
|
|
`narratio.extraction.<output_key>` identities and manifest-backed resolution for
|
|
analysis and publication.
|
|
|
|
`artifact_count` includes all published deliverables, including available enabled
|
|
auxiliaries and reused results. It must not be compared with the number of
|
|
Narratio's required outputs as an acceptance test. The maintained complete D&D
|
|
pipeline still supplies ten lanes; `chunk-map.json` and `evidence-context.json`
|
|
are optional domain auxiliaries, not reporting sidecars. Retain them with the
|
|
bundle when produced; adding selectable Narratio sources for them is not required
|
|
for this adoption.
|
|
|
|
Remove receipt/index/sidecar parsing, descriptor matching, rejection and warning
|
|
count reconciliation, and the non-selectable `notarius_index` manifest output.
|
|
Remove dependencies on those records from stage execution, evidence inspection,
|
|
catalog hydration, reuse, publication, and restore. Do not replace them with a
|
|
Narratio-created imitation index or require optional debug capture for acceptance.
|
|
|
|
Record Narratio's own input/output evidence and the native completion information
|
|
needed for provenance. The completion report has no upstream run-ID field;
|
|
do not invent one or derive identity by parsing directory names. Keep configured
|
|
expectations distinct from facts actually attested by the producer.
|
|
|
|
Preserve staged validation and atomic promotion before recording stage success.
|
|
Nonzero exit, malformed successful stdout, or missing required files remain
|
|
failures. A native capture/report failure can occur after files are published;
|
|
retain useful diagnostics under the existing failure lifecycle, but do not
|
|
automatically recover success from those files or partial stdout. Preserve native
|
|
errors through the shared subprocess path rather than adding an error taxonomy.
|
|
|
|
Honor native successful completion when the operator has selected permissive
|
|
behavior, subject to Narratio's required-file checks. Record positive
|
|
`fallback_count` and expose the qualification in ordinary extraction results,
|
|
including later reuse. The count identifies fallback-emitting operations, not
|
|
affected lanes or files; do not infer per-lane quality from it. Notarius owns
|
|
strict/permissive selection and its default strict mode.
|
|
|
|
## Native Cache And Narratio Reuse
|
|
|
|
Replace `pipeline.notarius.resume` and `pipeline.notarius.chunk_cache` with an
|
|
optional `pipeline.notarius.cache` using the native modes. Omission adds no flag
|
|
and preserves downstream configuration. Forced extraction passes `--cache refresh`.
|
|
|
|
Keep the two reuse decisions separate:
|
|
|
|
- Narratio reuses a completed extraction from its manifest and semantic evidence.
|
|
- An executed Notarius invocation applies its own accepted-result cache policy.
|
|
|
|
Cache and debug controls alone must not invalidate Narratio's completed stage.
|
|
Continue fingerprinting result-affecting Narratio inputs, reference content,
|
|
output selection, pipeline identity, and explicit overlay selection. Do not hash
|
|
or interpret private downstream configuration to construct another cache key.
|
|
|
|
Notarius cache hits reuse accepted results without fresh semantic assessment.
|
|
Model, settings, or validation-policy changes can still hit. Document forced
|
|
extraction as the way to request fresh work after such downstream edits; native
|
|
refresh then prevents cache reuse during that execution. Notarius owns cache
|
|
placement and cleanup. Old Notarius caches remain ignored and untouched.
|
|
|
|
Replace index-based extraction evidence with the existing Narratio-owned output
|
|
records, checksums, and provenance adapted to the new contract. Old extraction
|
|
evidence becomes obsolete when evaluated through normal stage reuse rules. Do
|
|
not introduce a legacy reader, delete historical bundles, or rerun unrelated
|
|
completed stages solely because the adapter changed. Preserve ordinary dependent
|
|
invalidation when extraction must be rerun.
|
|
|
|
## Prepared References And Glossaries
|
|
|
|
Reuse the prepared-input and verified-reference paths introduced by the Audita
|
|
work. The four glossary collections remain shared domain inputs. Consumers may
|
|
use a subset or a saved domain projection; do not force every subprocess to
|
|
accept all four collections.
|
|
|
|
Notarius v0.10.0 accepts shared RPG party `0.2.0` in `party` and
|
|
accepted `roster` slots, and shared glossary `0.2.0` in `glossary` and
|
|
`spell_catalog`, all from schemas distribution `2026.11.1`. The
|
|
[shared input contract](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/integrations/shared-domain-inputs.md)
|
|
owns native loading, defaults, task projections, and migration.
|
|
|
|
Replace the private spell-overlay acquisition and `narratio.input.spell_catalog`
|
|
binding with shared vocabulary. Retire the separate authored overlay setting
|
|
rather than aliasing it to a new source. One shared file can serve both native
|
|
glossary slots. General context defaults to available campaign/setting collections;
|
|
a bound spell slot defaults to spells, which must exist. Explicit configured
|
|
collection names must exist; omission/null uses defaults and [] selects none.
|
|
CLI path overrides retain each effective configured selection. Narratio does not
|
|
need a new flag or a duplicate selection policy to forward those paths.
|
|
|
|
Supply a shared roster through the existing party identity and preserve
|
|
character/player/class values and extensions. Notarius now derives player
|
|
relationships from it. The players slot remains optional supplemental text;
|
|
Narratio's existing players projection can remain for other consumers without
|
|
requiring a duplicate default Notarius binding.
|
|
|
|
The [coordinating roadmap](schemas.md#remaining-narratio-decisions) recommends a
|
|
saved combined shared glossary while preserving the four logical sources;
|
|
settle that choice before implementation. A per-role projection is also viable.
|
|
Do not require every consumer to use all collections.
|
|
|
|
Spell recognition still starts with Notarius's embedded D&D 5e 2014 SRD
|
|
vocabulary. Selected shared names/aliases augment it; canonical display names and
|
|
collision checks stay upstream. Ruleset provenance is not required, and Narratio
|
|
does not infer a recognition ruleset from a catalog selector. References are
|
|
context, not transcript evidence. Generated same-run handoffs remain configured
|
|
inside Notarius.
|
|
|
|
## Preflight
|
|
|
|
Use the existing preflight service and lazy wiring. Automatic checks follow
|
|
selected preparation and precede processing when extraction needs execution;
|
|
explicit session validation uses prepared inputs and planning remains
|
|
subprocess-free.
|
|
|
|
Notarius v0.10.0 supplies the pipeline-aware readiness command:
|
|
|
|
```text
|
|
notarius preflight <pipeline_id> --input-file <transcript> --config <config_path> [--overlay <selector>] --reference <selector>=<verified_path>... --output-dir <probe_destination> --format json
|
|
```
|
|
|
|
Use the execution selections, credential environment, and verified reference
|
|
paths. Native preflight chooses the applicable provider targets itself and checks
|
|
modules, supplied transcript/references, destinations, and applicable cache access.
|
|
It performs native reachability, authentication, and structured-generation probes
|
|
without running extraction or publishing domain artifacts. It can incur inference
|
|
charges, create probe directories/temporary files, and retain selected debug
|
|
capture. Cache access warnings do not by themselves make readiness false.
|
|
|
|
Require successful process status and a complete assessment for the expected
|
|
pipeline with `ready: true`. Preserve native failed/warning facts and optional
|
|
debug location. Nonzero exit fails even if a delivered report says ready; early
|
|
errors can have no report and failed delivery can leave partial bytes. Do not
|
|
reconstruct an independent provider/profile planner or turn cache warnings into
|
|
stronger readiness failures.
|
|
|
|
The assessment applies only to the supplied input. Use a real available
|
|
execution transcript where appropriate; early preflight can use the shared
|
|
synthetic fixture as Audita does, with that limitation explicit. A synthetic
|
|
success is not validation of the future final trimmed transcript. Run still
|
|
validates its actual inputs. Do not introduce two mandatory paid probe passes.
|
|
|
|
Keep Narratio's required-output lane checks against native pipeline inspection
|
|
and prepared-reference integrity checks. Preflight does not know Narratio's own
|
|
required-output map. Offline `pipeline validate` remains an operator diagnostic;
|
|
it is not a substitute for runtime-reference/provider readiness and need not be
|
|
an additional mandatory subprocess before native preflight.
|
|
|
|
The former OD-3 reference-binding/provider-discovery gap is resolved upstream.
|
|
Separate `promptkit test all` calls and hand-maintained profile lists are no longer
|
|
needed for the proposed readiness path. The
|
|
[upstream preflight contract](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/cli.md#preflight)
|
|
owns assessment fields and check semantics.
|
|
|
|
## Diagnostics
|
|
|
|
Capture the native completion report, invocation record, and stderr as Logs.
|
|
Reuse current stream limits and credential redaction. Keep structured stdout
|
|
separate from diagnostic streams; Narratio's display flags must not suppress the
|
|
machine report it needs to consume.
|
|
|
|
Support an enable-only `pipeline.notarius.debug` selector, coordinated with the
|
|
[workspace roadmap](workspace.md). True adds `--debug`; omission or false leaves
|
|
downstream capture policy unchanged. Supply an actual run-local `--debug-dir`
|
|
destination even when capture can be enabled through downstream configuration.
|
|
A destination alone does not enable native capture.
|
|
|
|
Debug remains optional, local, and private to Notarius. Do not depend on its file
|
|
names, parse its contents as a public API, or use its `latest` link to locate
|
|
outputs. Capture does not imply that arbitrary filesystem content is sanitized.
|
|
|
|
## Delivery And Validation
|
|
|
|
Update adapter contracts and tests together with extraction, configuration,
|
|
artifact evidence, preflight wiring, and manifest/publication consumers. Remove
|
|
obsolete receipt fixtures and assertions instead of preserving them alongside
|
|
the new protocol. Keep changes behind existing application and adapter boundaries.
|
|
|
|
Use focused tests at the production boundaries to establish:
|
|
|
|
- Native arguments, exact overlay forwarding, configured references, native
|
|
cache selection, forced refresh, and enable-only debug behavior.
|
|
- Successful report parsing and required domain-file resolution, including a
|
|
custom mapped lane ID, optional auxiliaries, missing/unsafe files, nonzero exit,
|
|
malformed stdout, and acceptance and visible reporting of qualified fallback,
|
|
including subsequent reuse.
|
|
- Durable promotion, subsequent artifact resolution/publication/restore, ordinary
|
|
reuse, changed-reference invalidation, and obsolete extraction evidence.
|
|
- Shared automatic and explicit preflight selection, preparation ordering,
|
|
missing required lane definitions, subprocess failures, and accurate reporting
|
|
of native readiness coverage and input-specific limitations.
|
|
|
|
Refresh the opt-in real Notarius boundary test for v0.10.0 using a controlled local
|
|
provider fixture. Exercise the maintained complete pipeline and native reuse
|
|
without making paid provider access a routine test prerequisite. Run focused
|
|
tests during development and the repository checks in [Development](../development.md)
|
|
before completing implementation.
|
|
|
|
Update the canonical integration, configuration, operations, internal, and
|
|
troubleshooting documents when behavior lands, together with maintained examples.
|
|
Release guidance must cover removed Narratio fields/output constraints, native
|
|
cache behavior, changed extraction evidence, and downstream Notarius configuration
|
|
version 6. Link to upstream migration guidance for resource composition,
|
|
producer modes, semantic correction turns, and concurrency. Narratio must not
|
|
translate those downstream settings or own their defaults.
|
|
|
|
Use v0.10.0 as the tested native integration baseline. Unsupported old interfaces
|
|
fail normally; no runtime version gate or compatibility fallback is required.
|
|
|
|
## Remaining Coordination
|
|
|
|
OD-3 is resolved by pipeline-aware preflight and OD-5 by the published shared
|
|
reference contracts. No further upstream feature request is needed for those
|
|
capabilities. Settle the combined glossary/task projection and Narratio roster
|
|
requirements in [the coordinating roadmap](schemas.md#remaining-narratio-decisions),
|
|
then prepare one implementation plan covering shared preparation and both
|
|
consumer upgrades. Do not implement the old private overlay as an intermediate
|
|
destination or claim tested Narratio compatibility before that cutover.
|