Files
narratio/docs/internal/stage-polish.md

24 lines
1.4 KiB
Markdown
Raw Normal View History

2026-05-18 22:03:59 -05:00
# Stage: polish
Polish resolves the base transcript from verified merge evidence and all four
prepared glossary documents from manifest-backed input records. It invokes the
Audita adapter with those paths and configured downstream selectors, then
validates the returned transcript before promoting `transcripts/polished.json`.
The transcript is the only canonical output. Available ordinary reports,
stdout/stderr, and the generated invocation record are run-local diagnostics;
Audita's work directory is separately selected. The [Audita contract](../integrations/audita.md)
owns invocation and diagnostic behavior.
Polish records the prepared glossary identities as resume evidence alongside
semantic configuration. Changes to effective glossary content require new
polish work through ordinary prepare invalidation. Credentials, executable,
timeout, and diagnostics are operational. Narratio does not fingerprint the
contents of Audita-owned configuration or profiles: force polish after changing
those files behind unchanged selectors. Older evidence is reconsidered when
polish is selected; a downstream-only invocation does not eagerly run it.
A failed invocation does not promote an incidental output. Preflight is an
invocation check after preparation, not a successful polish record. See
[preflight internals](preflight.md), `internal/stage/polish.go`,
`internal/stage/polish_resume.go`, and their focused tests.