oficina / equipo Public

staging-thin: install Pi for the owner's runner on every release

The owner's staging runner gets EQUIPO_PI_ROOT=<staging root>/pi, and
install() runs the release runner's install-pi there first. It is
idempotent: a tree matching its pins returns at once, otherwise Pi is
installed and its digests checked. The suite's runner gets neither.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 1b3a67dda86ac8d7b8cc28a407b4dde811c2cc2e parent ccfa18e
2 files changed, +14 −0
  • scripts/runner-reference-allowlist.json +7 −0
  • scripts/staging-thin.py +7 −0
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index 61382f4b..bb501b1e 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -14894,5 +14894,12 @@
"match": "node",
"count": 1,
"reason": "The CI box installs the pinned Pi for the real-Pi tests: Node by its digests and the npm tree from the committed lockfile (connectors spec S2)."
+ },
+ {
+ "path": "scripts/staging-thin.py",
+ "line_sha256": "6c7ba0a3a6322df7a87dbe3cbab3a1fa036bd903f69e5aa97f2981185d46f9ae",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Staging installs the release runner's pinned Pi for the owner's runner (install-pi); a release artifact path, not a dead reference."
}
]
diff --git a/scripts/staging-thin.py b/scripts/staging-thin.py
index f7c8585e..ee7db7c1 100755
--- a/scripts/staging-thin.py
+++ b/scripts/staging-thin.py
@@ -326,6 +326,13 @@ def install(sha, release, root, unit_name, person, cookie_path, create):
# The owner's runner pairs with this machine's CARLOS devbox for
# previews (links on the tailnet); the suite's never publishes.
env.update(EQUIPO_PREVIEW_HOST='devbox', EQUIPO_CARLOS_PATH=carlos)
+ if root == ROOT:
+ # The owner's runner has the pinned Pi (metered connections). The
+ # release's install-pi is idempotent: it returns at once when the
+ # tree under pi/ already matches its pins, and otherwise installs
+ # it and checks the digests, so a restage never leaves Pi missing.
+ run([str(release / 'equipo-runner'), 'install-pi', str(root / 'pi')])
+ env.update(EQUIPO_PI_ROOT=str(root / 'pi'))
private(root / 'service.env', ''.join(f'{k}={json.dumps(v)}\n' for k, v in sorted(env.items())))
# Before enrolment or the unit starts anything: the runner holds every
# program in this configuration (bubblewrap, claude, codex and its code