Data collection and visualization: a Rust service stores events in Parquet, a
SolidJS frontend queries and charts them. design/ and PLAN.md describe the
system.
Development happens in a smolvm machine described by Smolfile; the Mac keeps
the editor, jj/git and the deploy. The machine is a debian bookworm VM with the
repo at /workspace, the toolchain from mise.toml, and no access to the LAN.
A second machine, acta-build (Smolfile.build), builds the container image.
One alias runs a task in the machine: m <task> = mise run <task> there.
| Command | What it does |
|---|---|
mise run vm:up |
create the machine if needed, start it, install tools and dependencies |
m dev |
the service and the Vite dev server, together |
m test |
the hurl API scenarios against the running service |
m shell |
a shell in /workspace |
m pi |
Pi in the machine, with the project's .pi settings and web tools |
mise run vm:down |
stop the machine, keeping its disk and Pi's sessions |
mise run vm:destroy |
save Pi's sessions to the Mac, then delete the machine |
mise run vm:recreate |
destroy, then up: re-reads the Smolfile and rebuilds everything |
mise run deploy:build |
build the image in the acta-build machine, nothing else |
mise run deploy |
build, ship to $ACTA_HOST, restart the quadlet unit |
mise run deploy:reset |
delete the build machine and its layer cache |
The dev UI is on http://127.0.0.1:5174; the service is on http://127.0.0.1:8080. Inside the machine both listen on all interfaces, because a published port is forwarded from the non-loopback one.
The image is built in acta-build from Smolfile.build (repo read-only, no
keys); mise run deploy streams it out and does the SSH part on the Mac.
deploy:secrets, deploy:tiles, deploy:seed, stats:install, restore and
map:* stay on the Mac: they need ssh, 1Password/sops, the age key or the local
pmtiles binary.
ui/node_modules,service/targetand.pi/npmare volumes on the machine's own disk, emptied whenevervm:upcreates the machine. No Linux build lands on the Mac.- The image builds in
acta-build; its layer cache lives there untilmise run deploy:reset. migrateandmigrate:splitrun throughuvwith duckdb: no venv and no requirements file in the repo;uvcaches the environment in the machine.- Pi's sessions live in the machine and survive
vm:down;vm:destroycopies them to~/.local/state/smolvm/acta/pi-sessions, which the next create restores. data/andtiles/are the checkout's own directories, shared read-write with the Mac. The hurl scenarios rely on the dataset indata/; do not run a Mac-side service against it while the machine is up.DEEPSEEK_API_KEYandOPENROUTER_API_KEYnever enter the machine:vm:upreads them from 1Password, and theSmolfilebindings release them only to their own API host.- The first service build (
m devormise run service:dev) downloads DuckDB's prebuilt shared library; later builds reuseservice/targetin the machine.
Smolfile and Smolfile.build are read when their machines are created. After
changing the dev machine: mise run vm:recreate; after changing the build
machine: mise run deploy:reset (the next deploy recreates it).
The whole repo is mounted read-write, so the agent in the machine can change
code, docs, mise.toml, the task files and the container files. Only .git and
.jj are read-only: no agent or postinstall script in there can rewrite
history. Verify the boundary after a create with findmnt -T /workspace/.git
(expect the .git share) and touch /workspace/.git/probe (expect "Read-only
file system").