Skip to content

Remote runtimes: apply instance runtime packages on Sprites and Fly Machines (refuse until supported) #3807

Done

Description

@integry

Scope update (2026-11-26): the derived Fly Machines image (point 2, and the Fly part of the image-digest acceptance) moved to #3821. In this issue, Fly Machines install the configured packages at every Machine start, with a time limit, the install time recorded, and a PROPR_FLY_MACHINES_MAX cap.

Follow-up to the runtime-abstraction epic (#3758).

Problem

Instance runtime packages (the apt list in Settings, validated by validateAgentRuntimePackages) are applied only by building a derived Docker image (agentRuntimeImageBuilder.ts). Remote runtimes never use that image:

  • Sprites have no image. They are provisioned by scripts/sprites-agent-setup.sh (spritesProvisioning.ts), and Sprites-only workers skip Docker image preparation entirely (agentImagePreparation.ts).
  • Fly Machines run the fixed PROPR_FLY_IMAGE digest.

Nothing refuses or warns, so a run that needs a configured package (for example postgresql-client) starts and fails mid-task. Today's workaround is .propr/setup.sh, which both remote runtimes run before every run, but it repeats the install each time.

Proposal

  1. Sprites: install the configured packages during Sprite provisioning, after sprites-agent-setup.sh and before the checkpoint. Include a digest of the normalized package list in the pool key / deployment marker, so that warm Sprites with a different package set are retired and reprovisioned, not reused. Package install failures fail provisioning with the apt error, just as a Docker build failure does.
  2. Fly Machines: install the configured packages at every Machine start, as root, before the agent starts: with a time limit, the install time recorded (packageInstallMs), a clear failure with the end of apt's output, and nothing when no packages are configured. Respect the PROPR_FLY_MACHINES_MAX cap. (Baking the packages into a derived image is out of scope here and tracked in Fly Machines: bake runtime packages into a derived agent image #3821.)
  3. Until both land, refuse instead of skipping silently: when runtime packages are configured and the selected runtime can't apply them, refuse the run with a clear capability error (or block the setting with an explanation). Add a supportsRuntimePackages capability alongside supportsExtensions so the check stays in the registry.
  4. Docs: document per runtime how packages are applied, with .propr/setup.sh as the per-repository alternative, in docs/docs/architecture/agent-runtime.md and the Fly tutorial.

Acceptance

  • Live: with a package configured that the agent image lacks, a Sprites run and a Fly Machines run can each run it. After the package list changes, the next Sprites run uses a newly provisioned Sprite, and the next Fly Machines run installs the new list at start. (A new derived image digest for Fly is Fly Machines: bake runtime packages into a derived agent image #3821's acceptance.)
  • With a runtime that can't apply packages, the run is refused with the capability message.

Activity

  1. propr-dev commented on Nov 26, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3807/claude-opus-5-5-remote-runtimes-apply-ins-20261126-0040-t2w
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3807-20261126-0040-claude-opus-5-5-t2w

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3816, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions