Repository navigation
Description
Creating a fresh Sprite and re-cloning per task wastes time; Free-plan orgs are limited to 3 Sprites. A pool of long-lived runner Sprites reset from a clean checkpoint between tasks gives fast, isolated starts.
Acceptance:
- Pool of N runner Sprites (configurable, default 2, respects org limit), leased per run with admission integration (queue when all busy).
- Base checkpoint after setup script; per-repo warm clone checkpoint optional; restore before each lease so no state leaks between runs.
- Health check and automatic re-provisioning of a broken runner.
- Pool status visible in Web UI/
propr statusand MCP.
Implementation
Add packages/core/src/agents/runtime/spritesPool.ts backed by Redis leases. Use createCheckpoint/restoreCheckpoint from @fly/sprites; record restore timings in run usage.
Update 2026-11-24: start from what is already on the epic branch. #3764 landed as PR #3791 (from the #3789 restart), not #3786. It already includes:
packages/core/src/agents/runtime/sprites/spritesProvisioning.tsSpritePool: an in-process idle pool. Each Sprite is provisioned once with a clean checkpoint, restored on every release, destroyed if the restore fails, never adopted by name, and closed at worker shutdown viaSpritesRuntime.close()./tmpis bind-mounted from checkpoint-backed scratch, because Sprite checkpoints do NOT cover the real/tmp(a separate disk; verified live).
So this issue is now about what is left: extend SpritePool, don't replace it.
- Redis-backed leases so several workers share a bounded pool (
PROPR_SPRITES_MAX, default 2, at most the org limit of 3 on the Free plan), with queueing in admission when all are busy. - Orphan reaping. Sprites carry a pool/instance marker, and on startup a worker deletes
propr-*Sprites no live lease owns. Today a crashed worker leaks its idle Sprites. - An optional per-repo warm-clone checkpoint.
- Pool status in
propr status, the Web UI and MCP. Record restore timings in run usage.
Live-verified numbers: first provisioning is about 36 s; each warm run (a CLI --version through the clone transport) is about 40–55 s.
Activity
integry commentedon Nov 24, 2026
Measured Sprite overhead (2026-11-24,
@fly/sprites0.2.5, client on an EU server), for sizing the runner pool:integry/propr(87 MB)git fetchin a warm cloneImplications:
git clean -fdx && git reset --hardplus a credential wipe for same-repo reuse, with a full restore only between different repos or tenants.propr-dev commentedon Nov 24, 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-53765/claude-opus-5-5-sprites-runner-pool-with--20261124-2108-n3l3758-epic-runtime-abstraction-sc0issue-3765-20261124-2108-claude-opus-5-5-n3l🔍 Track Task Execution
feat: add shared Sprites runner pool with checkpoint reset and warm…
integry commentedon Nov 25, 2026
Done via #3800 (Sprites runner pool restart), merged into the epic after live verification on real Sprites: orphan cleanup, Redis flush, and the Sprites runtime live test.