7dbb17a4cb240cb06f654f777ae94d672402d64f
Introduces the storage.Backend interface for pluggable container mount management. The Docker implementation (DockerBackend) is the MVP — no NFS/SMB/S3, just Docker volumes + bind mounts. /data/ volume layout: /data/worktree/ — bind mount of host worktree (always) /data/repo/ — per-repo Docker volume (when persistent_storage = true) /data/cache/go/ — shared GOMODCACHE volume /data/cache/node/— shared npm cache volume /data/cache/pnpm/— shared pnpm store volume /data/cache/pip/ — shared pip cache volume /data/cache/cargo/— shared Rust cargo cache volume /data/task.json — boot-time brief (existing WriteTaskJSON) Changes: - internal/storage/: Backend interface, DockerBackend, Mount types, ecosystem-to-cache-volume mapping, ConvertMounts helper - container.Pool.Acquire: now accepts []storage.Mount instead of hardcoding a single bind mount — mount list comes from the storage backend - daemon.process(): calls d.Storage.Setup() to build the mount list, passes Ecosystem + PersistentStorage from repo config - config.Repo.PersistentStorage: when true, a named Docker volume (archie-repo-<owner>-<repo>) is mounted at /data/repo and survives task completion - main.go: creates DockerBackend when containers are enabled 21 tests: interface contract, ecosystem cache mounts (go/node/ python/rust/custom), worktree bind mount ordering, persistent storage on/off/empty-owner guard, mount list sort+dedup, adversarial (nonexistent worktree, empty ecosystem, unknown ecosystem). Why: daemon-managed cache volumes mean warm GOMODCACHE/npm cache across tasks. Per-repo persistent volumes preserve expensive build artifacts. The interface leaves room for future backends without rewiring container orchestration.
Description
Archie connects events from your systems to agents that can investigate, reason, and act.
Define what an event means, map its data into a workflow, and give that workflow an agent equipped for the job: its own execution environment, tools, and identity.
https://archie.catlow.cloud
133 MiB
0 Stars
1 Watchers
0 Forks
Releases
11
Archie v1.62.0
Latest
Languages
Go
76.8%
Vue
13.1%
TypeScript
7.8%
JavaScript
1.2%
Shell
0.6%
Other
0.4%