8000 GitHub - beingflo/acta · GitHub
[go: up one dir, main page]

Skip to content
beingfloPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

acta

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.

Where things run

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.

State

  • ui/node_modules, service/target and .pi/npm are volumes on the machine's own disk, emptied whenever vm:up creates the machine. No Linux build lands on the Mac.
  • The image builds in acta-build; its layer cache lives there until mise run deploy:reset.
  • migrate and migrate:split run through uv with duckdb: no venv and no requirements file in the repo; uv caches the environment in the machine.
  • Pi's sessions live in the machine and survive vm:down; vm:destroy copies them to ~/.local/state/smolvm/acta/pi-sessions, which the next create restores.
  • data/ and tiles/ are the checkout's own directories, shared read-write with the Mac. The hurl scenarios rely on the dataset in data/; do not run a Mac-side service against it while the machine is up.
  • DEEPSEEK_API_KEY and OPENROUTER_API_KEY never enter the machine: vm:up reads them from 1Password, and the Smolfile bindings release them only to their own API host.
  • The first service build (m dev or mise run service:dev) downloads DuckDB's prebuilt shared library; later builds reuse service/target in the machine.

Editing

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").

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0