Repository navigation
sandbox: refresh the pins per architecture, and correct the sweep's hold rules - #1291
Conversation
One pin serves every runner, so reading only `binary-amd64` let the sweep adopt a version the arm64 pockets had not published yet: the install would succeed on GitHub's x64 boxes and fail on an `ubuntu-24.04-arm` one, with nothing in the refresh output showing the split. The refresh now resolves each architecture and takes only what they agree on. A divergence stops it rather than choosing a side, because the versions differ only while one arch is behind, and the answer to that is a later instant. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
left a comment
There was a problem hiding this comment.
The arch gap is real and the fix lands in the right place: I ran the PR's script against the live snapshot service, and snapshot.ubuntu.com/ubuntu does serve binary-arm64 for every pocket and component the script reads, with genuinely per-arch contents — so the agreement check has teeth rather than comparing an index against itself.
It also fires right now. noble-security published bubblewrap 0.9.0-1ubuntu0.3 for amd64 between 21:00Z and 22:00Z today; arm64 carries no 0.9.0-1ubuntu0.3 in any pocket. Run with its default instant, the script exits 1 with nothing moved — so the new branch's first real exercise is a held security update, and the next weekly sweep hits it rather than producing the usual one-line diff.
The halt itself is the right call, and holding the whole set is defensible: once a security version is copied into noble-updates, the version it superseded is no longer listed at a later instant, so moving PACKAGES_RESOLVED_AT while pinning a held BUBBLEWRAP_VERSION is not generally satisfiable. Worth naming in the PR body, though, since it means an arch split on one package also parks the instant move whose own purpose is re-resolving SRT's npm tree.
What does need a change is the message, per the inline suggestion: try a later instant is the one remedy unavailable to the run that hits it — --instant already defaults to the current hour, and a future timestamp resolves to the same split. The operator needs to know that nothing moved and that a security update waiting on arm64 is a finding to report, which is running-tend's existing rule for a pin that will not move.
What the snapshot indexes hold
bubblewrap in main, at 2026-09-17T22:00:00Z:
amd64 noble 0.9.0-1build1
amd64 noble-updates 0.9.0-1ubuntu0.2
amd64 noble-security 0.9.0-1ubuntu0.3
arm64 noble 0.9.0-1build1
arm64 noble-updates 0.9.0-1ubuntu0.2
Resolving the PR's script against a series of instants: 18:00Z (the currently pinned one) through 21:00Z agree on 0.9.0-1ubuntu0.2 and exit 0 with all four constants unchanged, which confirms #1289's live pin is valid on arm64. 22:00Z onward halt on the split above.
The halt message named the one remedy the run that hits it cannot take: `--instant` already defaults to the current hour, so a later timestamp resolves to the same split. It now says that nothing moved, the instant included, and points at the sweep's existing rule for a pin that will not move. That rule assumed a newer version is a fix. Today's archive disproves it: bubblewrap `0.9.0-1ubuntu0.3` is a `-security` upload that *drops* the CVE-2026-87766 patch `0.9.0-1ubuntu0.2` added, because it broke Flatpak. Staying on the pin is what keeps that fix, so the rule now says to read the changelog rather than the version order, and covers the revert case and the arch split alongside the bump. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
tend-agent
left a comment
There was a problem hiding this comment.
The revert branch the second commit adds is the case that is live today, and it is missing the parking note the arch-split paragraph right below it carries. install-sandbox-runtime.sh asks apt for bubblewrap=$BUBBLEWRAP_VERSION against the snapshot at PACKAGES_RESOLVED_AT, and the version a -security upload supersedes stops being listed once the successor reaches noble-updates — so "leave the pin where it is" parks the instant with it. Without that said, the obvious move in the week bubblewrap's proposal is a revert is to commit the instant alone, which is the one-line chore: re-pin the sandbox boundary (<date>) diff the section documents two paragraphs up, and it makes the version pin unsatisfiable. The inline suggestion adds the sentence.
The hold branch read as though a version could be parked while the weekly instant moved on, and the paragraph two above it invites exactly that — a one-line `chore: re-pin the sandbox boundary` diff. The two are not independently satisfiable: the install asks apt for an exact version at the pinned instant, each pocket lists one version, and the archive drops a superseded one within hours. bubblewrap `0.9.0-1ubuntu0.1` is listed in two pockets at 00:00Z today and in none by 18:00Z. Rather than repeat the parking note per branch, the section opens with the coupling, and the hold and arch-split cases then just say the whole set. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Version bump, lockfile, and the `## 0.2.11` section the release workflow publishes verbatim as the GitHub Release notes. 19 commits since 0.2.10. The headline is the skills change that just landed: the twelve cross-cutting `references/` files are now skills in their own right and `running-in-ci` is `run-tend`, so the harness's skill listing — which fires on the action rather than on picking a task — is the index ([#1305](#1305), [#1306](#1306)). Alongside it: `model:` forwards any name to the harness CLI so a consumer can pin an exact id ([#1294](#1294)), `install-tend` hands the OAuth mint to the user and drops the pty wrapper ([#1295](#1295)), the sandbox boundary's Ubuntu and npm packages resolve as of one recorded instant ([#1289](#1289), [#1291](#1291)), and `tend check` can verify release immutability from the releases when it lacks admin — a check that had never produced a verdict in a scheduled run ([#1290](#1290)). Each bullet was written from the commit's diff rather than its subject. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Follow-up to #1289, from its review's last open note.
refresh_sandbox_pins.pyderives the Debian versions the weekly sweep writes intoinstall-sandbox-runtime.sh, and it readbinary-amd64only. One pin serves every runner, so a version published for amd64 before arm64 would have installed fine on GitHub's x64 boxes and left the pin unsatisfiable on anubuntu-24.04-armone — with nothing in the refresh output showing the split, since the arch it read was happy.The refresh now resolves each architecture separately and takes only what they agree on. A divergence stops it rather than picking a side: the versions differ only while one arch is behind, so the answer is a later instant, not two pins or a pin that installs on one arch.
The split is live, and it is not the one you would guess
Between 21:00Z and 22:00Z today
noble-securitypublishedbubblewrap 0.9.0-1ubuntu0.3for amd64, with no arm64 counterpart in any pocket. So this branch's first real exercise is a halt, and the next weekly sweep hits it rather than producing the usual one-line diff.What that upload does matters more than the split:
It reverts the CVE-2026-87766 fix that
0.9.0-1ubuntu0.2added, because that fix broke Flatpak. Tend is pinned to0.9.0-1ubuntu0.2, so staying put is what keeps the symlink-traversal fix rather than what holds one back — the archive has now moved in both directions within a day, and the pin absorbed both. #1277's0o755container works under either resolution, so nothing there needs revisiting.That disproved the sweep rule #1289 shipped, which told the operator to treat a pin that will not move as a held security update. It now says to read the changelog rather than the version order, and covers the revert case and the arch split next to the ordinary bump.
Also corrected: the halt message named the one remedy unavailable to the run that hits it (
--instantalready defaults to the current hour, so a later timestamp resolves to the same split). It now says nothing moved, the instant included, and points at that rule.And the section now states, once and up front, that the four constants move together or not at all. Holding a version while the weekly instant moves on is not satisfiable — the install asks apt for an exact version at that instant, each pocket lists one version, and a superseded one is dropped within hours. Today's archive shows the timing:
0.9.0-1ubuntu0.1is listed in two pockets at00:00Zand in none by18:00Z. The hold and arch-split cases now just say "the whole set" rather than each re-deriving it.Verification
Both branches exercised. At the currently pinned instant, and every hour through 21:00Z, amd64 and arm64 agree and the script exits 0 with all four constants unchanged — which also confirms #1289's live pin is valid on arm64. From 22:00Z it halts, naming the package that split and both arches' versions.
test-sandboxdoes not exercise this script, so CI can only tell you the repo lints and the rest of the suite still passes.🤖 Generated with Claude Code