Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
README.md
# performance report
`perf.yml` measures albedo's memory and wire bytes.
- `perf.yml` (push to main, pull requests to main, manual) is the gate. `ci.py` runs the report tests, builds the CLI and a snapshot daemon, replays the recorded bonsai scenarios once (five fresh-home samples each), publishes the run, and exits with the gate status after publication. It never repeats a measurement. The replay result is printed as JSON in the pipeline log, so fork PRs without secrets still show it. A replay that crashed leaves a partial result with no gated numbers; `ci.py` publishes nothing then.
Replay is the only mode; the recordings it replays are made on valefar with `test/perf/record_container.py` (robot-docs/perf.md).
Pipeline secret, under repository Settings -> Pipelines -> Secrets:
- `WISP_APP_PASSWORD`: an app password for `okami.mom`, used to write records and deploy sites.
## isolation
The daemon, CLI and kernels run model output, so `ci.py` runs `run.py` as the `perf-agent` user through `sudo -n -u perf-agent env -i`, passing only the variables in `isolation.py`, with writable directories under a 0700 directory perf-agent creates in `/tmp`. Before anything runs, `Sandbox.open` checks that the sudo rule exists, that perf-agent can read the checkout, and that perf-agent cannot read the CI processes' `/proc/<pid>/environ` or `mem`; any failure stops the job. All perf-agent processes are killed before a site is deployed, because `wispctl` takes its password in argv. The spindle guest gets the user and the sudo rule from ark `ec75712`.
## where results live
Records are the store. Each run writes atproto records in okami.mom's repo; records hold only strings and integers, because the atproto data model has no floats, so numbers travel as JSON text.
- A replay run is a `pet.nekomimi.albedo.perf.run` record, rkey = the commit sha (`<sha>-2` and so on when a commit runs again). `summary` holds the gated numbers and per-scenario memory and wire values; the full results.json is the `result` blob; `committedAt` or…