Cross-cutting docs and backlog for the homelab — the paper layer, not the infrastructure.
  • JavaScript 39.9%
  • Python 31.1%
  • Shell 23.8%
  • HTML 4.4%
  • Makefile 0.8%
Find a file
pit cd2c3835f1 The loop watches infra-cluster (THE-37) (!66)
Reviewed-on: #66
Reviewed-by: Minos <noreply+minos@thepit.space>
2026-12-04 07:07:28 +00:00
.forgejo/workflows fix(pr-review-loop): a needs-human label that lands before its report is watched, not dropped (!57) 2026-12-01 17:57:08 +00:00
docs The loop watches infra-cluster (THE-37) (!66) 2026-12-04 07:07:28 +00:00
nas-disk-report NAS disk report: read-only, resumable inventory of /volume1 (!15) 2026-10-22 09:19:36 +00:00
pr-review-loop The loop watches infra-cluster (THE-37) (!66) 2026-12-04 07:07:28 +00:00
scripts feat(pr-review-loop): the loop resolves its own stuck PRs and asks Pedro only to merge (vikunja:WR-99) (!56) 2026-12-01 13:34:57 +00:00
ticket-dispatch ticket-dispatch: the implementer's run ends at its handoff (!46) 2026-11-10 21:32:48 +00:00
AGENTS.md docs: a task reference names its tracker (paperclip:THE-4) (!48) 2026-11-11 12:59:27 +00:00
GLOSSARY.md The Updater joins the roles an identity can hold (THE-40) (!63) 2026-12-02 13:26:24 +00:00
LICENSE Initial commit 2026-10-11 09:10:12 +00:00
Makefile The agent's target floor, as one page (WR-42) (!18) 2026-10-28 13:01:00 +00:00
mise.lock build(toolchain): declare the repo's runtimes and run the scripts through the manager (#4) 2026-10-14 09:08:57 +00:00
mise.toml The agent's target floor, as one page (WR-42) (!18) 2026-10-28 13:01:00 +00:00
README.md feat(pr-review-loop): the loop resolves its own stuck PRs and asks Pedro only to merge (vikunja:WR-99) (!56) 2026-12-01 13:34:57 +00:00

workshop

Cross-cutting docs and backlog for the homelab — the paper layer, not the infrastructure.

Toolchain

This repo's scripts and the loop's test run on two runtimes: Python (the shell scripts call python3, and probe_listener.py is a Python program) and Node (the workflow's test harness). Both are declared in mise.toml and pinned to exact versions in mise.lock, and mise is this repo's dependency manager.

File Holds
mise.toml the runtimes the scripts invoke, as version requests
mise.lock what those requests resolved to, with a URL and a checksum per platform

Installing from the declaration

One step, on a machine that has neither runtime:

mise_bin=$(command -v mise || echo "$HOME/.local/bin/mise"); \
if [ -x "$mise_bin" ]; then echo "mise $("$mise_bin" --version) is already installed; nothing to do for the manager"; \
else curl -fsSL https://mise.run | MISE_VERSION=v2026.10.8 sh; fi; \
[ -x "$mise_bin" ] && "$mise_bin" install --locked

The manager's own release — 2026.10.8 above — is the one version mise.lock cannot carry, so the step pins it. Run the step again and it reports the version it found instead of installing a second copy. The installer drops the manager in ~/.local/bin and says so; if that directory is not on your PATH, add it once — export PATH="$HOME/.local/bin:$PATH".

Running the scripts

Through the manager, never bare: mise exec -- <command> puts the declared runtimes on PATH for the command and installs anything missing first.

mise exec -- node pr-review-loop/tests/parse.test.js    # the workflow's Parse event: what is a trigger
mise exec -- node pr-review-loop/tests/decide.test.js   # the workflow's Decide and sweeper suite
mise exec -- node pr-review-loop/tests/recovery.test.js # run reports, waiting, the hold, the operator, tasks for you
mise exec -- python3 pr-review-loop/tests/report_hook.test.py # the Hermes run-report hook, against a loopback listener
mise exec -- pr-review-loop/scripts/provision-labels.sh <owner>/<repo>
mise exec -- pr-review-loop/scripts/onboard-repo.sh <owner>/<repo>
mise exec -- pr-review-loop/scripts/send-test-event.sh n8n pr-review-loop/test-payloads/pr-opened.json
mise exec -- python3 pr-review-loop/scripts/probe_listener.py

mise exec -- scripts/protect-main.sh <owner>/<repo>      # Protected main, applied and read back
mise exec -- scripts/tests/protect-main.test.sh          # that script, against a stand-in for the forge
mise exec -- scripts/tests/onboard-repo.test.sh          # the loop's onboarding, which delegates to it

mise exec -- python3 nas-disk-report/tests/scan.test.py   # the NAS scan's two measurement rules, over a stub ssh
mise exec -- python3 nas-disk-report/tests/render.test.py # retention, the treemap, and a scan with no df figure

mise exec -- node ticket-dispatch/tests/gate.test.js      # the gate: every refusal it speaks, and the ledger behind it
mise exec -- node ticket-dispatch/tests/pump.test.js      # the pump: the derived queue, the dispatch payload, retire/requeue/park
mise exec -- node ticket-dispatch/tests/notices.test.js   # the notice lines: stale, missing hook, both no-PR exits
mise exec -- node ticket-dispatch/tests/retry.test.js     # the two board reads: the retry policy they carry, and what it does to a failing read
mise exec -- ticket-dispatch/scripts/provision-buckets.sh # the Review bucket, created and read back
mise exec -- ticket-dispatch/tests/provision-buckets.test.sh  # that script, against a stand-in tracker

scripts/protect-main.sh is this repo's own tooling rather than the loop's: it puts the standard in docs/adr/0002-… onto any repository's main and is run by whoever administers that repository. The directory beside it holds the stand-in forge and the two tests that run against it — that script, and the loop's onboarding, which states no rule of its own and calls it instead.

Everything the scripts call besides those two runtimes — curl, bash and the shell utilities — belongs to the machine and is deliberately not declared here.

mise on a machine

The manager is the one tool no project declares: it writes each project's lock file and installs what that file pins, so the file cannot pin it. Its release is pinned where a bare machine reads it, in each project's own install step — MISE_VERSION in the infra repos' make deps and in this repo's own deps, which its workflow calls, and in the step above — and that pin is 2026.10.8.

Installing it by hand

A machine whose scripts never run a project's install step gets the same release by hand:

curl -fsSL https://mise.run | MISE_VERSION=v2026.10.8 sh

The script writes the executable to ~/.local/bin/mise and nothing else — no tools, no config, no edit to a shell file; it prints the activation line instead of appending it. Put that directory on PATH and the machine is ready for any project's install step. A package manager — apt, dnf, pacman, Homebrew — installs it as well, with the consequence for updates below. Keep to one installation per machine: two on PATH can leave the older binary in use.

Updating it

mise self-update replaces the binary with the newest stable release, verifying its signature first; releases younger than a day are skipped unless a version is named. Updating the manager does not move a project's pin, and does not need to: the pin is the release a bare machine installs, and the tools a project declares are what runs.

A manager a package manager installed updates through that package manager rather than through mise self-update — the tool says so, and a packager can disable the command outright.

Removing it

mise implode removes the manager and what it put on the machine with it: the executable, the tools installed under ~/.local/share/mise, and its cache and state directories — plus, where a machine has one, the system-wide directory mise install --system uses. mise implode --dry-run prints that list before anything goes, and the removal asks at each path, --yes skipping the prompts.

That removal is the rollback for the rule: the tools came from the manager, so taking it away takes them with it, and a project's install step is what puts them back. What outlives it in the account's home: ~/.config/mise, which stays unless --config is passed, and any mise activate line a shell startup file carries, which the removal does not touch and the installer above never added: a machine set up through a project's install step has none. An installation a package manager made is removed by that package manager instead.

Nothing here declares anything: the tools a project runs stay named in its own mise.toml, pinned in its own mise.lock. This section records what belongs to the machine.