Files
narratio/docs/integrations/notarius.md

51 lines
3.0 KiB
Markdown
Raw Normal View History

# Notarius Integration Contract
2026-08-09 23:47:38 +00:00
Narratio invokes a separately installed Notarius v0.10.0 executable and the
operator's existing Notarius configuration and pipeline. Narratio does not build
that configuration. The [Notarius consumer guide](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/consumers/dnd-pipeline.md)
owns the maintained pipeline and [CLI](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/cli.md)
owns its invocation and native output contracts. Controlled local-provider
compatibility was exercised against commit `752c9b44d2c0bb3bfb1e02a5d4379f7cc5b6261e`.
2026-08-09 23:47:38 +00:00
## Invocation
2026-08-09 23:47:38 +00:00
Narratio supplies `run <pipeline_id>`, `--config`, `--input-file`, `--output-dir`,
`--debug-dir`, and `--format json`. It forwards an explicitly selected overlay,
cache mode, and reference bindings; debug true requests capture. The configured
child credentials are forwarded by exact name and captured streams are redacted.
The same selected configuration, credentials, references and cache mode are used
for native pipeline inspection and preflight. Preflight may contact providers and
probe destinations; a synthetic transcript establishes readiness for that input
only. See [operations](../operations.md#prompt-requirements-preflight).
The prepared shared roster can bind to `party`; the combined shared glossary can
bind to both `glossary` and `spell_catalog`. Notarius owns collection selection,
D&D recognition, its configuration and caches. See [configuration](../config.md#notarius-reference-bindings).
Narratio stage reuse and Notarius cache reuse are separate. Forced extraction
requests native cache refresh.
## Accepted Result
After a successful exit, Narratio reads the native JSON completion report, checks
its pipeline and confined output directory, and validates each configured
`lanes/<lane-id>.json` as a safe regular JSON file. It promotes those required
lanes to flat session artifacts and records content evidence. The reported
`artifact_count` can include reused or auxiliary results; it is not an inventory.
2026-11-30 14:08:28 +00:00
Optional `chunk-map.json` and `evidence-context.json` stay in the original
bundle, which is subject to Narratio cleanup. Selected canonical products and
their recorded evidence support reuse without that bundle. A positive native
`fallback_count` remains visible in fresh and reused reports.
Nonzero exit, malformed completion, unsafe output, or a missing required lane
fails extraction. Diagnostics and available files remain for investigation; an
incidental file or partial report does not establish success. See
[extraction operations](../operations.md#extraction-workflow).
2026-09-16 18:14:40 +00:00
## Opt-in Integration Test
The [catalog compatibility script](https://forge.maximumdirect.net/eric/narratio-reference-catalog/src/commit/016473fd16b15847f3e913670c423faa7c35720b/scripts/check-compatibility.sh)
accepts explicit Narratio and Notarius checkouts and Audita and Notarius binary
paths. It uses a controlled local provider and verifies readiness, the ten-lane
pipeline, flat promotion, cache reuse, and forced refresh. Ordinary tests skip
external binaries.