From 178b0cfa9cc13d164b13b9618b2bc3f87f527555 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Thu, 26 Nov 2026 15:33:10 +0000 Subject: [PATCH] Separate D&D recipe ownership from Audita --- docs/roadmap/runtime-glossary-inputs.md | 170 ++++++++++++++++-------- 1 file changed, 112 insertions(+), 58 deletions(-) diff --git a/docs/roadmap/runtime-glossary-inputs.md b/docs/roadmap/runtime-glossary-inputs.md index 7465237..bc81bf6 100644 --- a/docs/roadmap/runtime-glossary-inputs.md +++ b/docs/roadmap/runtime-glossary-inputs.md @@ -1,6 +1,7 @@ # Runtime Glossary Inputs and Overlay Recipes -Status: Core approach agreed; recipe decisions open. Implementation has not begun. +Status: Runtime input design and repository separation agreed; external recipe +contracts remain open. Implementation has not begun. This roadmap records Audita's response to Narratio's runtime glossary input request. It targets a supported handoff for prepared session vocabulary while @@ -53,21 +54,36 @@ An illustrative target invocation is: ```sh audita process transcript.json \ --config audita.yml \ - --overlay dnd \ + --overlay dnd-production \ --glossary-file session-glossaries.yml \ --output polished.json ``` -The new flag and D&D recipe are planned behavior. Recipe delivery and its initial -contents remain open below. +The new flag and external D&D overlays are planned behavior. Audita remains +fully domain-agnostic and does not bundle a D&D pipeline. A separate +`audita-pipelines-dnd` repository will contain a short `README.md` and +`overlays/dnd-production.yml` and `overlays/dnd-testing.yml`. Operators install +these overlays beside their selected Audita main configuration and select them +through the existing overlay mechanism. + +The external repository owns both overlays and their public contracts. Its README +will document supported Audita versions, glossary roles and required/default +inputs, profile requirements, installation, invocation, and the distinction between +the two recipes. It will link to Audita's native format and CLI documentation. +Production is the normal polishing recipe; testing is a cheaper, shorter +development run, not a candidate production recipe or a promise of equivalent +correction quality. The repository can evolve independently of Audita; Narratio +can target a selected tag or revision of its contracts. ### Ownership -- Audita owns glossary interpretation, processing, validation, and the mechanisms - for configuring recipes. A recipe defines its glossary roles and selections, - stage order, prompts, profiles, and protection behavior. +- Audita owns domain-agnostic glossary interpretation, processing, validation, + and configuration mechanisms. +- `audita-pipelines-dnd` owns the D&D glossary role contract, stage selections + and order, and recipe-specific profile, prompt, and protection settings. Its + README is the public contract Narratio follows. - Operators select and configure recipes, deployment settings, and reference - vocabulary. A recipe may be distributed by Audita or maintained locally. + vocabulary. They can use the external overlays or maintain local recipes. - Narratio owns preparing session inputs, including projecting a campaign party roster into Audita's native glossary format. It supplies those collections and selects the configuration or overlay; it need not reproduce processing stages. @@ -181,19 +197,24 @@ stages still require at least one selected entry under existing preflight rules. protections where applicable, using native source records rather than scanning import declarations independently. -### 2. Define and Demonstrate the Recipe Contract +### 2. Coordinate the External Recipe Contract -- Resolve the two recipe decisions below and provide a maintained overlay example - with prepared vocabulary and an invocation suitable for Narratio. -- Document logical roles independently of file layout. Show session-specific - collections alongside configured reusable references, plus a caller supplying - all collections. -- State which collections the recipe selects and how empty definitions interact - with its actual stages. Do not add a global requirement that every defined +- Resolve the external recipe decisions below in `audita-pipelines-dnd`. That + repository owns D&D examples and contracts; this roadmap tracks the integration + dependencies until those contracts have a canonical home there. +- Provide the two overlay files and a short README in that repository. Document + logical roles independently of file layout, with session-specific collections + alongside configured reusable references and a caller supplying all collections. +- State which collections each overlay selects and how empty definitions interact + with its stages. Do not add a global Audita requirement that every defined collection be selected or nonempty. - Keep stage sequencing and prompt tuning changeable without requiring Narratio - to encode those details. Reevaluate recipe quality empirically rather than - treating the initial module sequence as a permanent invariant. + to encode those details. Reevaluate production quality empirically. Define + testing as a reduced-cost development path, retaining normal validation of the + corrections it proposes. +- The general Audita feature can be implemented independently of the final D&D + recipes. Creating or publishing the external repository is separate work from + this documentation update. ### 3. Validate the Integration @@ -209,8 +230,10 @@ Use real ConfigKit collaborators and a small set of behavioral tests under the - Cover representative invalid-input and preflight failures before model work, and preservation of the selected main's companion/bootstrap context when the invocation directory differs. -- Exercise the maintained recipe with controlled model responses where needed - to prove the end-to-end handoff. Reuse existing tests for unchanged domain rules. +- Exercise a domain-neutral overlay fixture with controlled model responses + where needed to prove the end-to-end handoff. Reuse existing tests for unchanged + domain rules. D&D recipe examples and their verification belong to the external + repository. Do not duplicate ConfigKit's full composition test matrix or lock prompt wording, incidental formatting, or private helper structure into tests. Run focused tests @@ -219,7 +242,8 @@ and the repository's normal build/full-suite checks when implementation lands. ### 4. Document and Coordinate Adoption Update the canonical CLI, configuration, input, and subprocess integration -documents as the behavior lands. Put complete copyable artifacts in `examples/`. +documents as the behavior lands. Put domain-neutral copyable artifacts in Audita +`examples/`; keep D&D artifacts and recipe documentation in `audita-pipelines-dnd`. Document the two composition boundaries, path bases, accepted file shape, role selections, and available inspection evidence. Link upstream for native semantics. @@ -232,47 +256,77 @@ number or extend any earlier one-time versioning exception. ## Open Decisions -### 1. How should Audita distribute the D&D recipe? +These decisions belong to the external D&D recipe contracts. They do not block +implementation planning for Audita's general runtime glossary input interface. +Recommendations below are proposals, not additional Audita invariants. -**Recommendation:** Ship a maintained, copyable example configuration bundle -containing `overlays/dnd.yml` and its supporting examples. Operators deploy it -beside their selected main configuration and Narratio selects `--overlay dnd`. -This gives Audita ownership of a usable reference recipe through the existing -overlay mechanism, with no new embedded-overlay discovery or fallback behavior. -The tradeoff is an explicit deployment/update step for operators. +### 1. Which glossary roles and content requirements should both overlays expose? -**Alternative:** Bundle a built-in D&D recipe with automatic availability. This -reduces deployment steps and makes the recipe available with the executable, but -requires designing how it participates in native overlay selection and how -operator replacements take precedence. That is additional integration work beyond -the runtime glossary bridge; assess it before promising automatic availability. +**Context:** Narratio needs stable logical names to populate. Both overlays can +consume the same prepared vocabulary even when they process it differently. +Missing collection definitions and empty selections have different consequences: +empty definitions are valid, but a glossary stage needs at least one selected +entry in aggregate. -An operator-only recipe is also viable and keeps Audita's maintained surface -small, but leaves Narratio deployments to establish their own shared vocabulary -contract without a maintained reference. +**Recommendation:** Use `party` (player characters and aliases), `campaign` +(campaign-specific entities and terminology), `setting` (reusable world vocabulary), +and `spells` (spell vocabulary) in both overlays. Provide empty defaults where +content is absent, preserving operator-supplied content through native composition. +Do not require every role to contain entries. Require only the content needed by +actual stage selections under existing preflight rules. Additional collections +remain allowed. This keeps one prepared dataset usable for production and testing +and accommodates campaigns with differing available references. The tradeoff is +that absent expected content can be valid rather than signaling an incomplete +Narratio preparation step. -### 2. What is the initial D&D role and processing contract? +**Alternative:** Make selected roles, such as `party` and `campaign`, required +nonempty inputs to the recipe contract. This gives Narratio a stronger readiness +check but excludes otherwise useful runs with sparse vocabulary. Such a +recipe-specific preparation check would belong with the integration, not a new +D&D validation rule in Audita. Another viable shape is one combined `session` +collection; it simplifies preparation but loses the role boundaries needed for +focused passes and independent replacement. -**Recommendation:** Use the logical names `party`, `campaign`, `setting`, and -`spells`. Define empty defaults in the recipe for roles without supplied content, -select the four roles at the root, and initially reuse Audita's normal module -sequence and protection behavior. Narratio can replace session-specific entry -lists while configuration supplies reusable ones. Existing glossary-stage -preflight requires nonempty selected content in aggregate; do not additionally -require every role to contain entries. This accommodates campaigns with different -available vocabulary and avoids empty dedicated passes. Its tradeoff is that -initial glossary passes see combined context rather than specialized subsets. +### 2. What should distinguish the production and testing stage sequences? -Document the role meanings: player characters and aliases for `party`; -campaign-specific entities and terminology for `campaign`; reusable world -vocabulary for `setting`; and spell vocabulary for `spells`. These are proposed -recipe names, not application-wide reserved names or a ban on extra collections. +**Context:** Testing is agreed to mean a cheaper, shorter development run. The +exact stage sequences and glossary/protection selections have not been chosen. +Production should continue to evolve with observed correction quality. -**Alternative:** Define focused stages, such as `party` plus `campaign` followed -by `setting` plus `spells`, with explicit protected-term selections. This exploits -the existing stage-specific context model and may improve corrections for larger -catalogs, but each glossary stage needs nonempty selected content. Deployments -without those inputs would need a different configured stage selection; this -alternative does not imply automatic skipping or conditional-stage machinery. -Choose the initial sequence based on representative workloads rather than -assuming that either combined or focused passes always produce better results. +**Recommendation:** Start production from Audita's current normal module sequence, +with the four roles selected together and existing protection behavior. For testing, +start with one glossary pass followed by grammar cleanup, using the same input +roles and ordinary validators. This exercises vocabulary correction and editorial +cleanup with fewer stages, without introducing a new execution mode. It provides +less coverage than production and does not guarantee a particular cost or duration. + +**Alternative:** Use focused production passes, such as `party` plus `campaign` +followed by `setting` plus `spells`, with explicit protection selections. This +may improve results for large catalogs, but every glossary stage must have some +selected content; deployments lacking a group would need adjusted selections. +For testing, retaining the full production sequence with cheaper profiles is also +viable: it exercises all stages but may offer less predictable runtime savings. +Choose exact sequences through representative workload +experience rather than freezing these starting recommendations. + +### 3. How should the overlays select model profiles? + +**Context:** Fewer stages can reduce testing work, while model selection also +influences cost and turnaround. Recipes need a predictable profile-selection +contract without assuming an operator's credentials or provider deployment. + +**Recommendation:** Have each overlay select an operator-defined proposal profile, +with documented names such as `dnd-production` and `dnd-testing`. Leave validation +and correction-repair profiles to existing fallback behavior unless explicitly +configured by the operator. The main configuration supplies native PromptKit +profiles, providers, and credentials; the testing profile can select a cheaper, +faster model. This keeps recipes portable and avoids maintaining provider-specific +catalogs, at the cost of requiring profile setup in each deployment. + +**Alternative:** Have both overlays inherit the main configuration's profile +selection, with testing savings coming from fewer stages. This needs less setup +and works with any existing profile names, but overlay selection alone would not +select a cheaper model. Supplying concrete provider/model defaults in the recipe +repository is another viable choice for a turnkey deployment; it reduces setup +but ties the recipe more closely to particular providers and requires ongoing +review as model availability, performance, and prices change.