- JavaScript 39.9%
- Python 31.1%
- Shell 23.8%
- HTML 4.4%
- Makefile 0.8%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| docs | ||
| nas-disk-report | ||
| pr-review-loop | ||
| scripts | ||
| ticket-dispatch | ||
| AGENTS.md | ||
| GLOSSARY.md | ||
| LICENSE | ||
| Makefile | ||
| mise.lock | ||
| mise.toml | ||
| README.md | ||
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.