Commit Graph
9 Commits
Author SHA1 Message Date
jackos1998andClaude Opus 5.5 68de43b467 secrets: Name host keys for slop-broker approvals
Update docs / update (push) Failing after 1m44s
CI / Check, build and cache nixfiles (push) Canceled after 8m38s
Approvals list host keys abbreviated, which says little about which box
a secret goes to. Write each system's name after its key as the key's
comment, which age ignores and slop-broker shows as the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:09:08 +00:00
jackos1998 25dfa0684f flake: Pin slop-broker to v0.1.0
Build llm-agents / build (pull_request) Skipped
Update docs / update (push) Canceled after 0s
CI / Check, build and cache nixfiles (push) Canceled after 3m6s
2026-11-26 21:49:38 +00:00
jackos1998 1119371d2e nixos/palace: Extend slop approval timeout
Update docs / update (push) Canceled after 0s
CI / Check, build and cache nixfiles (push) Successful in 1h13m47s
Give approvers 45 minutes to answer each request. Install guidance
for Claude and Codex on `slop-cannon` to report expired requests
and pause work that depends on approval.
2026-11-26 14:19:04 +00:00
jackos1998andClaude Opus 5.5 bc7c2e36b9 flake: Update slop-broker
Update docs / update (push) Canceled after 0s
CI / Check, build and cache nixfiles (push) Canceled after 1m24s
`slop ssh` sends its stdin with the request so approvers see it, which
bumps the protocol version; activations finish when their connection
drops, and switching no longer restarts the broker. Document restarting
it after deploying `palace`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 14:18:45 +00:00
jackos1998andClaude Opus 5.5 51c26fbcec nixos/slop-cannon: Reach Gitea as the bot user
Agents pushed with a write-enabled deploy key, added to each repo by
hand, and had no way to open pull requests. The bot user's token now
does both: Git uses HTTPS with a credential helper that sends it, and
`tea` is wrapped to log in with it. Only Dev pushes and merges to
`master`.

A new `my.agents.rules` option gives every agent extra instructions.
`slop-cannon`'s make a pull request the default way to finish work,
unless a repository's own instructions allow more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:11:18 +00:00
jackos1998andClaude Opus 5.5 cb4937f230 nixos/palace: Let slop-broker change secrets
Update docs / update (push) Successful in 1m6s
CI / Check, build and cache nixfiles (push) Successful in 1h12m51s
The broker gets its age identity and `slop secret` for agents.
Listing keys doesn't ask; everything else does, with approvals
checked against `master`, which only Dev can push to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
jackos1998andClaude Opus 5.5 93f9309c91 nixos/castle: Use slop-broker over SSH
`castle` gets a requester and an approver key for `palace`'s broker,
set up with `programs.slop`, to try the SSH transport. `palace` lets
the keys in as the requester `castle`, sharing `slop-cannon`'s `agent`
policy, and the approver `castle`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
jackos1998andClaude Opus 5.5 2519c3c86c nixos/palace: Run slop-broker for agents
`slop-cannon`'s agents reach the broker on `palace` through a vsock
device, under an `agent` policy: box queries run without asking,
`slop ssh` asks (offering 5 min and 1 h leases), and so do deploys.
The deploy key moves to `palace` as an age secret for the broker, so
the VM never holds it, and `AGENTS.md` points agents there at `slop`.

`palace` runs the builder itself, as `slop-broker-build`, reached over
SSH like a separate box and fetching `dev/nixfiles` with a read-only
deploy key, so `slop-cannon` shrinks to 24 GiB. `slop build` pushes
into Harmonia's store on `object` with a key of the broker's own,
which can only speak the store protocol and add GC roots there.
Agents' use of the builder asks, unless the commit is already on
`master`. Builds run agent-written Nix, so they only reach the
Internet, like `lan-untrusted`, and `nix-daemon` is limited so they
can't starve the VMs.

The approvals web app listens on `palace` for `middleman` only, the
one client the firewall lets in, which publishes it at
`approve.slop.nul.ie`. Approvers sign in with Pocket ID, and deploys
to the routers need a fresh passkey.

The broker's SSH targets are the deploy-rs nodes on `master`, which
the builder reads there, so agents can't add or redirect one.

With the broker gating what needs credentials, `slop-cannon`'s agents
are permissive by default: Claude bypasses permission prompts and
Codex runs without approvals or its sandbox, with matching Paseo
profiles. The deny rules for raw `deploy` and `ssh-machine` stay as
steers towards `slop`; the ones for `.keys/` go, since the VM's
checkout only has the committed public keys there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
jackos1998andClaude Opus 5.5 71ed076f12 flake: Add slop-broker from its own repository
The broker, its NixOS and home-manager modules and the agents' guide
now live in the `slop-broker` repository, which this flake takes as an
input: its overlay provides `pkgs.slop-broker`, and the common modules
import `services.slop-broker*` and `programs.slop`. What's specific to
these boxes stays here: tmproot persistence for the broker and its
builder, `my.agents.slop` and the devshell's `slop` commands, which
`docs/slop-broker.md` describes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00