Approve the plan to install upstream release binaries

This commit is contained in:
2026-12-04 17:07:43 +00:00
parent 4f2fdb8865
commit 59799fe427
7 changed files with 871 additions and 72 deletions

View File

@@ -3,6 +3,18 @@
This policy is normative for designing, implementing, and reviewing Ansible
roles and collections in this workspace.
## Application Binary Installation
- Install managed application executables from upstream-published binary
assets for an explicitly selected release and the target architecture.
A release tag or source archive alone is not a binary release.
- Production application binaries must not be compiled from source on the
managed host, controller, or elsewhere in this workspace as a deployment
workaround. Missing release artifacts are an upstream delivery prerequisite,
not a reason to fall back to a build.
- Use ordinary Ansible download/install modules. Preserve upstream binary
bytes and keep version selection independent of application configuration.
## Role Implementation
- Always use the smallest clear sequence of declarative tasks that reaches the
@@ -20,8 +32,7 @@ roles and collections in this workspace.
checks necessary to manage that state. Inspect it beforehand only when the
observed state is independently required.
- State inspection is justified when its result is necessary to decide whether
an imperative operation must run, such as checking whether an arbitrary
build command's output exists.
an imperative operation outside a state-management module must run.
- Production role tasks establish required application state; they do not test
the role's own implementation. Put implementation verification in
repository-local tests unless the specification explicitly requires runtime

View File

@@ -27,6 +27,10 @@ match the other three targets.
- [x] [Collection 0.2.0 release](features/0029-native-collection-assembly.md#collection-020-release-follow-up) — tagged collection `155e05a` and public Galaxy archive package the native suite with immutable role tags; public installation verified.
- [ ] Consumer dependency and deployment-guidance updates.
The next selected work is [Feature 0030](features/0030-upstream-release-binaries.md):
replace production source builds with upstream release binaries. Consumer
adoption remains pending while this installation-policy change is planned.
All four standalone adoptions are complete after independent review, and their
reviewed role commits are pushed. Coordinated assets/suite integration is
complete as Feature 0028, with its review finding remediated and revisions

View File

@@ -0,0 +1,199 @@
# Feature 0030: Install Upstream Release Binaries
Status: ready
Roadmap approved: 2026-12-04
## Summary
Replace source compilation in all five application roles with installation of
upstream-published release executables. Every deployed application binary must
be the released upstream binary for the selected version and architecture.
The user selected this policy and approved the migration scope on 2026-12-04,
and confirmed that the canonical upstream repository host is now
`forge.maximumdirect.net`. The staged execution steps are maintained in the
[implementation plan](../implementation.md).
## Problem or Opportunity
All five roles currently clone source, provision Go and build executables on
the managed host. Selecting a release tag does not make those locally compiled
executables upstream release binaries. The new policy changes the installation
mechanism, while preserving the reviewed native application configuration.
## Scope
- Migrate Seriatim, Audita, Notarius, Scriptorium and Narratio standalone roles,
including defaults, argument specifications, documentation and existing tests.
- Remove source checkout and Go/build controls from the roles and the pipeline
role's public interface and dependency forwarding.
- Make the pipeline role install Git explicitly for its asset checkouts; it
must no longer obtain Git incidentally through application build dependencies.
- Assemble the reviewed role combination into the collection through the
established public-origin subtree and dependency-manifest workflow.
- Migrate repository and release URLs from `gitea.maximumdirect.net` to
`forge.maximumdirect.net` throughout the owned Ansible repositories and
workspace inventory, tooling and current documentation. This includes role
requirements, collection metadata, asset repository defaults, test references,
subtree source URLs and local Git origins for the owned Ansible repositories
and workspace control repository. Preserve repository paths and selected refs.
- Adopt Notarius v0.10.2, whose published amd64 and arm64 binaries complete the
required release artifact set without changing the native configuration.
- Document migration from a source-built installation, including retired
inventory variables and the upstream artifact prerequisite.
## Non-goals
- Application source changes, upstream release publication or local binary
builds, including builds on the controller or in test fixtures.
- Application-version upgrades other than the selected Notarius v0.10.2 patch,
native-configuration redesign, additional platforms, new prompt/campaign
content, operational deployment or consumer inventory work.
- Uninstalling existing Go/Git packages or deleting legacy source directories.
- New signing, provenance, rollback, fingerprint or role-private state systems.
- Moving or replacing the published collection 0.2.0 tag or archive. Publication
of a subsequent collection version is a separate release task.
## Target End State
Each role installs its selected upstream Linux executable directly at its
existing configurable binary path, with root ownership and executable mode.
Ubuntu 26.04 on amd64 and arm64 remains the supported target. Ansible facts
`x86_64` and `aarch64` map to upstream asset suffixes `amd64` and `arm64`.
Keep Seriatim v1.5.0, Audita v4.3.0, Scriptorium v0.16.0 and Narratio v4.0.0.
Select Notarius v0.10.2; its release review confirms no configuration migration
from v0.10.0. An unavailable version/architecture fails through the ordinary
download operation; it never triggers compilation, another version or another
architecture.
Existing `<app>_version` and `<app>_binary_path` variables retain their purpose.
Replace source repository settings with a documented release download base
URL, defaulting to `https://forge.maximumdirect.net/eric/<app>/releases/download`.
Assets use `<app>-<version>-linux-<arch>`, distributed as raw executables.
Notarius v0.10.2's published artifacts follow this contract. Construct
versioned URLs without querying a moving `latest` release.
Canonical repository URLs use `https://forge.maximumdirect.net/eric/<repo>.git`.
The domain change applies to repository, documentation and release locations;
it does not change Ansible namespaces, application configuration endpoints,
Go module/import identities or immutable historical tags and artifacts. Current
documentation must use the new host; completed historical evidence does not
need a bulk rewrite. The role's configurable asset origins remain configurable.
Source checkout paths, source repository URLs, dependency-management switches,
Go channels and Go executable settings leave the supported role interface.
Document their removal explicitly rather than silently presenting them as
working controls. Existing application templates, optional-field omission,
suite filesystem policy, overlays, credentials and asset selections are retained.
The first application of the new role replaces an existing locally built binary
even when it reports the same version. Repeated application reports no changes.
Legacy source trees and installed development tools are left unmanaged.
## Repository Ownership
- `ansible-role-{seriatim,audita,notarius,scriptorium,narratio}` own their release
installation interfaces and native configuration tests.
- `ansible-role-dnd-pipeline` owns suite composition, prerequisite packages and
compatible application-role pins.
- `ansible-collection-dnd` owns imported pipeline assembly, matching consumer
dependency selections and installed-artifact smoke coverage.
- This workspace owns policy, the roadmap, implementation planning, canonical
repository locations in `workspace.yml`, tooling and evidence.
- Upstream applications are read-only release and contract references.
`rakestraw-ansible` and asset authoring repositories are unchanged.
## Constraints and Settled Decisions
Follow the revised [MVP installation policy](../mvp.md#application-installation),
[Ansible house style](../../ansible.md) and [testing policy](../../testing.md).
Source-build deployment is superseded, including the older development
branch/commit override. The roles manage released application binaries only.
This requirement applies to the five managed applications. Git-hosted Ansible
roles, content assets and ordinary packaged host prerequisites retain their
existing distribution mechanisms. No upstream application is patched to suit
the role.
## Simplest Viable Implementation
Retain platform validation, needed directories and configuration management.
Replace the Git/Go/stat/build sequence with `ansible.builtin.get_url` managing
the binary's destination, ownership and mode. Use the published `SHA256SUMS`
through the module's native `checksum` option so the selected asset replaces
an existing source-built or differently versioned executable and converges on
repeat. This uses upstream metadata and module behavior, not a role-authored
checksum database, preflight hash task or post-install validation task.
The release base URL, selected version and facts determine the download and
checksum URLs. Trust the module's comparison and replacement behavior. Native
version/configuration checks remain tests. Remove obsolete build-path tests
and unused build dependencies rather than replacing them with implementation
snapshots. Small direct installation tasks remain in the independent roles;
there is no new shared installer role or custom module.
## Acceptance Criteria
- Each role installs the explicitly selected upstream binary and has no source
checkout, compiler installation or build execution path.
- An existing source-built installation converges to the released artifact;
version selection remains configurable and an immediate repeat is clean.
- Supported asset names and architectures are mapped correctly. Missing assets
do not produce a substitute executable or source-build fallback.
- Existing representative native configuration and overlay tests still pass
with released executables, alongside syntax checks and production lint.
- The assembled collection resolves its matching public role pins in isolated
Ansible paths, passes its existing native smoke checks and converges cleanly.
- Documentation and argument specifications describe the release interface and
removal of the source-build interface. No operational host is deployed.
- Active repository/release URLs in the changed Ansible repositories and
workspace inventory/tooling use `forge.maximumdirect.net`. Public dependency
installation, subtree import and binary downloads use the canonical host
directly, rather than depending on redirects from the old hostname.
## Dependencies and Release Availability
Public Gitea API and asset URLs were checked on 2026-12-04 using the canonical
hostname. All selected applications provide both required Linux architectures:
| Application | Selected tag | Published Linux executables |
| --- | --- | --- |
| [Seriatim](https://forge.maximumdirect.net/eric/seriatim/releases/tag/v1.5.0) | v1.5.0 | amd64, arm64; SHA256SUMS |
| [Audita](https://forge.maximumdirect.net/eric/audita/releases/tag/v4.3.0) | v4.3.0 | amd64, arm64; SHA256SUMS |
| [Notarius](https://forge.maximumdirect.net/eric/notarius/releases/tag/v0.10.2) | v0.10.2 | amd64, arm64; SHA256SUMS |
| [Scriptorium](https://forge.maximumdirect.net/eric/scriptorium/releases/tag/v0.16.0) | v0.16.0 | amd64, arm64; SHA256SUMS |
| [Narratio](https://forge.maximumdirect.net/eric/narratio/releases/tag/v4.0.0) | v4.0.0 | amd64, arm64; SHA256SUMS |
Notarius v0.10.2 resolves the earlier delivery gap: v0.10.0 had no hosted
binaries and v0.10.1 provided amd64 only. Its release now includes
`notarius-v0.10.2-linux-amd64`, `notarius-v0.10.2-linux-arm64` and corresponding
entries in `SHA256SUMS` at the canonical release download base. There is no
remaining upstream artifact prerequisite for the selected compatibility set.
The selected compatibility set preserves both supported architectures without
a source-build exception.
## Notarius v0.10.2 Release Review
The [release notes](https://forge.maximumdirect.net/eric/notarius/src/tag/v0.10.2/docs/releases/v0.10.2.md)
describe adding Linux/arm64 delivery alongside Linux/amd64; both official
builds use Go 1.27.4. Application source and dependency versions are unchanged
from v0.10.1, which in turn preserved the v0.10.0 application contracts. The
tag selects commit `10b54107f3d00cef150711fe1fb5f5ea41524e64`.
Comparison with v0.10.1 changes release configuration and documentation only.
Configuration, CLI, reference-input and output-artifact contracts remain
compatible. Retain the role's version 6 configuration, pipeline definitions,
testing overlay, cache settings and suite wiring. Upstream build-toolchain
selection does not create any Go provisioning requirement for these binary-only
roles.
Both published executables were downloaded to a temporary directory and
matched their upstream SHA256SUMS entries. On the amd64 review host, native
`version` reported `notarius v0.10.2`; existing suite root and testing-overlay
configuration validation and `dnd-session` pipeline validation with and without
the testing overlay passed. Arm64 artifact availability and checksum were
verified; native arm64 execution was not performed. No installed application
was replaced, source was built or provider was called during this review.

View File

@@ -1,15 +1,620 @@
# Implementation Plan
# Implementation Plan 0030: Install Upstream Release Binaries
No implementation plan is active.
Status: ready — approved for implementation
[Feature 0028: Native suite and asset integration](features/0028-coordinated-native-suite-integration.md)
and [Feature 0029: Native collection assembly](features/0029-native-collection-assembly.md)
are complete. Their durable roadmaps retain validation evidence; Git history
preserves the executed Feature 0028 plan. Feature 0029 was implemented directly
at the user's request.
Implementation plan approved: 2026-12-04
Collection [0.2.0](https://gitea.maximumdirect.net/eric/ansible-collection-dnd/releases/tag/v0.2.0)
has subsequently been released at `155e05a`, as authorized directly by the user.
The next scope in the [upgrade sequence](application-upgrade-sequence.md) is
consumer adoption of this release. Agree on its scope before preparing any
new staged plan here.
Target executor: GPT-5.6-Terra
Feature roadmap: [Feature 0030](features/0030-upstream-release-binaries.md)
Active plan location: `docs/roadmap/implementation.md`
## Objective
Replace production source builds in all five application roles with upstream
release executables, migrate active repository/release URLs to
`forge.maximumdirect.net`, and deliver the matching pipeline and collection
source snapshots. Preserve native configuration and suite behavior, adopting
Notarius v0.10.2 as the sole application-version change. The approved roadmap
owns scope, rationale and acceptance criteria.
## Execution Rules
- Execute stages in numeric order. Before every stage, reread its Required
Policy Review documents, confirm its preconditions and inspect the owning
repository's working tree. Preserve unrelated changes.
- This is an Ansible feature. Upstream application and framework repositories
are read-only. Install only published application executables, including in
test cases; no source-build fallback, patched binary or compiler fixture.
- Use direct module behavior, including `get_url`'s published-checksum support.
No preliminary binary stat/version/hash task, build facts, download handler,
checksum parser, persisted bookkeeping or production configuration test is
needed. The checksum option establishes which release artifact to install;
it does not introduce a separate integrity or drift-management subsystem.
- Run each stage's validation before committing that stage with the stated
plain English intent. Do not begin dependent integration after failed
validation. Record concise stage hashes/results in Progress Notes; detailed
evidence belongs in implementation commits rather than duplicate documents.
- Execution of the approved plan includes publishing the validated role and
pipeline commits needed by the public dependency/subtree workflow, followed
by collection and workspace commits. Push only the relevant `main` branches;
no force push, new tag, Gitea release, uploaded artifact or rewritten history.
This planning pass performs none of that publication.
- Use existing Git authentication. The canonical origin stays HTTPS on Forge;
an existing authenticated SSH push transport may be used without changing
the public fetch/install URLs. Never display credentials. If publication is
unavailable, retain validated commits and report the public integration step
that remains unsatisfied; do not substitute sibling paths or moving refs.
- Local integration may modify the authorized Ubuntu test host and use
synthetic credentials. No controller provisioning, `pipeline-dnd` deployment,
live provider calls, S3 transfers or Narratio preflight/run is in scope.
## Starting State and Preconditions
Application role starting commits:
| Repository | Starting commit | Application selection after this feature |
| --- | --- | --- |
| `ansible-role-seriatim` | `e08c63c0b078658bdfa2d10a2e6e1e4f9372a075` | v1.5.0 |
| `ansible-role-audita` | `b818f6067789d7fdd09a8a4a54134452089811c8` | v4.3.0 |
| `ansible-role-notarius` | `85cd3a397f63342df8309aa4f36d9900ff610e41` | v0.10.2 |
| `ansible-role-scriptorium` | `e936d5200df675feeb53be235a175b608c0afc7c` | v0.16.0 |
| `ansible-role-narratio` | `2a4e82c734a256a02281dbb6e63b348a7171f808` | v4.0.0 |
Pipeline starts at `773b1fa80e0713bce94359143e35fec95303dfa6`; collection
starts at `155e05a17dcacd7f84f37564ee8d21082b3bb0c0`. Their v0.2.0 release
tags/artifact remain immutable. All nested repositories were clean when this
plan was prepared; the workspace has the Feature 0030 planning/policy edits.
Do not reset newer work to these recorded baselines.
Use the existing workspace `.venv/bin/ansible-playbook`, `ansible-galaxy`,
`ansible-lint` and Python. A missing system-wide Ansible command is not a
blocker: use the venv, or recreate it with the documented root README commands
and `requirements-dev.txt` if genuinely absent. Do not change dependency pins
merely to prepare tooling. The existing local environment is the agreed Ubuntu
26.04 test proxy; use the existing inventories and sudo access.
The roadmap records public amd64/arm64 binaries and SHA256SUMS for every
selected application, including Notarius v0.10.2. No upstream delivery question
remains. Native tests run on the available host architecture. An arm64 host,
QEMU environment or CI matrix is not a new acceptance gate: review both mapping
entries and asset names, and report which architecture was actually executed.
## Repository Scope
- Change the five standalone roles, `ansible-role-dnd-pipeline`,
`ansible-collection-dnd`, and workspace control files.
- Read upstream tagged documentation/release assets without editing application
repositories. Do not change their local Git configuration.
- Keep `rakestraw-ansible`, asset authoring checkouts and their local Git
configuration unchanged. Their canonical URLs in workspace inventory and
pipeline defaults do change. Asset revisions/content remain unchanged.
## Shared Application-Role Contract (Stages 2–6)
Apply this contract in each owning role, without introducing a shared role or
plugin. Use the application name in place of `<app>`:
1. Keep `<app>_version` and `<app>_binary_path`; add
`<app>_release_base_url` with default
`https://forge.maximumdirect.net/eric/<app>/releases/download`.
The selected version includes its `v` prefix. Remove `<app>_repository_url`,
`<app>_source_dir`, `<app>_manage_build_dependencies`,
`<app>_go_snap_channel` and `<app>_go_binary` from defaults and argument
specifications. Describe the version as an upstream release tag. Do not
retain ignored compatibility aliases or introduce an install-mode switch.
2. Retain platform validation. Keep/create the binary parent directory with
`ansible.builtin.file`, `become: true`, root ownership and mode `0755`.
Remove source parent/checkout management, Git/Go package tasks, binary stat,
build command/environment, and the old source/binary metadata loop.
3. Install the raw executable with one `ansible.builtin.get_url` task using
`become: true`, the existing binary path, `owner: root`, `group: root`,
`mode: "0755"`, and these URL expressions:
```yaml
url: "{{ <app>_release_base_url }}/{{ <app>_version }}/<app>-{{ <app>_version }}-linux-{{ {'x86_64': 'amd64', 'aarch64': 'arm64'}[ansible_facts.architecture] }}"
checksum: "sha256:{{ <app>_release_base_url }}/{{ <app>_version }}/SHA256SUMS"
```
Replace the angle-bracket placeholders when implementing. Use the small
inline architecture mapping, not a new fact/probe or public architecture
override. Pass the checksum URL directly to the module, which selects the
entry for the requested asset. Leave ordinary `force` and error handling
with the module. An unsupported release asset fails rather than falling
back. No archive extraction, staging cache or post-download chmod task is
necessary for these raw executables. See the upstream
[get_url contract](https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/get_url_module.html).
4. Preserve account, runtime directory, configuration tasks/templates and all
native configuration variables. A new application binary must not trigger
configuration redesign or mirror upstream defaults into inventory.
5. Remove the standalone role's now-unused `collections/requirements.yml`
(its only dependency is Go's `community.general.snap`) and corresponding
install commands/documentation. Keep the existing test harness rather than
creating another dependency/bootstrap framework. Run its existing lint in
production profile and offline mode. Static lint is not a deployment task.
6. Update README, metadata descriptions/issue links and active test references
to Forge and the new install interface. Explain retired variables, release
tag selection, direct target-host download access, and that existing Go/Git
installations/source trees are not deleted. A release-base override changes
the distribution location for upstream assets, not permission to build them.
7. Remove custom-Go wrappers, invocation logs, compiler opt-out assertions and
missing-binary build-recovery scenarios from `tests/integration`. Retain an
explicitly supplied release and native version check, with an immediate
repeat using identical inputs. Preserve native configuration/import/falsey
value checks and their existing immediate repeats. Do not replace removed
tests with checks of task structure, file module arguments, variable defaults
or the implementation of `get_url`. Exercise an existing installation when
available; no fake/corrupt binary or fresh source build is needed as setup.
8. In each stage run `bash -n tests/integration`, the complete updated
`tests/integration`, and `git diff --check` from that role's root. The
harness must include syntax checking, production-profile offline lint and
clean immediate repeats. Test downloads require network access even though
native application validation makes no provider calls. Record results.
## Stage 1: Establish Canonical Workspace Repository Locations
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/planning.md`.
### Owning Repository and Preconditions
Workspace root. The roadmap and this implementation plan must be approved.
Inspect the existing planning edits and preserve unrelated work.
### Required Changes
- Change every repository `remote` in `workspace.yml`, including read-only
reference entries, from the old Gitea hostname to `forge.maximumdirect.net`.
Preserve paths, categories, names and branches. Update current workspace
orientation, README, tooling and canonical-source documentation where needed.
Historical completed roadmap/release evidence does not need a bulk rewrite.
- Set local `origin` fetch URLs for the workspace and the seven owned Ansible
repositories to their corresponding canonical HTTPS URL. Preserve unrelated
remotes and authentication. Do not modify origins in application, content or
deployment-consumer checkouts.
- Mark Feature 0030 and this plan `in_progress` when execution begins. Make no
application role changes in this stage. Existing source-build text in
historical records is not an instruction to restore that installation mode.
### Validation and Completion Criteria
From the workspace root:
```sh
.venv/bin/ansible-playbook --version
.venv/bin/ansible-lint --version
.venv/bin/python -c 'import yaml; yaml.safe_load(open("workspace.yml"))'
bash -n scripts/status
scripts/status
git diff --check
```
Review `git remote get-url origin` in the eight owned repositories and confirm
that their namespace/repository paths are preserved. Tooling works through the
venv; inventory parses and `scripts/status` still reports every checkout.
### Commit
Workspace intent: `Use Forge as the canonical workspace repository host`.
Include the approved, related policy/planning edits if they are still
uncommitted; exclude unrelated edits. Local Git configuration is not a tracked
file and must be reported separately.
## Stage 2: Install Released Seriatim Binaries
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-role-seriatim`. Stage 1 is complete; the role is independently usable
and its published v1.5.0 and test-selected v1.4.0 assets exist for both targets.
### Required Changes
Apply the Shared Application-Role Contract. Keep default v1.5.0. Seriatim's
production flow becomes platform assertion, binary parent directory, and
release download. It has no configuration file to add.
Retain the existing explicit v1.4.0 version-selection case and its native
`--version` check; add/retain an immediate clean repeat after that selection.
The v1.4.0 binaries and SHA256SUMS were confirmed available during planning.
Remove its build-recovery wrapper/cases and ensure cleanup reapplies the new
release-install role rather than invoking any old source build.
### Validation and Completion Criteria
From this repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
Both default smoke and explicit version selection work; immediate repeats are
clean. Version checks concern the requested value, not the current default.
The role's three production operations implement the new public contract.
### Commit
Role intent: `Install Seriatim from upstream release binaries`.
## Stage 3: Install Released Audita Binaries
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-role-audita`. Stages 1–2 are complete; v4.3.0 assets are published.
### Required Changes
Apply the Shared Application-Role Contract with default v4.3.0. Retain schema 3
configuration, imports, native PromptKit fields, caller-composed stages and
configuration ownership/modes.
Replace the compiler-recovery section with ordinary explicit
`audita_version: v4.3.0` selection, `audita version` verification and a clean
repeat, reusing its existing configuration arguments. Preserve the existing
minimal/representative/import tests and native offline validation.
### Validation and Completion Criteria
From this repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
The released executable validates the existing cases, supplied values retain
their meaning and repeated convergence is clean. No compiler is needed.
### Commit
Role intent: `Install Audita from upstream release binaries`.
## Stage 4: Install Released Notarius v0.10.2 Binaries
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-role-notarius`. Stages 1–3 are complete. The roadmap records the
v0.10.2 release review and both published architecture assets.
### Required Changes
Apply the Shared Application-Role Contract and set the default application
version to v0.10.2. Retain version 6 configuration, native pipelines, imports,
PromptKit fields, cache/debug choices and optional-field omission. Patch
release adoption does not justify a template change.
Replace the final source-build recovery scenario's explicit v0.10.0 with
`notarius_version: v0.10.2`, the native `notarius version` assertion and a clean
repeat. Remove the wrapper, binary deletion and Go controls. Preserve the
existing configuration/pipeline/import and composition tests. Update current
upstream contract links to the v0.10.2 tag on Forge.
### Validation and Completion Criteria
From this repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
The requested v0.10.2 installs, existing native configuration/pipeline cases
remain valid, and immediate repeats are clean. The mapping selects each
architecture's own asset; amd64 execution is sufficient on this test host.
### Commit
Role intent: `Install released Notarius v0.10.2 binaries`.
## Stage 5: Install Released Scriptorium Binaries
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-role-scriptorium`. Stages 1–4 are complete; v0.16.0 assets exist.
### Required Changes
Apply the Shared Application-Role Contract with default v0.16.0. Preserve
native PromptKit configuration and preparation, imports, falsey values and
configuration permissions.
Replace the compiler-recovery block with explicit
`scriptorium_version: v0.16.0` selection, native `scriptorium version`
verification and a clean repeat. Remove binary deletion/Go wrappers. Preserve
its existing representative configuration and offline prompt preparation tests.
### Validation and Completion Criteria
From this repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
Native configuration/preparation still passes with the released binary and
immediate repeats are clean. No provider inference is invoked.
### Commit
Role intent: `Install Scriptorium from upstream release binaries`.
## Stage 6: Install Released Narratio Binaries
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-role-narratio`. Stages 1–5 are complete; v4.0.0 assets exist.
### Required Changes
Apply the Shared Application-Role Contract with default v4.0.0. Preserve the
runtime identity, workspace/campaign directories, configuration path,
permissions, native field interface and synthetic-secrets testing.
Keep the existing custom configuration path coverage in the former recovery
case. Select `narratio_version: v4.0.0` explicitly, use native `version` text/JSON
verification and repeat with the same arguments. Remove its Go wrapper,
compiler controls and executable deletion. Retain imported, representative and
explicit-empty configuration cases and application-account validation.
### Validation and Completion Criteria
From this repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
Explicit version and custom configuration path work, the native configuration
suite passes, secrets remain suppressed, and immediate repeats are clean.
### Commit
Role intent: `Install Narratio from upstream release binaries`.
## Stage 7: Compose and Publish the Binary-Installing Pipeline
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-role-dnd-pipeline`, with publication of completed application-role
commits. Stages 1–6 passed and their five role commits are clean and recorded.
### Required Changes
1. Push only the five validated application-role `main` commits to their Forge
origins. Record their full commit IDs; verify they are accessible through
the public origins before pinning them. No application-role release tag is
created in this development feature.
2. In pipeline defaults and argument specifications, remove
`dnd_pipeline_manage_build_dependencies`, `dnd_pipeline_go_snap_channel` and
`dnd_pipeline_go_binary`. Remove their forwarded parameters for every
dependency in `meta/main.yml`. Change only the application selection
`dnd_pipeline_notarius_version` to v0.10.2; preserve the other versions.
The downstream field-specific release-base variables remain available to
inventory without adding five suite-prefixed aliases.
3. Extend the existing apt prerequisite task to install both `git` and `acl`,
with its current `update_cache`/`cache_valid_time: 3600` behavior. Preserve
task-level become. Git now explicitly belongs to asset deployment.
4. Update all five `requirements.yml` sources to Forge and their versions to
the full published Stage 2–6 commit IDs. Development manifests may use these
immutable commits; future released manifests will select role release tags.
Remove unused `community.general` from `collections/requirements.yml` and
retain `ansible.posix: 2.2.0`. Do not remove unrelated ACL behavior.
5. Change campaign/prompt repository defaults, metadata links and current README
contract/install examples to Forge. Preserve campaign commit
`488c2eb97b5c62efe51aa7af35a5ec9cb8b7a747` and prompt commit
`d15a630ddfec18ab505df3ea5b076f6a0a5fd4b3`, catalog choices, explicit prompt
variants, overlays, model choices, credentials, runtime policy and publishing.
6. Adapt existing integration setup only where needed for the changed public
dependency/bootstrap interface. Retain local asset fixtures and the current
behavioral cases. The collection's next stage supplies the independent
public asset-source check; do not duplicate its whole smoke matrix here.
Document retired suite build controls and preserve existing installed tools.
### Validation and Completion Criteria
From the pipeline repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
All existing composed/override/empty-overlay/catalog behavior passes through
native interfaces and every existing immediate repeat is clean. The harness
installs the new role pins from public Forge origins; no old build-mode
parameter remains forwarded. New pins identify the five validated commits.
### Commit and Publication
Pipeline intent: `Use released application binaries throughout the D&D suite`.
After validation and commit, push this pipeline `main` commit to its canonical
origin. Record the full public commit ID for Stage 8. Do not tag a new release.
## Stage 8: Assemble and Validate the Matching Collection
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md` and `docs/testing.md`.
### Owning Repository and Preconditions
`ansible-collection-dnd`. Stage 7 passed; its exact pipeline commit and all five
application-role commits are publicly accessible. Collection working tree is
clean before the subtree import.
### Required Changes
- Import the Stage 7 pipeline commit from the canonical public origin:
```sh
pipeline_revision=FULL_PUBLISHED_STAGE_7_COMMIT
git subtree pull --prefix=roles/pipeline \
https://forge.maximumdirect.net/eric/ansible-role-dnd-pipeline.git \
"$pipeline_revision" --squash
```
Substitute the recorded full hash. Do not import from a sibling checkout or
edit the imported subtree. If source changes are necessary, fix/validate/
publish the owning pipeline role first, then import the new exact commit.
- Align root `requirements.yml` role names, Forge URLs and full commit pins
with the imported pipeline manifest. Align its native collection dependencies
and `galaxy.yml` to `ansible.posix: 2.2.0` only; remove `community.general`.
Change metadata repository/issue URLs and current README/subtree examples to
Forge. Retain packaging exclusions and FQCN `rakestraw.dnd.pipeline`.
- Keep `galaxy.yml` version at 0.2.0 for this untagged development snapshot.
Explain clearly that current source installs upstream application binaries,
whereas immutable release 0.2.0 retains its older source-build implementation.
Document the new Notarius selection and inventory migration for current
source. Preserve `docs/releases/v0.2.0.md` as historical evidence; do not claim
the published archive has changed or invent a new release number.
- Keep the existing installed-artifact integration harness using isolated
roles/collections paths, public pins and public asset origins. Adjust only
affected references/bootstrap dependencies. Galaxy archive construction is
packaging Ansible content, not compiling an application, and remains required.
### Validation and Completion Criteria
From the collection repository:
```sh
bash -n tests/integration
tests/integration
git diff --check
```
Compare `HEAD:roles/pipeline` after the subtree merge with the Stage 7 source
commit's root Git tree; they must match. Review that root/imported role pins and
native collection requirements agree with each other and Galaxy metadata.
These are assembly checks, not new default-value snapshot tests.
The harness must freshly install public dependencies, build/install the
collection archive, resolve the FQCN, pass syntax/production lint, perform its
existing native configuration/overlay/campaign/party/recap checks, and report
an immediate repeat with `changed=0` and `failed=0`. No live processing is added.
### Commit and Publication
Keep Git subtree's generated history. Collection-owned change intent:
`Assemble the suite with upstream release binary installation`.
Push the completed collection `main` commits to its canonical origin. No
release tag, uploaded archive or operational consumer update is included.
## Stage 9: Record Results and Prepare Independent Review
### Required Policy Review
Immediately before this stage, read root `AGENTS.md`, `docs/orientation.md`,
`docs/conventions.md`, `docs/ansible.md`, `docs/testing.md` and `docs/planning.md`.
### Owning Repository and Preconditions
Workspace root. Stages 1–8 passed and their repository commits/publication
results are available. Do not rerun completed role suites merely for bookkeeping.
### Required Changes
- Update `docs/status.md`, the upgrade sequence, the feature's validation
evidence and this plan's Progress Notes with full role/pipeline/collection
commits, test results, public source availability and executed architecture.
Keep Feature 0030 `in_progress`, with implementation awaiting independent
review. Do not mark it `done` or remove this plan yet.
- Confirm active workspace canonical-source guidance agrees with the new role
interface. Leave historical plans, old release evidence, upstream sources,
asset authoring repositories and the deployment consumer unchanged.
- Report the retired build variables, absence of source-build paths, retained
legacy source/tool installations and the unchanged application configuration.
Identify consumer adoption and a subsequent collection release as follow-up.
### Validation and Completion Criteria
From the workspace root:
```sh
.venv/bin/python -c 'import yaml; yaml.safe_load(open("workspace.yml"))'
bash -n scripts/status
scripts/status
git diff --check
```
Review relative links in changed documents and the diffs for unrelated edits.
Confirm each changed repository is clean after its commit and public `main`
identifies the intended commit. Audit active URL-bearing files in the changed
repositories for the old hostname; distinguish historical records/imported Git
history and stable module identities from current repository/download URLs.
No new permanent search-based test is needed for that review.
### Commit and Publication
Workspace intent: `Record the upstream binary installation migration`.
Commit the final evidence/progress edits and push workspace `main` to its
canonical origin. Report hashes, validation and any outstanding issues.
## Final Validation and Handoff
The completed role suites, pipeline suite and isolated collection harness are
the cross-stage validation. Reuse successful evidence when content has not
changed; a failure or later functional edit justifies rerunning its affected
checks. No second full-matrix run, operational deployment, ansible-doc gate,
negative platform matrix or module implementation test is required.
Summarize any deviation and any complexity added beyond the direct install
contract, tying it to a roadmap acceptance criterion. Report executed
architecture accurately. All selected architectures have upstream assets;
local native execution does not claim an arm64 deployment was tested.
Leave the implementation available for independent review, with all changed
repositories clean and published. Collection release publication and consumer
adoption remain separate work.
## Open Questions
None. The approved roadmap resolves installation policy, canonical repository
host, application selections and supported architectures. Actual implementation
commit IDs will be recorded as stages complete, not chosen as new design work.
## Progress Notes
Roadmap and implementation plan approved on 2026-12-04. No implementation
stage has begun; Stage 1 is next.

View File

@@ -56,44 +56,23 @@ role will manage the native configuration needed to connect to it.
### Application installation
- The MVP builds all five applications from their official Git repositories on
the target host. This consistent model avoids making the suite depend on
every upstream project publishing prebuilt artifacts.
- Released roles build an explicitly selected application release tag.
Development may override the selected revision with a branch or commit.
- Source checkouts reside at `/usr/local/src/<app>` and are owned by `root`.
- Roles build and install the binary at `/usr/local/bin/<app>` with
`root:root` ownership and mode `0755`, using the application's native build
command and the simplest clear Ansible task flow.
- Builds use the application repository's own build contract, including any
application-specific version-injection linker flags. The common baseline is
`GOWORK=off`, `GOTOOLCHAIN=local`, `CGO_ENABLED=0`, and `-trimpath`.
- Roles normally rebuild when the Git task reports a changed checkout or the
binary is absent. An application-level version or smoke check may add a
trigger only when its feature specification explicitly requires that
production behavior. Roles do not maintain fingerprints, checksums, or
sidecar build-state files for the MVP.
- Each application role exposes variables only for meaningful consumer
choices, normally including its repository, selected version or revision,
source directory, binary path, dependency management, Go Snap channel, and a
build-tool path when dependency opt-out permits another provisioning
mechanism. Fixed details of the upstream build contract need not become
public variables.
### Go toolchain
- Go is installed on the target host through the official Snap package using
classic confinement.
- The Snap channel is configurable and should track an explicit Go minor
release channel, rather than unconstrained `latest/stable`, when that channel
is available for the required Go version.
- The installed Go toolchain must satisfy the application's `go.mod`
requirement. Builds set `GOTOOLCHAIN=local` so provisioning does not silently
download a different toolchain.
- Each standalone application role can install its own build prerequisites and
exposes a variable allowing that behavior to be disabled. Repeating an
idempotent prerequisite task across the small roles is preferable to adding
a shared-role dependency during the MVP.
- All five application roles install upstream-published binary assets for an
explicitly selected release and supported target architecture. Source tags
alone do not satisfy this requirement; there is no source-build fallback.
- Application executables remain at `/usr/local/bin/<app>` with `root:root`
ownership and mode `0755`. Existing application configuration and runtime
filesystem policy are preserved.
- The roles no longer need application source checkouts or a Go toolchain.
Git remains a pipeline prerequisite for campaign, prompt and optional
catalog assets.
- The role interface retains application version and installed binary path
selection and exposes the release download location. Source revision and
build-tool controls are retired rather than retained as another install mode.
- This decision supersedes the original source-build model. Migration is
tracked by [Feature 0030](features/0030-upstream-release-binaries.md);
collection 0.2.0 still contains the previous implementation. Missing upstream
binaries must be published upstream before the affected deployment can use
the new installation model.
### Role and collection architecture
@@ -186,16 +165,17 @@ application-role releases in one source repository.
checks, manual comparisons, or supplemental state around a module that
already owns the desired behavior.
- State gathering is appropriate only when it controls behavior outside the
responsible module's contract, such as deciding whether an application
binary must be rebuilt.
responsible module's contract.
### Dependency and release reproducibility
- Development dependency manifests may temporarily refer to branches or
commits while the roles are changing rapidly.
- The projects' public repositories beneath
`https://gitea.maximumdirect.net/eric/` are the authoritative release
sources. Standalone roles are published through immutable Git tags.
`https://forge.maximumdirect.net/eric/` are the authoritative release
sources, superseding `gitea.maximumdirect.net`. Feature 0030 includes migration
of active repository and release references. Standalone roles are published
through immutable Git tags.
- Every released dependency manifest must pin each Git-hosted role dependency
to an immutable role release tag.
- The collection release is the compatibility record for the exact set of
@@ -223,7 +203,7 @@ application-role releases in one source repository.
native prompt and schema directory configuration, while the pipeline role
owns populating those locations with suite integration content.
- The upstream repository is
`https://gitea.maximumdirect.net/eric/narratio-prompts.git`.
`https://forge.maximumdirect.net/eric/narratio-prompts.git`.
- Feature 0028 selects `/usr/local/etc/scriptorium/prompt-library` as the native
checkout default, imported through `prompt-library/promptkit.yml`. Its prompt
and schema resources remain together beneath that root. The legacy
@@ -241,7 +221,7 @@ application-role releases in one source repository.
- The pipeline role checks out the `campaigns` Git repository directly into
Narratio's campaign registry root. The upstream repository is
`https://gitea.maximumdirect.net/eric/campaigns.git`.
`https://forge.maximumdirect.net/eric/campaigns.git`.
- The default campaign root remains
`/usr/local/share/narratio/campaigns`, and the pipeline role passes that same
value to the Narratio application role.
@@ -260,8 +240,8 @@ application-role releases in one source repository.
and has a non-login shell.
- The `narratio` account owns the suite's application configuration and
writable runtime directories; `narratio` is also the shared operator group.
- Application source trees and installed binaries are owned by `root` and are
not writable by operators or the runtime account.
- Installed binaries are owned by `root` and are not writable by operators or
the runtime account.
- The supported operational model runs `narratio run` and other processing
commands either as the dedicated `narratio` account or as an existing human
account selected through the pipeline role's
@@ -417,7 +397,6 @@ later design decision changes them:
- `/usr/local/etc/scriptorium/prompt-library` for native version-controlled
prompts and schemas
- `/usr/local/etc/narratio/reference-catalog` for an optional native catalog
- `/usr/local/src/<app>` for root-owned application source checkouts
- `/usr/local/bin/<app>` for root-owned application binaries
- `/var/lib/narratio` for durable workspace and session state
- `/var/spool/narratio` for spool data
@@ -435,16 +414,15 @@ managed host. The prompt-library checkout retains its upstream `prompts/` and
- Linux distributions and Ubuntu releases other than Ubuntu 26.04
- Architectures other than `amd64` and `arm64`
- Installation from prebuilt application release artifacts
- Deploying or managing WhisperX
- Versioned Narratio prompt-library releases and pinning
- Versioned campaign-content releases and default release pinning
- A role-managed scheduler or persistent Narratio service
- Cryptographic artifact verification, supply-chain hardening, and protection
against adversarial source or dependency infrastructure
- Transactional binary replacement and preservation of the prior executable
after a local build failure
- Compiler-identity fingerprints, binary checksums, sidecar build-state files,
- Additional rollback or transactional deployment machinery beyond the
installation module's ordinary behavior
- Role-authored fingerprints, checksum databases, sidecar build-state files,
and recovery from deliberately malformed or redirected managed paths
## Design Work Still Open

View File

@@ -1,14 +1,15 @@
# Workspace Status
Last updated: 2026-12-03
Last updated: 2026-12-04
Current milestone: Operational D&D pipeline deployment
Current focus: Collection [0.2.0 is released](https://gitea.maximumdirect.net/eric/ansible-collection-dnd/releases/tag/v0.2.0)
at `155e05a`, with a published Galaxy archive and immutable Ansible role tags.
Installed-artifact integration and clean repeat passed. Consumer adoption of
this native suite remains outstanding. See
[release evidence](roadmap/features/0029-native-collection-assembly.md#collection-020-release-follow-up).
Current focus: [Feature 0030's roadmap](roadmap/features/0030-upstream-release-binaries.md)
is approved: install upstream release binaries and migrate canonical repository
URLs to `forge.maximumdirect.net`. The [nine-stage implementation plan](roadmap/implementation.md)
is approved and ready for the sprint; execution has not begun. All required
release assets are available, including Notarius v0.10.2 on both architectures.
Collection 0.2.0 remains published; its consumer adoption is separate pending work.
| ID | Deliverable | Owner | State | Evidence or next step |
| --- | --- | --- | --- | --- |
@@ -51,6 +52,7 @@ this native suite remains outstanding. See
| 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 | 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) |
| F0029 | Assemble the native suite collection | Collection and workspace | done | Assembly `afa8be3`, followed by release `0.2.0` at `155e05a` with tag-pinned pipeline `773b1fa`; public archive installation, native artifact integration and clean repeat passed; [release evidence](roadmap/features/0029-native-collection-assembly.md#collection-020-release-follow-up) |
| F0030 | Install upstream release binaries | All application roles, pipeline role, collection and workspace | ready | Roadmap and [nine-stage implementation plan](roadmap/implementation.md) approved; Stage 1 is next; artifact prerequisites resolved |
| 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

View File

@@ -33,7 +33,7 @@ in this workspace.
checkout state, or template deployment merely to repeat module arguments.
- Test role-authored decisions only when they express meaningful public
behavior. Examples include an explicitly selected application version, a
caller-supplied build executable, configuration rendering with representative
caller-supplied installation path, configuration rendering with representative
non-null and falsey values, and composition of caller-supplied mappings.
- Verify application outcomes with the application's native interface when
practical. Prefer executing the installed application or its configuration