build(toolchain): declare infra-tracker's toolchain in the repo and install it with make deps #29

Merged
pit merged 4 commits from hermes/tr33-toolchain into main 2026-10-14 09:06:56 +00:00
Member

Summary

The repo's toolchain stops being a fact about the operator's machine and becomes a fact about the repo. mise.toml declares the tools the targets call, mise.lock pins what those requests resolved to, vikunja/service/requirements.yml declares the collection the playbook uses, and make deps is the one install step. A target is reached through the manager: mise exec -- make <target>.

Ticket: TR-33 — infra-tracker declares and installs its toolchain from the repo. No Forgejo issue covers this work, so the body carries no closing keyword.

 infra-tracker/
+├── mise.toml                    # the targets' tools: uv, opentofu, python, ansible-core
+├── mise.lock                    # what those requests resolved to, per platform, with checksums
+├── .mise/locks/…                # the uv graph the Python backend replays under `install --locked`
 ├── Makefile
+│                                #   `deps` — the one install step
 ├── README.md                    # mise named as the repo's dependency manager
 ├── AGENTS.md                    # the wrapper, one line
 └── vikunja/service/
+    ├── requirements.yml         # community.postgresql >=5.0.0,<6.0.0
+    ├── ansible.cfg              # collections_path = ./collections
+    └── collections/             # where deps puts them; gitignored

 before:  make <target>              # whatever tofu/ansible the host happens to have
 after:   mise exec -- make <target> # the versions this repo pins
 once:    make deps

Evidence

  • Before: on a machine whose PATH holds no mise, tofu, ansible-playbook or uv, and whose HOME is empty — a fresh clone's make validate dies at the first target: tofu: command not found, make: *** [Makefile:194: validate] Error 127.
    After: the same clone, the same PATH, make deps → rc=0: it installs the manager 2026.10.8, then 4/4 tools from the lock (uv 0.13.0, opentofu 1.12.6, python 3.13.16, ansible-core 2.21.5), then community.postgresql:5.0.0 into vikunja/service/collections/. A second make deps is a no-op that names the version it found. mise exec -- make fmt → rc=0 and mise exec -- make validate → Success! The configuration is valid. on both stacks, with git status --porcelain empty afterwards.

Merge Danger

Door: two-way. The change adds declarations, a lock file and one Make target; nothing is destroyed. Reverting the commit returns the repo to a machine-provided toolchain — what the host's make deps left installed (~/.local/bin/mise, ~/.local/share/mise) stays, which is a host fact, not repo state.

Blast Radius: whole-repo. Every documented invocation of every target changes at once, and the README/AGENTS.md that agents read say so. A machine that never runs make deps sees mise exec fail with command not found rather than a silent fall back to a host installation — the failure the ticket asks for.

The collection the playbook calls moves from whatever the account happened to have in ~/.ansible/collections to the repo's own path; ansible.cfg now points at that path alone, verified by ansible-config dump showing a single COLLECTIONS_PATHS entry in a HOME that has no user-level collections at all.

## Summary The repo's toolchain stops being a fact about the operator's machine and becomes a fact about the repo. `mise.toml` declares the tools the targets call, `mise.lock` pins what those requests resolved to, `vikunja/service/requirements.yml` declares the collection the playbook uses, and `make deps` is the one install step. A target is reached through the manager: `mise exec -- make <target>`. **Ticket:** [TR-33 — infra-tracker declares and installs its toolchain from the repo](https://vikunja.thepit.space/tasks/40). No Forgejo issue covers this work, so the body carries no closing keyword. ```diff infra-tracker/ +├── mise.toml # the targets' tools: uv, opentofu, python, ansible-core +├── mise.lock # what those requests resolved to, per platform, with checksums +├── .mise/locks/… # the uv graph the Python backend replays under `install --locked` ├── Makefile +│ # `deps` — the one install step ├── README.md # mise named as the repo's dependency manager ├── AGENTS.md # the wrapper, one line └── vikunja/service/ + ├── requirements.yml # community.postgresql >=5.0.0,<6.0.0 + ├── ansible.cfg # collections_path = ./collections + └── collections/ # where deps puts them; gitignored before: make <target> # whatever tofu/ansible the host happens to have after: mise exec -- make <target> # the versions this repo pins once: make deps ``` ## Evidence - **Before:** on a machine whose PATH holds no `mise`, `tofu`, `ansible-playbook` or `uv`, and whose `HOME` is empty — a fresh clone's `make validate` dies at the first target: `tofu: command not found`, `make: *** [Makefile:194: validate] Error 127`. **After:** the same clone, the same PATH, `make deps` → rc=0: it installs the manager `2026.10.8`, then `4/4` tools from the lock (uv 0.13.0, opentofu 1.12.6, python 3.13.16, ansible-core 2.21.5), then `community.postgresql:5.0.0` into `vikunja/service/collections/`. A second `make deps` is a no-op that names the version it found. `mise exec -- make fmt` → rc=0 and `mise exec -- make validate` → `Success! The configuration is valid.` on both stacks, with `git status --porcelain` empty afterwards. ## Merge Danger **Door:** two-way. The change adds declarations, a lock file and one Make target; nothing is destroyed. Reverting the commit returns the repo to a machine-provided toolchain — what the host's `make deps` left installed (`~/.local/bin/mise`, `~/.local/share/mise`) stays, which is a host fact, not repo state. **Blast Radius:** whole-repo. Every documented invocation of every target changes at once, and the README/AGENTS.md that agents read say so. A machine that never runs `make deps` sees `mise exec` fail with `command not found` rather than a silent fall back to a host installation — the failure the ticket asks for. The collection the playbook calls moves from whatever the account happened to have in `~/.ansible/collections` to the repo's own path; `ansible.cfg` now points at that path alone, verified by `ansible-config dump` showing a single `COLLECTIONS_PATHS` entry in a `HOME` that has no user-level collections at all.
The tools the Targets call become facts about the repo instead of about the
machine that happens to run them. `mise.toml` declares them, `mise.lock` pins
what those requests resolved to, and `deps` is the repo's one install step: it
brings the manager in when the machine lacks it, pinned to a release and a
no-op that reports the version when it is present, then installs from the lock.

The manager's own release is the one version the lock file cannot carry, so it
is pinned in the Makefile — and that is where the pinned installer puts it.
`uv` rides along because mise's Python backends resolve through it: without it
`mise install --locked` refuses a lock whose dependency graph was never built.
The vikunja role calls `community.postgresql`, which worked only because the
machine's user-level collections directory happened to hold it. It is now
declared with a major-bounded range, installed by `make deps` into a path the
repo owns and ignores, and `ansible.cfg` points the resolution at that path
alone — so a playbook no longer resolves against whatever the account has.

The collection's modules run on the Guest, which the role already furnishes
with python3-psycopg2, so no Python library rides the controller's
ansible-core environment here.
The README no longer asks the operator to have OpenTofu and Ansible of their own
and names mise as the repo's dependency manager instead; its command block now
shows every Target in the wrapper form rather than a bare `make` that only works
on a machine that has the tools. AGENTS.md gains the one line an Agent needs.
Neither links to an issue.
`GLOSSARY.md` gives capital-T **Target** to the environment a test run drives, so
the prose this change adds says `target` — the make verb — and the glossary term
keeps its meaning in the two files that carry the repo's vocabulary.

The install step's gap is now named where the operator reads it: on a machine
that had no manager, `make deps` leaves it in `~/.local/bin`, and the README says
to put that on PATH once. The Makefile's own note no longer claims a bare
`mise exec` works from a shell that has never seen the directory.
bot-minos approved these changes 2026-10-13 15:20:06 +00:00
Dismissed
bot-minos left a comment

review: olympus/infra-tracker#29 · head e5c7fa45b290b3392b75a2e63a3f03ae0ab72364 · round 1/5 · verdict: no blockers

Recommendation: merge

Spec: TR-33 — infra-tracker declares and installs its toolchain from the repo (Vikunja task id 40, index 33; the PR body links it). Its seven acceptance criteria are the contract.
Standards: the repo writes down AGENTS.md (the wrapper line and the PR-body format), GLOSSARY.md, docs/agents/* and docs/adr/*; there is no CONTRIBUTING.md and no coding-standards file, so that axis is judged against those sources plus general good practice and the Fowler smell baseline, and I say so here.
Round: the PR timeline carries no earlier review and no comments, so this is round 1, and the dispatch's 1/5 matches it. refs/pull/29/head resolves to e5c7fa4…, equal to the PR object's head.sha, so that is the revision judged.

What I reproduced

Fresh HOME plus PATH=/usr/local/bin:/usr/bin:/bin, against a clone pinned to refs/pull/29/head — a machine holding none of the declared tools, which is the environment the ticket names.

AC Result Evidence
4 — the bare entry point fails visibly, names the missing tool, no host fallback reproduced make validate → /bin/bash: line 2: tofu: command not found, make: *** [Makefile:194: validate] Error 127 — the same line the body cites, read off my own run. make fmt → Makefile:191, Error 127. Nothing in the Makefile adds a PATH, so there is no fallback
1+2 — one install step: the manager when absent, then the lock, then the collection reproduced make deps rc=0 → installing mise 2026.10.8 → mise 2026.10.8 linux-x64 → installed 4 tools in 13.6s: uv 0.13.0, opentofu 1.12.6, python 3.13.16, pypi:ansible-core 2.21.5 → community.postgresql:5.0.0 was installed successfully. Second run: mise 2026.10.8 … is already installed, 4/4 · installed 0 tools, All requested collections are already installed, rc=0
1 — the lock is honoured, not re-resolved reproduced mise install --locked accepted the committed lock and installed exactly the versions mise.toml names; the pypi tool resolved through the committed .mise/locks/…/uv.lock
3 — the repo's own non-mutating verification is green through the wrapper, tree clean reproduced, with the repo's documented SSH-key prerequisite mise exec -- make validate → Success! The configuration is valid. on both stacks; mise exec -- make fmt rc=0; git status --porcelain empty afterwards
5 — the collection resolves against the repo's path alone reproduced from vikunja/service, ansible-config dump (pinned ansible-core 2.21.5) → COLLECTIONS_PATHS(vikunja/service/ansible.cfg) = ['…/vikunja/service/collections'], a single entry; git check-ignore → .gitignore:12 vikunja/service/collections/
6 — README names the manager, agent docs state the wrapper, neither links an issue reproduced by reading README.md:16-20 and README.md:41-71, AGENTS.md:3-6; no issue link in either
7 — nothing host-provided is declared reproduced by reading mise.toml declares uv, opentofu, python, pypi:ansible-core and nothing else; the Makefile calls printf read curl grep sed awk bash sh, tofu, ansible-playbook, ansible-galaxy — no host utility, and neither make nor curl, is declared

Not verified: any platform other than linux-x64 (the lock carries the others; I ran one); the mutating targets and service-check/guest-plan/edge, which need the root .env and a live API — no criterion claims them. The author's ## Evidence transcript is not in the diff, so I re-ran its load-bearing assertions by hand rather than restating its numbers.

Standards

No findings. The diff keeps the shape of what it sits among: heading form and prose in AGENTS.md, the :=-aligned variable block with a comment above saying why in the Makefile, the fenced sh block in README.md. The ansible.cfg key is the right one — ansible-core's own definition gives COLLECTIONS_PATHS the ini key collections_path in [defaults] (ansible/config/base.yml:287-303 of the pinned 2.21.5), and the dump above shows it honoured rather than ignored. requirements.yml and the gitignore entry are the shape the sibling repo already uses (infra-forge/ansible/requirements.yml, infra-forge/ansible/ansible.cfg:8). No baseline smell to name: no duplicated logic, no speculative generality — the declared python is load-bearing, as the pypi install logs (Using CPython 3.13.16 interpreter at: …/installs/python/3.13.16/bin/python). The head commit's lower-case “target” is right for this repo: GLOSSARY.md §Target gives capital-T Target to the environment a test run drives, so the make verb must not take that word.

Spec

# Finding Severity
S1 docs/reference/guest.md:51 — the one documented invocation left bare no longer runs as written ADVISORY
S2 README.md:45 — “reads a local SSH public key at plan time” understates when the key is read ADVISORY

S1 — ADVISORY — docs/reference/guest.md:51. The change moves every declared tool behind the wrapper; this sh block (tofu import proxmox_download_file.debian_13_base …) is the one documented invocation it did not. On a machine set up by the new README flow — make deps, then ~/.local/bin on PATH — a bare tofu is unreachable: ~/.local/bin holds mise alone, with no tool shims, so the command gives tofu: command not found (rc=127), while mise exec -- tofu version answers OpenTofu v1.12.6. The PR's own Merge Danger says every documented invocation changes at once and “the README/AGENTS.md that agents read say so” — the README and AGENTS.md do; this page does not. Smallest fix: wrap the line as mise exec -- tofu import ….

S2 — ADVISORY — README.md:45 with vikunja/guest/keys.tf:3. The rewritten Running section keeps “the Guest stack reads a local SSH public key at plan time”, but the key is read by a locals file() that validate evaluates too, so make validate — the non-mutating check that same section now tells you to run through the wrapper — is not green on a clone whose HOME has no ~/.ssh/id_ed25519_ansible.pub: Error: Invalid function argument … on keys.tf line 3 → make: *** [Makefile:194: validate] Error 1. With a throwaway key at that path, validate is green on both stacks (the row above). The failing line is untouched by this diff, so this is not a defect the change introduced and it does not block; but AC3's “on a clean clone … runs green” is wider than “at plan time”, and one clause closes it.

Summary

  • Standards: 0 findings.
  • Spec: 2 findings, both ADVISORY — worst is S1, a documented prerequisite command that no longer runs as written on the machine the new flow provisions.
  • Blockers: none. All seven acceptance criteria are reproduced; both findings are documentation-level with a one-line fix and are pre-existing or additive, so they do not turn the verdict. Two advisories is under the volume threshold, so the recommendation is to merge and the advisories travel as advice for a later pass — they are not dressed up as blockers.

Verdict: merge. The repo is better off with this change: the toolchain is a fact about the repo rather than about the operator's machine, the one install step honours its lock on a machine that has none of the tools, and the files an operator or an agent reads first document the invocation correctly.

review: `olympus/infra-tracker#29` · head `e5c7fa45b290b3392b75a2e63a3f03ae0ab72364` · round **1/5** · verdict: **no blockers** Recommendation: merge **Spec:** TR-33 — *infra-tracker declares and installs its toolchain from the repo* (Vikunja task id 40, index 33; the PR body links it). Its seven acceptance criteria are the contract. **Standards:** the repo writes down `AGENTS.md` (the wrapper line and the PR-body format), `GLOSSARY.md`, `docs/agents/*` and `docs/adr/*`; there is no `CONTRIBUTING.md` and no coding-standards file, so that axis is judged against those sources plus general good practice and the Fowler smell baseline, and I say so here. **Round:** the PR timeline carries no earlier review and no comments, so this is round 1, and the dispatch's `1/5` matches it. `refs/pull/29/head` resolves to `e5c7fa4…`, equal to the PR object's `head.sha`, so that is the revision judged. ## What I reproduced Fresh `HOME` plus `PATH=/usr/local/bin:/usr/bin:/bin`, against a clone pinned to `refs/pull/29/head` — a machine holding none of the declared tools, which is the environment the ticket names. | AC | Result | Evidence | | --- | --- | --- | | 4 — the bare entry point fails visibly, names the missing tool, no host fallback | reproduced | `make validate` → `/bin/bash: line 2: tofu: command not found`, `make: *** [Makefile:194: validate] Error 127` — the same line the body cites, read off my own run. `make fmt` → `Makefile:191`, Error 127. Nothing in the Makefile adds a PATH, so there is no fallback | | 1+2 — one install step: the manager when absent, then the lock, then the collection | reproduced | `make deps` rc=0 → `installing mise 2026.10.8` → `mise 2026.10.8 linux-x64` → `installed 4 tools in 13.6s`: uv 0.13.0, opentofu 1.12.6, python 3.13.16, pypi:ansible-core 2.21.5 → `community.postgresql:5.0.0 was installed successfully`. Second run: `mise 2026.10.8 … is already installed`, `4/4 · installed 0 tools`, `All requested collections are already installed`, rc=0 | | 1 — the lock is honoured, not re-resolved | reproduced | `mise install --locked` accepted the committed lock and installed exactly the versions `mise.toml` names; the pypi tool resolved through the committed `.mise/locks/…/uv.lock` | | 3 — the repo's own non-mutating verification is green through the wrapper, tree clean | reproduced, with the repo's documented SSH-key prerequisite | `mise exec -- make validate` → `Success! The configuration is valid.` on both stacks; `mise exec -- make fmt` rc=0; `git status --porcelain` empty afterwards | | 5 — the collection resolves against the repo's path alone | reproduced | from `vikunja/service`, `ansible-config dump` (pinned ansible-core 2.21.5) → `COLLECTIONS_PATHS(vikunja/service/ansible.cfg) = ['…/vikunja/service/collections']`, a single entry; `git check-ignore` → `.gitignore:12 vikunja/service/collections/` | | 6 — README names the manager, agent docs state the wrapper, neither links an issue | reproduced by reading | `README.md:16-20` and `README.md:41-71`, `AGENTS.md:3-6`; no issue link in either | | 7 — nothing host-provided is declared | reproduced by reading | `mise.toml` declares uv, opentofu, python, pypi:ansible-core and nothing else; the Makefile calls `printf read curl grep sed awk bash sh`, `tofu`, `ansible-playbook`, `ansible-galaxy` — no host utility, and neither `make` nor `curl`, is declared | Not verified: any platform other than linux-x64 (the lock carries the others; I ran one); the mutating targets and `service-check`/`guest-plan`/`edge`, which need the root `.env` and a live API — no criterion claims them. The author's `## Evidence` transcript is not in the diff, so I re-ran its load-bearing assertions by hand rather than restating its numbers. ## Standards No findings. The diff keeps the shape of what it sits among: heading form and prose in `AGENTS.md`, the `:=`-aligned variable block with a comment above saying why in the `Makefile`, the fenced `sh` block in `README.md`. The `ansible.cfg` key is the right one — ansible-core's own definition gives `COLLECTIONS_PATHS` the ini key `collections_path` in `[defaults]` (`ansible/config/base.yml:287-303` of the pinned 2.21.5), and the dump above shows it honoured rather than ignored. `requirements.yml` and the gitignore entry are the shape the sibling repo already uses (`infra-forge/ansible/requirements.yml`, `infra-forge/ansible/ansible.cfg:8`). No baseline smell to name: no duplicated logic, no speculative generality — the declared `python` is load-bearing, as the pypi install logs (`Using CPython 3.13.16 interpreter at: …/installs/python/3.13.16/bin/python`). The head commit's lower-case “target” is right for this repo: `GLOSSARY.md §Target` gives capital-T **Target** to the environment a test run drives, so the make verb must not take that word. ## Spec | # | Finding | Severity | | --- | --- | --- | | S1 | `docs/reference/guest.md:51` — the one documented invocation left bare no longer runs as written | ADVISORY | | S2 | `README.md:45` — “reads a local SSH public key at plan time” understates when the key is read | ADVISORY | **S1 — ADVISORY — `docs/reference/guest.md:51`.** The change moves every declared tool behind the wrapper; this `sh` block (`tofu import proxmox_download_file.debian_13_base …`) is the one documented invocation it did not. On a machine set up by the new README flow — `make deps`, then `~/.local/bin` on `PATH` — a bare `tofu` is unreachable: `~/.local/bin` holds `mise` alone, with no tool shims, so the command gives `tofu: command not found` (rc=127), while `mise exec -- tofu version` answers `OpenTofu v1.12.6`. The PR's own Merge Danger says every documented invocation changes at once and “the README/AGENTS.md that agents read say so” — the README and AGENTS.md do; this page does not. Smallest fix: wrap the line as `mise exec -- tofu import …`. **S2 — ADVISORY — `README.md:45` with `vikunja/guest/keys.tf:3`.** The rewritten Running section keeps “the Guest stack reads a local SSH public key at plan time”, but the key is read by a `locals file()` that `validate` evaluates too, so `make validate` — the non-mutating check that same section now tells you to run through the wrapper — is not green on a clone whose `HOME` has no `~/.ssh/id_ed25519_ansible.pub`: `Error: Invalid function argument … on keys.tf line 3` → `make: *** [Makefile:194: validate] Error 1`. With a throwaway key at that path, validate is green on both stacks (the row above). The failing line is untouched by this diff, so this is not a defect the change introduced and it does not block; but AC3's “on a clean clone … runs green” is wider than “at plan time”, and one clause closes it. ## Summary - **Standards:** 0 findings. - **Spec:** 2 findings, both ADVISORY — worst is S1, a documented prerequisite command that no longer runs as written on the machine the new flow provisions. - **Blockers:** none. All seven acceptance criteria are reproduced; both findings are documentation-level with a one-line fix and are pre-existing or additive, so they do not turn the verdict. Two advisories is under the volume threshold, so the recommendation is to merge and the advisories travel as advice for a later pass — they are not dressed up as blockers. Verdict: **merge**. The repo is better off with this change: the toolchain is a fact about the repo rather than about the operator's machine, the one install step honours its lock on a machine that has none of the tools, and the files an operator or an agent reads first document the invocation correctly.
pit approved these changes 2026-10-14 09:06:19 +00:00
Dismissed
pit force-pushed hermes/tr33-toolchain from e5c7fa45b2 to 8d0075c54f 2026-10-14 09:06:23 +00:00 Compare
pit dismissed bot-minos's review 2026-10-14 09:06:23 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

pit dismissed pit's review 2026-10-14 09:06:23 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

pit approved these changes 2026-10-14 09:06:38 +00:00
pit merged commit 32bee9a14d into main 2026-10-14 09:06:56 +00:00
pit deleted branch hermes/tr33-toolchain 2026-10-14 09:06:56 +00:00
Sign in to join this conversation.
No reviewers
pit
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-tracker!29
No description provided.