Signed-in pages show which version of the broker is running, next to
the approver's name, to check a deploy of the broker took effect.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The box VM holds the cache's store in a `cache` account, set up by
`services.slop-broker-cache`, and the demo's broker pushes to it, so
`slop build` can be tried by hand. The broker's key is only known at
boot, so the module exposes its forced command for keys it can't list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The demo's host side is a devenv module of its own,
`nix/demo/host.nix`, which `devenv.nix` imports, so `devenv.nix` is
only the development environment. The VMs' settings are grouped with
comments, and the longer scripts are broken into steps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploys and builds read built paths from the builder's store over
`ssh-ng`, with the `ssh` the broker's `nix` finds on its `PATH`. The
demo's wrapper wasn't named `ssh`, so `nix` used the real one, which
couldn't resolve `builder`. The wrapper is now `bin/ssh`, and also
handles how Nix calls it: the host as `builder@builder`, a control
master check and the `LocalCommand` it waits for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`box` also holds a binary cache's store through
`services.slop-broker-cache`, and the agent builds the profile into it
with `slop build`, which no test covered. The test checks the printed
path, the closure in the cache's store and its GC root. The audit
check now reads more than the default 50 records, which the extra
requests outgrew.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test repository gets two commits of a profile the builder can
build from a static busybox, without nixpkgs, whose `activate-rs`
leaves a mark, and a second VM, `box`, as a node with a store of its
own. The test deploys to `box` and the broker's own box at once, whose
profiles are the same derivation, then the second commit to `box`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test script gets helpers for running `slop` as the agent and
`slop-approve` as the reviewer, and headings for what each part
checks. The settings of `machine` are grouped with comments, its
`deploy` account in a module of its own, for the deploy nodes that
come next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mirror only has remote branches, so its HEAD named a branch that
doesn't exist, and Nix warned that it couldn't read it on every build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`nix build --json` gives one result per installable, in order, except
that Nix 2.35 repeats the results of installables that are the same
derivation: two deploy targets with the same profile gave four results
for two installables, and the build failed. When the counts differ,
the builder now matches results by derivation path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>