Skip to content

fix(computers): a release's published image survives a newer composer, and a shipped app's protocol pin stands - #856

Merged
earakely-scale merged 2 commits into
mainfrom
edgararakelyan/fd-6454-a-promoted-chromium-stops-deploying
Nov 21, 2026
Merged

earakely-scale merged 2 commits into
mainfrom
edgararakelyan/fd-6454-a-promoted-chromium-stops-deploying

Conversation

@earakely-scale

@earakely-scale earakely-scale commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

What

A build the composer pulled from a release's published image now survives a later release's composer, and an app whose requirements pin the protocol exactly keeps its pin.

  • composed.stale(): a record marked published is never stale, whatever composer recorded it. A deploy boots it, _rank keeps it above a failure, and Record.built() keeps it in the env's computer artifact. User-composed builds still rebuild when the composer's code changes, as before.
  • composer._composed(): a published build recorded but not yet probed is probed as it is, never composed again, so a later composer can't swap the release's image for a worker build.
  • composer._protocol_spec(), used by _wants() and the macOS, Windows and Omarchy part builders alike: when a layer's requirements pin agentenv-framework-protocol exactly (== or ===, no wildcard, no marker), an app gets the protocol with its app extra at that pinned version, and a driver gets nothing added. That replaces this release's pin or a checkout's source. A floor, a range or a pin behind a marker still gets them, so user apps keep the composer's SDK.

Why

On Nov 20 every prod deploy of an env using chromium v2 was refused with "chromium has no ready build to deploy; its builds are {'container/amd64': 'failed', 'container/arm64': 'failed'}".

  1. v2 was promoted from 0.9.1582. The release pins its shipped envs to its own protocol (.github/scripts/shipped_bundles.py), so v2's files say agentenv-framework-protocol==0.1.597.
  2. 0.9.1594 changed the composer's code (fix(computers): a compose here tries a failed download again, and the prune test pulls its base before building #811, fix(computers): the ubuntu-24.04 desktop's panel clock redraws when the universe clock is armed or jumps #806, feat(protocol): the SDK serves atif/1 from an agent's ATIF adapter #807, feat(task-steps): computer_exec, a command run inside a computer through its driver #749). After the worker moved past it, a deploy saw v2's record as stale, though the composer had pulled that image from the release by digest ("published": true).
  3. On 0.9.1603 the first chromium deploy recomposed v2. The composer adds agentenv-framework-protocol[app]==0.1.618 to the app's venv, and pip refused: "The user requested agentenv-framework-protocol==0.1.618 / The user requested agentenv-framework-protocol==0.1.597".
  4. A stale record ranks below a failure, so the failure replaced the ready record.

The same two pins also broke a new computer composed with the chromium v2 app.

Design note with the decisions: https://claude.ai/artifact/A9MX6akNmcRRhsAdjbkjd9 (FD-6454).

Tests

  • New unit tests in tst/unit/env/envs/test_computer_env.py:
    • a ready build another composer recorded is composed again unless a release published it;
    • an unprobed published build is probed as it is, with no resolve or build;
    • the rank keeps a published record over a failure or a building one;
    • an app's venv adds its protocol at the version its requirements pin, else at this release (pinned, another spelling, without the app extra, on a condition, floor, wildcard, not named);
    • a checkout adds its source protocol only to venvs that don't pin one;
    • each disk and bundle form adds an app's protocol as a container does.
  • Against the old code, all 7 new cases for the fixed behaviour fail; the 6 controls pass.
  • tst/unit/env/envs/, bundle register and folder tests, published images, release protocol pins and drivers: 1416 passed, 1 failed. The failure is test_disk_recipe.py::test_a_windows_install_boots_its_iso_first_pressing_enter_and_finds_its_answers_on_a_removable_drive, which fails the same way on main here.

Cross-release e2e (local stores and Docker, arm64 native, amd64 skipped)

Two real installs share one local store: release 0.9.1607 from the index (composer sha256:f855b0b6, the one that failed in prod) and this branch (sha256:f4cb5f77). Each control runs main's code plus a comment-only change to composed.py, so its composer differs while its logic doesn't, against a copy of the store.

Step Control (main's code) This branch
A. agent-env run of a bundle deploying chromium, under 0.9.1607 reusing the image agent-env's release published: arm64 ready, amd64 unverified, both published: true
B. agent-env env deploy --id @local/agentenv-framework/browsers/chromium --version 1 both arches failed at resolve: ... ResolutionImpossible, then has no ready build to deploy; its builds are {'container/amd64': 'failed', 'container/arm64': 'failed'}, as in prod deployed in 6 s from ghcr.io/scaleapi/agentenv-chromium@sha256:cef62c84…, no compose, the record unchanged
C. agent-env env build of a desktop 0.9.1607 composed with chromium v1 as its app failed at resolve: ... ResolutionImpossible, as computer-deft-wolf-uwkdct did in prod resolved, built and probed ready in 110 s

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no outstanding actionable issues were found.

Summary

Keeps published images usable after the composer changes and preserves an app’s exact protocol version across supported build forms.

  • Release-published computer images stay usable after the composer changes.
  • App builds keep an exact protocol version named in their requirements.

Reviews (5) · Last reviewed commit: "fix(computers): a pinned app keeps its a..." · Reviewed by Greptile

…, and a shipped app's protocol pin stands

A deploy recomposed any build another composer recorded, including the image a
release published that the composer had pulled by digest. A promoted chromium
from one release could then only fail on a worker of a later one: its files pin
that release's protocol, and the composer adds its own exact pin to every app's
venv, so pip refused both (prod, Nov 20). The failure then replaced the ready
record, since a stale record ranks below anything.

- stale(): a record marked published is never stale, whatever composer
  recorded it, so deploys boot it, the rank keeps it and the computer artifact
  keeps it. User-composed builds still rebuild on a composer change.
- A published build recorded but not yet probed is probed as it is, never
  composed again.
- _wants(): a layer whose requirements pin the protocol exactly (==, ===) adds
  no protocol of its own, from this release or this checkout's source; a floor
  or a range still gets it.

FD-6454

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale marked this pull request as ready for review November 21, 2026 02:28
@earakely-scale
earakely-scale requested a review from a team as a code owner November 21, 2026 02:28
…n pins nothing, and every form keeps the pin

Greptile on #856:
- An app pinning the protocol without the app extra lost the server
  dependencies the composer's added [app] requirement brought. The composer now
  adds the protocol with the extra at the version the app pins.
- A pin behind an environment marker may not apply where the venv is built, so
  it no longer counts as a pin.
- The macOS VM bundle, Windows disk and Omarchy disk parts take the same rule as
  a container (_protocol_spec), rather than adding this release's pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@earakely-scale
earakely-scale merged commit 4fb57b5 into main Nov 21, 2026
37 checks passed
@earakely-scale
earakely-scale deleted the edgararakelyan/fd-6454-a-promoted-chromium-stops-deploying branch November 21, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant