Record agreed D&D overlay contracts and model profiles

This commit is contained in:
2026-11-26 15:48:34 +00:00
parent 178b0cfa9c
commit 3a5ea78b80

View File

@@ -1,7 +1,8 @@
# Runtime Glossary Inputs and Overlay Recipes # Runtime Glossary Inputs and Overlay Recipes
Status: Runtime input design and repository separation agreed; external recipe Status: Runtime input design, repository separation, and initial recipe contracts
contracts remain open. Implementation has not begun. agreed. Ready for implementation planning; runtime inputs and overlays are not yet
implemented. The external repository has development scaffolding.
This roadmap records Audita's response to Narratio's runtime glossary input This roadmap records Audita's response to Narratio's runtime glossary input
request. It targets a supported handoff for prepared session vocabulary while request. It targets a supported handoff for prepared session vocabulary while
@@ -70,10 +71,11 @@ The external repository owns both overlays and their public contracts. Its READM
will document supported Audita versions, glossary roles and required/default will document supported Audita versions, glossary roles and required/default
inputs, profile requirements, installation, invocation, and the distinction between inputs, profile requirements, installation, invocation, and the distinction between
the two recipes. It will link to Audita's native format and CLI documentation. 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 Production is the normal polishing recipe. Testing uses the full production
development run, not a candidate production recipe or a promise of equivalent stage sequence with a cheaper model for development; lower cost and turnaround
correction quality. The repository can evolve independently of Audita; Narratio are the intent, without a fixed runtime or equivalent-quality guarantee. The
can target a selected tag or revision of its contracts. repository can evolve independently of Audita; Narratio can target a selected
tag or revision of its contracts.
### Ownership ### Ownership
@@ -199,7 +201,7 @@ stages still require at least one selected entry under existing preflight rules.
### 2. Coordinate the External Recipe Contract ### 2. Coordinate the External Recipe Contract
- Resolve the external recipe decisions below in `audita-pipelines-dnd`. That - Implement the agreed recipe contracts below in `audita-pipelines-dnd`. That
repository owns D&D examples and contracts; this roadmap tracks the integration repository owns D&D examples and contracts; this roadmap tracks the integration
dependencies until those contracts have a canonical home there. dependencies until those contracts have a canonical home there.
- Provide the two overlay files and a short README in that repository. Document - Provide the two overlay files and a short README in that repository. Document
@@ -254,79 +256,61 @@ Audita need not restore legacy flags to support that migration. Release notes
should describe the delivered feature; this roadmap does not select a release should describe the delivered feature; this roadmap does not select a release
number or extend any earlier one-time versioning exception. number or extend any earlier one-time versioning exception.
## Open Decisions ## Agreed External Recipe Contracts
These decisions belong to the external D&D recipe contracts. They do not block These contracts belong in `audita-pipelines-dnd` as its overlays are implemented.
implementation planning for Audita's general runtime glossary input interface. They do not add D&D-specific rules to Audita. No significant open design decisions
Recommendations below are proposals, not additional Audita invariants. remain for the current scope.
### 1. Which glossary roles and content requirements should both overlays expose? ### Shared Glossary Inputs
**Context:** Narratio needs stable logical names to populate. Both overlays can Both overlays accept the same named roles:
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.
**Recommendation:** Use `party` (player characters and aliases), `campaign` | Collection | Content |
(campaign-specific entities and terminology), `setting` (reusable world vocabulary), | --- | --- |
and `spells` (spell vocabulary) in both overlays. Provide empty defaults where | `party` | Player characters and their aliases. |
content is absent, preserving operator-supplied content through native composition. | `campaign` | Campaign-specific entities and terminology. |
Do not require every role to contain entries. Require only the content needed by | `setting` | Reusable world vocabulary. |
actual stage selections under existing preflight rules. Additional collections | `spells` | Spell vocabulary. |
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.
**Alternative:** Make selected roles, such as `party` and `campaign`, required Provide empty defaults for absent content through native composition, preserving
nonempty inputs to the recipe contract. This gives Narratio a stronger readiness operator-supplied vocabulary. Each role need not contain entries; normal preflight
check but excludes otherwise useful runs with sparse vocabulary. Such a requires at least one selected entry for each glossary stage. Additional
recipe-specific preparation check would belong with the integration, not a new collections remain permitted. Narratio can reuse one prepared dataset for both
D&D validation rule in Audita. Another viable shape is one combined `session` recipes, with configuration supplying reusable references where desired.
collection; it simplifies preparation but loses the role boundaries needed for
focused passes and independent replacement.
### 2. What should distinguish the production and testing stage sequences? ### Production and Testing Sequences
**Context:** Testing is agreed to mean a cheaper, shorter development run. The Start both overlays with Audita's current normal sequence: glossary, homophones,
exact stage sequences and glossary/protection selections have not been chosen. glossary, spoken_word, grammar. Select the four roles together at the root and
Production should continue to evolve with observed correction quality. use existing protection behavior. Testing retains the full production sequence
and ordinary validation; it achieves its development-cost objective through model
selection rather than removing stages.
**Recommendation:** Start production from Audita's current normal module sequence, Reevaluate production sequencing using observed results, keeping testing aligned
with the four roles selected together and existing protection behavior. For testing, with the production sequence. The initial sequence is not a permanent invariant.
start with one glossary pass followed by grammar cleanup, using the same input The recipe contract does not guarantee a particular cost, duration, or equivalence
roles and ordinary validators. This exercises vocabulary correction and editorial of correction quality between models.
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` ### Native PromptKit Profile Aliases
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? The external recipe repository supplies these profiles using native inheritance
from Audita's bundled OpenRouter catalog:
**Context:** Fewer stages can reduce testing work, while model selection also | Recipe/profile ID | Bundled parent profile | Reasoning effort |
influences cost and turnaround. Recipes need a predictable profile-selection | --- | --- | --- |
contract without assuming an operator's credentials or provider deployment. | `dnd-production` | `gpt-terra-latest` | `low` |
| `dnd-testing` | `gpt-luna-latest` | `medium` |
**Recommendation:** Have each overlay select an operator-defined proposal profile, Each overlay selects its corresponding proposal profile. Define the alias with
with documented names such as `dnd-production` and `dnd-testing`. Leave validation `extends: {id: gpt-terra-latest}` or `extends: {id: gpt-luna-latest}` and the native
and correction-repair profiles to existing fallback behavior unless explicitly `reasoning_effort` field under the combined configuration's `promptkit.profiles`.
configured by the operator. The main configuration supplies native PromptKit Inherit the backend and model from the bundled profile rather than duplicating
profiles, providers, and credentials; the testing profile can select a cheaper, those definitions. This is native profile inheritance, not a new alias mechanism.
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 Validation and correction-repair profiles keep existing fallback behavior unless
selection, with testing savings coming from fewer stages. This needs less setup explicitly configured by the operator. Operators supply credentials through the
and works with any existing profile names, but overlay selection alone would not usual PromptKit/ConfigKit mechanisms and can customize profiles using native
select a cheaper model. Supplying concrete provider/model defaults in the recipe configuration. The recipe README will document the chosen aliases and deployment
repository is another viable choice for a turnkey deployment; it reduces setup requirements; it will not require operators to construct the default aliases
but ties the recipe more closely to particular providers and requires ongoing manually. Model catalog and provider behavior remain upstream-owned.
review as model availability, performance, and prices change.