small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
albedo test manual
1 folder · 27 files

ux
active_output_benchmark.py
admission_measure_test.py
agent_density.py
albedo_stop_load_probe.erl
api_configuration_payload.py
boot_probe.py
crash_durability.py
disk_writes.py
gate_memory.py
glinter-all.toml
glinter-review.toml
inspect_daemon.py
json_roundtrip_bench.py
kernel_memory_benchmark.py
kernel_stop_load.py
mock_openai_server.py
nix_package_smoke.py
README.md
record_boot_modules.py
record_reference_store.py
remote_ssh.py
service_darwin.py
service_linux.py
standby_probe.py
stress.py
tui_shot.py
verify_intervals.py
README.md

Manual checks #

These tools are opt-in and excluded from the full test gate. Their prerequisites differ: some run offline, while others need credentials, a real SSH host, an installed package, or benchmark artifacts. Run commands from the repository root inside nix develop.

Tool Invocation and prerequisites Result
TUI screenshots ALBEDO_SHOT_DIR=/tmp/shots go -C cli test ./internal/tui/... -run TestShotGallery -count=1, then python3 test/manual/tui_shot.py /tmp/shots Register states with tuishots.Register in shot_<screen>_test.go. The gallery draws each state at wide and narrow sizes. Inspect the PNGs and contact sheets before and after a layout change. See terminal screen guidance and the renderer for prerequisites.
Load python3 test/manual/stress.py python3 e2e/run.py <selector> Runs a command (the Python e2e suite by default) while two processes hash and one rewrites and fsyncs a 1 MiB file, to reproduce a test that only fails on a busy machine. Exits with the command's code.
Kernel stops under load python3 e2e/run.py ../test/manual/kernel_stop_load.py, with optional STOP_LOAD_SESSIONS and STOP_LOAD_BURNERS Boots 24 kernels on an inspected daemon, saturates every core, and releases them all at once. Fails if any stop is unconfirmed or the log names the termination helper.
Packaged binary python3 test/manual/nix_package_smoke.py /absolute/path/to/bin/albedo Checks the installed client and daemon outside the checkout with a restricted PATH. Fails on an invalid package.
Reference store python3 test/manual/record_reference_store.py Runs two turns on the reference daemon that test/reference-daemon.sh pins, pins that session's prompt, leaves three inputs waiting in a second session, and writes its store to apps/albedo/test/fixtures/reference-store/albedo.sqlite. The upgrade tests in reference_store_test and migration_fixture_test read it as a store an older release left. Re-record only when the pin moves.
Remote kernel python3 test/manual/remote_ssh.py user@host Requires SSH key authentication and a host that can run the kernel environment. Exercises staging, kernel boot, tool calls, and connection reuse.
Performance replay python3 perf/run.py --mode replay --runs 5 --out /tmp/perf.json Linux PSS/USS, major-GC BEAM memory, provider and client HTTP bytes from real bonsai recordings. See perf for measurement definitions and recording, and reporting for the full CI and publication flow.
Kernel memory python3 test/manual/kernel_memory_benchmark.py --scale 1 10 --output /tmp/kernel-memory.json Measures boot and workload memory. Writes measurements for comparison, rather than imposing a universal memory threshold.
Active output python3 test/manual/active_output_benchmark.py --baseline /tmp/baseline/albedo-daemon --candidate /tmp/candidate/albedo-daemon --output /tmp/active-output-results.json Requires two exported daemon builds and Linux /proc for memory measurements. Compares attachment and hydration performance using a gated local provider.
Interval implementation python3 test/manual/verify_intervals.py /directory/containing/interval_set.py Runs five unittest scenarios, including randomized interval algebra. Exits unsuccessfully when the candidate violates the contract.
Provider benchmark (cd apps/albedo && gleam run -m albedo/manual/benchmark) Requires ALBEDO_BENCH_URL, ALBEDO_BENCH_MODEL, and ALBEDO_BENCH_KEY. Optional ALBEDO_BENCH_PROTOCOL selects a protocol. Prints request timings and memory measurements.
Stream benchmark (cd apps/albedo && gleam run -m albedo/manual/stream_benchmark) Offline. Frames and reduces synthetic Responses and Chat Completions streams and encodes a 1 MB request, printing time per run and throughput. Compare before and after a change to albedo_openai.
Stream rate benchmark python3 test/manual/mock_openai_server.py in one terminal, then (cd apps/albedo && ERL_FLAGS="<vm_defaults from apps/albedo/priv/bin/albedo-daemon>" gleam run -m albedo/manual/stream_rate_benchmark) Local. Streams Responses, Chat Completions, Claude, Vertex, and Cloud Code Assist through the real transport from a mock server at 500 tokens/s and unthrottled, or ALBEDO_BENCH_PARALLEL streams at once, and prints VM CPU, reductions, and send-to-callback latency per token. ALBEDO_BENCH_TOOLS streams a share of the deltas as tool-call arguments. For https, start the mock with a certificate and key and set ALBEDO_BENCH_ORIGIN=https://localhost:PORT and ALBEDO_BENCH_CA to the issuing CA.
Copy probe (cd apps/albedo && gleam run -m albedo/manual/copy_probe) Offline. Boots a runtime and one default session and prints what a spawn over the runtime handle, the installed list, the session, and each managed plugin copies, in KiB. Compare before and after moving a catalog between processes.
Live coding (cd apps/albedo && gleam run -m albedo/manual/coding) Requires the benchmark URL, model, and key, plus ALBEDO_LIVE_WORKSPACE and ALBEDO_LIVE_DATABASE. Optional ALBEDO_LIVE_PROTOCOL selects a protocol. Runs a real model-driven coding scenario.

albedo_openai_bench.erl supports the provider benchmark and live coding tool, and albedo_openai_rate_bench.erl the stream rate benchmark. albedo_live_coding.erl supports the live coding tool. They are native helpers, not independent suites.

The glinter-review.toml and glinter-all.toml files configure advisory lint profiles. Run test/gleam-lint.sh --review or test/gleam-lint.sh --all. See the lint documentation for interpretation.

Do not bulk-import these scripts as a smoke check. Some consume command-line arguments or execute immediately on import. Ruff and ty cover their source in the normal gate; exercise their documented commands when changing them.