Skip to content

Step 2: Seed the stack

Preview: needs Artifact Keeper main (coming in 1.12.0)

This walkthrough uses features that are on Artifact Keeper main and not in a release yet: cache-only Remotes (#5315), the UPSTREAM_FETCHED audit event (#5316), with the cold-HEAD probe audited too (#5347), the switch that pauses scheduled upstream jobs (#5317), the scanner adapter's offline mode (#5314), cache seeding (#5333), the agentplugins Remote (#5334), config export (#5335) with a Remote's upstream mode (#5407), the model-file scanner (#5337), commit-pinned Hugging Face paths (#5313), Remotes created with their egress proxy (#5402), the background MCP sync (#5404) and the targeted MCP seed (#5408). They ship in 1.12.0. The reference run used the CI images of main at 88f23c51, pinned by digest (registry/compose/VERSIONS). Details may still change before the release.

If something goes wrong

See Troubleshooting: every failure we hit while building this walkthrough, with its cause and fix.

Everything the site will need is listed in one file, seed/manifest.toml. This step pulls all of it through Artifact Keeper while the seed network still has a route out, publishes what Acme makes itself, and lists what went out. Anything not in the manifest is not on the site afterwards.

make seed    # seed/seed.sh

seed/seed.sh runs six parts in order. Each one is idempotent: what is already published or cached is skipped or served from the cache. The format of the manifest is on Seed manifest and inventory.

1. Images

Images are pulled with podman from the host, through localhost:30450/<repo>/<ref>, with the developer's auth file. The trivy database is an OCI artifact, not an image (podman does not pull it), so the script fetches its manifest and layers with GET:

$ make seed
seed/seed.sh
seed: model Qwen/Qwen2.5-1.5B-Instruct-GGUF (qwen2.5-1.5b-instruct-q4_k_m.gguf)

== 1. images (podman pull through the registry, from the host)
  oci-ghcr       ggml-org/llama.cpp:server-b12124@sha256:c0a11067c72bb1eb330b sha256:c0a11067c72bb1eb330b8bddbf9869274c195e596bf4fae55fd527102e644b85
  oci-dockerhub  library/python:3.12-slim-trixie@sha256:b18b261e1b4974b4f3214 sha256:b18b261e1b4974b4f321451ad5251ded85abb22c2b8b262da527dda1d031ab30
  oci-dockerhub  library/node:22-bookworm-slim@sha256:5ec23b7c622b00547753bc6 sha256:5ec23b7c622b00547753bc6ffd78085dd868a68aeb41c8e0a1418f033e13d96d
  oci-ghcr       aquasecurity/trivy-db:2                                      sha256:fb417a88061be7d8c246c61cd56e73c91040574fb8cb7b74c48f7a2ea5c2f92f (artifact, layers HTTP 200)

The digests podman reports go to out/seed-images.tsv; Step 5 pulls the same references again on the site and gate G4 compares the two. Every image is pinned by its multi-arch index digest, the llama.cpp server image included (server-b12124 at sha256:c0a11067...). The exception is the trivy database, :2, which upstream replaces daily: the site gets the one seeded today, and the inventory records its digest.

2. The model, with the cache-seed API

The model is Qwen2.5-1.5B-Instruct as a Q4_K_M GGUF, pinned to a commit. Instead of a client download, the script asks hf-hub to fill its own cache from a path list (#5333): the commit-pinned resolve paths of the files, and the model's revision document. Commit-pinned Hugging Face paths never revalidate (#5313):

POST /api/v1/repositories/hf-hub/cache/seed
{"kind": "paths", "options": {"concurrency": 2}, "content": [
  "Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/91cad511.../qwen2.5-1.5b-instruct-q4_k_m.gguf",
  "Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/91cad511.../README.md",
  "api/models/Qwen/Qwen2.5-1.5B-Instruct-GGUF/revision/91cad511..."]}
GET  /api/v1/repositories/hf-hub/cache/seed/<job_id>     (until completed or failed)
== 2. the model: a cache-seed job on hf-hub, commit-pinned paths (Qwen/Qwen2.5-1.5B-Instruct-GGUF@91cad51170dc)
  Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/91cad51170dc346986eccefdc2dd33a9da36ead9/qwen2.5-1.5b-instruct-q4_k_m.gguf
  Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/91cad51170dc346986eccefdc2dd33a9da36ead9/README.md
  api/models/Qwen/Qwen2.5-1.5B-Instruct-GGUF/revision/91cad51170dc346986eccefdc2dd33a9da36ead9
  POST /api/v1/repositories/hf-hub/cache/seed: HTTP 202 {"job_id":"882d4ee6-a7ec-4928-aec6-7730128c81eb","status":"pending","total_items":3}
{"status":"completed","summary":{"pending":0,"cached":3,"already_cached":0,"refused":0,"failed":0,"cached_bytes":1117332630}}
  cached    1117320736  6a1a2eb6d15622bf    Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/91cad51170dc346986eccefdc2dd33a9da36ead9/qwen2.5-1.5b-instruct-q4_k_m.gguf
  cached    4856    57c72d4010fb11a9    Qwen/Qwen2.5-1.5B-Instruct-GGUF/resolve/91cad51170dc346986eccefdc2dd33a9da36ead9/README.md
  cached    7038    7f41c58b8aea1525    api/models/Qwen/Qwen2.5-1.5B-Instruct-GGUF/revision/91cad51170dc346986eccefdc2dd33a9da36ead9

The job ran 63 s for 1.1 GB: its document, GET /api/v1/repositories/hf-hub/cache/seed/<job_id>, which seed.sh saves to out/flows/seed-hf-hub.json, has started_at 05:06:51 and finished_at 05:07:54 (jq '{started_at, finished_at}' out/flows/seed-hf-hub.json). The SHA-256 the job records for each file is what gate G1 compares the vetted copy against. SMALL_MODEL=1 make seed seeds Qwen2.5-0.5B-Instruct (491 MB) instead (cached_bytes 491412102 in the small-model run, in 28 s). The choice is written to out/small-model, and every later step and gate uses the same model without SMALL_MODEL being set again; make seed prints it on its first line (seed: model <repo_id> (<file>)).

3. Python packages

Acme's MCP server, acme-inventory-mcp, is built by tools/acme-inventory/build_wheel.py with the standard library only, and published to pypi-local. The wheel is deterministic (sorted entries, fixed timestamps and modes, entries stored uncompressed), so its SHA-256 is the one pinned in agent/requirements-internal.txt; the script stops if it is not:

== 3a. Acme's MCP server package: acme-inventory-mcp 1.0.0 to pypi-local
  built acme_inventory_mcp-1.0.0-py3-none-any.whl sha256 8d5dc07b943ffa736c2c022b9ff823f3f91bf141f81601d9d99a05b5416175a3
  POST /pypi/pypi-local/ (publisher): HTTP 200 OK

Then the agent image is built (agent/Containerfile): the base image through oci-dockerhub, and every package of agent/requirements.lock through the pypi Virtual with pip install --require-hashes. The lock has 71 packages, each with the SHA-256 of every file. Rootless podman cannot attach a build to a named network, so the build uses the host network and reaches Caddy as ak.internal:30450 (--add-host); the developer token is a build secret and stays out of the image:

== 3b. the agent image: every package of agent/requirements.lock through the pypi Virtual
Installing collected packages: acme-inventory-mcp
Successfully installed acme-inventory-mcp-1.0.0
No broken requirements found.
COMMIT localhost/ak-offgrid/agent:latest
Successfully tagged localhost/ak-offgrid/agent:latest
4b709506444d116b90c49c7a9a004de307f0c9cf539db8ff7c9e0fcc95acab94
openai               3.46.0
mcp                  2.3.0
huggingface_hub      2.4.0
mcp-sqlite3          0.1.3
fastmcp              4.1.6
acme-inventory-mcp   1.0.0

make lock (agent/lock.sh) re-resolves the lock from agent/requirements.in through the registry with uv pip compile --generate-hashes. The committed lock is the one of the reference run; you only need make lock to move to newer versions.

4. MCP servers

Acme's entry, tools/acme-inventory/server.json, is published to mcp-internal. Its package must already be in pypi-local: the repository's package policy is own-repos, and it refuses an entry whose package it does not hold.

== 4a. com.acme/inventory 1.0.0 to mcp-internal (publisher)
HTTP 200
{"_meta":{"com.artifactkeeper.registry/source":{"artifactId":"9ede3014-3359-4370-8acf-4dd9a6fcd739","origin":"hosted","packagePolicy":"own-repos","repository":"mcp-internal","sha256":"19b3426828b5e034737c845d76b099136c6006f56e588ebec166b49284955699","upstreamVerified":false},"io.modelcontextprotocol.registry/official":{"isLatest":true,"publishedAt":"2026-11-06T05:09:42.836338656Z",...

The public server is io.github.daedalus/mcp-sqlite3 0.1.3 from the official registry, a small SQLite server with no network use of its own. mcp-official takes only what an admin approves, and it never syncs the public catalog (it was created with mcp_remote_sync_paused, Step 1). The script asks the Remote to fetch that one name and version (#5408):

POST /api/v1/repositories/mcp-official/mcp/seed
{"servers": [{"name": "io.github.daedalus/mcp-sqlite3", "version": "0.1.3"}],
 "reason": "reviewed for the off-grid site: local SQLite only, no network"}

It answers 202 with a statusUrl, which the script polls until the run is completed or failed. Each item ends as pinned, already_pinned, refused or failed. The fetch goes through the same outbound path as a sync (the egress proxy, so the ledger, and UPSTREAM_FETCHED rows), records the entry in the catalog as an approved pin (as POST .../mcp/catalog/pins does) and ingests it. Then the entry is read back through mcp-all:

== 4b. mcp-official: seed io.github.daedalus/mcp-sqlite3 0.1.3 from registry.modelcontextprotocol.io
  POST /api/v1/repositories/mcp-official/mcp/seed io.github.daedalus/mcp-sqlite3@0.1.3: HTTP 202 {"jobId":"70d9dc70-3b56-48b7-a9c0-306a65013bb1","status":"pending","total":1}
{"status":"completed","items":[{"name":"io.github.daedalus/mcp-sqlite3","version":"0.1.3","state":"pinned","reason":null}]}
HTTP 200
{"_meta":{"com.artifactkeeper.registry/source":{"artifactId":"fb31434a-ea60-4818-bc41-5f42811cb726","kind":"upstream","origin":"remote","packagePolicy":"own-repos","repository":"mcp-official","sha256":"529eb058d3af114fd7a30653c862881fdd7bd9d94867ca884dfc8ad4db726ab1","upstreamUrl":"https://...

That is two requests to the registry (gate G1 counts 2 UPSTREAM_FETCHED rows for mcp-official) over one connection. The route refuses with 409 while upstream jobs are paused or the Remote is cache-only; Step 8 checks that on the site.

Why not a sync: measured on 2026-11-05, the official registry with include_deleted is 2,218 pages and 221,769 entries, plain paging took 442 s, and io.github.daedalus/mcp-sqlite3 first appears on page 1,093. A Remote's sync reads at most 200 pages a pass, so the name is reached only after about six passes. A full sync is not needed for this walkthrough; the findings have what one looked like.

5. The plugin

plugins/offgrid-ops/ is zipped with fixed timestamps and sorted entries, published to plugins-central with its SHA-256, and then read through the plugins Remote, which caches the marketplace documents and the archive:

== 5. offgrid-ops 1.0.0: publish to plugins-central, read it through the plugins Remote
  PUT plugins-central/offgrid-ops/1.0.0/offgrid-ops-1.0.0.zip: HTTP 201 {"sha256":"334b543db38221feea0e74695b25a3623ddbef5b51062e5b7f56868caab00ebb","marketplace_name":"plugins-central"}
  GET plugins/marketplace.json (through the Remote): HTTP 200
  GET plugins/claude-marketplace.json (through the Remote): HTTP 200
  GET plugins/offgrid-ops/index.json (through the Remote): HTTP 200
  GET plugins/offgrid-ops/1.0.0/offgrid-ops-1.0.0.zip: HTTP 200, sha256 334b543db38221fe (published 334b543db38221fe)

The plugin names two MCP servers in its mcp.json (acme-inventory, the command acme-inventory-mcp; sqlite, python -m mcp_sqlite3) and carries one skill, the instruction the agent gives the model.

6. npm: Claude Code

The Claude Code image for the best-effort step (claude/Containerfile) installs @anthropic-ai/claude-code 2.1.318 through npm-remote, which also pulls its native linux-x64 package (157 MB). The build log goes to out/flows/claude-build.log; a failed build is reported and does not stop the seed.

== 6. Claude Code (best-effort step): its image installs through npm-remote
2.1.318 (Claude Code)

What went out

At the end the script counts what went out since it started, from both records:

== what went out while seeding
  ledger: 21 connections opened (out/ledger/ledger.jsonl), by host:
          4 ak-central
          2 registry.npmjs.org
          2 pypi.org
          2 pkg-containers.githubusercontent.com
          2 huggingface.co
          2 ghcr.io
          2 files.pythonhosted.org
          1 us.aws.cdn.hf.co
          1 registry.modelcontextprotocol.io
          1 registry-1.docker.io
          1 production.cloudfront.docker.com
          1 auth.docker.io
  UPSTREAM_FETCHED audit rows since 2026-11-06T05:05:44Z: 279

Every host is an upstream of one of the Remotes: the registries themselves, their CDNs and auth services (auth.docker.io, production.cloudfront.docker.com, pkg-containers.githubusercontent.com, files.pythonhosted.org, us.aws.cdn.hf.co), and ak-central for the plugins Remote. The 1.1 GB model came over one connection to us.aws.cdn.hf.co (1,119,455,686 bytes down, by its close line). 21 connections carried 279 requests. The number of connections varies from run to run (19 to 24 in our runs), because how many requests share one kept-alive connection depends on timing; the audit row counts matched exactly between runs. Gate G1 therefore checks the set of hosts, not the count: the ledger's hosts and the audit rows' hosts must be the same set, and each an expected upstream.

make all, from make registry-up to make claude, took 11 min 12 s in the reference run; the seed started at 05:05:44 and the disconnect's marks were written at 05:13:07, with make vet in between.

Inventory of record: the list of every manifest item with its SHA-256 is written at the end of Step 3, once the vetted model is in hf-models.