oficina / equipo Public

Merge branch 'staging-pi-root' into main

Merge staging-pi-root: Pi on the owner's staging runner

release installs the pinned Pi for the owner's staging runner with
the release runner's idempotent install-pi and sets EQUIPO_PI_ROOT;
the suite's runner gets neither. Hosted CI passed on 0df2b88.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev b52a15551c19d429612c0a103f40c1f75aff4693 parent 379fe0dparent 0df2b88
2 files changed, +14 −0
  • scripts/runner-reference-allowlist.json +7 −0
  • scripts/staging-thin.py +7 −0

CI passed — run details

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