Repository navigation
Description
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_MAXcap.
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_IMAGEdigest.
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
- Sprites: install the configured packages during Sprite provisioning, after
sprites-agent-setup.shand 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. - 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 thePROPR_FLY_MACHINES_MAXcap. (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.) - 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
supportsRuntimePackagescapability alongsidesupportsExtensionsso the check stays in the registry. - Docs: document per runtime how packages are applied, with
.propr/setup.shas the per-repository alternative, indocs/docs/architecture/agent-runtime.mdand 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
propr-dev commentedon Nov 26, 2026
🤖 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:
claudeclaude-opus-5-53807/claude-opus-5-5-remote-runtimes-apply-ins-20261126-0040-t2w3758-epic-runtime-abstraction-sc0issue-3807-20261126-0040-claude-opus-5-5-t2w🔍 Track Task Execution
integry commentedon Dec 1, 2026
Done in #3816, which merged into the runtime epic; the epic merged into
mainwith #3774 and ships in 0.9.4.