Choose reference bindings for collection selection
This commit is contained in:
@@ -11,8 +11,8 @@ spell recognition without an independently maintained Notarius overlay.
|
||||
This is Notarius's feature roadmap responding to the
|
||||
[Narratio feature request](narratio-shared-schemas-feature-request.md). It defines
|
||||
the target state and required work; a subsequent implementation plan will divide
|
||||
that work into execution stages. The binding and text-input decisions at the end
|
||||
remain proposals pending review.
|
||||
that work into execution stages. Collection selection belongs on reference
|
||||
bindings; the text-input decision at the end remains pending review.
|
||||
|
||||
## Current Baseline
|
||||
|
||||
@@ -93,8 +93,34 @@ requirement to duplicate roster data.
|
||||
|
||||
Retain existing pipeline, lane, and stage reference scopes, configuration-origin
|
||||
path handling, CLI working-directory path handling, and generated handoffs.
|
||||
Preflight and run resolve the same bindings and collection selections. The final
|
||||
binding design is subject to Open Decision 1.
|
||||
Preflight and run resolve the same bindings and collection selections.
|
||||
|
||||
### Binding Roles And Collection Selection
|
||||
|
||||
Retain the existing `spell_catalog`, `glossary`, and `party` slot roles. The first
|
||||
two consume the same shared glossary format for different tasks. Collection
|
||||
selection belongs on an external reference binding, not in module options;
|
||||
`collections` is the intended configuration field. A binding selects the input
|
||||
view, while the consuming domain code owns its interpretation.
|
||||
|
||||
When bound without an explicit selection, `spell_catalog` selects `spells`;
|
||||
`glossary` selects available `campaign` and `setting` collections. Explicit
|
||||
selections permit other collection names, including `party`. A missing explicitly
|
||||
selected collection is an error. A missing default `spells` collection is a
|
||||
spell-task suitability error; absence of default general-context collections
|
||||
contributes no context. Neither glossary binding is required merely because the
|
||||
other is supplied.
|
||||
|
||||
Selection travels with the binding through pipeline, lane, and stage scopes.
|
||||
Existing `--reference slot=path` overrides replace the path and retain configured
|
||||
collection selection; an otherwise unconfigured CLI binding uses the slot's
|
||||
defaults. Ordinary Narratio invocations need no new CLI syntax. The same file may
|
||||
be bound to both roles, with its complete content retained for shared validation.
|
||||
|
||||
The framework carries selection metadata without interpreting glossary content.
|
||||
Extraction, normalization, and validators consume their resolved bindings using
|
||||
the same selection rules, avoiding repeated collection options on individual
|
||||
modules. Internal transport details belong in the subsequent implementation plan.
|
||||
|
||||
### Shared Conformance And Task Suitability
|
||||
|
||||
@@ -190,7 +216,7 @@ Project selected general-glossary collections into useful reference vocabulary.
|
||||
Selection is explicit task policy, not an attempt to parse all unknown domain
|
||||
extensions or execute collection content. Party-derived vocabulary may be
|
||||
consumed where useful but is not required alongside a roster containing the same
|
||||
facts. The treatment of existing text inputs is subject to Open Decision 2.
|
||||
facts. The treatment of existing text inputs remains an open decision below.
|
||||
|
||||
Do not add a required campaign file, a typed campaign reference slot, or campaign
|
||||
locator traversal without a demonstrated task. The shared RPG campaign contract
|
||||
@@ -229,7 +255,7 @@ are input/preparation errors, not model-quality failures to repair with retries.
|
||||
| --- | --- |
|
||||
| Shared contract assets | Bundle exact adopted schemas and adjacent semantics, source/version identification, and applicable license material in the content-only asset tree. Keep validation logic outside `assets`. |
|
||||
| Shared input integration | Implement reusable offline decoding, schema validation, and glossary semantic checks. Preserve full documents separately from task projections. |
|
||||
| Reference binding | Resolve Open Decision 1; carry selected collections through normal configuration/CLI override resolution without implementing a new composition system. Update reference declarations and accepted media types for affected consumers. |
|
||||
| Reference binding | Add binding-level `collections` selection and carry it through normal configuration/CLI override resolution without implementing a new composition system. Update reference declarations and accepted media types for affected consumers. |
|
||||
| Spell family | Replace private overlay parsing in `internal/modules/dnd/spells/catalog`; adapt effective-catalog composition, prompt projection, and useful input diagnostics. Exercise extraction, normalization, and catalog-validator constructors together. |
|
||||
| D&D context consumers | Update `internal/modules/dnd/shared`, applicable chunk/extract constructors, shared reference prompt content, and any direct reference presentations bypassing those helpers. Derive player context from the roster without requiring duplicate authored data. |
|
||||
| Shared preparation and preflight | Ensure all selected external typed references receive domain validation during the existing preparation path, for both run and explicit preflight. Cover stage-scoped overrides as well as pipeline defaults. |
|
||||
@@ -237,7 +263,7 @@ are input/preparation errors, not model-quality failures to repair with retries.
|
||||
|
||||
This work does not require a general parsed-reference registry, a new public
|
||||
schema API, or a repository-wide package reorganization. Choose concrete helper
|
||||
placement and transport changes from the approved binding design during
|
||||
placement and transport changes for the selected binding design during
|
||||
implementation planning.
|
||||
|
||||
## Documentation, Migration, And Ownership
|
||||
@@ -315,38 +341,7 @@ offline correctness gates.
|
||||
|
||||
## Open Decisions
|
||||
|
||||
### 1. Binding Roles And Collection Selection
|
||||
|
||||
**Recommendation:** Retain the useful existing `spell_catalog`, `glossary`, and
|
||||
`party` slot roles. Make the first two consume the same shared glossary format
|
||||
for different tasks, with collection selection on an external reference binding
|
||||
(proposed field: `collections`). `spell_catalog` defaults to the `spells`
|
||||
collection when bound; `glossary` defaults to available `campaign` and `setting`
|
||||
collections. Explicit selections permit other collection names, including
|
||||
`party`, and a missing explicitly selected collection is an error. A missing
|
||||
default `spells` collection is a spell-task suitability error; absence of default
|
||||
general-context collections contributes no context. Neither glossary binding is
|
||||
required merely because the other is supplied.
|
||||
|
||||
Selection travels with the binding through pipeline/stage scopes. Existing
|
||||
`--reference slot=path` overrides replace the path and retain configured
|
||||
selection; an otherwise unconfigured CLI binding uses the slot's defaults.
|
||||
This keeps the ordinary Narratio path-only invocation first class without new
|
||||
mandatory CLI syntax. The same file may be bound to both roles, and its complete
|
||||
content remains available for shared validation. Decide the exact public field
|
||||
and transport representation before preparing the implementation plan.
|
||||
|
||||
This approach keeps task roles visible, makes custom collection names usable,
|
||||
and avoids inferring spell intent from categories. It requires a small binding
|
||||
metadata extension and documentation of override behavior.
|
||||
|
||||
**Viable alternative:** Put collection selections in module options and keep
|
||||
external bindings path-only. This changes less generic reference machinery and
|
||||
keeps interpretation wholly module-owned. However, selection must be coordinated
|
||||
across extraction, normalization, validators, and shared context consumers;
|
||||
operator configuration can become repetitive or inconsistent.
|
||||
|
||||
### 2. Existing Text Party And Glossary References
|
||||
### Existing Text Party And Glossary References
|
||||
|
||||
**Recommendation:** Reuse `party` for the shared party contract and `glossary`
|
||||
for the shared glossary contract, making a documented direct cutover for those
|
||||
|
||||
Reference in New Issue
Block a user