Plan optional collection instructions for proposals and repair
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
# Runtime Glossary Inputs and Overlay Recipes
|
# Runtime Glossary Inputs and Overlay Recipes
|
||||||
|
|
||||||
Status: Runtime input design, repository separation, and initial recipe contracts
|
Status: Runtime input design, collection instructions, repository separation, and
|
||||||
agreed. Ready for implementation planning; runtime inputs and overlays are not yet
|
initial recipe contracts agreed. Ready for implementation planning; these features
|
||||||
implemented. The external repository has development scaffolding.
|
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
|
||||||
@@ -18,6 +19,11 @@ are anchored to the selected main configuration. See the
|
|||||||
[configuration contract](../config.md) and
|
[configuration contract](../config.md) and
|
||||||
[input contract](../integrations/transcript-glossary-files.md).
|
[input contract](../integrations/transcript-glossary-files.md).
|
||||||
|
|
||||||
|
Collections currently contain entries but no collection-level instruction field.
|
||||||
|
Stage preparation flattens selected collections into entry context for proposals.
|
||||||
|
Repair retains the original proposal conversation; validators prepare separate
|
||||||
|
context from matched entries.
|
||||||
|
|
||||||
The shared loader in `internal/appconfig` performs main-source secrets bootstrap
|
The shared loader in `internal/appconfig` performs main-source secrets bootstrap
|
||||||
and composes application and PromptKit settings. Processing and native inspection
|
and composes application and PromptKit settings. Processing and native inspection
|
||||||
use this shared configuration path. Processing preflight checks resolved glossary
|
use this shared configuration path. Processing preflight checks resolved glossary
|
||||||
@@ -115,6 +121,46 @@ Supplying definitions does not automatically select them. Existing
|
|||||||
continue to determine their use. An invocation without glossary-file arguments
|
continue to determine their use. An invocation without glossary-file arguments
|
||||||
retains its current configuration acquisition behavior.
|
retains its current configuration acquisition behavior.
|
||||||
|
|
||||||
|
### Optional Collection Instructions
|
||||||
|
|
||||||
|
Add an optional plain-text `instruction` field beside a collection's `entries`.
|
||||||
|
This is proposal guidance for using that collection, alongside the module's
|
||||||
|
existing assignment and validation rules. It is distinct from an individual
|
||||||
|
entry's description and from the transcript-wide description.
|
||||||
|
|
||||||
|
For example, a wrapperless glossary document may contain:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
spells:
|
||||||
|
instruction: >
|
||||||
|
This glossary contains spell names that may appear in the transcript.
|
||||||
|
entries:
|
||||||
|
- id: fireball
|
||||||
|
name: Fireball
|
||||||
|
category: spell
|
||||||
|
```
|
||||||
|
|
||||||
|
For each stage, concatenate nonempty instructions from its selected `glossaries`
|
||||||
|
in selection order, visibly separating and labeling them with collection names.
|
||||||
|
Collections selected only through `protected_terms` do not contribute instructions.
|
||||||
|
Supply the resulting block to proposal generation for any module using that
|
||||||
|
selected glossary context. Omitted or empty instructions add no block content.
|
||||||
|
|
||||||
|
The field participates in ordinary ConfigKit inheritance and precedence, including
|
||||||
|
CLI-supplied collections. An entries-only CLI contribution preserves a configured
|
||||||
|
instruction through native recursive mapping assignment. Concatenation occurs
|
||||||
|
across the final selected collections; it does not concatenate superseded values
|
||||||
|
from different configuration sources. Keep the text literal: no additional
|
||||||
|
instruction templating, file references, or custom merge mechanism is needed.
|
||||||
|
|
||||||
|
Repair retains this guidance through the existing original proposal conversation.
|
||||||
|
Validation-context changes are deferred: validators continue to receive their
|
||||||
|
existing context and use their existing acceptance rules. The field does not add
|
||||||
|
new deterministic validation rules or alter validator ownership.
|
||||||
|
|
||||||
|
Audita owns the generic field and prompt-context plumbing. Domain-specific text,
|
||||||
|
including D&D instructions, belongs in operator content or `audita-pipelines-dnd`.
|
||||||
|
|
||||||
### Two-Step ConfigKit Integration
|
### Two-Step ConfigKit Integration
|
||||||
|
|
||||||
1. Compose supplied glossary files in a preliminary ConfigKit load, with one
|
1. Compose supplied glossary files in a preliminary ConfigKit load, with one
|
||||||
@@ -199,7 +245,21 @@ stages still require at least one selected entry under existing preflight rules.
|
|||||||
protections where applicable, using native source records rather than scanning
|
protections where applicable, using native source records rather than scanning
|
||||||
import declarations independently.
|
import declarations independently.
|
||||||
|
|
||||||
### 2. Coordinate the External Recipe Contract
|
### 2. Carry Instructions into Proposal Context
|
||||||
|
|
||||||
|
- Extend the collection configuration model with the optional string field and
|
||||||
|
retain it through normal configuration and runtime-file acquisition.
|
||||||
|
- Preserve collection names and their resolved instructions while constructing
|
||||||
|
the stage's flattened glossary entries. Prepare the instruction block with the
|
||||||
|
shared stage context, using the stage's glossary selection order.
|
||||||
|
- Expose the block as an additional proposal template variable and include it in
|
||||||
|
bundled proposal definitions. Keep the existing glossary entry payload usable
|
||||||
|
by operator prompt definitions. Use an empty default for the new variable in
|
||||||
|
ordinary previews that omit instructions.
|
||||||
|
- Reuse the existing repair conversation; no separate repair instruction loader
|
||||||
|
or validator-context expansion is part of this change.
|
||||||
|
|
||||||
|
### 3. Coordinate the External Recipe Contract
|
||||||
|
|
||||||
- Implement the agreed recipe contracts 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
|
||||||
@@ -218,7 +278,7 @@ stages still require at least one selected entry under existing preflight rules.
|
|||||||
recipes. Creating or publishing the external repository is separate work from
|
recipes. Creating or publishing the external repository is separate work from
|
||||||
this documentation update.
|
this documentation update.
|
||||||
|
|
||||||
### 3. Validate the Integration
|
### 4. Validate the Integration
|
||||||
|
|
||||||
Use real ConfigKit collaborators and a small set of behavioral tests under the
|
Use real ConfigKit collaborators and a small set of behavioral tests under the
|
||||||
[testing policy](../policy/testing.md):
|
[testing policy](../policy/testing.md):
|
||||||
@@ -232,6 +292,11 @@ Use real ConfigKit collaborators and a small set of behavioral tests under the
|
|||||||
- Cover representative invalid-input and preflight failures before model work,
|
- Cover representative invalid-input and preflight failures before model work,
|
||||||
and preservation of the selected main's companion/bootstrap context when the
|
and preservation of the selected main's companion/bootstrap context when the
|
||||||
invocation directory differs.
|
invocation directory differs.
|
||||||
|
- Verify instruction selection, ordering, collection labels, omission of empty
|
||||||
|
instructions, and exclusion of protection-only collections through shared prompt
|
||||||
|
preparation. Cover entries-only CLI replacement retaining configured instructions.
|
||||||
|
Check that the repair conversation retains supplied guidance, without asserting
|
||||||
|
exact bundled prose or expanding validator-context tests for deferred behavior.
|
||||||
- Exercise a domain-neutral overlay fixture with controlled model responses
|
- Exercise a domain-neutral overlay fixture with controlled model responses
|
||||||
where needed to prove the end-to-end handoff. Reuse existing tests for unchanged
|
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
|
domain rules. D&D recipe examples and their verification belong to the external
|
||||||
@@ -241,13 +306,15 @@ Do not duplicate ConfigKit's full composition test matrix or lock prompt wording
|
|||||||
incidental formatting, or private helper structure into tests. Run focused tests
|
incidental formatting, or private helper structure into tests. Run focused tests
|
||||||
and the repository's normal build/full-suite checks when implementation lands.
|
and the repository's normal build/full-suite checks when implementation lands.
|
||||||
|
|
||||||
### 4. Document and Coordinate Adoption
|
### 5. Document and Coordinate Adoption
|
||||||
|
|
||||||
Update the canonical CLI, configuration, input, and subprocess integration
|
Update the canonical CLI, configuration, input, and subprocess integration
|
||||||
documents as the behavior lands. Put domain-neutral copyable artifacts in Audita
|
documents as the behavior lands. Put domain-neutral copyable artifacts in Audita
|
||||||
`examples/`; keep D&D artifacts and recipe documentation in `audita-pipelines-dnd`.
|
`examples/`; keep D&D artifacts and recipe documentation in `audita-pipelines-dnd`.
|
||||||
Document the two composition boundaries, path bases, accepted file shape, role
|
Document the two composition boundaries, path bases, accepted file shape, role
|
||||||
selections, and available inspection evidence. Link upstream for native semantics.
|
selections, and available inspection evidence. Document collection instructions
|
||||||
|
in the input/configuration owners and their proposal/repair use in the prompt
|
||||||
|
integration documentation. Link upstream for native semantics.
|
||||||
|
|
||||||
Coordinate Narratio's adapter migration separately: replace the legacy glossary
|
Coordinate Narratio's adapter migration separately: replace the legacy glossary
|
||||||
handoff with native collections, select the operator's configuration/overlay, and
|
handoff with native collections, select the operator's configuration/overlay, and
|
||||||
|
|||||||
Reference in New Issue
Block a user