Document shared glossaries and downstream preflight
This commit is contained in:
@@ -1,54 +1,43 @@
|
||||
# Integration: Audita
|
||||
|
||||
Narratio invokes Audita v2's `process INPUT --glossary PATH --output PATH`
|
||||
subprocess for `polish`. The configured timeout and parent cancellation bound
|
||||
execution. Narratio passes explicit `--config`, `--overlay`,
|
||||
`--proposal-profile`, `--validation-profile`, `--transcript-description`,
|
||||
`--output-schema`, and `--modules` only when selected. An omitted module list
|
||||
leaves Audita's default sequence in place; `modules: []` passes an explicit
|
||||
empty argument and runs no correction modules. Order and repetitions are kept.
|
||||
Narratio passes no debug, work-directory, or reporting flags, leaving those
|
||||
choices to Audita's own configuration.
|
||||
Narratio invokes Audita v4.2 for polishing. Its adapter supplies the prepared
|
||||
party, campaign, setting, and spells documents as repeated `--glossary-file`
|
||||
arguments, the merged transcript and requested output, and run-local report and
|
||||
work destinations. Optional config, overlay, profile, transcript-description,
|
||||
and output-schema selectors are forwarded only when set. Audita owns its
|
||||
configuration, ordered pipeline, profiles, and native discovery. Narratio does
|
||||
not generate a downstream configuration. See [Audita configuration](https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/config.md)
|
||||
and its [runtime glossary input contract](https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/integrations/transcript-glossary-files.md).
|
||||
|
||||
Audita owns its ConfigKit file, backend and profile definitions, native config
|
||||
discovery, and their validation. Narratio does not create an Audita
|
||||
configuration or infer downstream overlay/profile names from its own selected
|
||||
pipeline overlay. An empty Narratio Audita selector adds no CLI override.
|
||||
The [configuration reference](../config.md#audita-selection-and-credentials)
|
||||
owns Narratio's fields and defaults. Audita's
|
||||
[v2 migration guide](https://gitea.maximumdirect.net/eric/audita/src/tag/v2.0.0/docs/migrations/v2.md)
|
||||
owns its downstream file format.
|
||||
All four entry lists are supplied, including empty ones, and replace same-named
|
||||
Audita-configured lists. Other collections and omitted instruction fields retain
|
||||
native downstream composition. The [configuration reference](../config.md#glossary-inputs)
|
||||
explains selection and migration of the prepared inputs.
|
||||
|
||||
Each name in `pipeline.audita.credentials` is a ConfigKit secret reference
|
||||
resolved when Narratio loads the pipeline. Narratio forwards only the selected
|
||||
names and their captured, nonempty values under those exact names, in the
|
||||
minimal child environment; it never maps them to a fixed alias or rereads the
|
||||
parent environment. Every name is registered for captured stdout/stderr and
|
||||
failure-diagnostic redaction. Audita resolves credentials for all configured
|
||||
backends, including unselected ones, so operators must list every backend
|
||||
credential that its selected configuration needs. The downstream files and
|
||||
provider output remain Audita's responsibility, outside Narratio's
|
||||
captured-stream redaction boundary.
|
||||
After preparation, Narratio runs native Audita preflight when projected polish
|
||||
work needs execution. The adapter supplies the same selections and prepared
|
||||
files with a synthetic transcript. Audita's provider smoke checks remain enabled;
|
||||
they can contact providers and destination probes can create directories.
|
||||
`session validate` uses existing prepared records and a validation probe
|
||||
namespace. A successful check is not a guarantee about later real-transcript
|
||||
processing or editorial quality. See [operations](../operations.md#prompt-requirements-preflight)
|
||||
and [Audita preflight](https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/cli.md#preflight).
|
||||
|
||||
The corrected transcript is the only canonical polish output. A successful
|
||||
invocation must produce a valid JSON transcript with a top-level `segments`
|
||||
array within Narratio's 64 MiB bound. Exit zero is accepted even if Audita's
|
||||
ordinary reports describe recoverable model errors or no corrections. Narratio
|
||||
does not parse report status, counts, or Markdown. It discovers only
|
||||
`errors.yml`, `recoveries.yml`, and `report.md` next to the requested output,
|
||||
each subject to a 16 MiB read bound. Missing reports are allowed, for example
|
||||
when Audita reporting is disabled externally. Available reports are diagnostic
|
||||
references, not canonical artifact outputs. See Audita's
|
||||
[ordinary output contract](https://gitea.maximumdirect.net/eric/audita/src/tag/v2.0.0/docs/integrations/output-files.md)
|
||||
for their schemas, and [operations](../operations.md) for placement and
|
||||
publication.
|
||||
Each `pipeline.audita.credentials` value is an exact ConfigKit secret reference.
|
||||
Narratio forwards selected names and captured values in the child environment
|
||||
and registers them for captured-stream redaction. It does not discover backend
|
||||
credentials or scrub files created by Audita. The configured timeout and parent
|
||||
cancellation bound subprocess execution.
|
||||
|
||||
On nonzero exit, Narratio preserves the original subprocess error and
|
||||
available run-local evidence; it never promotes a transcript merely because
|
||||
the file exists. The adapter returns safe paths, exit details, and selection
|
||||
metadata on failure. Narratio's `audita.generated.v2` YAML records the
|
||||
invocation, including arguments, paths, and credential names but never values;
|
||||
it is a diagnostic record, not a generated Audita config file.
|
||||
The corrected transcript is the only canonical polish output. It must be valid
|
||||
JSON with a top-level `segments` array within Narratio's 64 MiB limit. Exit zero
|
||||
is accepted even when ordinary reports describe recoverable errors or no
|
||||
corrections. Narratio records available `errors.yml`, `recoveries.yml`, and
|
||||
`report.md` from the requested report directory as diagnostics, each subject
|
||||
to a 16 MiB bound. Reports may be absent when disabled. See Audita's
|
||||
[output contract](https://forge.maximumdirect.net/eric/audita/src/tag/v4.2.0/docs/integrations/output-files.md).
|
||||
|
||||
Maintained Narratio examples: [full annotated pipeline](../../examples/pipeline.full.annotated.yml)
|
||||
and [production-shaped pipeline](../../examples/pipeline.production.yml).
|
||||
On nonzero exit, Narratio preserves the subprocess error and available run-local
|
||||
evidence and does not promote an incidental transcript. The generated invocation
|
||||
record contains arguments, paths, and credential names, never values; it is a
|
||||
diagnostic record, not an Audita configuration file.
|
||||
|
||||
Reference in New Issue
Block a user