Approve the native suite integration plan
This commit is contained in:
@@ -22,11 +22,12 @@ match the other three targets.
|
||||
- [x] [Feature 0025: Standalone Audita adoption](features/0025-audita-v4-adoption.md) — closed after independent review with no findings; role `b818f60` passed the full offline suite and all clean repeats.
|
||||
- [x] [Feature 0026: Standalone Notarius adoption](features/0026-notarius-v0-10-adoption.md) — closed after independent review with no findings; role `85cd3a3` passed the full offline suite and all clean repeats.
|
||||
- [x] [Feature 0027: Standalone Narratio adoption](features/0027-narratio-v4-adoption.md) — closed after independent review with no findings; public role `2a4e82c` passed the full offline suite and all clean repeats.
|
||||
- [ ] Compatible prompt/campaign assets and coordinated suite integration.
|
||||
- [ ] [Feature 0028: Coordinated suite and asset integration](features/0028-coordinated-native-suite-integration.md) — roadmap, config-local import layout and staged plan approved; ready for implementation.
|
||||
- [ ] Collection assembly and consumer dependency/guidance updates.
|
||||
|
||||
All four standalone adoptions are complete after independent review, and their
|
||||
reviewed role commits are pushed. Coordinated assets/suite integration is next.
|
||||
reviewed role commits are pushed. Coordinated assets/suite integration is
|
||||
selected as Feature 0028; its roadmap is approved.
|
||||
Later features will be scoped individually; this ordering does not require
|
||||
separate features for every listed integration deliverable. Keep one active
|
||||
implementation plan at
|
||||
|
||||
@@ -0,0 +1,431 @@
|
||||
# Feature 0028: Integrate the Native Suite and Compatible D&D Assets
|
||||
|
||||
Status: ready
|
||||
|
||||
Approved: 2026-12-03, including disabled automatic cleanup, the replacement
|
||||
production profiles, separate compatible asset refs and config-local native
|
||||
prompt/catalog checkouts.
|
||||
|
||||
## Summary
|
||||
|
||||
Integrate the four reviewed standalone application updates into the D&D pipeline
|
||||
role, together with compatible campaign and prompt assets. Deliver one coherent
|
||||
suite configuration for Narratio v4.0.0, Audita v4.3.0, Notarius v0.10.0 and
|
||||
Scriptorium v0.16.0. Seriatim stays at v1.5.0.
|
||||
|
||||
This is the next unit in the [agreed upgrade sequence](../application-upgrade-sequence.md).
|
||||
Collection assembly and deployment-consumer updates follow independent review
|
||||
of this integration; the current collection remains on its existing compatible set.
|
||||
|
||||
## Problem or Opportunity
|
||||
|
||||
Features 0024–0027 updated the generic installers, but the pipeline still emits
|
||||
retired application fields and selects older role revisions. The campaign
|
||||
registry uses private campaign/party formats and wrapperless glossaries; the
|
||||
prompt library uses legacy definitions and two removed catalog profile IDs.
|
||||
Changing application versions alone would leave an unusable installation.
|
||||
|
||||
Older pipeline releases follow the asset repositories' `main` branches.
|
||||
Replacing their contents with incompatible formats would break those releases
|
||||
independently of any role upgrade. Asset compatibility and suite wiring must
|
||||
therefore be planned together.
|
||||
|
||||
## Scope
|
||||
|
||||
- Select the reviewed application-role revisions and native configuration set.
|
||||
- Migrate both maintained campaigns and all six prompt definitions, preserving
|
||||
authored content, identities, input names and intended processing behavior.
|
||||
- Wire native resources, shared references, imports, secrets bootstrap, base and
|
||||
testing selections, runtime paths and publication outputs.
|
||||
- Support an optional installed reference catalog without selecting synthetic
|
||||
sample vocabulary for real campaigns.
|
||||
- Adapt the suite's offline behavioral coverage and document the operator
|
||||
migration, including state compatibility and cleanup retention.
|
||||
|
||||
## Non-goals
|
||||
|
||||
- Redesigning the reviewed standalone roles or changing upstream applications.
|
||||
- New extraction lanes, artifact workflows, campaign facts, spell collections,
|
||||
scheduling, live processing, provider smoke checks or operational deployment.
|
||||
- Automatic conversion/deletion of existing sessions, caches, configuration
|
||||
fragments or secrets; compatibility loaders, aliases or integrity machinery.
|
||||
- Collection subtree refresh, release tagging, consumer pin/playbook changes,
|
||||
or moving an operational host to the new suite during this feature.
|
||||
- Adopting new application releases merely because they appear during the work.
|
||||
|
||||
## Target End State
|
||||
|
||||
### Compatibility set and repository boundary
|
||||
|
||||
The pipeline requirements select these reviewed standalone revisions, using
|
||||
the existing public repository URLs and installed role names:
|
||||
|
||||
| Role | Application selection | Reviewed role commit |
|
||||
| --- | --- | --- |
|
||||
| `rakestraw.scriptorium` | v0.16.0 | `e936d5200df675feeb53be235a175b608c0afc7c` |
|
||||
| `rakestraw.audita` | v4.3.0 | `b818f6067789d7fdd09a8a4a54134452089811c8` |
|
||||
| `rakestraw.notarius` | v0.10.0 | `85cd3a397f63342df8309aa4f36d9900ff610e41` |
|
||||
| `rakestraw.narratio` | v4.0.0 | `2a4e82c734a256a02281dbb6e63b348a7171f808` |
|
||||
|
||||
Retain the current Seriatim role dependency and application selection. The suite
|
||||
uses Go `1.27/stable` through its existing configurable toolchain inputs.
|
||||
Versions remain inventory-overridable, without promising that incompatible
|
||||
older applications accept the migrated configuration.
|
||||
|
||||
Only the standalone pipeline repository advances its dependency manifest here.
|
||||
The collection's vendored pipeline, dependency manifest and consumer stay put
|
||||
until the later distribution feature. Completion records the integrated
|
||||
pipeline and asset commits for that handoff.
|
||||
|
||||
### Asset compatibility and selection
|
||||
|
||||
The arrangement is a `native-v4` compatibility branch in each asset
|
||||
repository, based on the current reviewed content:
|
||||
|
||||
- Campaigns: `d1193e8be4163c2742baa2517c9a048b6873622d`.
|
||||
- Prompt library: `c7e18454e5f02aedb0657d522f7c550f82d874ed`.
|
||||
|
||||
Keep the legacy `main` trees intact. The new suite selects full immutable
|
||||
commit IDs from the compatible branches, not a moving branch name. Repository
|
||||
URL, revision and destination remain caller-overridable. No old consumer must
|
||||
upgrade merely to continue obtaining its current asset format.
|
||||
|
||||
Both formats retain their ordinary repository-root layout on their respective
|
||||
refs. This avoids a second checkout root, runtime format selection, or role-side
|
||||
data conversion. A later promotion of native assets to `main` requires an
|
||||
explicit legacy-consumer cutover decision; it is not implicit in this feature.
|
||||
The workspace's asset checkouts may track the compatibility branches during
|
||||
development; documentation and tests must name their actual selected revisions.
|
||||
The duplicate sibling `../narratio-prompts` is not the authoring checkout.
|
||||
|
||||
### Campaign and shared reference assets
|
||||
|
||||
The compatible campaign ref contains both `centaurs` and `dilfs` in the shared
|
||||
campaign, party and glossary formats used by the adopted applications:
|
||||
|
||||
- Campaigns use `maximumdirect.rpg.campaign.v1`, stable `id`, `references.party`
|
||||
and the `narratio` extension for speaker input, glossary input and inline
|
||||
autocorrection. Move the existing rules into that native extension; preserve
|
||||
their order and text rather than inventing a conversion task on the host.
|
||||
- Parties use `maximumdirect.rpg.party.v1`. Retain character IDs, names, player
|
||||
relationships, classes and levels, with the native plural `aliases` field.
|
||||
Narratio derives its players document from this roster; stop binding the
|
||||
separately authored legacy `players.yml` as a runtime source.
|
||||
- Campaign vocabulary uses `maximumdirect.glossary.v1`, a named `campaign`
|
||||
collection and entries with stable unique IDs. Preserve names, aliases,
|
||||
categories and descriptions; map legacy summaries to native descriptions.
|
||||
Assign IDs once during authoring, not from a runtime hashing scheme.
|
||||
|
||||
Keep speaker mappings and existing campaign facts. Do not infer a setting or
|
||||
system selection from place names, invent missing player characters, correct
|
||||
unrelated factual inconsistencies, or install synthetic sample campaigns as
|
||||
production replacements. Shared schemas and tagged application guides own
|
||||
exact field semantics. Old files may remain inert on the compatible ref when
|
||||
useful; current campaign declarations must not depend on retired inputs.
|
||||
|
||||
### Prompt library and model selection
|
||||
|
||||
The native prompt checkout defaults to
|
||||
`/usr/local/etc/scriptorium/prompt-library`. The compatible ref exposes a
|
||||
native wrapperless PromptKit entry point,
|
||||
`promptkit.yml`, containing explicit source-relative imports of its definitions.
|
||||
The Scriptorium root imports that entry point at native `promptkit` through
|
||||
the reviewed role's import interface using the contained relative path
|
||||
`prompt-library/promptkit.yml`. Schemas and message bodies travel with
|
||||
their defining files; the entry point selects `schema_root: schemas`, and
|
||||
resource paths use the native source-relative rules.
|
||||
|
||||
Migrate all six IDs: `dnd.session_bounds`, `dnd.session_recap`,
|
||||
`dnd.hostile_rumors`, `dnd.deranged_rumors`, `dnd.scene_map` and
|
||||
`dnd.character_meta_analysis`. Preserve prompt instructions, named inputs,
|
||||
Markdown/JSON outputs and structural-repair choices unless a native format
|
||||
change requires a different representation. Preserve supported `session_id`
|
||||
templates and the variables Narratio supplies. Retire version-based selection
|
||||
in favor of native prompt IDs rather than adding a legacy reader.
|
||||
|
||||
Retain the available production selections: `gemini-flash-latest` for bounds,
|
||||
and `claude-fable-latest` for recap and character analysis. The replacement
|
||||
for the removed `aion-2` rumor and `nemotron-3-ultra` scene-map profiles is
|
||||
`gpt-terra-latest`, as approved during roadmap review. Callers may
|
||||
override artifact/family profile selections or supply native profile definitions.
|
||||
Do not recreate the entire removed catalog in the suite or assume that an old
|
||||
profile name identifies an available provider model today.
|
||||
|
||||
### Audita native processing policy
|
||||
|
||||
Use schema 3 and the reviewed role's native PromptKit backend/profile fields.
|
||||
Replace the old backend/profile maps with ID-bearing native lists, exposed
|
||||
through inventory-composable suite variables. Preserve the selected endpoint
|
||||
`https://inference.ai.rakestrawhome.com/v1`, model `google/gemma-4-31b-it`,
|
||||
`AUDITA_LLM_API_KEY` reference, backend capacity 4, proposal/validation IDs and
|
||||
per-profile 900-second timeout. Map credential/capacity fields to their native
|
||||
names; do not infer a provider implementation or freeze queue defaults.
|
||||
|
||||
Replace the old module-name list with ordered native stage records preserving
|
||||
`glossary → homophones → glossary → spoken_word → grammar`. Preserve the
|
||||
explicit D&D context, chunking, normalization and `audita-v1` output choices.
|
||||
Retire confidence thresholds and the old repair variable. Leave transport retry,
|
||||
operation timeout and new semantic repair controls null unless an existing
|
||||
explicit suite requirement selects them; old retry counts do not imply new
|
||||
semantic guarantees.
|
||||
|
||||
Select the prepared `party`, `campaign`, `setting` and `spells` collections for
|
||||
glossary context. Declare empty collection entries where needed for a valid
|
||||
standalone Audita configuration; Narratio supplies the four runtime shared
|
||||
documents and replaces those entry lists. Do not duplicate campaign vocabulary
|
||||
in role defaults. Leave protection fallback with Audita unless inventory selects
|
||||
it explicitly. Audita's production and testing policy stays identical initially.
|
||||
Retire management of legacy profile files under `/usr/local/etc/audita/profiles`;
|
||||
leave existing files untouched and explain the native resource selection.
|
||||
|
||||
### Notarius native pipeline and testing overlay
|
||||
|
||||
Use schema 6, native `config.imports` and one suite-owned imported pipeline map.
|
||||
Preserve the three ordered phases and all ten lanes in the maintained complete
|
||||
D&D workflow, including generated registry/scene/combat handoffs, chunk-map and
|
||||
evidence-context selections. Use the tagged complete example as the structural
|
||||
reference, without copying its sample file paths or model policy.
|
||||
|
||||
The production pipeline explicitly selects `gpt-terra-latest`; the Notarius
|
||||
`testing` overlay selects `gpt-luna-latest` for the suite-selected pipeline ID.
|
||||
Both IDs exist in the selected native catalog. Keep the map caller-composable,
|
||||
and change only the selected pipeline in the overlay so unrelated pipelines
|
||||
retain their selections. Do not duplicate a complete pipeline in the overlay.
|
||||
|
||||
Replace retired per-producer retry keys with native producer controls where
|
||||
selected. Leave `mode` and `max_additional_turns` unset and
|
||||
inherit Notarius's defaults; old `retries: 2` is not a continuation budget.
|
||||
Prompt-owned structural repair and transport retry remain independent.
|
||||
|
||||
Use `notarius_cache_directory: /var/cache/notarius` through a suite variable.
|
||||
Ordinary accepted-result caching remains enabled with native `auto` policy;
|
||||
remove chunk-plan/checkpoint subdirectory controls and do not migrate/delete
|
||||
old records. Leave Narratio's optional cache override null in ordinary runs.
|
||||
Testing changes the model selection, not cache policy: operators seeking fresh
|
||||
inference force extraction or deliberately select refresh/bypass. Changing an
|
||||
overlay/model alone does not guarantee new Notarius inference or a Narratio rerun.
|
||||
|
||||
Bind `party` to `narratio.input.party`, and `glossary` and `spell_catalog` to
|
||||
`narratio.input.glossary.combined`. Keep generated handoffs internal to the
|
||||
pipeline. Shared collection selection belongs in native binding records; no
|
||||
separate authored player roster is required. Output declarations retain all ten
|
||||
lane IDs and optional flat JSON filenames, dropping retired media/schema/module
|
||||
descriptors. Extraction outputs remain available to analyze inputs as
|
||||
`narratio.extraction.<key>`.
|
||||
|
||||
### Narratio configuration, filesystem and credentials
|
||||
|
||||
Adopt `/usr/local/etc/narratio/narratio.yml` as the suite root, with explicit
|
||||
ordered `config.imports` marked required for suite-owned fragments. Retain one
|
||||
file per artifact/family and a small processing fragment. Keep artifact keys,
|
||||
dependencies, enabled states, input names and publication sources. Flatten the
|
||||
character-family output pattern to `artifacts/character_meta_analysis_{character_id}.md`
|
||||
as required by v4; remote publish destinations remain independent.
|
||||
|
||||
Set native `config.secrets_dir: secrets` through the Narratio role and leave
|
||||
overwrite behavior with ConfigKit. Preserve credential-name lists for Audita,
|
||||
Notarius and Scriptorium and the typed S3 pair. The existing empty-by-default
|
||||
`dnd_pipeline_secrets` map remains the suite's managed-file option; environment
|
||||
delivery remains supported. Do not add a wrapper, `--secrets-dir` invocation,
|
||||
credential discovery, or mandatory file-only policy.
|
||||
|
||||
Retain `narratio:narratio` ownership, world-readable ordinary configuration and
|
||||
assets, restricted secrets `0750`/`0640`, operator enrollment, and shared writable
|
||||
roots `2775` with the existing access/default ACL policy. Apply writable-root
|
||||
ACLs to the workspace and `/var/cache/notarius`; stop managing retired Narratio
|
||||
spool/audio-cache roots. Existing roots, ACLs and data are not recursively
|
||||
migrated or removed. Runtime application state stays application-owned.
|
||||
|
||||
Preserve S3 endpoint/bucket/prefix/region and credential-reference defaults,
|
||||
enabled publication and its selected products. Keep transcript/output handoffs
|
||||
explicit where the suite coordinates producers and consumers. Optional tuning
|
||||
elsewhere inherits application defaults via nullable variables. Remove obsolete
|
||||
Narratio cache/resume/module fields. Default automatic cleanup to false,
|
||||
retaining run history and diagnostics; inventory may explicitly enable it.
|
||||
|
||||
Narratio `--overlay testing` still enables Notarius and selects its independent
|
||||
`testing` overlay. Apply `gemini-flash-latest` to all ordinary Scriptorium
|
||||
artifacts/families and to trim bounds, so testing also covers the trim call.
|
||||
Keep production provider keys usable through the existing credential lists.
|
||||
The testing overlay does not silently disable processing, change storage,
|
||||
duplicate Audita settings or impose a new cache invalidation policy.
|
||||
|
||||
### Optional reference catalog
|
||||
|
||||
Support an optional Git-managed catalog at
|
||||
`/usr/local/etc/narratio/reference-catalog`, with configurable repository,
|
||||
revision and destination. Default the repository selection to null; an opting-in
|
||||
inventory supplies its source and revision. Import `reference-catalog/catalog.yml`
|
||||
as a required relative native source when selected. Custom checkout destinations
|
||||
must remain within the importing main's directory tree. Also expose nullable
|
||||
native setting/system maps
|
||||
for caller-managed files. Preserve native composition rather than adding a
|
||||
catalog loader or resource-fetching process at runtime.
|
||||
|
||||
`../narratio-reference-catalog` at `016473fd16b15847f3e913670c423faa7c35720b`
|
||||
is a read-only example of this contract, not a selected public dependency: its
|
||||
local checkout has no configured origin and contains synthetic vocabulary.
|
||||
Default campaigns select neither its sample setting nor its sample system.
|
||||
Without a selection, Narratio still prepares empty setting/spells collections;
|
||||
Notarius retains its embedded spell vocabulary. Supplying real additional
|
||||
setting/system content is an inventory/asset-authoring choice, not a prerequisite
|
||||
for this integration. Tests can use a small synthetic catalog explicitly.
|
||||
|
||||
### Operator handoff
|
||||
|
||||
Document public variable removals/replacements, immutable asset selection,
|
||||
native CLI selectors and required downstream configuration. Inventory examples
|
||||
contain credential names or encrypted-variable references, never actual keys.
|
||||
|
||||
Explain the new shared input formats, source-relative paths, flat outputs,
|
||||
cache reuse versus fresh experiments, and independent overlays. Preserve old
|
||||
authored sources and workspaces separately. Narratio accepts only local
|
||||
`narratio.session-manifest.v2`; old state is not converted by changing a marker.
|
||||
Regeneration or compatible product import into a new baseline is an operator
|
||||
workflow. Publication/restore no longer preserves the old execution ledger.
|
||||
Explain cleanup scope and the selected retention default explicitly.
|
||||
|
||||
## Repository Ownership
|
||||
|
||||
- `ansible-role-dnd-pipeline`: native composition, opinionated defaults, optional
|
||||
catalog deployment, imports/overlays, filesystem/credential policy, tests and
|
||||
migration guidance.
|
||||
- `assets/campaigns` and `assets/narratio-prompts`: authoritative compatible
|
||||
content on separate refs; no application-data conversion in the role.
|
||||
- Workspace: roadmap, later staged plan, tracking, selected revision evidence
|
||||
and any necessary orientation updates.
|
||||
- Application/framework/shared-schema sources and the local reference-catalog
|
||||
example: read-only contracts. Standalone roles are reused without redesign.
|
||||
- Collection and deployment consumer: unchanged until the distribution feature.
|
||||
|
||||
## Constraints and Settled Decisions
|
||||
|
||||
Follow [Ansible](../../ansible.md), [testing](../../testing.md) and
|
||||
[planning](../../planning.md) policy, the [MVP architecture](../mvp.md), and
|
||||
[Decision 0002](../../decisions/0002-shared-readable-pipeline-filesystem-policy.md).
|
||||
This approved roadmap replaces retired version-specific suite wiring while
|
||||
preserving the separation of generic installers and D&D policy.
|
||||
Keep native resource defaults upstream-owned except for explicit suite choices.
|
||||
|
||||
## Simplest Viable Implementation
|
||||
|
||||
Update existing dependency pins, defaults/specs and role variable bindings.
|
||||
Use ordinary Git tasks for selected assets/catalog, the existing file and ACL
|
||||
tasks for current roots, and template tasks for suite-owned fragments/overlays.
|
||||
Native Audita resources replace separate legacy profile deployment. Expose
|
||||
complete native maps/lists for inventory composition. The optional catalog adds
|
||||
only conditional checkout/import wiring. No runtime validators, version probes,
|
||||
assembly facts, state manifests, custom modules or compatibility parser are needed.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- The standalone suite composes the reviewed role set and all five application
|
||||
selections with the new interfaces; retired variables are absent from active
|
||||
configuration and documented as migrations rather than aliases.
|
||||
- Compatible campaign and prompt commits are recorded and selected explicitly.
|
||||
Legacy asset `main` content and collection/consumer compatibility are preserved.
|
||||
- Both campaign/party documents validate offline through native inspection;
|
||||
migrated glossaries conform to the pinned shared schema. All six prompts and
|
||||
their source-relative message/schema resources resolve through native
|
||||
Scriptorium inspection/preparation without generation or a provider.
|
||||
- Audita schema 3, Notarius schema 6 and its complete pipeline, Scriptorium native
|
||||
resources, and Narratio base/testing composition validate offline. Domain
|
||||
artifact listing works with a migrated campaign/party and expands the existing
|
||||
family without creating processing state or contacting storage/providers.
|
||||
- Focused supplied-value cases prove backend/profile overrides, stage/list/map
|
||||
composition, selected-pipeline testing overlay, trim/artifact/family profile
|
||||
overrides, optional catalog binding, credential bootstrap and current lane
|
||||
handoffs. Test explicit overrides and useful falsey values, not default model
|
||||
identities, complete reports or native framework internals.
|
||||
- Retain meaningful service-account/human-group execution and shared-write
|
||||
coverage with synthetic credentials and a small fixture. Do not recheck module
|
||||
metadata or expand negative tests for self-evident guards. Remove obsolete
|
||||
command uses and redundant module/default assertions while adapting the harness.
|
||||
- Each role scenario has an immediate identical repeat with no reported changes.
|
||||
Syntax, production-profile lint, shell syntax, relevant offline integration and
|
||||
changed-document checks pass. Reuse the existing local test host and tooling;
|
||||
no controller deployment, paid model, preflight, mocked orchestration pipeline,
|
||||
full upstream release suite or live end-to-end run is an extra gate.
|
||||
- No data/secret/legacy-file cleanup or state migration occurs during convergence.
|
||||
README and handoff clearly identify compatibility, retention and testing limits.
|
||||
Record tested pipeline/asset revisions for later collection assembly and
|
||||
consumer adoption; do not claim live editorial or extraction quality.
|
||||
|
||||
## Dependencies and Follow-up Work
|
||||
|
||||
Features 0024–0027 are complete and their role revisions are public. This
|
||||
roadmap and its [staged plan](../implementation.md) are approved and ready for
|
||||
implementation. Asset commits produced by
|
||||
implementation may be exercised through explicit local Git sources in tests;
|
||||
reviewed revisions must be available from their public origins before later
|
||||
collection/consumer distribution. No publication is performed by this planning pass.
|
||||
|
||||
After independent review, the distribution feature imports the reviewed pipeline
|
||||
subtree, updates collection dependencies and consumer selections, and provides
|
||||
the final operator handoff. Actual deployment and online readiness remain
|
||||
separate operator activities.
|
||||
|
||||
## Rationale for Approved Choices
|
||||
|
||||
### 1. Cleanup retention under Narratio v4
|
||||
|
||||
Default the migrated suite's cleanup setting to false for
|
||||
the initial v4 integration, retaining session run history, logs and diagnostics.
|
||||
Publication remains enabled. Operators can explicitly opt into true when they
|
||||
intend the new entire-run-history removal. This change to existing suite policy
|
||||
was explicitly approved rather than inferred from a version bump.
|
||||
|
||||
**Alternative:** retain the existing true default, preserving automatic cleanup
|
||||
as the suite's chosen behavior. This is viable if the broader deletion of all
|
||||
session attempts after successful publication is intended; document it clearly
|
||||
and retain the inventory override. Neither option authorizes cleanup at install time.
|
||||
|
||||
### 2. Production profiles removed from the native catalog
|
||||
|
||||
Use `gpt-terra-latest` for hostile/deranged rumors and the
|
||||
optional scene map, retaining the other available production defaults and
|
||||
`gemini-flash-latest` testing policy. It is a selected native catalog profile
|
||||
and avoids guessing replacement provider IDs for `aion-2` and
|
||||
`nemotron-3-ultra`, which the old assets name without defining.
|
||||
|
||||
The alternative was to retain those public profile names and author explicit native
|
||||
profiles for operator-confirmed provider model IDs. That would preserve the exact
|
||||
model intent if those models remained available, but their IDs/settings would
|
||||
need separate review. The approved catalog replacement avoids that dependency.
|
||||
Do not silently choose a new provider model solely from the old profile name.
|
||||
|
||||
### 3. Native import containment
|
||||
|
||||
Released ConfigKit rejects absolute imports and confines relative imports to
|
||||
the main source's filesystem root, normally its canonical directory. The
|
||||
originally proposed shared prompt/catalog locations cannot be imported from
|
||||
the selected `/usr/local/etc` application mains. A native
|
||||
Scriptorium probe confirmed external imports fail and contained imports pass.
|
||||
|
||||
The approved layout places native prompts at
|
||||
`/usr/local/etc/scriptorium/prompt-library` and the optional catalog at
|
||||
`/usr/local/etc/narratio/reference-catalog`, importing both relatively. Preserve
|
||||
the campaign root, compatibility refs, ordinary readability, ownership and all
|
||||
other approved choices; leave legacy shared checkouts untouched. One Git
|
||||
checkout per selected asset remains sufficient.
|
||||
|
||||
Keeping shared destinations and requesting upstream external-source support was
|
||||
a viable alternative, but would introduce a release dependency. Config-local
|
||||
checkouts use the released contract directly without duplicate copies or a
|
||||
synchronization layer. Existing checkouts beneath `/usr/local/share/narratio`
|
||||
remain untouched; campaign assets retain their selected shared location.
|
||||
|
||||
## Open Questions
|
||||
|
||||
None. Cleanup, profile replacement, asset compatibility and the config-local
|
||||
import layout are approved.
|
||||
|
||||
## Upstream References
|
||||
|
||||
- [Narratio v4 release and migration](https://gitea.maximumdirect.net/eric/narratio/src/tag/v4.0.0/docs/releases/v4.0.0.md)
|
||||
- [Narratio configuration and shared inputs](https://gitea.maximumdirect.net/eric/narratio/src/tag/v4.0.0/docs/config.md)
|
||||
- [Narratio operations and cleanup](https://gitea.maximumdirect.net/eric/narratio/src/tag/v4.0.0/docs/operations.md)
|
||||
- [Notarius complete D&D consumer guide](https://gitea.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/consumers/dnd-pipeline.md)
|
||||
- [Notarius shared reference inputs](https://gitea.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/integrations/shared-domain-inputs.md)
|
||||
- [Audita schema 3 and runtime glossaries](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/config.md)
|
||||
- [Scriptorium native prompt migration](https://gitea.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/consumers/upgrading-promptkit.md)
|
||||
@@ -1,12 +1,553 @@
|
||||
# Implementation Plan
|
||||
# Implementation Plan 0028: Integrate the Native Suite and D&D Assets
|
||||
|
||||
No implementation plan is active.
|
||||
Status: ready
|
||||
|
||||
[Feature 0027: Standalone Narratio v4.0.0 adoption](features/0027-narratio-v4-adoption.md)
|
||||
is complete after independent review with no findings. Git history preserves
|
||||
its executed staged plan.
|
||||
Approved: 2026-12-03, including the config-local import layout.
|
||||
|
||||
The next recommended scope in the
|
||||
[agreed upgrade sequence](application-upgrade-sequence.md) is coordinated
|
||||
asset/suite integration. Agree on its feature roadmap before preparing a new
|
||||
staged plan here. Collection assembly and consumer updates follow integration.
|
||||
Target executor: GPT-5.6-Terra
|
||||
|
||||
Feature roadmap: [Feature 0028](features/0028-coordinated-native-suite-integration.md),
|
||||
approved 2026-12-03. Its target state and acceptance criteria govern this plan.
|
||||
|
||||
Active plan location: `docs/roadmap/implementation.md`
|
||||
|
||||
## Objective
|
||||
|
||||
Deliver compatible campaign and prompt refs, migrate the standalone pipeline
|
||||
role to the four reviewed native application interfaces, and support optional
|
||||
reference-catalog deployment. Preserve old distributed consumers while leaving
|
||||
the new integration ready for independent review and later collection assembly.
|
||||
|
||||
## Execution Rules
|
||||
|
||||
- This plan is approved for implementation. Execute Stage 1 through Stage 5 in
|
||||
order. Immediately before each stage, reread its Required Policy Review and
|
||||
check its preconditions and owning repository's state.
|
||||
- Preserve unrelated changes. Commit each validated unit in its owning repo
|
||||
with the stated intent; update plan progress. Do not merge native asset work
|
||||
into legacy `main`, push, tag a release, update the collection/consumer or
|
||||
deploy to an operational controller/host during execution.
|
||||
- Keep direct declarative Ansible. No production version/configuration probes,
|
||||
automatic data migration, cleanup of old files, fingerprinting, assembly facts,
|
||||
custom modules or compatibility loaders. Existing Git/build behavior remains
|
||||
in the reviewed application roles. Trust modules to converge their state.
|
||||
- Validation uses the real applications offline. Preflight, inference, S3 I/O,
|
||||
a fake processing pipeline, real credentials and upstream release suites are
|
||||
not gates. Use synthetic credentials only when native loading needs values.
|
||||
- `.venv/bin` contains the local Ansible tooling; absence from PATH is not a
|
||||
controller blocker. Follow workspace README/`requirements-dev.txt` for setup.
|
||||
Reuse installed compatible binaries for asset validation. If missing, prepare
|
||||
the selected released binary locally using the reviewed source-build contract,
|
||||
without modifying upstream tracked files or deploying to another host.
|
||||
- Stop dependent work on a real validation failure; report its actual command
|
||||
and result. Do not invent prerequisites such as public delivery of unreviewed
|
||||
asset commits before their local integration can be tested.
|
||||
|
||||
## Starting State and Preconditions
|
||||
|
||||
- Roadmap approval includes cleanup false, `gpt-terra-latest` replacing removed
|
||||
rumor/scene-map profiles, `native-v4` compatibility branches with immutable
|
||||
asset selections, and config-local prompt/catalog checkouts. The roadmap and
|
||||
this implementation plan are approved.
|
||||
- Pipeline: `ansible-role-dnd-pipeline` on clean `main` at
|
||||
`0f841fd91ffc533aeec0ec688e81c24bd187a845`.
|
||||
- Campaigns: `assets/campaigns`, clean `main` at
|
||||
`d1193e8be4163c2742baa2517c9a048b6873622d`.
|
||||
- Prompts: `assets/narratio-prompts`, clean `main` at
|
||||
`c7e18454e5f02aedb0657d522f7c550f82d874ed`.
|
||||
- Native asset branches do not exist at planning time. Recheck all starting
|
||||
states; if a branch already exists, inspect and preserve it rather than reset it.
|
||||
- All reviewed standalone-role commits in the roadmap are public. Update only
|
||||
the standalone pipeline's requirements to those commits. Preserve Seriatim's
|
||||
role pin and application v1.5.0, plus current pinned native collections.
|
||||
- Planning verified `/usr/local/bin` has Narratio v4.0.0, Audita v4.3.0,
|
||||
Notarius v0.10.0 and Scriptorium v0.16.0. Go is 1.27.4 and `sudo -n true`
|
||||
succeeds. Recheck before using the authorized local Ubuntu 26.04 test host.
|
||||
- Pipeline convergence can update installed binaries/source, suite configuration,
|
||||
service-account state, managed roots, ACLs, and Git-managed asset destinations
|
||||
on this test host. Do not open existing sessions or run processing/cleanup.
|
||||
|
||||
## Repository Scope
|
||||
|
||||
Campaign and prompt compatibility commits belong in their `assets/` repositories,
|
||||
not the duplicate sibling prompt checkout. Pipeline code and integration coverage
|
||||
belong in `ansible-role-dnd-pipeline`. The workspace owns tracking and evidence.
|
||||
Application/framework/schema sources, standalone roles and
|
||||
`../narratio-reference-catalog` are read-only references. The catalog example
|
||||
has no configured origin and is not a mandatory dependency. The collection and
|
||||
deployment consumer remain unchanged throughout this feature.
|
||||
|
||||
## Stage 1: Author the Native Campaign Assets
|
||||
|
||||
### Objective
|
||||
|
||||
Leave both real campaigns usable by Narratio v4 on a separate compatible ref,
|
||||
preserving the legacy asset surface.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Immediately read workspace `AGENTS.md`, orientation, conventions, `docs/ansible.md`,
|
||||
`docs/testing.md`, and the approved roadmap. Check asset-local instructions.
|
||||
Read `../narratio/AGENTS.md`, its development/agent reading guide, tagged v4
|
||||
configuration and party contracts. Use its embedded shared schemas as the
|
||||
versioned reference; do not modify the schemas or upstream implementation.
|
||||
|
||||
### Preconditions
|
||||
|
||||
Plan approval and asset starting state are confirmed. Inspect both campaigns'
|
||||
campaign, roster, glossary, speakers, players and autocorrection files.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
`assets/campaigns`
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Create/switch to `native-v4` based on the stated campaign commit. Leave
|
||||
legacy `main` configuration unchanged. Do not publish during this stage.
|
||||
2. Convert `centaurs/campaign.yml` and `dilfs/campaign.yml` to the shared marker
|
||||
and stable `id`. Bind `references.party`, and put speakers/glossary paths
|
||||
and the existing ordered `target`/`match` autocorrection rules under
|
||||
`narratio.inputs`. Retain relative paths within each campaign directory.
|
||||
3. Convert both rosters to the shared marker. Preserve authored IDs, players,
|
||||
names, aliases, class names and levels. Do not invent roster entries from
|
||||
the legacy player list. Narratio derives players from the canonical roster;
|
||||
retain legacy files inert if useful, but remove their obsolete runtime bindings.
|
||||
4. Convert both glossary lists to a shared `collections.campaign.entries`
|
||||
envelope, preserving facts and mapping summaries to descriptions. Author
|
||||
readable stable entry IDs once; resolve any collisions explicitly. Do not
|
||||
add a runtime generator or unrelated factual corrections. Leave setting and
|
||||
system selectors absent: no production sample vocabulary is selected.
|
||||
5. Explain the compatible branch/layout and native validation in README.
|
||||
|
||||
### Validation
|
||||
|
||||
From the workspace root, create a temporary main containing only a synthetic
|
||||
WhisperX URL and use the installed v4 binary for each campaign:
|
||||
|
||||
```sh
|
||||
narratio config validate --config "$fixture_config" --scope campaign --campaign-file "$campaign_file"
|
||||
narratio config validate --config "$fixture_config" --scope party --party-file "$party_file"
|
||||
git -C assets/campaigns diff --check
|
||||
```
|
||||
|
||||
Set each file variable explicitly to the current campaign's absolute path.
|
||||
Validate each glossary using `.venv/bin/python`, PyYAML and
|
||||
`jsonschema.Draft202012Validator` against Narratio v4's
|
||||
`internal/domaininput/resources/glossary/v0.2.0/schema.json` (read it from the
|
||||
selected release, using `git show v4.0.0:...` if the checkout has advanced).
|
||||
No network schema resolution or custom validator is needed. Review the authored
|
||||
diff for preserved content and record results; do not freeze current row counts
|
||||
or names in a new snapshot test. Remove temporary fixtures.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
Both campaign/party documents pass native offline validation; both glossaries
|
||||
conform to the selected schema. Content and legacy compatibility are preserved.
|
||||
Record the new compatible commit for Stage 3's asset pin.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Migrate campaigns to shared Narratio inputs`.
|
||||
|
||||
## Stage 2: Author and Prepare the Native Prompt Library
|
||||
|
||||
### Objective
|
||||
|
||||
Leave all six D&D prompts and their resources loadable and preparable by
|
||||
Scriptorium v0.16.0 on the compatible asset ref.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Immediately reread workspace `AGENTS.md`, orientation, conventions,
|
||||
`docs/ansible.md`, `docs/testing.md` and the roadmap. Check asset instructions.
|
||||
Read Scriptorium's agent/development guidance and tagged native PromptKit
|
||||
migration/format documentation linked from its v0.16.0 release.
|
||||
|
||||
### Preconditions
|
||||
|
||||
Stage 1 is committed. Confirm the prompt starting commit and inspect every
|
||||
definition plus its shared message bodies and schemas before editing.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
`assets/narratio-prompts`
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Create/switch to `native-v4` from the stated prompt commit. Preserve legacy
|
||||
`main` and all six logical prompt IDs.
|
||||
2. Add root `promptkit.yml`, a wrapperless native settings entry point with
|
||||
`schema_root: schemas`. Explicitly import the six ID-first definitions as
|
||||
sequence items at `[prompts]`, with required imports. Retain source-relative
|
||||
resource paths; no recursive discovery dependency or copied model catalog.
|
||||
3. Migrate unsupported definition syntax as needed for native loading. Preserve
|
||||
instructions, output contracts, explicit repair budgets, supported
|
||||
`session_id` templates and current template-variable names. Selection is by
|
||||
native ID, not version. The approved profile replacements are
|
||||
`gpt-terra-latest` for both rumors and scene map; retain the other model
|
||||
selections specified by the roadmap.
|
||||
4. Check existing shared bodies' `input` calls against declared inputs. Preserve
|
||||
optional context, including players/party where referenced; declare those
|
||||
existing body inputs as optional if needed for native preparation. Do not
|
||||
make additional files mandatory or rewrite the prompt's editorial purpose.
|
||||
5. Document the entry point, compatible ref, model choices and native offline
|
||||
validation/preparation in README.
|
||||
|
||||
### Validation
|
||||
|
||||
Copy the selected asset tree into a temporary fixture's `prompt-library/`
|
||||
directory. Create the main beside that directory, importing
|
||||
`prompt-library/promptkit.yml` with `destination: [promptkit]` and
|
||||
`required: true`. Imports must be relative and contained by the main's directory.
|
||||
Run:
|
||||
|
||||
```sh
|
||||
scriptorium config validate --config "$fixture_config"
|
||||
scriptorium promptkit show prompt "$prompt_id" --config "$fixture_config" --format json
|
||||
scriptorium promptkit show prepared "$prompt_id" --config "$fixture_config" --input-text transcript='{"segments":[]}' --var session_id=fixture-session --format json
|
||||
git -C assets/narratio-prompts diff --check
|
||||
```
|
||||
|
||||
Inspect each of the six IDs and prepare each with its declared inputs. Adapt
|
||||
the shown preparation arguments to that definition: rumors need recap;
|
||||
transcript-based prompts need transcript and any optional context consumed by
|
||||
their bodies; character analysis additionally needs synthetic `character_name`
|
||||
and `character_class`. `--input-text`/`--var` are native aliases confirmed by
|
||||
installed help. Use synthetic text only and native profile selection. Supply
|
||||
synthetic environment values if preparation requires them; never generate or
|
||||
contact a provider. This proves message/schema resource resolution, not model
|
||||
output quality. Remove temporary fixtures and record the compatible commit.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
All six definitions and preparations resolve on the selected released contract,
|
||||
with schemas/message files found from the deployed source layout. Legacy
|
||||
consumers' content remains available on `main`.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Migrate the D&D prompts to native PromptKit resources`.
|
||||
|
||||
## Stage 3: Integrate the Core Native Suite and Existing Behavioral Cases
|
||||
|
||||
### Objective
|
||||
|
||||
Leave a valid core pipeline role using the reviewed applications and compatible
|
||||
assets, with its existing integration coverage migrated to native commands.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Immediately reread workspace `AGENTS.md`, orientation, conventions,
|
||||
`docs/ansible.md`, `docs/testing.md` and the approved roadmap. Check role-local
|
||||
instructions. Read each upstream application's agent reading guide and the
|
||||
roadmap's tagged configuration, CLI, integration and cache/migration references.
|
||||
Review the standalone roles' actual variable interfaces, not legacy suite docs.
|
||||
|
||||
### Preconditions
|
||||
|
||||
Stages 1 and 2 are committed; capture their full commit IDs. Inspect current
|
||||
pipeline defaults, argument specs, dependencies, tasks, all templates, README
|
||||
and integration harness. Native binaries and local test permissions are available.
|
||||
Use the approved config-local import layout below; no upstream release change
|
||||
or duplicate asset tree is required.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
`ansible-role-dnd-pipeline`
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Pin the four roles exactly as listed in the roadmap; select its application
|
||||
versions, Go `1.27/stable` and the Stage 1/2 full asset commits. Preserve
|
||||
existing asset origins and Seriatim selection. Set the native prompt checkout
|
||||
default to
|
||||
`/usr/local/etc/scriptorium/prompt-library`, leaving the old shared checkout
|
||||
unmanaged and untouched. Keep version/revision
|
||||
overrides; no promise of older-schema compatibility or new release tags.
|
||||
2. Replace retired suite inputs and bindings with this public interface, aligning
|
||||
defaults, specs, template use and README:
|
||||
|
||||
| Suite variable | Default / application binding |
|
||||
| --- | --- |
|
||||
| `dnd_pipeline_audita_pipeline_stages` | ordered native records for the existing five-module sequence; `audita_pipeline_stages` |
|
||||
| `dnd_pipeline_audita_promptkit_backends` | native list retaining dnd endpoint/key/capacity; `audita_promptkit_backends` |
|
||||
| `dnd_pipeline_audita_promptkit_profiles` | native proposal/validation list retaining IDs, model and 900-second timeout; `audita_promptkit_profiles` |
|
||||
| `dnd_pipeline_audita_glossary_collections` | four named collections with empty entries for runtime replacement; `audita_glossary_collections` |
|
||||
| `dnd_pipeline_audita_glossaries` | `[party, campaign, setting, spells]`; `audita_glossaries` |
|
||||
| `dnd_pipeline_audita_protected_terms` | null; `audita_protected_terms` |
|
||||
| `dnd_pipeline_audita_llm_correction_repair_profile` | null; matching Audita input |
|
||||
| `dnd_pipeline_audita_llm_correction_repair_attempts` | null; matching Audita input |
|
||||
| `dnd_pipeline_notarius_promptkit_backends`, `dnd_pipeline_notarius_promptkit_profiles`, `dnd_pipeline_notarius_promptkit_collections` | null; matching native Notarius inputs |
|
||||
| `dnd_pipeline_scriptorium_promptkit_backends`, `dnd_pipeline_scriptorium_promptkit_profiles`, `dnd_pipeline_scriptorium_promptkit_collections` | null; matching native Scriptorium inputs |
|
||||
| `dnd_pipeline_narratio_notarius_cache` | null; `narratio_notarius_cache` |
|
||||
|
||||
New native lists/maps are inventory-composable, not role-merged. Retire the
|
||||
old Audita modules/backends/profile-map/repair/threshold inputs, split Notarius
|
||||
cache controls and PromptKit retry wrapper, Narratio resume and S3-audio-cache
|
||||
inputs. Keep the existing Notarius cache-root variable, testing selector,
|
||||
nullable supported retry settings, and other tuning/context defaults. Do not
|
||||
infer a provider kind or queue policy for Audita's endpoint.
|
||||
3. Wire Narratio to `/usr/local/etc/narratio/narratio.yml`, root `config.imports`
|
||||
with all six current suite fragments required, and `config.secrets_dir:
|
||||
secrets`. Leave overwrite unspecified. Keep exact downstream paths and
|
||||
credential lists, S3/publication settings and output handoffs. Set cleanup
|
||||
default false. Replace the character-family output pattern with the approved
|
||||
flat path. Add bindings for optional players/party inputs already consumed
|
||||
by prompt bodies where needed, using prepared Narratio source IDs; do not
|
||||
introduce separate roster files or require new authored context.
|
||||
4. Pass native Audita fields to the reviewed role. Preserve D&D processing and
|
||||
numeric tuning. Delete active legacy profile-directory/template deployment
|
||||
and its unused template; do not delete old installed profiles. Leave semantic
|
||||
correction repair, operation deadline and transport defaults upstream-owned
|
||||
unless explicitly supplied through the nullable interface.
|
||||
5. Migrate the existing Notarius pipeline map in place using the tagged complete
|
||||
D&D example's native structure. Preserve all three phases, ten lanes,
|
||||
generated references, chunk-map and evidence options. Remove producer/chunk
|
||||
retry wrappers; omit mode/turn-budget overrides. Keep explicit production
|
||||
`gpt-terra-latest` and pipeline `cache: auto`. Do not import sample paths or
|
||||
the example's fallback model. Native references arrive from Narratio's party
|
||||
and combined-glossary bindings, including `spell_catalog`; no sample file
|
||||
reference or separate player binding is required.
|
||||
6. Use `notarius_config_imports` for the required suite pipeline file and
|
||||
`notarius_cache_directory` for the shared FHS root. Keep the testing overlay
|
||||
as a partial override of only the suite-selected pipeline ID, choosing
|
||||
`gpt-luna-latest`. Narratio testing selects that independent overlay, retains
|
||||
Notarius enabled, and selects the Scriptorium testing profile for trim bounds
|
||||
as well as every artifact/family. No testing cache refresh is implicit.
|
||||
7. Wire Scriptorium's required native import of `prompt-library/promptkit.yml`
|
||||
at `[promptkit]`. Derive the relative import from any caller-selected checkout
|
||||
root and the fixed Scriptorium config directory; it must remain within that
|
||||
directory tree under the native contract. Document this constraint without
|
||||
adding a new validation framework. Do not use absolute imports, escaping
|
||||
symlinks, or retired prompt/profile/schema-directory inputs.
|
||||
Preserve the suite's profile override path through the native resource inputs.
|
||||
8. Limit access/default ACL loops to the workspace and Notarius cache root.
|
||||
Preserve account, enrollment, ordinary modes, secret map/files and shared
|
||||
access semantics. Do not clean up retired roots, caches or fragments.
|
||||
9. Migrate `tests/integration` and existing fixtures together with the role.
|
||||
Install public pinned role/collection dependencies into temporary paths.
|
||||
Select the Stage 1/2 asset commits explicitly through local Git source
|
||||
overrides while they are unpublished. Do not weaken production origins/pins
|
||||
or require pushing unreviewed content to run tests.
|
||||
|
||||
Retain and migrate these existing useful scenarios, each with an immediate
|
||||
identical convergence reporting no changes:
|
||||
|
||||
- **Composed suite:** supply synthetic WhisperX/S3 settings, credential values,
|
||||
cleanup false, and testing profiles explicitly. Inspect native app and both
|
||||
testing configurations, both campaign/party files, complete Notarius pipeline,
|
||||
supplied outputs/credential names and expanded artifact family. Use a supplied
|
||||
native test profile instead of the retired `--profile-dir` fixture.
|
||||
- **Selected application:** retain the existing explicit Seriatim v1.4.0
|
||||
override/version check and clean repeat. Do not assert default app versions.
|
||||
- **Composed pipelines:** supply two valid native pipeline maps using inventory
|
||||
`combine`, select one for Narratio, and assert only that pipeline's explicitly
|
||||
supplied testing-profile change. Use native shapes from the migrated map,
|
||||
not the old pipeline fixture syntax.
|
||||
- **Native overrides:** supply synthetic Audita backend/profile lists and
|
||||
selectors, supported retry/timeout overrides, Scriptorium native resources,
|
||||
custom credential references and useful falsey choices. Confirm those
|
||||
supplied values in authored YAML or native selected-path inspection.
|
||||
|
||||
Retain one representative service-account/human-group invocation and shared
|
||||
write exercise. Remove obsolete default-model/field-presence snapshots and
|
||||
module metadata assertions, plus the self-evident invalid-key guard's negative
|
||||
case. Keep useful synthetic-value leak checks without expanding a security
|
||||
matrix. Default smoke checks may load/inspect defaults but cannot freeze their
|
||||
catalog IDs. Test setup owns disposable users, files and cleanup.
|
||||
10. Rewrite README around the native interface and approved migration choices.
|
||||
Include all roadmap handoff topics and a concise removal/replacement table.
|
||||
Document the core suite and pending optional-catalog stage accurately; do
|
||||
not claim this whole feature complete after Stage 3.
|
||||
|
||||
### Validation
|
||||
|
||||
From the pipeline repository run:
|
||||
|
||||
```sh
|
||||
bash -n tests/integration
|
||||
git diff --check
|
||||
tests/integration
|
||||
```
|
||||
|
||||
The harness must run syntax and `ansible-lint --profile production --offline`
|
||||
after dependency setup, then native offline validation/inspection, supplied-value
|
||||
scenarios and immediate clean repeats. Use these current command families:
|
||||
|
||||
```sh
|
||||
audita config validate --config /usr/local/etc/audita/config.yml
|
||||
notarius pipeline validate dnd-session --config /usr/local/etc/notarius/config.yml
|
||||
notarius pipeline validate dnd-session --config /usr/local/etc/notarius/config.yml --overlay testing
|
||||
scriptorium config validate --config /usr/local/etc/scriptorium/config.yml
|
||||
narratio config validate --config /usr/local/etc/narratio/narratio.yml --scope app --overlay testing
|
||||
narratio artifacts list --config /usr/local/etc/narratio/narratio.yml --campaign centaurs --format json
|
||||
```
|
||||
|
||||
Also validate Notarius base/testing configs, Narratio base app and campaign/party
|
||||
scopes, and resolve the six deployed prompts through native inspection/preparation.
|
||||
Run Narratio inspection as the service account or enrolled test operator with
|
||||
synthetic bootstrap credentials. Domain listing may expand declarations using
|
||||
the roster; it must not initialize a session, run a provider or inspect S3.
|
||||
Parse only relevant supplied fields, not whole native report snapshots.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
The core role and all migrated scenarios pass before committing. Public variables,
|
||||
defaults/specs/templates/README agree. Record exact results, asset commits,
|
||||
repeat counts and test-host effects. Optional catalog installation is next;
|
||||
collection, consumer and legacy asset refs remain unchanged.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Integrate the native D&D application suite`.
|
||||
|
||||
## Stage 4: Add Optional Catalog Deployment and Its Composition Case
|
||||
|
||||
### Objective
|
||||
|
||||
Add the approved optional catalog boundary to the valid core suite without
|
||||
making any sample vocabulary a production default.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Immediately reread workspace `AGENTS.md`, orientation, conventions,
|
||||
`docs/ansible.md`, `docs/testing.md`, the roadmap and native Narratio catalog
|
||||
contract. Read the local catalog example's README/FORMAT as reference only;
|
||||
do not require it to have a remote or adopt its sample IDs in the real campaigns.
|
||||
|
||||
### Preconditions
|
||||
|
||||
Stage 3 is committed and its complete integration suite passes.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
`ansible-role-dnd-pipeline`
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Add nullable string inputs `dnd_pipeline_reference_catalog_repository_url`
|
||||
and `dnd_pipeline_reference_catalog_revision`, and path input
|
||||
`dnd_pipeline_reference_catalog_root` defaulting to
|
||||
`/usr/local/etc/narratio/reference-catalog`.
|
||||
Add nullable dictionary inputs
|
||||
`dnd_pipeline_narratio_reference_catalog_settings` and
|
||||
`dnd_pipeline_narratio_reference_catalog_systems`, bound to the matching
|
||||
Narratio role inputs. Align defaults, specs and README.
|
||||
2. Repository null means no managed checkout or catalog import. When selected,
|
||||
require a supplied nonempty revision with one simple conditional assertion,
|
||||
create the root as root/runtime-group `0755`, and use an ordinary become/Git
|
||||
task for that repository/revision/destination. Do not guess a public URL,
|
||||
validate Git state manually or add mirroring/removal behavior.
|
||||
3. Append its relative `reference-catalog/catalog.yml` to Narratio's required native
|
||||
import records when checkout is selected, using one direct Jinja list
|
||||
expression in the dependency binding. Derive a contained relative path for
|
||||
a caller-selected checkout root. Pass nullable caller maps unchanged.
|
||||
Native map composition owns disjoint additions and conflict handling. No
|
||||
assembly facts or second raw-config interface is needed. Application-role
|
||||
dependencies may write references before checkout tasks run; there is no
|
||||
production validation command requiring those files prematurely.
|
||||
4. Add one explicitly selected synthetic catalog Git fixture to the integration
|
||||
harness. Use a local repository, recorded fixture revision, source-relative
|
||||
`catalog.yml` and valid `setting`/`spells` envelopes. Supply an additional
|
||||
disjoint caller map and inspect both contributions' resolved paths. Check
|
||||
fixture vocabulary against the shared schema, without preparing a session.
|
||||
Apply the identical role configuration immediately again and require no
|
||||
changes. Reuse the existing synthetic credential setup.
|
||||
5. Document opt-in repository/revision, inventory-managed map alternatives,
|
||||
native campaign setting/system selection and its absence in the default
|
||||
campaigns. No optional checkout gets a runtime fetch service or sample default.
|
||||
|
||||
### Validation
|
||||
|
||||
From the pipeline repository run `bash -n tests/integration`, `git diff --check`
|
||||
and the complete `tests/integration` harness. The Stage 3 cases and clean repeats
|
||||
must still pass, plus the new selected-catalog case and its clean repeat.
|
||||
Default repository-null convergence must succeed without the example checkout
|
||||
or a catalog origin. Check README links and record exact results.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
Both optional checkout and caller-map composition work, while default suite
|
||||
convergence has no reference-catalog dependency. Every roadmap acceptance
|
||||
criterion is covered by focused evidence, without online processing or module
|
||||
postcondition tests. Leave the pipeline repository clean after its commit.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Support optional Narratio reference catalogs`.
|
||||
|
||||
## Stage 5: Record the Cross-Repository Review Handoff
|
||||
|
||||
### Objective
|
||||
|
||||
Leave the compatible assets and pipeline ready for independent review with
|
||||
clear revision, validation and later distribution boundaries.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Immediately reread workspace `AGENTS.md`, orientation, conventions,
|
||||
`docs/planning.md`, `docs/testing.md` and the approved roadmap/plan.
|
||||
|
||||
### Preconditions
|
||||
|
||||
Stages 1–4 are committed and validations pass. Inspect actual revisions,
|
||||
branches, changed files and aggregate workspace state.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
Workspace root.
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Record both asset commits/branches, pipeline commits, public role pins, exact
|
||||
checks and results, clean-repeat evidence, fixture adjustments and local host
|
||||
effects in the feature roadmap. State limits: no provider, operational
|
||||
deployment, old-state migration or live processing validation.
|
||||
2. Mark execution stages complete here and feature state `in_progress` in
|
||||
status/upgrade tracking. Independent review is pending; do not mark the
|
||||
feature done, retire the plan or write speculative remediation.
|
||||
3. Update orientation to identify the compatible asset refs and canonical
|
||||
authoring checkouts. Note optional catalog examples are read-only and not
|
||||
mandatory public dependencies. Preserve unrelated work and existing inventory.
|
||||
4. Identify the commits that need publication after review, and the pipeline
|
||||
revision for future collection subtree/dependency/consumer work. Do not
|
||||
publish those changes or claim that the collection already contains them.
|
||||
|
||||
### Validation
|
||||
|
||||
From the workspace root run `git diff --check` and `scripts/status`; check
|
||||
edited Markdown links. Compare evidence and the actual diffs to every roadmap
|
||||
criterion. Confirm legacy asset `main` refs, collection, consumer and standalone
|
||||
roles are unchanged. Reuse successful prior checks for unchanged code rather
|
||||
than rerunning upstream or unrelated suites. Ahead/untracked-upstream states
|
||||
on newly created compatibility branches are expected, not deployment blockers.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
All three implementation repositories are clean on their intended branches,
|
||||
and the workspace is clean after its handoff commit. Evidence identifies each
|
||||
tested revision and deferred distribution step without claiming feature closeout.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Record the native suite integration for review`.
|
||||
|
||||
## Final Validation and Handoff
|
||||
|
||||
Report all stage commits, asset branch names, pipeline dependency/asset pins,
|
||||
commands/results and repeat counts, deviations, test-host changes and any
|
||||
unresolved failures. Explain any complexity beyond the planned module flow and
|
||||
its requirement. Keep Feature 0028 in progress until independent review; leave
|
||||
collection assembly, consumer updates, publication and operational deployment
|
||||
for their authorized follow-up.
|
||||
|
||||
## Progress Notes
|
||||
|
||||
No execution stage has started. The feature roadmap and this plan, including
|
||||
the config-local import layout, are approved. Stage 1 is ready to begin.
|
||||
|
||||
## Open Questions
|
||||
|
||||
None. The approved roadmap resolves the native import layout and other policy
|
||||
choices; all five stages have concrete implementation boundaries.
|
||||
|
||||
@@ -8,6 +8,16 @@ choices that have been settled while the suite is being designed. Open
|
||||
questions and later ideas should remain clearly distinguished from these
|
||||
locked decisions.
|
||||
|
||||
Approved [Feature 0028](features/0028-coordinated-native-suite-integration.md)
|
||||
defines the next native suite and asset compatibility set. It supersedes the
|
||||
older version-specific wiring below, including cleanup now defaulting to false
|
||||
and `gpt-terra-latest` replacing the removed rumor/scene-map profiles. The
|
||||
native prompt and optional catalog checkouts live within their importing
|
||||
application's configuration tree to satisfy ConfigKit's relative import rules.
|
||||
Legacy shared checkouts remain untouched. The currently distributed suite
|
||||
remains unchanged until integration and distribution
|
||||
are reviewed. Generic ownership, readability and role boundaries still apply.
|
||||
|
||||
## MVP Goal
|
||||
|
||||
Build independently usable Ansible roles for the five Narratio applications
|
||||
@@ -214,10 +224,10 @@ application-role releases in one source repository.
|
||||
owns populating those locations with suite integration content.
|
||||
- The upstream repository is
|
||||
`https://gitea.maximumdirect.net/eric/narratio-prompts.git`.
|
||||
- The repository is checked out at
|
||||
`/usr/local/share/narratio/prompt-library` by default. Scriptorium's prompt
|
||||
and schema directories are the checkout's `prompts/` and `schemas/`
|
||||
subdirectories.
|
||||
- Feature 0028 selects `/usr/local/etc/scriptorium/prompt-library` as the native
|
||||
checkout default, imported through `prompt-library/promptkit.yml`. Its prompt
|
||||
and schema resources remain together beneath that root. The legacy
|
||||
`/usr/local/share/narratio/prompt-library` checkout is left untouched.
|
||||
- The repository does not currently contain execution profiles. The pipeline
|
||||
role does not set Scriptorium's profile directory until a later suite-policy
|
||||
feature selects and deploys profiles.
|
||||
@@ -404,8 +414,9 @@ later design decision changes them:
|
||||
- `/usr/local/etc/scriptorium/config.yml` for Scriptorium configuration
|
||||
- `/usr/local/etc/narratio/secrets` for suite-managed restricted credentials
|
||||
- `/usr/local/share/narratio/campaigns` for version-controlled campaign data
|
||||
- `/usr/local/share/narratio/prompt-library` for version-controlled prompts
|
||||
and schemas
|
||||
- `/usr/local/etc/scriptorium/prompt-library` for native version-controlled
|
||||
prompts and schemas
|
||||
- `/usr/local/etc/narratio/reference-catalog` for an optional native catalog
|
||||
- `/usr/local/src/<app>` for root-owned application source checkouts
|
||||
- `/usr/local/bin/<app>` for root-owned application binaries
|
||||
- `/var/lib/narratio` for durable workspace and session state
|
||||
|
||||
@@ -4,13 +4,13 @@ Last updated: 2026-12-03
|
||||
|
||||
Current milestone: Operational D&D pipeline deployment
|
||||
|
||||
Current focus: Feature 0027 is complete after independent review with no
|
||||
findings; Narratio role `2a4e82c` passed a fresh full offline suite and all four
|
||||
clean repeats and is pushed. All four standalone application adoptions are
|
||||
complete. No implementation plan is active; coordinated asset/suite integration
|
||||
is the recommended next scope. Existing suite pins remain unchanged. See the
|
||||
Current focus: Feature 0028's coordinated suite/asset integration roadmap is
|
||||
approved, including cleanup false and the replacement production profiles.
|
||||
The config-local prompt/catalog layout and staged implementation plan are
|
||||
approved; Stage 1 is ready to begin. Features
|
||||
0024–0027 are complete and pushed; existing suite pins remain unchanged. See the
|
||||
[upgrade sequence](roadmap/application-upgrade-sequence.md) and
|
||||
[current feature](roadmap/features/0027-narratio-v4-adoption.md).
|
||||
[current feature](roadmap/features/0028-coordinated-native-suite-integration.md).
|
||||
|
||||
| ID | Deliverable | Owner | State | Evidence or next step |
|
||||
| --- | --- | --- | --- | --- |
|
||||
@@ -51,6 +51,7 @@ is the recommended next scope. Existing suite pins remain unchanged. See the
|
||||
| F0025 | Adopt Audita v4.3.0 | Audita role and workspace | done | Role `b818f60` passed independent review with no findings and a fresh full offline suite run; [completion evidence](roadmap/features/0025-audita-v4-adoption.md); suite unchanged |
|
||||
| F0026 | Adopt Notarius v0.10.0 | Notarius role and workspace | done | Public role `85cd3a3` passed independent review with no findings and a fresh full offline suite run; [completion and publication evidence](roadmap/features/0026-notarius-v0-10-adoption.md); suite unchanged |
|
||||
| F0027 | Adopt Narratio v4.0.0 | Narratio role and workspace | done | Public role `2a4e82c` passed independent review with no findings and a fresh full offline suite; [completion evidence](roadmap/features/0027-narratio-v4-adoption.md); suite unchanged |
|
||||
| F0028 | Integrate the native suite and compatible D&D assets | Pipeline role, campaigns, prompt library and workspace | ready | [Roadmap](roadmap/features/0028-coordinated-native-suite-integration.md) and [staged plan](roadmap/implementation.md) approved; Stage 1 ready; no open design questions |
|
||||
| R0001 | Simplify completed standalone-role test suites | workspace and standalone roles | done | Role commits `e08c63c`, `d2d0b9d`, and `cfecf37` passed implementation and independent review |
|
||||
|
||||
## Updating This File
|
||||
|
||||
Reference in New Issue
Block a user