diff --git a/deployments/docker-nats-stack.toml b/deployments/docker-nats-stack.toml index 91bdcf7c0..128bf7f2a 100644 --- a/deployments/docker-nats-stack.toml +++ b/deployments/docker-nats-stack.toml @@ -48,7 +48,11 @@ url = "nats://172.19.0.1:4222" [containers] network = "archie-core_default" -image = "git.example.com/you/archie-agent:latest" +# Pin your own registry's tag/digest -- never deploy against a bare +# ":latest" reference, which can change under a running deployment with no +# warning. See deployments/systemd-user-service.md#pinning-the-archie-agent-image +# for the pinning convention this repo follows for its own GHCR image. +image = "git.example.com/you/archie-agent:v1.21.0" # or "@sha256:..." for a production digest pin max_concurrency = 4 max_uptime = "60m" # "missing": pull only when the image is absent locally. "always" against a diff --git a/deployments/multi-forge-github-gitea.toml b/deployments/multi-forge-github-gitea.toml index 55d80b100..fbea50499 100644 --- a/deployments/multi-forge-github-gitea.toml +++ b/deployments/multi-forge-github-gitea.toml @@ -23,7 +23,10 @@ api_key_env = "OPENAI_API_KEY" mode = "embedded" [containers] -image = "ghcr.io/samcharles93/archie-agent:latest" +# Pinned to a verified digest -- archie-agent has no published semver tag +# yet (CI only pushes :latest). See +# deployments/systemd-user-service.md#pinning-the-archie-agent-image. +image = "ghcr.io/samcharles93/archie-agent@sha256:870f1b1357979cfea23fccacb24166ebeb9ab321708ef2c2b218a763ed99b090" pull_policy = "missing" [budgets] diff --git a/deployments/single-forge-github.toml b/deployments/single-forge-github.toml index 0e48059fd..fa0dfe511 100644 --- a/deployments/single-forge-github.toml +++ b/deployments/single-forge-github.toml @@ -42,7 +42,10 @@ api_key_env = "OPENAI_API_KEY" mode = "embedded" [containers] -image = "ghcr.io/samcharles93/archie-agent:latest" +# Pinned to a verified digest -- archie-agent has no published semver tag +# yet (CI only pushes :latest). See +# deployments/systemd-user-service.md#pinning-the-archie-agent-image. +image = "ghcr.io/samcharles93/archie-agent@sha256:870f1b1357979cfea23fccacb24166ebeb9ab321708ef2c2b218a763ed99b090" pull_policy = "missing" [budgets] diff --git a/deployments/systemd-user-service.md b/deployments/systemd-user-service.md index 34c678910..6be2bedb0 100644 --- a/deployments/systemd-user-service.md +++ b/deployments/systemd-user-service.md @@ -81,15 +81,18 @@ autonomous repository workflow runs in a task-scoped Docker container. No Compose service or host `archie-agent` binary is required. Docker must be installed and reachable by the service user. With no explicit -broker or container settings, Archie uses embedded NATS and the published -`ghcr.io/samcharles93/archie-agent:latest` image. An explicit equivalent is: +broker or container settings, Archie defaults `containers.image` to +`ghcr.io/samcharles93/archie-agent:latest`. Every profile shipped in +`deployments/` overrides that default with a pinned reference -- see +[Pinning the archie-agent image](#pinning-the-archie-agent-image) below. An +explicit equivalent, pinned the same way, is: ```toml [nats] mode = "embedded" [containers] -image = "ghcr.io/samcharles93/archie-agent:latest" +image = "ghcr.io/samcharles93/archie-agent@sha256:870f1b1357979cfea23fccacb24166ebeb9ab321708ef2c2b218a763ed99b090" pull_policy = "missing" ``` @@ -102,6 +105,41 @@ If Docker or the image is unavailable, `archied` still serves chat and the dashboard. Autonomous tasks park with an explicit capability error; they never fall back to a host model loop. +--- + +## 5. Pinning the archie-agent Image + +`ghcr.io/samcharles93/archie-agent:latest` is a moving target: every push to +`main` that touches the runtime's package closure re-publishes it (see +`.github/workflows/deploy.yml`), so `latest` can change under a running +deployment with no warning and no way to reproduce a prior build. + +As of this writing, `archie-agent` has **no published semantic-version tag** +-- CI only pushes `:latest` to GHCR (`archied` is versioned independently per +`RELEASING.md`, but that versioning is not yet reflected as a registry tag for +the agent image). Until CI publishes one, the only reproducible reference is +a content digest, resolved once and pinned explicitly: + +```toml +[containers] +image = "ghcr.io/samcharles93/archie-agent@sha256:870f1b1357979cfea23fccacb24166ebeb9ab321708ef2c2b218a763ed99b090" +``` + +This is the digest `latest` resolved to on 2026-09-05. Digest pinning is the +strongest option for production: it is immutable and independently +verifiable (`docker manifest inspect ghcr.io/samcharles93/archie-agent@sha256:...`), +at the cost of being opaque in a config file a human is meant to edit -- +resolve a fresh digest deliberately (`docker pull ...:latest` followed by +`docker inspect --format '{{index .RepoDigests 0}}'`) rather than editing this +one in place expecting it to track new releases. + +If/when CI starts publishing a semantic-version tag for `archie-agent` +(e.g. `ghcr.io/samcharles93/archie-agent:v1.21.0`), prefer that tag for +day-to-day config readability, and reserve digest pinning for deployments +that need byte-for-byte reproducibility guarantees a tag alone cannot give +(tags are mutable pointers; a compromised or accidentally-overwritten tag +still resolves, a digest cannot). + The bundled update adapter snapshots the configured `[containers].image` before rebuilding it and restores that image if the restarted daemon fails its health check. A custom image reference is therefore supported directly in diff --git a/docker-compose.yml b/docker-compose.yml index 3e3fe0a5c..283f19041 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,7 +49,10 @@ services: build: context: . dockerfile: Dockerfile - image: ghcr.io/samcharles93/archie-agent:latest + # Pinned to a verified digest -- archie-agent has no published semver + # tag yet (CI only pushes :latest). See + # deployments/systemd-user-service.md#pinning-the-archie-agent-image. + image: ghcr.io/samcharles93/archie-agent@sha256:870f1b1357979cfea23fccacb24166ebeb9ab321708ef2c2b218a763ed99b090 volumes: nats_data: