Repository navigation
[3925 by GPT-6.2 Sol] Sprites runtime: default pool of 2 parallel Sprites, and logins/health checks never blocked by running tasks - #3927
Conversation
Implemented #3925. The Fly wizard and `propr deploy fly` now default to two task Sprites and two jobs per worker. The validation deployment still uses 1/1. Interactive logins use a dedicated temporary third Sprite. A second login queues until that slot is free. Explicit health checks use a read-only API probe and need no Sprite slot. Settings → Maintenance → Agent runtime now lets admins resize the task pool without restarting workers and shows worker concurrency and the Free Plan limit. Verified with server tests, Playwright, TypeScript, and OpenAPI checks. The concurrency and login tests used a simulated Sprites provider. ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 511f42f Summary of ChangesFixed the lint failure behind Validate Changes on PR #3927. The core package build and the CI lint command passed locally, along with all 123 focused tests. The hosted check is pending a new run. Review digestRisk-tiered paths
Diff size: 1 file changed, +26/−19 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the lint failure behind **Validate Changes** on PR #3927. `SpritePool.acquire` scored 28 against ESLint’s limit of 20. Extracted the provisioning logic while preserving queue, retry, and cancellation behavior. [Failed CI run](https://github.com/integry/propr/actions/runs/46446008376/job/141943496770) The core package build and the CI lint command passed locally, along with all 123 focused tests. The hosted check is pending a new run. PR: #3927 Comment by: @propr-dev[bot] (ID: 7282543024) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
ℹ️ Analyzed the follow-up request by @github-actions[bot] Analysis SummaryPR #3927 already contains the fix. Extracting provisioning into a helper reduced Verified locally that all six changed core files pass lint with zero warnings, No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Full Test Suite Shard 2/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit b6e4543 Summary of ChangesFixed the sole failure in Full Test Suite Shard 2/4. The public The previously failing test and seven related test files passed on CI’s Node.js version. Review digestRisk-tiered paths
Diff size: 1 file changed, +1/−1 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the sole failure in Full Test Suite Shard 2/4. The public `@propr/shared` declaration for [Sprite capacity](/home/node/workspace/packages/shared/src/spriteCapacity.ts:7) now uses a plain string map, so TypeScript consumers can compile it without Node.js type definitions. [CI failure log](https://github.com/integry/propr/actions/runs/46448289270/job/141955773344) The previously failing test and seven related test files passed on CI’s Node.js version. `npm run test:prepare` also passed. The full shard still needs a GitHub Actions rerun. PR: #3927 Comment by: @propr-dev[bot] (ID: 7283496168) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR is ready to merge within the reviewed scope. It implements the two-task deployment defaults, separates interactive login capacity, and adds live task-pool sizing without broadening the architecture unnecessarily. ✅ Shared capacity enforcement — Redis admission checks enforce the task limit, total limit, and single-login limit together across workers. ✅ Scoped administration — The capacity endpoint requires runtime-management permission and validates that the requested pool leaves room for login. ✅ Relevant regression coverage — Added tests exercise concurrent tasks, cross-worker login admission, provider-capacity refusal, and live resizing. Current-head checks report 35 passed, with no failures or pending checks. This assessment is based on static review of the supplied diff and context; no commands or tests were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Test recovery with login inventoryConsider adding a recovery test containing both task and ScoreThe implementation meets the effective objective, has focused regression coverage, and has passing current-head checks. Static review found no demonstrated merge blockers. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved the only merge conflict for PR #3927 in spritesProvisioning.ts. The PR added error handling for Sprite creation requests rejected at the provider’s capacity limit. The target branch moved the adjacent The workspace scan found no remaining merge conflict markers. TypeScript syntax and whitespace checks passed, and all 76 focused tests passed. Git still lists the file as unmerged in its index because 🤖 Resolution Details
System-triggered merge conflict resolution |
Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - packages/core/src/agents/runtime/sprites/spritesProvisioning.ts PR: #3927 Model: GPT-6.2 Sol
The Fly wizard’s “Why?” disclosure now says setup starts with a pool of 2 Sprites for up to 2 parallel tasks. It uses #3927’s shared default, which also sets `PROPR_SPRITES_MAX` and `WORKER_CONCURRENCY` to `2`. All 43 wizard tests passed. Captured the expanded disclosure in Chromium. PR: #3930 Comment by: @integry (ID: 7295200531) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
AI Implementation Summary
Closes #3925
Branch:
3925/gpt-6.2-sol-sprites-runtime-default-p-20261130-1447-0phCommits: ✅ Changes committed (e5f2983)
AI Processing Completed
Execution Details:
Summary:
Implemented #3925. The Fly wizard and
propr deploy flynow default to two task Sprites and two jobs per worker. The validation deployment still uses 1/1.Interactive logins use a dedicated temporary third Sprite. A second login queues until that slot is free. Explicit health checks use a read-only API probe and need no Sprite slot.
Settings → Maintenance → Agent runtime now lets admins resize the task pool without restarting workers and shows worker concurrency and the Free Plan limit.
Verified with server tests, Playwright, TypeScript, and OpenAPI checks. The concurrency and login tests used a simulated Sprites provider.
Review digest
Risk-tiered paths
packages/core/src/agents/runtime/sprites/spritesLogin.ts(+5/−7): auth-looking pathpackages/api/instanceSpritesRouteRegistry.ts(+1/−0)packages/api/openapi/routeDocsInstanceSprites.ts(+21/−0)packages/api/routes/instanceSpritesRoutes.ts(+41/−3)packages/api/services/spritePoolStatus.ts(+10/−2)packages/cli/src/commands/deploy/flyLaunchToml.ts(+1/−1)packages/cli/src/commands/deploy/flyMachineConfig.ts(+12/−5)packages/client/src/generated/apiTypes.ts(+13/−0)packages/core/src/agents/runtime/remoteRuntimeReadiness.ts(+2/−2)packages/core/src/agents/runtime/sprites/spritesInventory.ts(+41/−19)packages/core/src/agents/runtime/sprites/spritesProvisioning.ts(+30/−11)packages/core/src/agents/runtime/sprites/spritesSlot.ts(+3/−3)packages/core/src/agents/runtime/spritesRuntime.ts(+2/−2)packages/shared/src/index.ts(+2/−0)packages/shared/src/spriteCapacity.ts(added, +14/−0)packages/shared/src/workerConcurrency.ts(added, +18/−0)propr-ui/src/api/instanceSpritesApi.ts(+20/−2)propr-ui/src/pages/SettingsPage/InstanceSpritesSection.tsx(+47/−1)propr-ui/src/pages/SettingsPage/settingsDataSections.tsx(+1/−1)src/flyLaunch/launchConfig.ts(+8/−2)src/flyLaunch/runtimeValidation.ts(+3/−3)src/flyLaunch/setupRuntimePage.ts(+4/−2)src/workerConcurrency.ts(+1/−20)docs/docs/architecture/agent-runtime.md(+4/−2)docs/docs/features/agents-and-models.md(+1/−1)docs/docs/tutorials/setup-fly.md(+4/−4)docs/static/openapi/propr-api.yaml(+82/−2)packages/api/test/instanceSpritesRoutes.test.ts(+20/−3)packages/cli/src/commands/deploy/flyMachineConfig.test.ts(+13/−2)propr-ui/e2e/agent-runtime-sprites.pw.ts(+28/−1)test/flyLaunchWizard.test.ts(+6/−2)test/instanceSpritesRemovalFence.test.ts(+10/−1)test/remoteAgentLogin.test.ts(+67/−5)test/spritesPool.test.ts(+21/−3)test/spritesRuntime.test.ts(+25/−0)Diff size: 35 files changed, +581/−112 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3925.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Sprite pool settings
The Agent runtime section shows the task pool size, worker concurrency, and the Free Plan limit.
Full-size original
Fly setup Sprite capacity
The Sprites runtime choice shows the two-task default and the token cap that leaves a slot for logins.
Full-size original