November 9, 2026
2 pull requests merged across 2 repos
bahdotsh/hopchat
What
/pool runs one model across everyone's machines in a group or the lobby, so a room can run a model too big for any single laptop.
alice> /pool give on
bob> /pool start qwen2.5:72b
🤖 is loading qwen2.5:72b across this machine and alice (16 GB RAM), carol (32 GB RAM). This can take a few minutes.
🤖 qwen2.5:72b is ready, pooled across this machine and alice (16 GB RAM), carol (32 GB RAM). Mention @ai to ask it.
/pool give on|off: let pools in your groups use this machine's memory. Off by default./pool start [MODEL]: an Ollama model name (resolved to its GGUF blob through Ollama's manifest) or a.ggufpath. Asks the givers in this conversation, waits up to 20 s, then startsllama-server --rpc …across whoever answered./pool stop,/pool bin FOLDER,/pool(status).- While a pool runs, the host's
@aianswers come from it, and lending (/ai share) offers it asMODEL, pooled.@hometool turns stay on Ollama.
How it works
- Arranging a pool: new hidden one-to-one messages (
home::pool::Wire:Give/Keep/Join/Ready/Refuse/Leave), sent over MLS on the same path as model lending. The engine tracks givers, refuses aJoinfrom anyone it doesn't share the group with, and gives home each peer's IP from its direct stream. - Workers: each giver starts
ggml-rpc-server --host 127.0.0.1 --cache(or the olderrpc-server) and opens a tunnel listener. - Tunnel (
home/tunnel.rs): llama.cpp's RPC has no authentication or encryption, so it never crosses the network as plain RPC. - The host mints a 32-byte key per giver per pool and sends it inside
Join(MLS-encrypted). - Each TCP connection swaps fresh nonces, then derives separate host→worker and worker→host keys with HKDF-SHA256. Frames are length-prefixed ChaCha20-Poly1305 with counter nonces.
- Nothing reaches the worker's RPC server until a frame has decrypted, and the worker accepts connections only from the host's IP.
- Before loading, the host probes each giver with an empty sealed frame each way, so a wrong key fails up front without touching the RPC server.
- Lifecycle:
- A pool ends if any member leaves or drops off the network, or if llama-server or a giver's RPC server stops by itself.
- llama.cpp processes are tracked in a registry and killed on
/pool stop, on drop, and when hopchat exits. - Their output goes to
pool.login the data directory.
Security note
A pool host can run any computation llama.cpp's RPC server allows on a giver's machine, and llama.cpp calls that server a proof of concept. That's why giving is opt-in, limited to groups you share, and announced with a note. The README says so.
Testing
cargo clippy --all-targets --locked -- -D warningsis clean, andcargo test --lockedpasses (267 passed).- New unit tests:
- Tunnel: bytes survive a round trip across several connections and frames; a wrong key reaches nothing; plain RPC is refused; only the host's IP may connect; dropping a listener closes its connections; frames can't be replayed across directions or connections.
- Pool: the wire format round-trips; Ollama manifest resolution (library, user, and
hf.conames, plus path-traversal rejection);.ggufpaths. - Two end-to-end tests,
a_host_and_a_giver_pool_a_modelandstopping_while_loading_stops_llama_server, run in CI. They skip themselves when python3 is missing. - Two
Homes arrange a pool through each other's hidden messages, with Python stand-ins forllama-serverandggml-rpc-server. - The stand-in server only answers after echoing 200 KB through each worker's encrypted tunnel.
- They then check that
/pool stopmakes the giver leave, and that stopping mid-load kills llama-server. - Also covered: late givers let go when gathering ends,
/pool give offleaving a served pool, a repeatedJoin, givers without a direct link, llama.cpp exiting after start on either side, the pooled offer and lending,askerrors, frame size limits, and a probe with the wrong key.
bahdotsh/wrkflw
Why
I checked wrkflw against GitHub on wrkflw's own CI history. It was fast: emulation took 73–93 s on a Mac, where GitHub took 160–269 s. It was not trustworthy:
| Finding | Effect | ||
|---|---|---|---|
| wrkflw agreed with GitHub on 2 of 6 commits | false passes and false failures | ||
gate on a feature branch or detached HEAD ran 0 workflows and passed | push "verified" with nothing checked | ||
Running from a git worktree lost .git | every git step failed, masking real failures | ||
| Docker Desktop's 8 GB VM killed the linker | a failure GitHub's 16 GB runner never sees | ||
| itsdangerous planned 6 matrix legs, GitHub ran 7 | include semantics differed | ||
| `runs-on: ${{ matrix.os \ | \ | 'ubuntu-latest' }}` | windows and macOS legs were not flagged as unverified |
Workflows without name: failed to parse | |||
| Reused jobs looked like ordinary passes | |||
Digests had colour codes, thiserror as an error line, duplicated legs and a canned cargo hint |
What changes
- Verdicts.
run_finishedandgategainverdict:verified,partial, ornothing_checked. The gate'spassedis false when nothing ran. It still exits 0 then, so pushes that no CI covers aren't blocked. - Gate event fallback. Without
--event, a workflow a push doesn't fire is checked as apull_requestinto the default branch. Each workflow entry says whicheventandbase_branchit was checked as. - Matrix
includefollows GitHub's documented rules. The documented example and itsdangerous are now tests. runs-onexpressions that read onlymatrixare evaluated per leg.- Worktrees get a real
.gitdirectory, mirrored from the common dir, on the right branch. - Memory. A Docker or Podman VM under 14 GB triggers a warning and a limit of one job per 4 GB.
WRKFLW_MAX_PARALLEL_JOBSoverrides the limit. The digest names anout_of_memorycause. - Digest quality. ANSI codes are stripped and error lines match whole words, skipping zero counts. Folded legs go under
also_failed_in. The cargo hint is removed. reusedis now set onjob_finishedand onrun_finished.jobs.- New
wrkflw compare <run id|url>. It runs a finished GitHub run locally and lists per-job agreement, with notes on why results may differ. scripts/conformance/plan_corpus.shplans the latest run of each workflow in 20 public repos and compares job counts. It needsghandjq, and runs nothing.- Parser and schema gaps found by that corpus:
- a strategy without a matrix (psf/requests)
- top-level
cache-mode,environment.deploymentand expressiontimeout-minutes(ruff) - the
code-qualitypermission (clap) - empty env values (ripgrep)
Breaking changes are listed in BREAKING_CHANGES.md.
Verified
cargo test --workspace --all-featurespasses all 1,621 tests.clippy -D warnings,fmt --checkandcheck --no-default-featuresare clean.- Compare, on a commit where GitHub passed: all jobs agree. On a commit where GitHub's Ubuntu build failed: one disagreement, noted as "ran as macOS locally".
- Gate, on a feature branch: CI was checked as a pull request into main, with verdict
partial. Before this change it ran nothing and passed. - Worktree run: succeeds.
- Docker build-only run on an 8 GB VM: the memory warning is shown, the digest cause is
out_of_memory, and the other legs are folded intoalso_failed_in. - Plan corpus:
- Every comparable workflow matches GitHub's job count.
- The six workflows wrkflw could not parse now plan.
- Workflows are marked n/a when GitHub skipped or cancelled jobs, when they call other workflows, or when no job ran.
Not in this PR
- A scheduled CI job that runs the corpus or a self-compare. The script is documented, not automated.
- macOS and Windows jobs still run as Linux or as the host OS. They are reported as
partial, not emulated.