Skip to content

Make targets

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.

Run from off-grid-ai-stack/. make all runs every target from registry-up to claude in order; each one is also safe to run on its own once the ones before it have run. seed and vet need the seed network; agent, claude and the gates G3 to G7 need the site network (make disconnect). registry/out/phase says which one the stack is on.

Target Script What it does Page
registry-up registry/up.sh, ledger/up.sh Starts the ak-offgrid stack on the current network (generates registry/.env, exports the CA) and the egress ledger at .200 Step 1
bootstrap registry/bootstrap.sh Every repository, the offline settings and the ledger on every Remote, the vetting policy, users and tokens Step 1
lock agent/lock.sh Re-resolves agent/requirements.lock (hash-pinned) through the registry Step 2
seed seed/seed.sh Pulls everything in seed/manifest.toml through the registry, publishes Acme's package, MCP entry and plugin, builds the agent and Claude Code images Step 2
vet flows/vet.sh The model into hf-models (model-file scanner), two files that must not get through, the offline scanner adapter, the config export and plan, out/inventory/seed.tsv Step 3
disconnect flows/disconnect.sh Every Remote cache-only, the upstream jobs paused, the marks, the stack and the ledger moved to ak-offgrid-site Step 4
agent flows/agent.sh The image and the model pulled again on the site, llama-server, a clean package install, the agent Step 5
claude flows/claude.sh Best-effort: Claude Code installs the plugin offline and asks the local model one thing Step 6
gates gates/run-all.sh G1-G7; one line per check, out/gates/results.tsv, per-gate logs Step 7, Step 8
reconnect flows/reconnect.sh Back to the seed network, every Remote online, the jobs resumed Next steps
registry-down ledger/down.sh, registry/down.sh Stops everything, keeps the volumes
clean ledger/down.sh, registry/clean.sh Removes the ak-offgrid-* containers, ak-offgrid_* volumes, both networks, the images it built or pulled through the registry, and all local state

Environment variables read by the scripts:

Variable Default Effect
SMALL_MODEL 0 1 uses Qwen2.5-0.5B-Instruct (491 MB) instead of Qwen2.5-1.5B-Instruct (1.1 GB) everywhere: seed, vet, agent, gates. Chosen at make seed and remembered in out/small-model, so the later targets need not set it again
AK_BACKEND_IMAGE, AK_WEB_IMAGE, AK_SCANNER_ADAPTER_IMAGE BACKEND_IMAGE, WEB_IMAGE, SCANNER_ADAPTER_IMAGE in registry/.env Images for one run (the nightly runner sets them)
READY_TIMEOUT 300 Seconds registry/up.sh waits for /readyz
LLAMA_THREADS, LLAMA_CTX 16, 32768 llama-server's -t and -c
QUESTION the stock question What make agent asks the agent