make quality-high's autoformat rewrote this file on main e86f2f08d4, leaving every gate run with a dirty tree. The change is exactly ruff format's output (cmp against ruff format of HEAD is empty).
🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: pending, make quality-high on this branch
Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two review points on #1951. When checkout A's .env was loaded and checkout B's loader runs in the same shell with the same INFINITO_INSTANCE, the instance reset never fired, the preserve loop kept A's INFINITO_CONTAINER as a caller value and B's loader then recorded B as loaded, so the stale value stuck. On a checkout change the loader now sources the previous .env in a subshell and unsets every key whose value is still that file's value; caller overrides differ from it and survive. The previous file is read only when it is a checkout's .env, with scripts/meta/env/load.sh beside it.
A command-line ENV_SH beats a := assignment in GNU make and travels to every sub-make through MAKEFLAGS, so make -C B ENV_SH=<A's loader> still ran A's loader. The Makefile now sets it with override.
Suppression: nocheck env-loader-internal-guard on the new INFINITO_ENV_LOADED_FILE read, as on the existing guard lines (operator-approved 2026-11-14). MEDUSA covers none of the 4 files; reviewed by hand.
🎯 Fix: 92 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~100 %
🏆 Score: 88
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A make -C into another worktree inherited ENV_SH and the loaded-env guard of the calling checkout, so the target worktree ran with the caller's .env (slot, container, subnet). ENV_SH is now always the current checkout's loader, and load.sh records which .env it loaded, so a second checkout reloads its own.
The Makefile lints shared no target regex: two of three read VAR := assignments as targets, so ENV_SH := failed the ascending-order lint. One TARGET_RE in the lint package now excludes :=, ::= and :::= for all three, with its own test.
🎯 Fix: 92 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: ~100 %
🏆 Score: 89
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The loader copies INFINITO_DISTRO into a loader-local variable before it
compares the value with the one in .env. With INFINITO_DISTRO read directly in
that condition, `shellcheck -x scripts/meta/resolve/apps.sh` reported SC2153
for INFINITO_DISTROS, which apps.sh takes from the sourced .env; with the copy
it reports nothing, as on main.
The loader test checks that .env is unchanged with filecmp against the file it
was copied from, instead of reading it twice with Path.read_bytes, which
test_no_uncached_file_reads rejects.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A compose deploy job labelled centos or arch built its stack image from
pkgmgr-debian and ran it as infinito_nexus_debian (#794). distros.sh
exports INFINITO_DISTRO per iteration and sources load.sh again, but the
loader returned early because INFINITO_ENV_LOADED and the .env mtime were
unchanged. A full reload would not have helped either: the debian values
were already exported, so the restore step kept them as caller intent.
load.sh now records the distro it loaded for. Another INFINITO_DISTRO
defeats the early return and drops INFINITO_CONTAINER,
INFINITO_PARENT_IMAGE and INFINITO_IMAGE, the three keys the env handlers
derive from the distro. When the requested distro also differs from the
one .env was generated for, the loader sources a set that
`python -m cli.meta.env --output` generates for it in a private temp
directory and leaves .env untouched, so a local multi-distro run does not
switch the checkout's distro. A caller value set for the loaded distro
still wins.
Verified: tests/unit/python/scripts/meta/env/test_load.py and the new
distros.sh case pass. Against main's loader both fail with the symptom of
the issue: INFINITO_DISTRO=centos next to infinito_nexus_debian and
pkgmgr-debian:stable, and distros.sh handing debian, arch and centos the
same debian parent. shellcheck is clean.
Consequence: CI jobs labelled arch, ubuntu, fedora or centos now build
and deploy that distro, so a failure that shows up there was masked
before.
feature/store-i18n carries 3f973eb137, which resolves the parent image
for scripts/image/push.sh on its own, and 05e4dbafcb, which inserts the
INFINITO_INSTANCE slot check into the block this commit restructures. The
merge keeps the slot check ahead of the distro check.
Closes#794
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>