From 7d49b5081ed5b0de6189a6a4174d72c2d26145cb Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Fri, 4 Dec 2026 03:33:28 +0000 Subject: [PATCH] Close out native suite integration and retire completed plans --- docs/roadmap/application-upgrade-sequence.md | 5 +- .../0022-coordinated-suite-upgrade.md | 2 +- ...28-coordinated-native-suite-integration.md | 90 ++- docs/roadmap/implementation.md | 579 +----------------- docs/roadmap/remediation.md | 144 ----- docs/status.md | 13 +- 6 files changed, 88 insertions(+), 745 deletions(-) delete mode 100644 docs/roadmap/remediation.md diff --git a/docs/roadmap/application-upgrade-sequence.md b/docs/roadmap/application-upgrade-sequence.md index a5e8d83..71d412c 100644 --- a/docs/roadmap/application-upgrade-sequence.md +++ b/docs/roadmap/application-upgrade-sequence.md @@ -22,12 +22,13 @@ 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. -- [ ] [Feature 0028: Coordinated suite and asset integration](features/0028-coordinated-native-suite-integration.md) — pipeline `12cdc04` and compatible assets passed offline checks; independent review is pending. +- [x] [Feature 0028: Coordinated suite and asset integration](features/0028-coordinated-native-suite-integration.md) — closed after review remediation; public pipeline `63f1dd4`, campaigns `488c2eb` and prompts `d15a630` passed offline checks and five clean repeats. - [ ] 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 -implemented as Feature 0028; independent review is pending. +complete as Feature 0028, with its review finding remediated and revisions +published. Collection assembly and consumer adoption are next. Later features will be scoped individually; this ordering does not require separate features for every listed integration deliverable. Keep one active implementation plan at diff --git a/docs/roadmap/features/0022-coordinated-suite-upgrade.md b/docs/roadmap/features/0022-coordinated-suite-upgrade.md index e8842c3..70e6cf3 100644 --- a/docs/roadmap/features/0022-coordinated-suite-upgrade.md +++ b/docs/roadmap/features/0022-coordinated-suite-upgrade.md @@ -272,7 +272,7 @@ the three issues resolved below. No tagged release was created. ## Remediation Follow-up The three independent-review findings are resolved; see -[remediation evidence](../remediation.md). Public pipeline `37b1cf6` and +[archived review record](https://gitea.maximumdirect.net/eric/ansible-workspace-dnd/src/commit/8448d4cf937e3d2ae39f24b209639e7ecb1bfbae/docs/roadmap/remediation.md). Public pipeline `37b1cf6` and collection `b3bc045` remove default-identity assertions and correct migration and credential guidance. Local consumer `15f0f4e` selects the corrected public snapshot. Shell/whitespace checks, pipeline and installed-collection syntax and diff --git a/docs/roadmap/features/0028-coordinated-native-suite-integration.md b/docs/roadmap/features/0028-coordinated-native-suite-integration.md index a40628a..8ab5f97 100644 --- a/docs/roadmap/features/0028-coordinated-native-suite-integration.md +++ b/docs/roadmap/features/0028-coordinated-native-suite-integration.md @@ -1,6 +1,6 @@ # Feature 0028: Integrate the Native Suite and Compatible D&D Assets -Status: in_progress +Status: done Approved: 2026-12-03, including disabled automatic cleanup, the replacement production profiles, separate compatible asset refs and config-local native @@ -143,6 +143,18 @@ 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. +Review remediation approved on 2026-12-03 uses explicit current-only and +previous-aware variants for recap and character analysis while upstream +automatic optional sections are unavailable. `dnd.session_recap` and +`dnd.character_meta_analysis` remain the default IDs and omit previous-recap +inputs and messages; `_with_previous` variants require that context and are +selected explicitly through the existing artifact/family configuration. +Default suite bindings do not request a predecessor. Roster context is supplied +by Narratio preparation and declared required where the prompts read it. +See [review and remediation](#review-and-remediation) for the selected asset +revision and validation evidence. This configuration-only decision preserves application +versions and requires no upstream patch. + 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 @@ -353,27 +365,31 @@ assembly facts, state manifests, custom modules or compatibility parser are need ## Implementation Evidence -The implementation is ready for independent review; feature closeout and -publication remain pending. The compatible asset branches and tested pipeline -revision are: +Independent review identified one prompt-input mismatch, resolved through the +explicit variants recorded under [review and remediation](#review-and-remediation). +The updated complete offline harness passed five clean repeats. Feature 0028 is +closed, and its implementation repositories are published. The compatible asset +branches and pipeline revisions are: - `assets/campaigns` `native-v4`: `488c2eb97b5c62efe51aa7af35a5ec9cb8b7a747`. Legacy `main` remains `d1193e8be4163c2742baa2517c9a048b6873622d`. -- `assets/narratio-prompts` `native-v4`: `60e73a836aca48029dc1082ca1daa70749f60ca9`. +- `assets/narratio-prompts` `native-v4`: `d15a630ddfec18ab505df3ea5b076f6a0a5fd4b3` + after review remediation (original migration: `60e73a8`). Legacy `main` remains `c7e18454e5f02aedb0657d522f7c550f82d874ed`. - Pipeline: `e4f0c8fc492f5210eaeacd46ef91d747de094557` (core), `76aec69` (remove accidentally committed generated bytecode), and - `12cdc04b7387cefcd0fe8d0402914c89d4c2f9f4` (optional catalog). The last - revision is the intended input for future collection assembly. + `12cdc04b7387cefcd0fe8d0402914c89d4c2f9f4` (optional catalog), followed by + `63f1dd4fb43744c4df3f06c0f909c843f6eb68d0` (prompt-variant remediation). + The last revision is the reviewed source for future collection assembly. The pipeline's public role pins are Scriptorium `e936d5200df675feeb53be235a175b608c0afc7c`, Audita `b818f6067789d7fdd09a8a4a54134452089811c8`, Notarius `85cd3a397f63342df8309aa4f36d9900ff610e41`, and Narratio `2a4e82c734a256a02281dbb6e63b348a7171f808`; the Seriatim role pin remains `v0.1.0` and its suite application selection `v1.5.0`. The two full asset -commits above are the suite's selected revisions. After review, both asset -branches and the pipeline commits need publication before distribution; no -publication or collection/consumer update occurred here. +commits above are the suite's selected revisions. Both asset compatibility +branches and pipeline `main` are published at those revisions. Legacy asset +`main` branches, the collection and the deployment consumer remain unchanged. Both campaign and party files passed Narratio v4 `config validate` using a temporary synthetic main and explicit file paths. Both migrated glossaries @@ -413,19 +429,51 @@ were removed. No existing sessions, legacy spool/cache data or old configuration files were migrated or cleaned. No provider, S3 transfer, preflight, live processing, editorial quality or operational deployment was validated. +## Review and Remediation + +Closed on 2026-12-03 after independent review and remediation of its one finding. +The initial definitions declared previous recap optional while reading it +unconditionally, causing native preparation to fail for first sessions. +Released PromptKit does not expose automatic optional-input rendering; the user +approved a configuration-only workaround rather than an application patch. + +Prompt assets `d15a630` provide current-only `dnd.session_recap` and +`dnd.character_meta_analysis` definitions, plus explicit `_with_previous` +variants that require previous recap. Pipeline `63f1dd4` pins those assets and +omits previous-session bindings by default. Operators can select the alternate +IDs and required bindings through the existing artifact/family mappings. +Shared instructions, model selections, artifact keys, destinations, enabled +states and testing overrides retain their existing meaning. Roster inputs are +accurately declared required, matching Narratio's prepared party and derived +players. No application code, placeholder files or runtime presence flags were +introduced. + +All eight prompt IDs passed native offline preparation. Current-only analysis +was exercised without a recap; previous-aware analysis included supplied +synthetic recap content. The complete updated pipeline integration suite passed +fresh dependency installation, syntax checking, production-profile offline lint, +native app/domain inspection, both variant overrides and existing composition, +shared-write and catalog cases. All five immediate repeats reported `changed=0` +and `failed=0`. Catalog cleanup restored current-only, no-catalog configuration; +post-cleanup Narratio native validation also passed. Shell/Python syntax, +whitespace and local documentation links passed. No provider, S3 transfer, live +processing, operational deployment or state migration was performed. + +Publication completed for campaigns `488c2eb` and prompts `d15a630` on their +`native-v4` branches, and pipeline `63f1dd4` on `main`. The documentation-only +PromptKit feature request is also published at `33cc00d`; automatic optional +sections remain future work, not a blocker to the approved workaround. +The executed implementation plan and resolved remediation document were retired; +this roadmap retains the decisions, review result and validation evidence. + ## 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 implemented and awaiting -independent review. 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. +Features 0024–0028 are complete. The next scope is collection assembly and +consumer adoption: import pipeline `63f1dd4`, update collection dependencies and +consumer selections, and provide the operator handoff. Neither the collection +nor the operational consumer was updated by Feature 0028. Actual deployment and +online readiness remain separate operator activities. Agree on the next feature +roadmap before preparing a new implementation plan. ## Rationale for Approved Choices diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index ce38905..9da792f 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -1,574 +1,11 @@ -# Implementation Plan 0028: Integrate the Native Suite and D&D Assets +# Implementation Plan -Status: ready +No implementation plan is active. -Approved: 2026-12-03, including the config-local import layout. +[Feature 0028: Native suite and asset integration](features/0028-coordinated-native-suite-integration.md) +is complete after review and remediation. Its durable roadmap retains the +completion evidence; Git history preserves the executed staged plan. -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 — Complete - -### 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 — Complete - -### 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 — Complete - -### 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 — Complete - -### 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 — Complete - -### 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 - -Stage 1 complete: `assets/campaigns` branch `native-v4` commit -`488c2eb97b5c62efe51aa7af35a5ec9cb8b7a747`; both campaign and party -scopes validated with Narratio v4, both glossaries passed the tagged schema, -and migrated entries and autocorrection rules match the legacy content. - -Stage 2 complete: `assets/narratio-prompts` branch `native-v4` commit -`60e73a836aca48029dc1082ca1daa70749f60ca9`; Scriptorium v0.16.0 validated -the library and inspected and prepared all six prompts using synthetic inputs. - -Stage 3 complete: pipeline commit `e4f0c8fc492f5210eaeacd46ef91d747de094557` -with bytecode cleanup `76aec69`. Shell syntax, whitespace, Ansible syntax, -production lint and the complete offline integration harness passed; all four -scenarios had clean repeats. Local host application/configuration state was -converged using synthetic credentials and local asset sources. - -Stage 4 complete: pipeline commit `12cdc04b7387cefcd0fe8d0402914c89d4c2f9f4`. -The complete offline suite passed with five clean repeats, including a synthetic -catalog and disjoint caller map. The no-catalog configuration was restored and -natively validated after temporary catalog cleanup; the harness now restores it -before removing the fixture checkout. - -Stage 5 complete: cross-repository implementation evidence and the pending -independent-review handoff are recorded in Feature 0028. - -## Open Questions - -None. The approved roadmap resolves the native import layout and other policy -choices; all five stages have concrete implementation boundaries. +The next scope in the [upgrade sequence](application-upgrade-sequence.md) is +collection assembly and consumer adoption. Agree on its feature roadmap before +preparing a new staged plan here. diff --git a/docs/roadmap/remediation.md b/docs/roadmap/remediation.md deleted file mode 100644 index 6661c4c..0000000 --- a/docs/roadmap/remediation.md +++ /dev/null @@ -1,144 +0,0 @@ -# Feature 0022 Remediation Review - -Status: resolved - -Reviewed on 2026-09-29: -- Pipeline `8ea8621` and `ea8b09e`. -- Collection subtree import through `a78c309` and assembly `3d77eb3`. -- Consumer `f694dad`. - -The production wiring implements the approved coordinated versions, Audita -backend/profile assets, credential lists, overlay paths, and nullable retry -controls. The collection's imported pipeline tree exactly matches the source -role. The following test-policy and operator-documentation issues were found -and have now been addressed as recorded below. -Git history preserves the previously resolved Feature 0013 remediation record. - -## Finding 1: New assertions freeze unconfigured suite defaults - -Priority: P2 -Owners: pipeline role and collection tests. - -Locations: -- `ansible-role-dnd-pipeline/tests/integration:172`–173. -- `ansible-collection-dnd/tests/integration:104`–105 and 108–109. - -The new baseline assertions require specific Audita profile IDs and Narratio -credential lists, but the cases do not explicitly supply the corresponding -selection/list variables. Supplying synthetic values in `dnd_pipeline_secrets` -does not select the credential lists. These assertions therefore fail when -legitimate defaults change, even if installation and caller overrides work. - -Required correction: remove redundant default-identity assertions from the -baseline smoke case, or explicitly supply the relevant public inputs and -assert those values. The pipeline already has a useful custom-credential -override case; prefer reusing its coverage. Keep native validation and clean -repeats. Do not replace literals by reading role defaults into expectations; -that would still test implementation identity rather than caller behavior. - -This strengthens acceptance beyond the user's state-based testing policy. -The approved plan explicitly asked for supplied-value tests, not default -snapshots. - -## Finding 2: Upgrade guidance confuses configuration with session migration - -Priority: P2 -Owners: pipeline README and consumer deployment guidance. - -Locations: -- `ansible-role-dnd-pipeline/README.md:166`–168 and 337–338. -- `rakestraw-ansible/docs/pipeline-dnd.md:86`–104. - -The pipeline links “Audita's v2 manifest migration” to Audita's configuration -migration guide, but does not identify Narratio's actual session-manifest -migration. The consumer likewise refers to “Audita manifests” and only -generically warns about Narratio manifests. The roadmap specifically requires -guidance on backing up and migrating local provenance while preserving -progress and immutable snapshots. Existing Narratio manifests containing -`effective_config.selected_profile` are rejected by v3. - -Required correction: -- Describe Audita's change as a configuration/backend/profile migration. -- Link Narratio v3's exact operations section - `#migrating-manifest-overlay-provenance`; briefly explain backup and - `effective_config.selected_profile` → `selected_overlay` (or removal as - upstream permits), preserving stage/checkpoint state and leaving immutable - remote snapshots unchanged. Do not add automatic migration or forced reruns. -- Correct or remove the stale claim that Notarius v0.8.1 selects PromptKit - v0.10.0. Its tagged release specifies v0.11.2; prefer linking upstream release - notes over duplicating dependency/catalog versions. - -This is a missing operator handoff, not a request for additional runtime code. - -## Finding 3: Documentation makes managed secret files mandatory - -Priority: P2 -Owners: pipeline README and consumer deployment guidance. - -Locations: -- `ansible-role-dnd-pipeline/README.md:160`–163. -- `rakestraw-ansible/docs/pipeline-dnd.md:69`–71. - -The new text requires each credential to be supplied through -`dnd_pipeline_secrets`. Runtime behavior does not require that: Narratio can -resolve listed names from its process environment or existing secret files. -The README's existing managed-credentials section already describes environment -precedence and an empty default secrets map. - -Required correction: require the credential names in the forwarding lists, -but describe managed secret files as the suite-supported provisioning option, -not the only permitted source. Preserve the consumer's chosen Vault workflow -without imposing it on every standalone suite user. No code or new tests are -needed for this wording correction. - -This is an unintended documentation-level strengthening of the requirements. - -## Review Validation - -Shell syntax, changed-commit whitespace checks, pipeline syntax checking with -locally available collections, production-profile lint, and collection build -passed. Source and imported pipeline Git tree hashes match exactly. Reviewed -the recorded successful role/collection integration and consumer syntax runs; -did not rerun host-mutating convergence. A fresh dependency installation stalled -and was stopped, so this review does not independently establish a complete -fresh public dependency installation. No operational host was contacted. - -## Remediation Boundaries - -Fix authoritative pipeline files first, then publish and re-import the corrected -pipeline revision through the existing public Gitea subtree workflow. Do not -edit its collection copy directly. Update collection-owned tests and consumer -pins/links to the corrected public snapshot as needed. Preserve all agreed -application versions, configuration defaults, and runtime behavior. Validate -affected tests in proportion to the changes; no operational deployment, -credentials, live inference, or session migration is required. - -## Resolution Evidence - -All three findings were addressed on 2026-09-29: - -- Finding 1: pipeline `37b1cf6` removes redundant baseline credential-list - assertions while preserving custom-input coverage; collection `d9abb62` - removes default profile-ID and credential-list assertions. Native profile - inspection, configuration validation, and immediate clean-repeat checks remain. -- Findings 2 and 3: pipeline `37b1cf6` and consumer `15f0f4e` distinguish - Audita configuration migration from Narratio session migration, link the - exact provenance procedure, preserve progress and immutable snapshots, - and allow environment or file-based credential provisioning. The stale - Notarius dependency/catalog claim is replaced by tagged release guidance. -- The public pipeline revision is - `37b1cf6fab71c6a1212e49357c2e825cb0237a00`; collection subtree import and - public revision `b3bc0457efb7ea14ed11789978edd440537860fc` contain its exact - Git tree. Both remote branch heads were independently checked with - `git ls-remote`. Consumer `15f0f4e` selects that collection and links the - corrected source README; the consumer commit remains local. -- Shell syntax and whitespace checks passed. Pipeline and installed-collection - syntax checks and production-profile lint passed. Collection build and - disposable artifact installation passed. Consumer real-inventory host - listing selected only `pipeline-dnd`, and syntax checking passed without - deployment or Vault decryption. -- Validation used the previously downloaded public role dependencies and - available local collections. Full host-mutating integration was not rerun: - production code/defaults are unchanged, test changes remove assertions and - unused parsing, and prior full-run evidence remains applicable to unchanged - behavior. No operational system or session state was modified. diff --git a/docs/status.md b/docs/status.md index de1982a..3f4dd4f 100644 --- a/docs/status.md +++ b/docs/status.md @@ -4,10 +4,11 @@ Last updated: 2026-12-03 Current milestone: Operational D&D pipeline deployment -Current focus: Feature 0028's native suite and compatible assets are implemented -and awaiting independent review. Pipeline `12cdc04` and both `native-v4` asset -commits passed the offline checks; the collection and consumer remain unchanged. -See the [feature evidence](roadmap/features/0028-coordinated-native-suite-integration.md) +Current focus: Feature 0028 is complete, including its reviewed prompt-variant +remediation. Pipeline `63f1dd4`, campaigns `488c2eb` and prompts `d15a630` are +published. The next scope is collection assembly and consumer adoption; the +collection and consumer remain unchanged. See the +[completion evidence](roadmap/features/0028-coordinated-native-suite-integration.md#review-and-remediation) and [upgrade sequence](roadmap/application-upgrade-sequence.md). | ID | Deliverable | Owner | State | Evidence or next step | @@ -42,14 +43,14 @@ and [upgrade sequence](roadmap/application-upgrade-sequence.md). | F0019 | Adopt Audita v2.0.1 | Audita role and workspace | done | Role `c3dd59f`, following `6137ff2` and `52f67fe`, passed independent review with no findings; [roadmap](roadmap/features/0019-audita-v2-adoption.md) records validation; suite pins unchanged | | F0020 | Adopt Notarius v0.8.1 | Notarius role and workspace | done | Role `6aef48b`, following `b1b922c` and `380b6a3`, passed independent review with no findings; [feature roadmap](roadmap/features/0020-notarius-v0-8-adoption.md) records evidence; suite pins unchanged | | F0021 | Adopt Narratio v3.0.0 | Narratio role and workspace | done | Role `3c0700b`, following `a28f22c` and `45f6836`, passed independent review with no findings; [feature roadmap](roadmap/features/0021-narratio-v3-adoption.md) records evidence; suite pins unchanged | -| F0022 | Integrate the reviewed application upgrades | Pipeline role, collection, consumer, and workspace | done | Closed after review and resolution of all three findings; public pipeline `37b1cf6`, public collection `b3bc045`, local consumer `15f0f4e`; [remediation evidence](roadmap/remediation.md) | +| F0022 | Integrate the reviewed application upgrades | Pipeline role, collection, consumer, and workspace | done | Closed after review and resolution of all three findings; public pipeline `37b1cf6`, public collection `b3bc045`, local consumer `15f0f4e`; [remediation evidence](roadmap/features/0022-coordinated-suite-upgrade.md#remediation-follow-up) | | A0001 | Audit completed standalone-role test suites | workspace and standalone roles | done | Findings recorded in `docs/roadmap/test-suite-audit-findings.md` | | F0023 | Adopt Narratio v3.1.0 and forward Scriptorium credentials | Narratio role, pipeline role, collection, consumer, and workspace | done | Public Narratio role `758aed7a`, pipeline `0f841fd`, collection `002e86c`; local consumer `67cc22f`. Independent review found no actionable issues; [feature evidence](roadmap/features/0023-narratio-scriptorium-credentials.md) | | F0024 | Adopt Scriptorium v0.16.0 | Scriptorium role and workspace | done | Role `e936d52` passed independent review with no findings and a fresh full offline suite run; [completion evidence](roadmap/features/0024-scriptorium-v0-16-adoption.md); suite unchanged | | 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 | in_progress | Pipeline `12cdc04` and compatible assets passed offline validation; [evidence](roadmap/features/0028-coordinated-native-suite-integration.md); independent review pending | +| F0028 | Integrate the native suite and compatible D&D assets | Pipeline role, campaigns, prompt library and workspace | done | Public pipeline `63f1dd4`, campaigns `488c2eb` and prompts `d15a630`; review finding resolved; full offline suite and five clean repeats passed; [completion evidence](roadmap/features/0028-coordinated-native-suite-integration.md#review-and-remediation) | | 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