Files
ansible-workspace-dnd/docs/roadmap/features/0030-upstream-release-binaries.md

289 lines
16 KiB
Markdown

# Feature 0030: Install Upstream Release Binaries
Status: done
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 Git clone/fetch/push URLs use
`ssh://git@forge.maximumdirect.net:22222/eric/<repo>.git`. Workspace repository
remotes, Git dependency manifests, asset Git defaults and subtree operations
use this SSH form. Binary/checksum downloads, APIs, browser-facing metadata
and documentation links retain HTTPS on Forge. Controller-side Git operations
and managed-host asset checkouts each require SSH access from their execution
host, using existing operator-provided authentication.
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. Git
operations use SSH; HTTP resources retain HTTPS. Anonymous HTTPS Git access
is not an acceptance requirement.
## 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.
## Implementation and Validation Evidence
Implementation is published and passed independent review. The application
roles install selected upstream binaries via `get_url` and published SHA256SUMS;
their former repository, source directory, dependency-management and Go variables
are retired. Existing source trees and Go/Git installations remain unmanaged.
Native application configuration remains unchanged; Notarius v0.10.2 is the
only selected application-version change.
| Repository | Reviewed implementation commit |
| --- | --- |
| Seriatim role | `17aeb4f22072350856643a0586d697502d1d439d` |
| Audita role | `c4c39d907afd491b977f7ddfd89918f43a49aa69` |
| Notarius role | `c0e94563c74f747c42925610eb3e585d63f64318` |
| Scriptorium role | `53741d8aaff34c3e6040c25db282d447d27e34c6` |
| Narratio role | `fa65335006f00cb5f86758aceb8608a41bc9f0ab` |
| Pipeline role | `bf52bdb426b62eed3833dc04533eeabc6377c2c9` |
| Collection | `6d416d132c936b09d94007911c1c73b2a8db7057` |
Each role's syntax, offline production lint and complete integration suite passed
on amd64, including explicit release selection and clean immediate repeats.
Pipeline integration passed through the published SSH role pins, with native
configuration, overlays, asset fixtures, overrides and catalog checks. The
collection's isolated installed-artifact suite passed with public SSH assets,
native checks and a clean repeat. Its imported pipeline tree exactly matched
the published role commit. Both architecture mappings were reviewed; native
execution was amd64 only.
The initial collection asset checkout failed because elevated Git had no SSH
host configuration. Its test play accepts an optional SSH command so this test
could use the existing identity and known-hosts file without provisioning
credentials. Consumer adoption and a new collection release are separate work;
no operational deployment, live provider invocation or S3 transfer was made.
## Review and Closeout
Closed on 2026-12-04 after independent review found no required fixes or
unintended strengthening of requirements. No remediation document was needed.
The fresh collection installed-artifact suite passed with the published SSH
role pins, production lint and native configuration/overlay/campaign/party/recap
checks. Both convergence runs reported `ok=49 changed=0 failed=0`. Manifest
consistency, exact subtree equality, unchanged application templates and
canonical owned origins were verified. Native execution was amd64 only.
The completed staged plan was retired; Git history preserves its execution
record. The user separately authorized collection patch release 0.2.1. Consumer
adoption and operational deployment remain outside this closeout.
## Collection 0.2.1 Release Follow-up
The separately authorized patch release is published as
[collection 0.2.1](https://forge.maximumdirect.net/eric/ansible-collection-dnd/releases/tag/v0.2.1),
selecting commit `76e0b437a72c361fe1c302cbcf9a3860304ddce3`. Its Galaxy archive
`rakestraw-dnd-0.2.1.tar.gz` was built from the tagged tree and attached to the
matching Gitea release. See the
[release notes](https://forge.maximumdirect.net/eric/ansible-collection-dnd/src/tag/v0.2.1/docs/releases/v0.2.1.md)
for application versions, retired variables and SSH requirements.
| Ansible repository | Release tag | Selected commit |
| --- | --- | --- |
| Pipeline | v0.3.0 | `7404da1e721c2fc574401cba1714411cbdb6a92b` |
| Narratio | v0.3.0 | `fa65335006f00cb5f86758aceb8608a41bc9f0ab` |
| Audita | v0.3.0 | `c4c39d907afd491b977f7ddfd89918f43a49aa69` |
| Notarius | v0.3.0 | `c0e94563c74f747c42925610eb3e585d63f64318` |
| Scriptorium | v0.3.0 | `53741d8aaff34c3e6040c25db282d447d27e34c6` |
| Seriatim | v0.2.0 | `17aeb4f22072350856643a0586d697502d1d439d` |
The role tags identify the reviewed implementation commits. Pipeline release
changes only dependency tag selections and documentation; the collection's
subtree exactly matches that source. No application binary was built locally
and existing collection tags and archives were not modified.
The complete installed-artifact suite passed against the exact role tags and
0.2.1 candidate: production lint reported no failures or warnings, native checks
passed, and both convergence runs reported `ok=49 changed=0 failed=0` on amd64.
The public tagged manifest and final archive downloaded without authentication;
they matched the release build inputs/artifact, and the downloaded archive
installed successfully into a fresh collection path as `rakestraw.dnd:0.2.1`.
Consumer adoption and operational deployment remain separate work.