Skip to content

Remote runtimes: support the Extension Library (skill bundles, URL and package MCP servers) on Sprites and Fly Machines #3808

Done

Description

@integry

Follow-up to the runtime-abstraction epic (#3758). Sibling of #3807 (runtime packages).

Problem

Both remote runtimes declare supportsExtensions: false (spritesRuntime.ts, flyMachinesRuntime.ts). runAgent (agents/runtime/registry.ts) throws an AgentRuntimeCapabilityError whenever extensionLaunchForRun prepared an extension launch. So:

  • explicitly requested library MCP servers or skill bundles are refused on Sprites and Fly Machines;
  • auto-applied library items probably make every issue task and PR follow-up fail on a remote runtime, even ones that never asked for an extension (this reading of the code still needs a test to confirm).

Production's library is empty today, but this blocks anyone who uses the Extension Library together with a remote runtime.

Already working, and must keep working: skills, commands, agents and instruction files in the provider config dir travel with the per-run credential copy (providerManifests.ts); repository skills and AGENTS.md/CLAUDE.md arrive with the clone; ProPR's own MCP is reached over the reachable URL.

Proposal

  1. Skill bundles: stage the resolved bundles (skillStaging.ts) into the run's uploaded files, the same way per-run credential copies already reach remote runs (agentRunFileUpload.ts). Put them at each provider's skills path inside the run, keep the staged-content validation, and give them the same lifetime and cleanup as the credential copies.
  2. Remote (URL) MCP servers: pass them through unchanged in the provider config the run receives. They only need network reach, subject to the network mode: on Sprites, restricted mode must allowlist their hosts, as Docker does.
  3. Package (stdio) MCP servers:
    • Sprites: install verified packages into the Sprite during provisioning, keyed by integrity value, as ExtensionPackageCache does for Docker. Fold the package-server set's digest into the pool key / deployment marker, so warm Sprites match the library revision.
    • Fly Machines: either install at run start from the verified cache, uploaded as run files, or bake them into the derived agent image from Remote runtimes: apply instance runtime packages on Sprites and Fly Machines (refuse until supported) #3807. Choose whichever keeps cold starts acceptable, and document it.
    • Refuse only when a server type truly can't run remotely, and name the server in the error.
  4. Capability model: replace the single supportsExtensions flag with granular capabilities (skills, remoteMcp, packageMcp), so the registry refuses only what a runtime can't do.
  5. Interim behaviour, if the above lands in parts: on a runtime that can't apply an auto-applied item, drop that item for the run, record a visible note in the run's events and on the issue/PR comment, and keep the run going. Keep refusing explicitly requested items with the capability error.
  6. Docs: add a per-runtime table of what works (config-dir skills, repository skills, library skill bundles, URL MCP, package MCP, ProPR MCP) to docs/docs/architecture/agent-runtime.md and the Fly tutorial.

Acceptance

  • Unit tests: auto-applied items on a remote runtime don't refuse the run; explicit unsupported items do; granular capability checks.
  • Live on Sprites and on Fly Machines, each with Claude and Codex:
    • a library skill bundle is visible to the agent and used;
    • a URL MCP server is callable;
    • a package MCP server is callable;
    • after a library revision changes a package server, the next Sprites run uses a reprovisioned Sprite.

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: 3808/claude-opus-5-5-remote-runtimes-support-t-20261126-0040-oab
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3808-20261126-0040-claude-opus-5-5-oab

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3818, 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