diff --git a/WIP.md b/WIP.md new file mode 100644 index 0000000..2d2554d --- /dev/null +++ b/WIP.md @@ -0,0 +1,51 @@ +# Working notes (WIP, not for merge) + +Notes for whoever picks up the broker next: where the work stands and what comes next. They live +in their own change on the `wip` bookmark, at the head of the work in progress; move it to sit on +top of whatever is next, and never merge it. Durable facts go in `docs/`; drop this file when the +work is done. + +## State + +As of 2026-11-25. + +- `main` (up to `policy: Type operation names and the fields rules match`) is reviewed, and + nixfiles `master` locks it; no `--override-input` is needed any more. +- Secrets are done and deployed on `palace`. Structured request details are done; check them in + the web app on a real deploy and secret request. +- Home Assistant notifications are removed (`ha: Remove Home Assistant notifications`); the web + app's Web Push replaces them. `palace` runs it. +- The demo has a repository with a protected `master`, a builder, secrets and deploys to the box + VM (`docs/demo.md`); tried end to end with `slop-approve`. +- SSH targets come only from the main branch's deploy-rs nodes (`ssh: Find deploy targets on the + main branch`), so SSH needs `deploy`. The VM test covers the lookup with a real builder. Not + yet run in the demo, whose nodes moved into its repository's flake: an existing demo needs + `demo-reset` (or a new commit with the nodes) to get them. +- **SSH stdin** ([PR #1](https://git.nul.ie/dev/slop-broker/pulls/1), bookmark + `ssh-show-stdin`, under this change): approvers never saw a script piped to `bash -s`, because + stdin was only forwarded after approval. `slop ssh` now sends all of stdin with the request, + approvers and the audit log see it, and `PROTOCOL_VERSION` is 2. + - Being tried on `palace` and `slop-cannon` from the nixfiles branch `test-slop-ssh-stdin`, + which pins slop-broker to the PR branch. Once it merges, nixfiles relocks `main` and that + branch goes. + - Every box with `slop` needs the new version together with `palace`, or gets a protocol + version error (for example `castle`, which requests too). + +## Next + +1. Merge PR #1 and relock nixfiles, deploying `palace` with every requester. +2. **Containers aren't SSH targets.** Agents asked for `shill.container-middleman` and the like, + which `slop ssh` refuses: a container is a profile on its host's deploy node, not a node. Either + accept `node.container-` and run through the host (like `ssh-machine`), or say in + `slop-tools.md` how to reach one through the host. +3. A requester's `Stdin` messages for an operation that doesn't read stdin fill the server's stdin + channel, after which its reader blocks and no longer notices a disconnect. Drop them instead. +4. **The builder's store is small and slow.** `palace` builds every `slop deploy` and + `slop build` into its own `/nix`, an ext4 volume on the 500 GB SATA SSD (the `main` thin + pool). Move builds somewhere bigger and faster, such as a store on `cellar`'s NVMe or another + builder box. That's nixfiles work, though `services.slop-broker-builder` may need options. +5. The demo has no binary cache, so `slop build` isn't configured there. Adding one means the box + VM's `services.slop-broker-cache` taking a broker key made at run time, not build time. +6. DNS, previews and forwards. +7. Once Dev is happy with everything: screenshots of the web app (pending list, a request's + detail, the audit log, on a phone and a desktop) in `README.md` and `docs/design.md`.