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 · 32 files

ux
active_output_benchmark.py
admission_measure_test.py
agent_density.py
albedo_admission_measure_probe.erl
albedo_live_coding.erl
albedo_openai_bench.erl
albedo_openai_rate_bench.erl
benchmark.gleam
boot_probe.py
coding.gleam
copy_probe.gleam
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
mock_openai_server.py
nix_package_smoke.py
README.md
record_boot_modules.py
remote_ssh.py
service_darwin.py
service_linux.py
standby_probe.py
stream_benchmark.gleam
stream_rate_benchmark.gleam
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 registerShots 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 test/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.
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.
Remote kernel python3 test/manual/remote_ssh.py user@host Requires key authentication and remote Python 3.11 or newer. Exercises staging, kernel boot, tool calls, and connection reuse.
Performance replay python3 test/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 gleam run -m 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 gleam run -m 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 openai_api.
Stream rate benchmark python3 test/manual/mock_openai_server.py in one terminal, then ERL_FLAGS="<vm_defaults from priv/bin/albedo-daemon>" gleam run -m 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 gleam run -m 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 gleam run -m 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.