Prepare the Scriptorium update for implementation
This commit is contained in:
@@ -1,5 +1,84 @@
|
||||
# Application Upgrade Sequence
|
||||
|
||||
## Current Sequence: Native Interfaces and Shared Inputs
|
||||
|
||||
Decision agreed: 2026-12-02, following review of the public release tags.
|
||||
|
||||
**Scriptorium → Audita → Notarius → Narratio → coordinated assets/suite
|
||||
integration → collection and consumer updates.**
|
||||
|
||||
| Application | Starting suite version | Adoption target |
|
||||
| --- | --- | --- |
|
||||
| Scriptorium | v0.15.0 | v0.16.0 |
|
||||
| Audita | v2.0.1 | v4.3.0 |
|
||||
| Notarius | v0.8.1 | v0.10.0 |
|
||||
| Narratio | v3.1.0 | v4.0.0 |
|
||||
|
||||
These are repository selections, not observations of an operational host.
|
||||
Seriatim remains at v1.5.0. The reviewed Narratio v4.0.0 integration baselines
|
||||
match the other three targets.
|
||||
|
||||
- [ ] [Feature 0024: Standalone Scriptorium adoption](features/0024-scriptorium-v0-16-adoption.md) — roadmap and staged implementation plan approved; ready for the sprint.
|
||||
- [ ] Standalone Audita adoption — select and plan after Scriptorium review.
|
||||
- [ ] Standalone Notarius adoption.
|
||||
- [ ] Standalone Narratio adoption.
|
||||
- [ ] Compatible prompt/campaign assets and coordinated suite integration.
|
||||
- [ ] Collection assembly and consumer dependency/guidance updates.
|
||||
|
||||
Only the Scriptorium feature is selected for detailed planning. Later features
|
||||
will be scoped individually; this ordering does not require separate features
|
||||
for every listed integration deliverable. Keep one active implementation plan
|
||||
at [implementation.md](implementation.md), following roadmap approval.
|
||||
|
||||
### Boundaries and Migration Consequences
|
||||
|
||||
Standalone features own generic application interfaces, build requirements,
|
||||
documentation, and focused offline role tests. They do not advance pipeline,
|
||||
collection, or consumer pins. Preserve the existing suite compatibility set
|
||||
until coordinated integration; do not install a mixture of old callers and new
|
||||
incompatible native CLIs.
|
||||
|
||||
Track prompt-library and campaign-document migrations explicitly alongside
|
||||
the application work. Asset repositories remain authoritative for content;
|
||||
integration owns their compatible deployment and configuration bindings.
|
||||
Do not update a tracked asset branch to an incompatible format without carrying
|
||||
forward the effect on the existing suite, which currently follows `main`.
|
||||
Choose the asset revision/cutover arrangement when planning that work.
|
||||
|
||||
Carry these reviewed consequences into the owning feature roadmaps:
|
||||
|
||||
- All four applications require Go 1.27.0 or newer and use ReleaseKit version
|
||||
identity. Update source-build contracts without adding role-private state.
|
||||
- Scriptorium requires native CLI, imports, and PromptKit resource migration.
|
||||
- Audita requires configuration schema 3, ordered stages, native PromptKit
|
||||
resources, removal of confidence thresholds, and shared runtime glossaries.
|
||||
- Notarius requires configuration schema 6, native producer/concurrency
|
||||
controls, shared party/glossary references, and accepted-result caching.
|
||||
Preserve `/var/cache/notarius` as the suite location; model changes alone
|
||||
do not invalidate acceptance, so fresh experiments need refresh or bypass.
|
||||
- Narratio requires native commands, shared campaign inputs, explicit secrets
|
||||
bootstrap configuration, and replacement of retired downstream/cache fields.
|
||||
Older local manifests are unsupported; follow upstream guidance for a new
|
||||
baseline and compatible product imports, preserving old work separately.
|
||||
- Review Narratio's cleanup retention explicitly: the enabled suite option
|
||||
will remove the entire session run history under the new release.
|
||||
- Native preflight can contact providers. It is an operator workflow, not a
|
||||
new online gate for Ansible convergence or offline role tests.
|
||||
|
||||
The four tagged release notes and their linked migration guides own the exact
|
||||
application contracts: [Scriptorium v0.16.0](https://gitea.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/releases/v0.16.0.md),
|
||||
[Audita v4.3.0](https://gitea.maximumdirect.net/eric/audita/src/tag/v4.3.0/docs/releases/v4.3.0.md),
|
||||
[Notarius v0.10.0](https://gitea.maximumdirect.net/eric/notarius/src/tag/v0.10.0/docs/releases/v0.10.0.md),
|
||||
and [Narratio v4.0.0](https://gitea.maximumdirect.net/eric/narratio/src/tag/v4.0.0/docs/releases/v4.0.0.md).
|
||||
|
||||
This decision authorizes planning in that order. Deployment, live provider
|
||||
checks, and release publication remain separately scoped activities.
|
||||
|
||||
## Historical Sequence: Completed September 2026
|
||||
|
||||
The remainder records the earlier, completed sequence. Its version-specific
|
||||
migration notes are historical and do not define the current targets above.
|
||||
|
||||
Decision agreed: 2026-09-28
|
||||
|
||||
## Purpose and Order
|
||||
|
||||
190
docs/roadmap/features/0024-scriptorium-v0-16-adoption.md
Normal file
190
docs/roadmap/features/0024-scriptorium-v0-16-adoption.md
Normal file
@@ -0,0 +1,190 @@
|
||||
# Feature 0024: Adopt Scriptorium v0.16.0 in the Standalone Role
|
||||
|
||||
Status: ready
|
||||
|
||||
## Summary
|
||||
|
||||
Update the standalone Scriptorium role to v0.16.0, its native shared
|
||||
configuration interface, and its source-build requirements. This is the first
|
||||
selected feature in the current [application upgrade sequence](../application-upgrade-sequence.md).
|
||||
Suite integration and production prompt assets remain separate work.
|
||||
|
||||
## Problem or Opportunity
|
||||
|
||||
Scriptorium v0.16.0 replaces the former application CLI and resource-directory
|
||||
configuration with native CommandKit and ConfigKit/PromptKit interfaces. The
|
||||
current role targets v0.15.0, renders retired fields, and provisions Go 1.26.
|
||||
A version bump alone cannot produce a usable migrated installation.
|
||||
|
||||
The release requires Go 1.27.0 or newer and reads version identity through
|
||||
ReleaseKit. A local source build must embed the selected identifier to report
|
||||
the requested version rather than `dev`. Existing tests also invoke retired
|
||||
inspection commands and use obsolete resource formats.
|
||||
|
||||
## Scope
|
||||
|
||||
- Select v0.16.0 and a compatible Go Snap channel by default.
|
||||
- Adapt the ordinary build command to the released version-identity contract.
|
||||
- Replace retired configuration variables with native field-specific variables;
|
||||
preserve supported server and transient-retry settings.
|
||||
- Update argument specifications, the single template, operator guidance, and
|
||||
existing offline behavioral tests.
|
||||
- Record the reviewed role revision for later suite integration.
|
||||
|
||||
## Non-goals
|
||||
|
||||
- Changing application upstream code, other roles, suite/collection/consumer
|
||||
pins, or installing the new version on an operational host.
|
||||
- Migrating the D&D prompt-library repository or campaign assets, selecting
|
||||
production/testing models, or changing credential-delivery policy.
|
||||
- Managing arbitrary imported files, overlays, prompt collections, secrets,
|
||||
or an HTTP service in the standalone role.
|
||||
- Legacy configuration/CLI conversion, compatibility aliases, provider smoke
|
||||
checks, HTTP integration testing, or new Ansible release publication.
|
||||
- Adopting ReleaseKit's release workflow, receipts, or artifact delivery as
|
||||
production installation machinery.
|
||||
|
||||
## Target End State
|
||||
|
||||
### Source installation
|
||||
|
||||
`scriptorium_version` defaults to `v0.16.0` and
|
||||
`scriptorium_go_snap_channel` to `1.27/stable`. Preserve the configurable Go
|
||||
executable and dependency opt-out; callers opting out provide a compatible
|
||||
toolchain. The Go 1.27.0 application minimum is distinct from the upstream
|
||||
maintainer's selected 1.27.4 release toolchain.
|
||||
|
||||
Continue building `./cmd/scriptorium` from the selected checkout directly to
|
||||
the configured binary path, with the existing build environment and installation
|
||||
metadata. Embed `scriptorium_version` using the version-injection contract used
|
||||
by ReleaseKit v0.10.0. Retain the existing rebuild condition: checkout changed
|
||||
or output binary absent. Do not add production version interrogation or checks
|
||||
of the just-built binary.
|
||||
|
||||
### Native configuration interface
|
||||
|
||||
Keep the current configuration path and ownership/mode interface. All optional
|
||||
application variables default to null, which omits the corresponding field.
|
||||
With no application settings supplied, render `{}`. Preserve explicit supported
|
||||
falsey values, and emit parent sections only for non-null descendants.
|
||||
|
||||
Introduce the following variables, all defaulting to null:
|
||||
|
||||
| Variable | Type | Native field |
|
||||
| --- | --- | --- |
|
||||
| `scriptorium_config_imports` | list of dictionaries | `config.imports` |
|
||||
| `scriptorium_promptkit_backends` | list of dictionaries | `promptkit.backends` |
|
||||
| `scriptorium_promptkit_profiles` | list of dictionaries | `promptkit.profiles` |
|
||||
| `scriptorium_promptkit_prompts` | list of dictionaries | `promptkit.prompts` |
|
||||
| `scriptorium_promptkit_collections` | dictionary | `promptkit.collections` |
|
||||
| `scriptorium_promptkit_schema_root` | path | `promptkit.schema_root` |
|
||||
|
||||
These expose complete native fields, serialized without role-side merging or
|
||||
resource rewriting. Inventory may compose the values using ordinary Ansible
|
||||
expressions. Native ID-bearing lists and namespaced collection mappings retain
|
||||
upstream semantics. Imports also allow caller-managed fragments or collection
|
||||
entry points; callers own their deployment. This is one configuration interface,
|
||||
not a parallel raw-document override.
|
||||
|
||||
Retire `scriptorium_configkit_imports` in favor of `scriptorium_config_imports`.
|
||||
Remove `scriptorium_prompt_dir`, `scriptorium_profile_dir`,
|
||||
`scriptorium_schema_dir`, `scriptorium_defaults_render_format`, and the old
|
||||
mapping-valued `scriptorium_backends`. Schema resources and backend/profile/prompt
|
||||
definitions use the new native fields and imports. Render format is a runtime
|
||||
CLI choice. Do not silently translate old variables or promise old-version
|
||||
configuration compatibility from this updated role.
|
||||
|
||||
Retain `scriptorium_transient_retries` and the existing five
|
||||
`scriptorium_server_*` fields with their current null-by-default behavior.
|
||||
Do not copy upstream retry, HTTP-limit, model, or repair defaults into Ansible.
|
||||
|
||||
### Operator documentation
|
||||
|
||||
Document the variable migration and link the tagged upstream migration guides
|
||||
for resource formats, exact CLI flags, discovery, and precedence. Show a concise
|
||||
inventory example using native definitions or an explicit required import.
|
||||
Explain declaration-relative resources, qualified collection IDs, whole-record
|
||||
same-ID replacement, and the distinction between a ConfigKit overlay and a
|
||||
PromptKit LLM profile. Explicit configuration selection is appropriate for
|
||||
unattended callers when discovery would be ambiguous.
|
||||
|
||||
Call out the native generation boundary (`run PROMPT_ID`, `--input-file`,
|
||||
artifact stdout), removed legacy catalog profile IDs without replacements, and
|
||||
prompt-owned structural repair budgets. Credential configuration contains names,
|
||||
never key values. Link upstream for native secrets bootstrap and provider
|
||||
behavior rather than adding a role-specific loader.
|
||||
|
||||
## Repository Ownership
|
||||
|
||||
- `ansible-role-scriptorium`: installation defaults/build, public configuration
|
||||
variables, argument spec, template, documentation, and local tests.
|
||||
- Workspace: roadmap, later implementation plan, tracking, and review evidence.
|
||||
- Scriptorium and selected framework sources: read-only release contracts.
|
||||
- All other roles, assets, collection, and consumer repositories: unchanged.
|
||||
|
||||
## Constraints and Settled Decisions
|
||||
|
||||
Follow the [Ansible](../../ansible.md), [testing](../../testing.md), and
|
||||
[planning](../../planning.md) policies and [MVP architecture](../mvp.md).
|
||||
Keep the generic standalone role independent of D&D deployment policy.
|
||||
|
||||
The public v0.16.0 tag resolves to application commit
|
||||
`0fa538c336fd64be51bc355fd53d3ca19f104d68`; the public repository URL used by
|
||||
the role was verified during release review. Use the released contract rather
|
||||
than later branch changes. Existing suite pins keep selecting the earlier role
|
||||
until the final coordinated integration work.
|
||||
|
||||
## Simplest Viable Implementation
|
||||
|
||||
Change version/toolchain defaults and the existing build command, then replace
|
||||
the obsolete defaults/spec/template entries with native fields. Reuse the same
|
||||
Git, binary stat/build, file, and template task flow. Update the existing test
|
||||
fixtures and CLI invocations in place. No new production task, helper module,
|
||||
configuration-assembly facts, or persisted role-private state is needed.
|
||||
|
||||
## Acceptance Criteria
|
||||
|
||||
- An explicitly selected v0.16.0 source build reports that identifier through
|
||||
native `scriptorium version`. The assertion supplies its version rather than
|
||||
testing which version happens to be the current default.
|
||||
- The minimal managed configuration passes native offline validation. Explicit
|
||||
null omission and representative native definitions render correctly, with
|
||||
supported falsey values such as retry zero and HTTP-limit zero preserved.
|
||||
- A representative caller-owned fragment composes through `config.imports`;
|
||||
native inspection can resolve supplied profiles/prompts, including a
|
||||
namespaced resource, without contacting a provider. Exercise these through
|
||||
existing cases rather than adding an exhaustive framework test matrix.
|
||||
- Empty lists/mappings selected by callers are serialized rather than treated
|
||||
as omission. Tests protect supplied values and role composition, not default
|
||||
catalog contents, whole-document snapshots, or module postconditions.
|
||||
- Immediate repeated convergence reports no changes. Existing missing-binary
|
||||
recovery with a caller-supplied Go executable and dependency management
|
||||
disabled remains covered using the supported native interface.
|
||||
- Repository syntax, production-profile lint, and relevant offline integration
|
||||
checks pass. No provider, HTTP listener, production controller, or actual
|
||||
pipeline host is required. Local tooling setup follows the existing workspace
|
||||
test workflow; upstream release/candidate checks are not additional gates.
|
||||
- Documentation and the public variable/spec/template interface agree, and
|
||||
completion records the role revision for later integration. Suite application
|
||||
selections and dependency pins remain unchanged.
|
||||
|
||||
## Dependencies and Follow-up Work
|
||||
|
||||
The feature roadmap and staged implementation plan are approved. The plan at
|
||||
[implementation.md](../implementation.md) is ready for execution.
|
||||
The implementation environment needs Go 1.27+; provisioning the supported
|
||||
toolchain for authorized local tests is ordinary setup, not an application blocker.
|
||||
|
||||
Audita adoption follows independent review and closeout. Later prompt-asset
|
||||
migration must retain compatibility for the existing suite until cutover, as
|
||||
recorded in the upgrade sequence. Final integration owns the new Scriptorium
|
||||
configuration bindings, compatible prompt content, coordinated pins, and consumer
|
||||
guidance. This feature does not claim end-to-end D&D compatibility by itself.
|
||||
|
||||
## Upstream References
|
||||
|
||||
- [v0.16.0 release notes](https://gitea.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/releases/v0.16.0.md)
|
||||
- [Configuration](https://gitea.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/config.md)
|
||||
- [CLI migration](https://gitea.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/consumers/upgrading-cli.md)
|
||||
- [PromptKit migration](https://gitea.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/consumers/upgrading-promptkit.md)
|
||||
- [ReleaseKit runtime version](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/runtime-version.md)
|
||||
@@ -1,12 +1,320 @@
|
||||
# Implementation Plan
|
||||
# Implementation Plan 0024: Adopt Scriptorium v0.16.0
|
||||
|
||||
No implementation plan is currently active.
|
||||
Status: ready
|
||||
|
||||
[Feature 0023](features/0023-narratio-scriptorium-credentials.md) was closed on
|
||||
2026-09-29 after implementation and independent review with no actionable
|
||||
findings. Its roadmap retains the completion evidence; Git history preserves
|
||||
the completed staged implementation plan.
|
||||
Target executor: GPT-5.6-Terra
|
||||
|
||||
Discuss and select the next unit of work before preparing another plan.
|
||||
Operational deployment and live provider validation remain separate operator
|
||||
activities and are not authorized by this notice.
|
||||
Feature roadmap: [Feature 0024](features/0024-scriptorium-v0-16-adoption.md)
|
||||
|
||||
Active plan location: `docs/roadmap/implementation.md`
|
||||
|
||||
## Objective
|
||||
|
||||
Deliver the approved standalone Scriptorium v0.16.0 role update with native
|
||||
configuration, Go 1.27, correct version identity, and focused offline behavioral
|
||||
coverage. The feature roadmap owns scope and rationale. Its public-interface
|
||||
migration is small and coupled enough to implement and validate in one role
|
||||
stage, followed by a separate workspace handoff stage. Do not commit an
|
||||
intermediate role whose configuration or tests still use the retired interface.
|
||||
|
||||
## Execution Rules
|
||||
|
||||
- Execute Stage 1, then Stage 2. Reread each stage's required policies immediately
|
||||
before beginning it; confirm its preconditions and owning repository.
|
||||
- Preserve pre-existing changes. Commit each completed stage in its owning
|
||||
repository with the stated plain English message after validation. No push,
|
||||
release, consumer refresh, or operational deployment is part of this plan.
|
||||
- Keep the current module-driven task flow. The binary stat is necessary for
|
||||
the imperative build; rebuilding remains conditional on checkout change or
|
||||
binary absence. Trust file, Git, Snap, APT, and template module postconditions.
|
||||
- Add no production validation, version interrogation, sidecar state,
|
||||
configuration-assembly facts, compatibility loader, or custom Ansible module.
|
||||
- Tests exercise supplied values and observable outcomes. Do not add default
|
||||
identity snapshots, module-postcondition assertions, task trace checks,
|
||||
upstream framework test matrices, or provider calls.
|
||||
- Missing local tools are setup work. Use the existing workspace tooling and
|
||||
local test host; do not invent requirements for another controller,
|
||||
`pipeline-dnd`, `ansible-doc`, live credentials, or upstream release checks.
|
||||
- If an actual contract conflict or unavailable prerequisite remains after
|
||||
ordinary setup, report the concrete failure and preserve work. Do not change
|
||||
the approved scope or silently weaken a required role outcome to bypass it.
|
||||
|
||||
## Starting State and Preconditions
|
||||
|
||||
- The feature roadmap and this implementation plan are approved. No application
|
||||
implementation has been performed by the planning pass.
|
||||
- The standalone role starts at `b174c8c2990bb79f8149d8f288c5e06ccb42bd73`
|
||||
on `main`, with Scriptorium v0.15.0 and Go `1.26/stable` selected. Confirm the
|
||||
actual tree before editing; preserve later unrelated changes if present.
|
||||
- The application source is `../scriptorium`. Public v0.16.0 resolves to
|
||||
`0fa538c336fd64be51bc355fd53d3ca19f104d68`. Use the tag's configuration and
|
||||
CLI contracts, not later branch changes.
|
||||
- The workspace `.venv/bin/ansible-playbook` is already available at planning
|
||||
time. If absent in the execution environment, follow `README.md`'s Development
|
||||
Tooling section using `requirements-dev.txt`; do not change pinned tooling
|
||||
merely to set up the environment.
|
||||
- The existing local test host is Ubuntu 26.04 and is the approved test proxy.
|
||||
Its role harness uses sudo, `/usr/local/src/scriptorium`,
|
||||
`/usr/local/bin/scriptorium`, and `/usr/local/etc/scriptorium/config.yml`.
|
||||
Local test convergence may change those paths and provision Go through Snap;
|
||||
it is distinct from deploying to an operational controller or host.
|
||||
- Source builds use the role-selected Go executable, not whichever `go` first
|
||||
appears on PATH. The updated role provisions `1.27/stable`; dependency opt-out
|
||||
tests run after a compatible Go executable is available. Keep
|
||||
`GOTOOLCHAIN=local` rather than relying on implicit toolchain downloads.
|
||||
- The existing collection requirement is `community.general` 13.3.0. Reuse it
|
||||
and the harness's temporary collection path. Other dependency pins stay put.
|
||||
|
||||
## Repository Scope
|
||||
|
||||
- `ansible-role-scriptorium`: production defaults/spec/template/build, README,
|
||||
and repository-local test fixtures/harness.
|
||||
- Workspace: implementation tracking and review evidence for Feature 0024.
|
||||
- `../scriptorium` and its selected framework sources are read-only references.
|
||||
If their instructions require policy reading for investigation, follow the
|
||||
upstream `AGENTS.md` reading guide; do not modify those repositories.
|
||||
- Pipeline, collection, consumer, other roles, and both asset repositories
|
||||
remain unchanged. Do not run their integration suites: they still select the
|
||||
earlier compatibility set and are outside this standalone feature.
|
||||
|
||||
## Stage 1: Deliver the Native Scriptorium Role and Its Offline Tests
|
||||
|
||||
### Objective
|
||||
|
||||
Leave one coherent, documented, tested standalone role that installs and
|
||||
configures the released Scriptorium v0.16.0 interface.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Before beginning this stage, read these workspace-relative files:
|
||||
|
||||
- `AGENTS.md`
|
||||
- `docs/orientation.md`
|
||||
- `docs/conventions.md`
|
||||
- `docs/ansible.md`
|
||||
- `docs/testing.md`
|
||||
|
||||
Then read the approved feature roadmap and the tagged upstream configuration,
|
||||
CLI migration, and PromptKit migration documents linked there. Inspect any
|
||||
repository-local agent instructions before changing the role.
|
||||
|
||||
### Preconditions
|
||||
|
||||
The starting-state checks above are satisfied and this plan is approved.
|
||||
Inspect `defaults/main.yml`, `meta/argument_specs.yml`, `templates/config.yml.j2`,
|
||||
`tasks/main.yml`, `README.md`, `tests/integration`, `tests/converge.yml`, and
|
||||
`tests/verify-config.yml` in the owning repository before editing.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
`ansible-role-scriptorium`
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Set `scriptorium_version: v0.16.0` and
|
||||
`scriptorium_go_snap_channel: 1.27/stable`. Keep the repository URL, paths,
|
||||
metadata defaults, dependency-management switch, and Go executable interface.
|
||||
Continue building `./cmd/scriptorium` using the existing command task and
|
||||
build environment. Replace the ldflags argument with:
|
||||
|
||||
```yaml
|
||||
"-s -w -X go.maximumdirect.net/releasekit/internal/runtimeinfo.injectedVersion={{ scriptorium_version }}"
|
||||
```
|
||||
|
||||
This is the injection symbol used by the selected ReleaseKit v0.10.0 build
|
||||
implementation, surfaced through public `buildinfo.Version()`. No ReleaseKit
|
||||
launcher, build receipt, new public flag variable, or release tooling is needed.
|
||||
|
||||
2. Replace the old configuration interface with the six nullable variables
|
||||
specified in the feature roadmap. In the argument spec use optional
|
||||
`list`/`elements: dict` for imports and the three resource lists, `dict` for
|
||||
collections, and `path` for schema root. Remove the six retired variables
|
||||
listed in the roadmap from defaults, spec, template, tests, and active examples;
|
||||
mention them only in migration documentation. Keep the supported server and
|
||||
transient-retry variables unchanged.
|
||||
|
||||
3. Use the existing single configuration template. Render imports beneath
|
||||
`config` and native resource fields beneath `promptkit`, with a parent
|
||||
predicate covering every supported descendant. Serialize collections and
|
||||
strings appropriately and select fields with `is not none`. Preserve `[]`,
|
||||
`{}`, zero, and false inside supplied structures. Render `{}` when all
|
||||
application settings are null. Do not merge or translate resource definitions.
|
||||
|
||||
4. Update README defaults, inventory examples, validation description, and
|
||||
migration guidance together. Explain the variable replacements, caller-owned
|
||||
fragments and source-relative resources, qualified IDs, whole-record same-ID
|
||||
replacement, native overlay versus LLM profile selection, and the new CLI
|
||||
boundary. Link upstream for discovery, secrets bootstrap, structural-repair
|
||||
budgets, and removed profile IDs. The role supplies native fields and imports;
|
||||
it does not deploy arbitrary referenced assets or secret files.
|
||||
|
||||
5. Migrate the existing harness and verifier in place. Keep its temporary paths,
|
||||
local inventory, dependency installation, cleanup, and clean-repeat checks.
|
||||
Delete the obsolete profile-directory fixtures and retired inspection flags.
|
||||
Use these existing behavioral cases rather than adding parallel test tooling:
|
||||
|
||||
- **Minimal configuration:** explicitly supply null for the supported optional
|
||||
application fields, validate the managed document with native `config
|
||||
validate`, and verify it parses as `{}`. This proves supplied null omission,
|
||||
not current default identity. Immediately repeat identical convergence.
|
||||
- **Recovery and executable selection:** retain removal of the test binary
|
||||
and the existing caller-supplied Go wrapper with dependency management
|
||||
disabled. Explicitly request `scriptorium_version: v0.16.0` in this case
|
||||
and its repeat. Require wrapper use and native `scriptorium version` output
|
||||
`scriptorium v0.16.0`. Do not inspect linker arguments as a test assertion.
|
||||
- **Representative native configuration:** supply a synthetic backend list,
|
||||
profile list, prompt list, collection mapping containing a namespaced
|
||||
profile/prompt, and a schema-root path under the temporary fixture root.
|
||||
Use explicit IDs such as `fixture-backend`, `fixture-profile`,
|
||||
`fixture-prompt`, and `fixture/offline`/`fixture/note`. Give profiles a
|
||||
synthetic model and localhost endpoint/backend, without a credential
|
||||
reference. Prompts use inline messages and a native text output contract
|
||||
with validation disabled, so inspection needs no provider or real assets.
|
||||
Include server address, request limit zero, retry zero, queue capacity
|
||||
zero, and a nested false parameter. Verify supplied fields through the
|
||||
deployed document and native offline inspection; leave selected nullable
|
||||
server fields unset and assert their omission. Repeat identical convergence.
|
||||
- **Caller-owned import and empty containers:** retain a small temporary
|
||||
`fragments/server.yml`, selected with
|
||||
`scriptorium_config_imports: [{path: fragments/server.yml, required: true}]`.
|
||||
Select the temporary main config path and caller ownership as before.
|
||||
Also supply empty resource lists and an empty collections mapping in this
|
||||
case. Check their literal deployment and null schema-root omission, then
|
||||
use native configuration inspection to verify the imported server address.
|
||||
Repeat identical convergence. Keep import behavior and empty-container
|
||||
rendering in this existing case instead of adding a combinatorial matrix.
|
||||
|
||||
Synthetic names and values above are test inputs, never production defaults.
|
||||
Use native commands with flags after the full command path, for example:
|
||||
|
||||
```sh
|
||||
/usr/local/bin/scriptorium config validate --config "$config_path"
|
||||
/usr/local/bin/scriptorium promptkit show profile fixture-profile --config "$config_path" --format json
|
||||
/usr/local/bin/scriptorium promptkit show prompt fixture/note --config "$config_path" --format json
|
||||
/usr/local/bin/scriptorium config show --config "$import_config_path" --path /server/addr --format json
|
||||
```
|
||||
|
||||
Path-selected native config show returns the selected effective value; parse
|
||||
that JSON scalar rather than assuming the retired full-document report shape.
|
||||
Successful inspection of explicitly supplied resource IDs plus assertions of
|
||||
caller fields is sufficient. Do not test the bundled catalog, run generation,
|
||||
call smoke/preflight, or test framework inheritance internals.
|
||||
|
||||
### Validation
|
||||
|
||||
From `ansible-role-scriptorium`, run:
|
||||
|
||||
```sh
|
||||
bash -n tests/integration
|
||||
git diff --check
|
||||
tests/integration
|
||||
```
|
||||
|
||||
The harness must run native offline validation/inspection, the revised supplied
|
||||
configuration assertions, version selection and missing-binary/custom-executable
|
||||
recovery, and immediate clean repeats. Its existing syntax and lint invocations
|
||||
must pass with the updated fixtures. Retain production-profile lint; do not
|
||||
silence real failures. An unrelated dependency-download attempt by lint can be
|
||||
avoided using its offline mode after installing the pinned dependencies.
|
||||
|
||||
Tool setup follows workspace README instructions. If the harness needs sudo
|
||||
authentication, use the available local privilege mechanism and report an actual
|
||||
access failure accurately. No remote-controller login or API keys are needed.
|
||||
Do not run the full upstream application/release suites as an additional gate.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
The installed application reports the explicitly requested version, all selected
|
||||
native configuration behaviors work offline, and identical repeats report
|
||||
`changed=0` with no failures. Defaults/spec/template/README agree. No production
|
||||
task or rebuild trigger was added. Record the commands and results for handoff;
|
||||
only role-owned changes belong in this stage's commit.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Update Scriptorium to its native configuration interface`.
|
||||
|
||||
## Stage 2: Record the Implementation Handoff
|
||||
|
||||
### Objective
|
||||
|
||||
Record the tested standalone role revision and leave the feature ready for
|
||||
independent review, with the existing suite compatibility set intact.
|
||||
|
||||
### Required Policy Review
|
||||
|
||||
Before beginning this stage, reread these workspace-relative files:
|
||||
|
||||
- `AGENTS.md`
|
||||
- `docs/orientation.md`
|
||||
- `docs/conventions.md`
|
||||
- `docs/planning.md`
|
||||
- `docs/testing.md` before recording validation claims
|
||||
|
||||
### Preconditions
|
||||
|
||||
Stage 1 is committed and its required validation passed. Inspect the role's
|
||||
actual commit and working-tree state and the workspace's outstanding changes.
|
||||
|
||||
### Owning Repository
|
||||
|
||||
Workspace root.
|
||||
|
||||
### Required Changes
|
||||
|
||||
1. Add concise implementation evidence to Feature 0024: role commit, native
|
||||
configuration/version outcomes, exact commands run, clean-repeat evidence,
|
||||
limitations, and any deviations. Leave independent review explicitly pending.
|
||||
2. Update `docs/status.md` and the current section of
|
||||
`docs/roadmap/application-upgrade-sequence.md` to identify the implemented
|
||||
role and pending review. Use `in_progress`, not `done`; do not advance to
|
||||
Audita implementation before review and closeout.
|
||||
3. Keep concise progress notes in this plan. Do not retire it, write speculative
|
||||
remediation findings, update suite/collection/consumer pins, or start the next
|
||||
feature as part of handoff. Preserve other repositories' pre-existing work.
|
||||
|
||||
### Validation
|
||||
|
||||
From the workspace root, run:
|
||||
|
||||
```sh
|
||||
git diff --check
|
||||
git -C ansible-role-scriptorium status --short
|
||||
scripts/status
|
||||
```
|
||||
|
||||
Check edited Markdown's local links. Compare the final role diff and recorded
|
||||
evidence with every feature acceptance criterion. Reuse Stage 1's successful
|
||||
checks for unchanged code; rerun only checks affected by subsequent changes.
|
||||
Confirm the unrelated repository trees and dependency selections were not changed
|
||||
by this feature. Do not interpret existing ahead-of-origin commits as a failure.
|
||||
|
||||
### Completion Criteria
|
||||
|
||||
Documentation accurately identifies the tested role revision, evidence, and
|
||||
pending review. The role and workspace have no uncommitted feature work after
|
||||
the handoff commit; report unrelated changes separately. No suite deployment,
|
||||
publication, or credential validation is claimed.
|
||||
|
||||
### Commit
|
||||
|
||||
Commit intent: `Record the Scriptorium update for review`.
|
||||
|
||||
## Final Validation and Handoff
|
||||
|
||||
Report both commit identifiers, actual validation results, any deviations or
|
||||
remaining failures, and any complexity added beyond the planned task flow with
|
||||
the requirement that justified it. Report whether optional local tooling setup
|
||||
changed the shared test host. Feature completion requires independent review;
|
||||
do not mark Feature 0024 done. The next selected application in the agreed
|
||||
sequence is Audita, after this feature's review and closeout.
|
||||
|
||||
## Progress Notes
|
||||
|
||||
Feature roadmap and staged plan approved. Ready for the implementation sprint;
|
||||
no implementation stages have begun.
|
||||
|
||||
## Open Questions
|
||||
|
||||
None. Scope, native variable mapping, version injection, toolchain selection,
|
||||
offline validation, and repository boundaries are settled for this feature.
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
# Workspace Status
|
||||
|
||||
Last updated: 2026-09-29
|
||||
Last updated: 2026-12-02
|
||||
|
||||
Current milestone: Operational D&D pipeline deployment
|
||||
|
||||
Current focus: Feature 0023 is complete after independent review with no findings.
|
||||
Narratio v3.1.0 and Scriptorium credential selection are wired through the
|
||||
standalone role, D&D suite, collection, and local consumer pins. No active
|
||||
implementation plan remains. Deployment of this update and live credential
|
||||
validation remain operator activities; neither was performed by this feature.
|
||||
Feature 0022 and the application upgrade sequence remain complete. Broader
|
||||
downgrade/removal policy remains unselected design work.
|
||||
Current focus: Feature 0024, standalone Scriptorium v0.16.0 adoption, is ready
|
||||
for its implementation sprint with an approved roadmap and staged plan. The new
|
||||
upgrade sequence is agreed: Scriptorium → Audita →
|
||||
Notarius → Narratio → coordinated assets/suite integration → collection and
|
||||
consumer updates. The approved plan is at `docs/roadmap/implementation.md`.
|
||||
The existing suite pins
|
||||
remain unchanged; Features 0022 and 0023 and the previous upgrade sequence are
|
||||
complete. Broader downgrade/removal policy remains unselected design work.
|
||||
See the [upgrade sequence](roadmap/application-upgrade-sequence.md) and
|
||||
[feature evidence](roadmap/features/0023-narratio-scriptorium-credentials.md).
|
||||
[current feature](roadmap/features/0024-scriptorium-v0-16-adoption.md).
|
||||
|
||||
| ID | Deliverable | Owner | State | Evidence or next step |
|
||||
| --- | --- | --- | --- | --- |
|
||||
@@ -49,6 +50,7 @@ See the [upgrade sequence](roadmap/application-upgrade-sequence.md) and
|
||||
| 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) |
|
||||
| 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 | ready | [Feature roadmap](roadmap/features/0024-scriptorium-v0-16-adoption.md) and [staged implementation plan](roadmap/implementation.md) approved; ready for implementation; suite unchanged |
|
||||
| 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