Approve the plan to install upstream release binaries
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user