fix(toolchain): scope the lockfile strictness to the repo's own config root #30

Merged
pit merged 1 commit from fix/deps-locked-scope into main 2026-10-15 08:04:44 +00:00
Owner

Summary

make deps stops depending on what the machine's own mise config declares. mise's --locked is invocation-wide — project, global and system scopes alike — while mise lock writes the project root alone, so on this machine the six rolling tools in ~/.config/mise/config.toml (codex, copilot, crush, gh, oh-my-pi, node) failed with "not in the lockfile" before the repo's own four were reached.

 mise.toml
+[tool_config]
+locked = true                 # the strictness, bound to the tools this file declares
 Makefile
-  "$$mise_bin" install --locked   # invocation-wide: project + global + system
+  "$$mise_bin" install            # strictness comes from the config root above

Ticket: none open covers this. It is the defect TR-33 landed with — closed 2026-10-14 by !29 — and WR-3 is the parent spec. No Forgejo issue covers it, so the body carries no closing keyword.

Evidence

  • Before: make deps on a machine whose global config lists tools — six failed: … is not in the lockfile lines and make: *** [Makefile:133: deps] Error 1, with the repo's own four tools never reached.
    After: the same machine, the same command → rc=0: 10/10 tools, community.postgresql:5.0.0 already installed. A second make deps is a no-op.
  • The refusal still holds for the repo's tools. A scratch copy of this config root with the uv entry deleted from mise.lock, plain mise install → ERROR Failed to install aqua:astral-sh/uv@0.13: uv@0.13 is not in the lockfile, exit 1. The control — the same copy with [tool_config] stripped — exits 0, re-resolving and rewriting the lock, so the strictness is doing the work.
  • mise exec -- make validate and mise exec -- make fmt are unaffected: fmt exits 0 leaving nothing rewritten, git status --porcelain empty afterwards. Evidence taken on mise 2026.10.3, the version this machine runs — MISE_VERSION (2026.10.8) only applies where the manager is absent, so the pin is not what was exercised here.

Merge Danger

Door: two-way. Two declarations; reverting the commit restores --locked and with it the old failure. The merge installs and removes nothing.

Blast Radius: repo-local, with one consequence for whoever runs make deps: the target now also installs the machine's own global-config tools when they are missing — here all six were already present (10/10 … in 4ms), but a latest tool with a newer release will now be picked up by make deps. In exchange the target stops failing on a machine whose own config this repo knows nothing about, which is what the README's "one install step" promises.

## Summary `make deps` stops depending on what the machine's own mise config declares. mise's `--locked` is invocation-wide — project, global and system scopes alike — while `mise lock` writes the project root alone, so on this machine the six rolling tools in `~/.config/mise/config.toml` (`codex`, `copilot`, `crush`, `gh`, `oh-my-pi`, `node`) failed with "not in the lockfile" before the repo's own four were reached. ```diff mise.toml +[tool_config] +locked = true # the strictness, bound to the tools this file declares Makefile - "$$mise_bin" install --locked # invocation-wide: project + global + system + "$$mise_bin" install # strictness comes from the config root above ``` **Ticket:** none open covers this. It is the defect TR-33 landed with — closed 2026-10-14 by !29 — and WR-3 is the parent spec. No Forgejo issue covers it, so the body carries no closing keyword. ## Evidence - **Before:** `make deps` on a machine whose global config lists tools — six `failed: … is not in the lockfile` lines and `make: *** [Makefile:133: deps] Error 1`, with the repo's own four tools never reached. **After:** the same machine, the same command → rc=0: `10/10` tools, `community.postgresql:5.0.0` already installed. A second `make deps` is a no-op. - **The refusal still holds for the repo's tools.** A scratch copy of this config root with the `uv` entry deleted from `mise.lock`, plain `mise install` → `ERROR Failed to install aqua:astral-sh/uv@0.13: uv@0.13 is not in the lockfile`, exit 1. The control — the same copy with `[tool_config]` stripped — exits 0, re-resolving and rewriting the lock, so the strictness is doing the work. - `mise exec -- make validate` and `mise exec -- make fmt` are unaffected: `fmt` exits 0 leaving nothing rewritten, `git status --porcelain` empty afterwards. Evidence taken on mise `2026.10.3`, the version this machine runs — `MISE_VERSION` (`2026.10.8`) only applies where the manager is absent, so the pin is not what was exercised here. ## Merge Danger **Door:** two-way. Two declarations; reverting the commit restores `--locked` and with it the old failure. The merge installs and removes nothing. **Blast Radius:** repo-local, with one consequence for whoever runs `make deps`: the target now also installs the machine's own global-config tools when they are missing — here all six were already present (`10/10 … in 4ms`), but a `latest` tool with a newer release will now be picked up by `make deps`. In exchange the target stops failing on a machine whose own config this repo knows nothing about, which is what the README's "one install step" promises.
`make deps` failed on any machine whose global mise config declares tools. mise's
`--locked` is invocation-wide — it also demanded lock entries for the global and
system scopes — while `mise lock` writes the project root alone, so the six
rolling tools in ~/.config/mise/config.toml failed with "not in the lockfile"
before the repo's own four were reached and the target exited 1.

The same refusal now lives in mise.toml as [tool_config] locked, which binds the
tools this config root declares, and `deps` installs without the flag.
bot-minos approved these changes 2026-10-15 07:58:11 +00:00
bot-minos left a comment

repo: olympus/infra-tracker · PR #30 · reviewed head 46ef6dd75a · round 1/5 · verdict: MERGE

Recommendation: merge

Spec source. The body links no issue. It names TR-33 (Vikunja, closed) and WR-3 (parent spec, open); both were fetched from the tracker at vikunja.thepit.space (projects 3 and 5), which is where the repo's external_tracker and docs/agents/issue-tracker.md point. The body's other claim — "no Forgejo issue covers this" — holds: the forge's issue list returns 29 entries and all 29 are pull requests.

Standards — 0 findings

Judged against AGENTS.md, README.md §Requirements/§Running, GLOSSARY.md, docs/adr/0001–0003, docs/agents/*.md, and .agents/skills/pr/SKILL.md.

  • AGENTS.md §Pull requests requires the pr skill's shape. ## Summary, ## Evidence and ## Merge Danger are all present. The template's <one-word description> for Blast Radius is a placeholder rather than the live convention: the repo's own bodies (#29, #21, #19, #10) all carry prose there.
  • GLOSSARY.md reserves capital-T Target for the environment a test run drives (_Avoid_: environment, instance). The added prose uses the lowercase make verb target — Makefile:132-137, mise.toml:7-8. Correct.
  • README.md:16-20 and AGENTS.md:5-7 still describe the declaration and the lock truthfully. Neither links to an issue, as TR-33 criterion 6 requires.

Spec — 1 finding

  • ADVISORY — WR-3 §Implementation Decisions now contradicts the code. WR-3 records the mechanism as "installation is mise install --locked". This change replaces that with [tool_config] locked (mise.toml:9-10) and nothing updates the written decision. WR-3 user story 9 asks for the rule to be recorded "so that a future project inherits the standard instead of rediscovering why it exists" — a project that copies the decision as written re-lands exactly the defect this PR fixes. The spec lives in the workshop project, outside this diff, so it does not block here; it wants a follow-up in WR-3. Every TR-33 acceptance criterion still holds — see below.

What I verified, and how

mise 2026.10.8 — the version Makefile:35 pins — on this host, against refs/pull/30/head, which resolves to the head branch fix/deps-locked-scope at 46ef6dd; main is 32bee9a, the merge-base, so the branch is current with main (ADR-003).

Claim Method Result
[tool_config] locked is real and effective mise config parses it; behaviour below mise's own schema: "policy for tools declared by this config root"
--locked is invocation-wide project config root beside a synthetic global config declaring jq with no lock entry → mise install --locked rc=1, jq@1.7 is not in the lockfile — the reported failure reproduced, on a tool this repo never declares
The head's mechanism is config-root scoped same setup, mise install, no flag rc=0 — global jq resolved, the repo's four installed from the lock
The refusal still holds for the repo's own tools scratch config root with the [[tools.uv]] block deleted from mise.lock head config rc=1, uv@0.13 is not in the lockfile; control with [tool_config] stripped rc=0 — the author's red/green pair reproduced
make deps end to end at head clean clone, make deps rc=0, 4/4 tools, community.postgresql:5.0.0 into the repo-owned path, git status --porcelain empty — the lock is not rewritten
A bare machine still installs from the lock fresh MISE_DATA_DIR holding none of the tools, mise install rc=0, 4/4 in 9.2s, lock unchanged — TR-33 criterion 1 intact
mise lock stays project-scoped (Makefile:136) mise lock with a global jq declared processed 4 tool(s): uv, opentofu, python, pypi:ansible-core; no jq entry written
fmt unaffected mise exec -- make fmt, then git status --porcelain rc=0, nothing rewritten

Every file in the diff is accounted for: Makefile:148 (the flag removed) and mise.toml:9-10 (the replacement policy), with the reasoning at Makefile:132-137. No file the change should have touched is missing.

Scope note, not a finding: [tool_config] locked is a config-root policy, so it binds every mise invocation in this tree, not only deps — mise exec reads it too. The lock is complete, so nothing changes in practice today, and mise.toml:7 states the scope correctly.

What I could not verify

  • The author's machine-specific evidence. The failing host — six rolling tools in ~/.config/mise/config.toml, mise 2026.10.3, 10/10 tools in 4ms — is not this host, which has no ~/.config/mise at all. I reproduced the mechanism by synthesising an equivalent global config on the pinned 2026.10.8; the specific counts are the author's, not re-run here.
  • mise exec -- make validate. It fails on this host at vikunja/guest/keys.tf:3 — ~/.ssh/id_ed25519_ansible.pub does not exist. That is the one-time prerequisite docs/reference/guest.md documents, not a defect of this diff, and validate touches nothing the change edits.
  • Automated checks. The repo carries no workflow under .github/.forgejo and 46ef6dd has no commit statuses, so ADR-003's "the checks gate the merge" is vacuous here — a gap WR-3 §Out of Scope anticipates rather than something this change owes.

Summary

  • Standards: 0 findings — worst: none.
  • Spec: 1 finding (1 ADVISORY, 0 BLOCKER) — worst: WR-3's written decision now contradicts the implemented mechanism; the code is right and the spec text is stale.
  • 1 advisory, 0 blockers → merge. The advisory travels as advice and wants a follow-up in WR-3, not another round here.
repo: olympus/infra-tracker · PR #30 · reviewed head 46ef6dd75a7949c6a080e05642b40c321a495131 · round 1/5 · verdict: MERGE Recommendation: merge **Spec source.** The body links no issue. It names TR-33 (Vikunja, closed) and WR-3 (parent spec, open); both were fetched from the tracker at `vikunja.thepit.space` (projects 3 and 5), which is where the repo's `external_tracker` and `docs/agents/issue-tracker.md` point. The body's other claim — "no Forgejo issue covers this" — holds: the forge's issue list returns 29 entries and all 29 are pull requests. ## Standards — 0 findings Judged against `AGENTS.md`, `README.md` §Requirements/§Running, `GLOSSARY.md`, `docs/adr/0001`–`0003`, `docs/agents/*.md`, and `.agents/skills/pr/SKILL.md`. - `AGENTS.md` §Pull requests requires the `pr` skill's shape. `## Summary`, `## Evidence` and `## Merge Danger` are all present. The template's `<one-word description>` for Blast Radius is a placeholder rather than the live convention: the repo's own bodies (#29, #21, #19, #10) all carry prose there. - `GLOSSARY.md` reserves capital-T **Target** for the environment a test run drives (`_Avoid_: environment, instance`). The added prose uses the lowercase make verb `target` — `Makefile:132-137`, `mise.toml:7-8`. Correct. - `README.md:16-20` and `AGENTS.md:5-7` still describe the declaration and the lock truthfully. Neither links to an issue, as TR-33 criterion 6 requires. ## Spec — 1 finding - **ADVISORY — WR-3 §Implementation Decisions now contradicts the code.** WR-3 records the mechanism as *"installation is `mise install --locked`"*. This change replaces that with `[tool_config] locked` (`mise.toml:9-10`) and nothing updates the written decision. WR-3 user story 9 asks for the rule to be recorded *"so that a future project inherits the standard instead of rediscovering why it exists"* — a project that copies the decision as written re-lands exactly the defect this PR fixes. The spec lives in the `workshop` project, outside this diff, so it does not block here; it wants a follow-up in WR-3. Every TR-33 acceptance criterion still holds — see below. ## What I verified, and how `mise 2026.10.8` — the version `Makefile:35` pins — on this host, against `refs/pull/30/head`, which resolves to the head branch `fix/deps-locked-scope` at `46ef6dd`; `main` is `32bee9a`, the merge-base, so the branch is current with `main` (ADR-003). | Claim | Method | Result | | --- | --- | --- | | `[tool_config] locked` is real and effective | `mise config` parses it; behaviour below | mise's own schema: *"policy for tools declared by this config root"* | | `--locked` is invocation-wide | project config root beside a synthetic global config declaring `jq` with no lock entry → `mise install --locked` | **rc=1, `jq@1.7 is not in the lockfile`** — the reported failure reproduced, on a tool this repo never declares | | The head's mechanism is config-root scoped | same setup, `mise install`, no flag | **rc=0** — global `jq` resolved, the repo's four installed from the lock | | The refusal still holds for the repo's own tools | scratch config root with the `[[tools.uv]]` block deleted from `mise.lock` | head config **rc=1, `uv@0.13 is not in the lockfile`**; control with `[tool_config]` stripped **rc=0** — the author's red/green pair reproduced | | `make deps` end to end at head | clean clone, `make deps` | **rc=0**, 4/4 tools, `community.postgresql:5.0.0` into the repo-owned path, `git status --porcelain` empty — the lock is not rewritten | | A bare machine still installs from the lock | fresh `MISE_DATA_DIR` holding none of the tools, `mise install` | **rc=0**, 4/4 in 9.2s, lock unchanged — TR-33 criterion 1 intact | | `mise lock` stays project-scoped (`Makefile:136`) | `mise lock` with a global `jq` declared | processed `4 tool(s): uv, opentofu, python, pypi:ansible-core`; no `jq` entry written | | `fmt` unaffected | `mise exec -- make fmt`, then `git status --porcelain` | rc=0, nothing rewritten | Every file in the diff is accounted for: `Makefile:148` (the flag removed) and `mise.toml:9-10` (the replacement policy), with the reasoning at `Makefile:132-137`. No file the change should have touched is missing. Scope note, not a finding: `[tool_config] locked` is a config-root policy, so it binds every mise invocation in this tree, not only `deps` — `mise exec` reads it too. The lock is complete, so nothing changes in practice today, and `mise.toml:7` states the scope correctly. ## What I could not verify - **The author's machine-specific evidence.** The failing host — six rolling tools in `~/.config/mise/config.toml`, mise `2026.10.3`, `10/10` tools in `4ms` — is not this host, which has no `~/.config/mise` at all. I reproduced the mechanism by synthesising an equivalent global config on the pinned `2026.10.8`; the specific counts are the author's, not re-run here. - **`mise exec -- make validate`.** It fails on this host at `vikunja/guest/keys.tf:3` — `~/.ssh/id_ed25519_ansible.pub` does not exist. That is the one-time prerequisite `docs/reference/guest.md` documents, not a defect of this diff, and `validate` touches nothing the change edits. - **Automated checks.** The repo carries no workflow under `.github`/`.forgejo` and `46ef6dd` has no commit statuses, so ADR-003's "the checks gate the merge" is vacuous here — a gap WR-3 §Out of Scope anticipates rather than something this change owes. ## Summary - **Standards: 0 findings** — worst: none. - **Spec: 1 finding** (1 ADVISORY, 0 BLOCKER) — worst: WR-3's written decision now contradicts the implemented mechanism; the code is right and the spec text is stale. - **1 advisory, 0 blockers** → merge. The advisory travels as advice and wants a follow-up in WR-3, not another round here.
pit merged commit 84db7f4e74 into main 2026-10-15 08:04:44 +00:00
pit deleted branch fix/deps-locked-scope 2026-10-15 08:04:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!30
No description provided.