Skip to content

[3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness - #3796

Merged
integry merged 5 commits into
3758-epic-runtime-abstraction-sc0from
3794/gpt-6.2-astra-runtime-parity-for-sprite-20261124-2136-9kp
Nov 25, 2026
Merged

integry merged 5 commits into
3758-epic-runtime-abstraction-sc0from
3794/gpt-6.2-astra-runtime-parity-for-sprite-20261124-2136-9kp

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3794

Branch: 3794/gpt-6.2-astra-runtime-parity-for-sprite-20261124-2136-9kp
Commits: ✅ Changes committed (c9d1ba5)


AI Processing Completed

Execution Details:

Summary:
Implemented #3794 for Docker and Sprites. Both runtimes now share workflow marker capture, secret redaction, cost monitoring, watchdogs, and diagnostics. Sprites refuses extension runs at admission, and a failing workflow hook now fails the run.

Sprites validates uploads before acquiring a worker, starts the agent timeout at launch, and lets cancelled provisioning finish into the pool. Cleanup has bounded waits, replaces failed Sprites in the background, and skips credential export when the launcher never started. A dropped connection gets one reattach attempt. The SDK is pinned to 0.2.5 with a Node 22 CI smoke test.

The core build, typecheck, lint, and 124 focused tests passed. Redis-dependent integration checks skipped because redis-server was unavailable. Fly Machines was absent from this branch.

Before merge, a maintainer still needs to run test/spritesRuntime.live.test.ts with PROPR_SPRITES_LIVE_TOKEN to verify behavior against the live service.

Review digest

Risk-tiered paths

  • High risk (3 files)
    • .github/workflows/pr-build-check.yml (+3/−0): CI or workflow file
    • package-lock.json (+1/−1): lockfile
    • packages/core/package.json (+1/−1): dependency manifest
  • Normal risk (13 files)
    • packages/core/src/agents/runtime/dockerRuntime.ts (+1/−0)
    • packages/core/src/agents/runtime/registry.ts (+12/−5)
    • packages/core/src/agents/runtime/runPipeline.ts (added, +102/−0)
    • packages/core/src/agents/runtime/runtimeSelection.ts (+6/−4)
    • packages/core/src/agents/runtime/sprites/spritesExecution.ts (+79/−80)
    • packages/core/src/agents/runtime/sprites/spritesProvisioning.ts (+64/−17)
    • packages/core/src/agents/runtime/sprites/spritesRun.ts (+24/−9)
    • packages/core/src/agents/runtime/spritesRuntime.ts (+42/−18)
    • packages/core/src/agents/runtime/types.ts (+2/−0)
    • packages/core/src/claude/docker/dockerExecutor.ts (+42/−123)
    • packages/core/src/extensions/extensionLaunch.ts (+2/−9)
    • packages/core/src/extensions/extensionLaunchContext.ts (added, +10/−0)
    • packages/core/src/services/agents/agentRunTrigger.ts (+20/−4)
  • Low risk (4 files)
    • docs/docs/architecture/agent-runtime.md (+2/−0)
    • test/agentRunTrigger.test.ts (+4/−0)
    • test/helpers/fakeSprites.ts (+10/−5)
    • test/spritesRuntime.test.ts (+157/−23)

Diff size: 20 files changed, +584/−299 lines

View task for the run's logs and conversation.


This PR was created automatically by ProPR after processing issue #3794.


💡 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!

Implemented #3794 for Docker and Sprites. Both runtimes now share workflow marker capture, secret redaction, cost monitoring, watchdogs, and diagnostics. Sprites refuses extension runs at admission, and a failing workflow hook now fails the run.

Sprites validates uploads before acquiring a worker, starts the agent timeout at launch, and lets cancelled provisioning finish into the pool. Cleanup has bounded waits, replaces failed Sprites in the background, and skips credential export when the launcher never started. A dropped connection gets one reattach attempt. The SDK is pinned to `0.2.5` with a Node 22 CI smoke test.

The core build, typecheck, lint, and 124 focused tests passed. Redis-dependent integration checks skipped because `redis-server` was unavailable. Fly Machines was absent from this branch.

Before merge, a maintainer still needs to run `test/spritesRuntime.live.test.ts` with `PROPR_SPRITES_LIVE_TOKEN` to verify behavior against the live service.

ProPR-Agent: codex/gpt-6.2-astra

integry commented Nov 24, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

@propr-dev propr-dev Bot added the ultrafix label Nov 24, 2026
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR meaningfully consolidates Docker and Sprites execution handling and improves Sprites admission and cleanup. No merge-blocking defect was verified from the supplied code. Merge readiness remains unconfirmed because live-service compatibility has not been demonstrated.

✅ Shared output processing — Both runtimes now use the same redaction, workflow-marker capture, session inspection, and cost-monitoring pipeline.

✅ Earlier payload validation — Sprites validates and prepares uploads before acquiring a worker, with tests covering invalid workspaces and organization-token exposure.

✅ Bounded cleanup — Restore and deletion operations now have explicit deadlines, and replacement provisioning runs outside the release path.

This was a static review; no commands or tests were run. The authoritative checks report no failures and five pending checks.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise actual connection failures

The reconnect test simulates an exit event with code -1, whereas waitForConnection also handles SDK error events. Add coverage for an error after partial output, followed by reattachment and cancellation during session lookup. This would strengthen confidence in the new recovery path; the supplied code does not establish a defect requiring this additional test before merge.

S2: 🟢 Expand SDK smoke coverage

The new CI smoke test verifies SDK construction and filesystem-object creation. A follow-up could exercise more of the pinned SDK’s execution and streaming interfaces on Node 22 without requiring production credentials. This is optional compatibility hardening beyond the existing smoke test and separate live suite.

Score

The implementation is cohesive and has useful focused coverage, with no verified code blocker. The explicitly outstanding live-service validation is a material verification gap, particularly for the new detachable-session recovery behavior.

Score: 7/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 1s
  • Tokens: 65,653 (64,340 in / 1,313 out)
  • Cost: $0.58

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Ultrafix stopped before reaching its goal. Requested goal: 8/10. Last score: 7/10. Stopped in cycle 1 of 10. The review has no actionable blockers, so no fix was scheduled. Manual review and merge are now required.

@propr-dev propr-dev Bot removed the ultrafix label Nov 24, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness ⚠️❼ [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness Nov 24, 2026
@integry

integry commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Live verification at head c9d1ba5

test/spritesRuntime.live.test.ts on a real Sprite: pass (174 s). It covers provisioning, Claude, Codex and Antigravity through the clone transport, restores between runs, leaves no /tmp leftovers and writes the token back. No propr-* Sprite was left behind. The shared run-pipeline refactor does not regress the Sprites path live.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @integry

Analysis Summary

The maintainer reports that test/spritesRuntime.live.test.ts passed on a real Sprite in 174 seconds at c9d1ba5, which matches the checked-out head. This satisfies the PR’s outstanding live-verification requirement. The comment requests no implementation changes.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: GPT-6.2 Astra (medium)
  • Time: 3m 0s
  • Tokens: 37,940 (37,763 in / 177 out)
  • Cost: $0.06
  • Subscription usage: Weekly +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7145730637✓

@propr-dev propr-dev Bot changed the title ⚠️❼ [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness 🔨 [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness Nov 24, 2026

integry commented Nov 24, 2026

Copy link
Copy Markdown
Owner

/review

Re-review with the live evidence in #3796 (comment): the live Sprites test passes at this head.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Merge-ready within the reviewed scope, conditional on the remaining checks passing. The shared pipeline is proportionate to the runtime-parity objective.

✅ Shared execution behavior — Docker and Sprites now share workflow-marker capture, output redaction, cost accounting, watchdogs, and diagnostics.

✅ Earlier admission checks — Unsupported extensions are refused explicitly, and upload payload validation occurs before acquiring a Sprite.

✅ Live verification supplied — The reported pass at c9d1ba5 closes the previously outstanding live-service verification requirement, including clone transport, restoration, cleanup, and credential write-back.

This review used the supplied diff and context only; no commands were run. The authoritative check summary reports no failures, with 10 checks pending.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Exercise realistic reconnect streams

The reconnect test verifies one attachment and successful settlement, but its fake emits complete output on both connections. An optional regression test could interrupt a connection between output chunks and exercise failed reattachment, checking final output and cleanup. This would strengthen recovery coverage beyond the supplied live test; the reviewed code does not establish a concrete reconnect defect.

Score

The implementation addresses the stated objective with focused tests and supplied live verification. No merge-blocking regression was established; readiness remains conditional on completion of pending checks.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 38s
  • Tokens: 65,977 (65,349 in / 628 out)
  • Cost: $0.55

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S3

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness ✅❽ [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness Nov 24, 2026

integry commented Nov 24, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=4

Independent maintainer review at c9d1ba5. Fix these; the live Sprites test already passes at this head.

BLOCKERS

  1. Credentials read too early (spritesRuntime.ts ~78): prepareSpriteRun() (broker materialize, env files, Claude seed) now runs BEFORE ready.acquire(), which can wait up to about 21 minutes for provisioning. A refresh token rotated by a concurrent run in that window gets uploaded already revoked. Split it in two: cheap validation (clone shape, binds, env-file readability, the org-token scan) runs before acquire, and reading and materializing credentials runs after acquire, right before the upload.
  2. Output dropped at exit (spritesExecution.ts waitForConnection): the stdout/stderr 'data' listeners are removed as soon as 'exit' fires. Wait for both streams to emit 'end' (with a short bounded grace, for example 2 s) before detaching, so the final result/usage line and the workflow markers are never lost. Add a fake-SDK test that emits exit before the last data chunk.
  3. Reattach output handling: after a reattach, either de-duplicate replayed output (track a byte offset if the session API provides one) or mark the run's output as possibly incomplete and treat missing workflow markers as unobserved, never as passed. A hook failure must never be reported as success after a reconnect.
  4. Admission checks the wrong process's env (agentRunTrigger.ts extensionAdmissionRefusal): it resolves the runtime from PROPR_AGENT_RUNTIME in the API process, but the docs tell operators to set it on the worker. Resolve from the agent config's explicit runtime when present. Otherwise use the worker-reported runtime capabilities if they exist; if they don't, do not refuse at definition-save time and leave the refusal to runAgent (which is authoritative). Avoid instantiating runtimes in the API process.

ALSO FIX
5. When the launcher never spawned (cost-cap refusal or pre-spawn timeout), return the outcome first and release the slot in the background. A release failure must never replace the refusal/timeout result.
6. registry.ts: treat a missing supportsExtensions as supported for Docker-kind runtimes (backward compatible with registerAgentRuntime embedders), matching the supportsMcpReachableUrl convention. Non-Docker built-ins declare false explicitly.
7. spritesProvisioning acquire(): if a claimed background replacement fails, provision a fresh Sprite once for this run instead of failing an unrelated run.
8. runPipeline streamExtraOutput: redact incrementally (only newly appended output, keeping a tail overlap for secrets split across chunks) instead of re-scrubbing the whole transcript on every poll.
9. Keep one refusal path: the registry's AgentRuntimeCapabilityError. Drop the duplicate plain Error in Sprites.start, and remove the extensionLaunchForDockerRun alias (update its test).
Keep the agent timeout starting at launch; that is intended, and provisioning has its own bound. Document that in the runtime docs. A maintainer reruns the live Sprites test after this.

@propr-dev propr-dev Bot added the ultrafix label Nov 24, 2026
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 4)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev propr-dev Bot changed the title ✅❽ [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness 🔨 [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness Nov 24, 2026
@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR makes useful progress toward Docker/Sprites runtime parity, but needs significant corrections before merge. The principal risks are credential freshness, stream completion, admission authority, and failure handling around pooled Sprites.

✅ Shared output handling — Both runtimes now use one pipeline for workflow markers, redaction, cost observation, watchdogs, and diagnostics.

✅ Separate provisioning and execution budgets — Sprites provisioning has its own bound, while the agent timeout starts immediately before execution.

✅ Validation evidence — The authoritative checks report 25 passed and no failures; the supplied maintainer report confirms live Sprites verification at c9d1ba5.

This is a static review of the supplied diff and context. No commands were run or files modified.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Credential snapshots precede lengthy provisioning

  • Category: correctness

  • Required behavior: A launch should materialize provider credentials immediately before upload, avoiding an unnecessary provisioning-length stale-credential window.

  • Evidence: packages/core/src/agents/runtime/spritesRuntime.ts, prepareSpriteRun(launch) before ready.acquire(signal); packages/core/src/agents/runtime/sprites/spritesRun.ts, serialized upload.

    1. A run prepares its credential-bearing files, environment, and Claude seed into the upload string.
    2. It then awaits ready.acquire(signal), potentially provisioning a Sprite for up to 21 minutes.
    3. During that await, another run using the same provider credential store refreshes and writes back its credentials.
    4. The waiting run uploads the earlier snapshot. For refresh-token rotation that invalidates the previous token, its provider authentication fails despite the host store containing current credentials.

    static trace: preparation returns an upload closure over an already serialized payload; acquisition does not rematerialize it. The supplied credential-export contract establishes concurrent runs can write refreshed credentials back. The pool leases Sprites, not shared provider credential stores, so exclusive Sprite ownership does not close this window.

  • Minimum fix: Keep early payload validation, but reread and materialize credentials after acquisition immediately before upload. Revalidate the final payload’s organization-token exclusion.

F2: 🔴 Exit handling discards trailing stream data

  • Category: correctness

  • Required behavior: Final provider records and workflow reports must reach the pipeline before output is finalized.

  • Evidence: packages/core/src/agents/runtime/sprites/spritesExecution.ts, waitForConnection.

    1. A command emits exit while stdout or stderr still has trailing data to deliver.
    2. The exit handler resolves the promise, whose finally immediately removes both data listeners and closes the command.
    3. A subsequent final result, usage record, or hook-failure marker is never passed to the pipeline.
    4. The result loses output or usage; a missing hook-failure report can also leave an otherwise successful result unchanged.

    static trace: there is no stream-end barrier between command.once('exit', resolve) and listener removal. pipeline.finishOutput() only flushes data already received. The existing fake ends both streams before emitting exit, so its tests do not exercise this ordering. proposed regression: emit exit, then trailing stdout/stderr data and stream ends on a later turn.

  • Minimum fix: On normal exit, drain both streams through end with a short bounded grace before detaching and finalizing the pipeline. Add the exit-before-last-chunk regression.

F3: 🔴 Definition admission uses API-local runtime selection

  • Category: correctness

  • Required behavior: Definition-save admission must not reject a valid worker execution based on a different process’s runtime environment.

  • Evidence: packages/core/src/services/agents/agentRunTrigger.ts, extensionAdmissionRefusal; packages/core/src/agents/runtime/registry.ts, getAgentRuntime.

    1. An extension-bearing definition selects an agent without an explicit runtime.
    2. The API process has PROPR_AGENT_RUNTIME=sprites, while the execution worker selects Docker.
    3. Definition validation calls getAgentRuntime(agent), which defaults to the API process’s environment and instantiates its selected runtime.
    4. The API refuses the definition even though its worker supports the requested extensions.

    static trace: both explicit-agent and default-agent validation invoke this helper, and neither supplies worker runtime information. Runtime selection explicitly falls back to process.env. The documentation places runtime configuration on the worker; runAgent’s authoritative launch check cannot repair a definition rejected before execution.

  • Minimum fix: Validate an explicitly configured runtime without instantiating execution runtimes. For implicit selection, consult authoritative worker capabilities if available; otherwise defer runtime refusal to runAgent.

F4: 🔴 Cleanup can replace a cost refusal

  • Category: correctness

  • Required behavior: A physical-launch refusal must retain its refusal outcome even when releasing an unused worker fails.

  • Evidence: packages/core/src/agents/runtime/spritesRuntime.ts, if (!commit && slot); packages/core/src/agents/runtime/sprites/spritesProvisioning.ts, release.

    1. Initial cost admission succeeds, but physical launch registration refuses the run after provisioning and upload.
    2. With output preservation enabled, execute() returns a costCapExceeded result without spawning.
    3. Before returning that outcome, the runtime clears slot and awaits ready.release(unused).
    4. If restore fails and subsequent deletion fails or times out, release rejects and replaces the cost-cap result with a cleanup error.

    static trace: release() propagates deletion failures, and the awaited cleanup has no catch preserving outcome. Even successful cleanup can delay refusal settlement by its bounded cleanup waits. The new refusal test exercises successful cleanup only.

  • Minimum fix: Return the original outcome independently of unused-slot cleanup. Track and log background cleanup failures, and apply the same outcome-preserving handling to pre-spawn cancellation or timeout paths.

F5: 🔴 Optional capability breaks registered Docker runtimes

  • Category: correctness

  • Required behavior: Existing Docker-kind runtime registrations must not lose extension support merely because a newly added optional capability is absent.

  • Evidence: packages/core/src/agents/runtime/registry.ts, runAgent extension check; packages/core/src/services/agents/agentRunTrigger.ts, extensionAdmissionRefusal.

    1. An embedder uses the existing registerAgentRuntime('docker', factory) API with a Docker-compatible implementation that supports extensions.
    2. Its capability object omits the newly introduced optional supportsExtensions property.
    3. An extension-bearing run reaches runAgent, where !runtime.capabilities.supportsExtensions evaluates to true.
    4. The previously supported run is refused. Definition validation applies the same false-by-absence interpretation.

    static trace: registration permits replacing the Docker factory, the new property is optional, and both checks require a truthy value. Setting the property on the built-in Docker runtime does not cover registered replacements.

  • Minimum fix: Centralize extension capability interpretation: honor explicit values, default an absent value to supported for Docker-kind runtimes, and use that interpretation at both admission sites.

F6: 🔴 Failed replacement aborts an unrelated acquisition

  • Category: correctness

  • Required behavior: Failure of speculative background replacement must not substitute for a new run’s own provisioning attempt.

  • Evidence: packages/core/src/agents/runtime/sprites/spritesProvisioning.ts, replaceInBackground and acquire.

    1. Releasing run A fails restoration, deletes its Sprite, and starts background replacement.
    2. Run B arrives while replacement is pending and claims its promise through this.replacements.shift().
    3. The replacement provisioning attempt fails.
    4. acquire() propagates that rejection directly, failing run B without attempting fresh provisioning for it.

    static trace: after a replacement is claimed, the background handler sees it as claimed and supplies no recovery; acquire() only handles cancellation specially and otherwise rethrows. A transient replacement failure therefore becomes an unrelated task failure even if a subsequent create would succeed.

  • Minimum fix: If a claimed replacement fails and neither caller cancellation nor pool shutdown applies, attempt fresh provisioning once for that acquisition. Preserve the existing cancellation and shutdown ownership rules.

Suggestions

These are optional follow-ups and are not sent to /fix.

S4: 🟢 Verify reconnect output continuity

The reconnect test verifies attachment selection but not output continuity. The supplied context does not establish whether the pinned SDK replays, resumes, or omits disconnected output, so I cannot substantiate a separate reconnect blocker. Add a contract test with partial records and hook-failure markers across disconnect: either establish deduplication/resumption guarantees or explicitly report incomplete output and unobserved workflow reports.

S5: 🟢 Avoid repeated transcript rescanning

runPipeline.ts constructs a redactor and scans the entire streamExtraOutput() transcript on every poll. Incremental redaction with a retained boundary tail would reduce repeated work for long runs. This is an optional performance improvement absent evidence of a material runtime limit being exceeded.

S6: 🟢 Consolidate extension refusal behavior

The registry emits AgentRuntimeCapabilityError, while direct SpritesRuntime.start() emits a plain error; extensionLaunch.ts also retains the old Docker-named alias. Consolidating the refusal contract and updating alias consumers would simplify maintenance. These duplications alone do not demonstrate an additional runtime failure.

S7: 🟢 Document timeout scope

Document that provisioning has its own bound and the configured agent timeout begins at execution. The implementation intentionally makes this distinction, but the added runtime documentation does not explain it. Rerun the live suite after lifecycle corrections; the supplied successful live result remains valid evidence for this head.

Score

The shared pipeline and passing checks are valuable, but six verified regressions remain in launch preparation, output capture, admission, and recovery. These need correction before merge.

Score: 5/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 26s
  • Tokens: 67,487 (64,810 in / 2,677 out)
  • Cost: $0.67

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2 F3 F4 F5 F6 S4 S5 S6 S7

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit bc750c5

Addressed 1 AI review comment (IDs: 7146617870)

Addressed findings F1, F2, F3, F4, F5, F6

Summary of Changes

Addressed F1–F6 on PR #3796.

  • Sprites validates launch inputs before acquisition, then reads credentials and rechecks the final payload immediately before upload.
  • Normal exit drains stdout and stderr with a two-second grace period. A fake-SDK regression verifies that trailing output and a late hook-failure marker reach the pipeline.
  • Definition admission uses explicit runtime capabilities without constructing a runtime. Worker-selected runtimes defer to launch. Docker-kind runtimes retain extension support when the optional flag is absent.
  • Pre-spawn refusals and timeouts settle independently of cleanup. A failed background replacement triggers one fresh provisioning attempt while respecting cancellation and shutdown.

The runtime docs now distinguish the launch-time agent timeout from the provisioning deadline.

Verification: Core build, repository typecheck, and changed-source lint passed. The focused suites had 110 passes and one skip requiring root or passwordless sudo. The maintainer’s live Sprites rerun remains pending.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (6 files)
    • packages/core/src/agents/runtime/registry.ts (+20/−12)
    • packages/core/src/agents/runtime/sprites/spritesExecution.ts (+26/−2)
    • packages/core/src/agents/runtime/sprites/spritesProvisioning.ts (+23/−2)
    • packages/core/src/agents/runtime/sprites/spritesRun.ts (+34/−16)
    • packages/core/src/agents/runtime/spritesRuntime.ts (+26/−17)
    • packages/core/src/services/agents/agentRunTrigger.ts (+7/−8)
  • Low risk (5 files)
    • docs/docs/architecture/agent-runtime.md (+1/−1)
    • test/agentRunTrigger.test.ts (+14/−1)
    • test/agentRuntimeRegistry.test.ts (+16/−0)
    • test/helpers/fakeSprites.ts (+15/−0)
    • test/spritesRuntime.test.ts (+96/−7)

Diff size: 11 files changed, +278/−66 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @propr-ultrafix
  • Time: 8m 25s
  • Tokens: 2,269,834 (2,257,630 in / 12,204 out)
  • Cost: $1.87
  • Subscription usage: Weekly +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

Addressed F1–F6 on PR #3796.

- Sprites validates launch inputs before acquisition, then reads credentials and rechecks the final payload immediately before upload.
- Normal exit drains stdout and stderr with a two-second grace period. A fake-SDK regression verifies that trailing output and a late hook-failure marker reach the pipeline.
- Definition admission uses explicit runtime capabilities without constructing a runtime. Worker-selected runtimes defer to launch. Docker-kind runtimes retain extension support when the optional flag is absent.
- Pre-spawn refusals and timeouts settle independently of cleanup. A failed background replacement triggers one fresh provisioning attempt while respecting cancellation and shutdown.

The runtime docs now distinguish the launch-time agent timeout from the provisioning deadline.

**Verification:** Core build, repository typecheck, and changed-source lint passed. The focused suites had 110 passes and one skip requiring root or passwordless sudo. The maintainer’s live Sprites rerun remains pending.

PR: #3796
Comment by: @propr-ultrafix (ID: 0)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra
@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR substantially improves runtime parity, but the new reconnect path still needs correction before merge. This review is based solely on the supplied code; no commands were run.

✅ Credential freshness — Validation precedes acquisition, while credential materialization and env-file reads occur after acquisition, immediately before upload.

✅ Output draining — Normal exits now wait for both output streams, with a bounded grace period and a regression test covering delayed workflow markers.

✅ Bounded cleanup — Provisioning and restoration have separate deadlines, and unused-slot cleanup no longer replaces pre-spawn refusal outcomes.

The shared pipeline is appropriate to the objective. Current checks have no failures, with five still pending; the reported live verification applies to c9d1ba5.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F7: 🔴 Reattach blindly appends replayed output

  • Category: correctness

  • Required behavior: Reconnection must preserve a trustworthy provider output stream rather than silently duplicate or corrupt records.

  • Evidence: packages/core/src/agents/runtime/sprites/spritesExecution.ts:execute and test/helpers/fakeSprites.ts:FakeSprite.spawn

    1. The added reconnect test configures the first command to emit agent output and exit with -1.
    2. execute attaches to the matching session and feeds its output into the same pipeline, retaining the existing buffers and pending record.
    3. The supplied fake emits agent output again on attachment, followed by exit code zero.
    4. The returned stdout therefore becomes agent outputagent output, while the test checks only the exit code and attachment events.

    static trace: This follows directly from the supplied fake and shared pipeline; it was not executed. There is no replay offset, duplicate suppression, or output-integrity indication. With a replay beginning after a partially received JSON record, the same concatenation produces malformed provider records, affecting consumers that parse returned stdout. The bounded buffers and stream-end drain do not reconcile replay. The supplied context does not establish the live SDK’s replay guarantees, and the implementation neither enforces nor checks one.

  • Minimum fix: Establish and implement the pinned SDK’s replay/resume contract before combining connections. If exact continuation cannot be established, explicitly propagate uncertain output and workflow observation instead of returning an ordinary successful result. Extend the reconnect test to assert output integrity, including a disconnect within a provider record.

Suggestions

These are optional follow-ups and are not sent to /fix.

S8: 🟢 Avoid rescanning transcript snapshots

runPipeline.ts constructs a fresh redactor and processes the entire transcript on every poll. Tracking appended content with a retained secret-overlap tail would reduce repeated work for long runs. This is an optional performance improvement; the supplied context does not demonstrate a material performance failure.

S9: 🟢 Consolidate extension refusal ownership

The registry now provides a structured capability error, but SpritesRuntime.start retains a separate plain-error guard, and the old Docker-named alias remains exported. Consolidating these would make error handling and naming more consistent. The duplicate guard currently fails safely, so this is cleanup rather than a merge blocker.

Score

The lifecycle improvements and focused tests are strong, but reconnect output integrity remains unresolved. Pending checks alone do not lower the rating.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 37s
  • Tokens: 71,107 (69,601 in / 1,506 out)
  • Cost: $0.64

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F7 S8 S9

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 67b72a6

Addressed 1 AI review comment (IDs: 7146981697)

Addressed finding F7

Summary of Changes

Fixed F7. The pinned Sprites SDK exposes no resume offset, so reattach now observes process exit without appending replayed bytes. The worker retrieves the workspace, then reports incomplete output and marks workflow reports unobserved. A zero exit after reconnect cannot turn the run into a success.

Regression tests cover a disconnect inside a provider record, replayed workflow markers, and workspace retrieval before failure. Across four suites, 120 tests passed and one privilege-dependent test skipped. Core typecheck and lint passed. The live Sprites rerun remains with the maintainer.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (4 files)
    • packages/core/src/agents/runtime/registry.ts (+4/−3)
    • packages/core/src/agents/runtime/runPipeline.ts (+9/−4)
    • packages/core/src/agents/runtime/sprites/spritesExecution.ts (+16/−8)
    • packages/core/src/claude/docker/dockerExecutor.ts (+2/−0)
  • Low risk (3 files)
    • docs/docs/architecture/agent-runtime.md (+2/−0)
    • test/helpers/fakeSprites.ts (+9/−5)
    • test/spritesRuntime.test.ts (+60/−5)

Diff size: 7 files changed, +102/−25 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 24s
  • Tokens: 1,418,162 (1,411,605 in / 6,557 out)
  • Cost: $1.23
  • Subscription usage: Weekly +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

Fixed F7. The pinned Sprites SDK exposes no resume offset, so reattach now observes process exit without appending replayed bytes. The worker retrieves the workspace, then reports incomplete output and marks workflow reports unobserved. A zero exit after reconnect cannot turn the run into a success.

Regression tests cover a disconnect inside a provider record, replayed workflow markers, and workspace retrieval before failure. Across four suites, 120 tests passed and one privilege-dependent test skipped. Core typecheck and lint passed. The live Sprites rerun remains with the maintainer.

PR: #3796
Comment by: @propr-ultrafix (ID: 0)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra
@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

🔀 Resolved merge conflicts from 3758-epic-runtime-abstraction-sc0 into 3794/gpt-6.2-astra-runtime-parity-for-sprite-20261124-2136-9kp in commit debcaf2

Conflicting Files

  • docs/docs/architecture/agent-runtime.md
  • packages/core/src/agents/runtime/sprites/spritesProvisioning.ts
  • packages/core/src/agents/runtime/sprites/spritesRun.ts
  • packages/core/src/agents/runtime/spritesRuntime.ts
  • test/helpers/fakeSprites.ts

Resolution Summary

Resolved all nine conflict blocks across the five files for PR #3796. A workspace-wide scan found no remaining merge conflict markers.

Git still lists the five paths as unmerged because git add could not create index.lock on the read-only worktree filesystem. The resolved file contents are saved.

File Conflict and resolution
agent-runtime.md Both branches edited the Fly Sprites setup section. Kept the PR’s Node 22 SDK compatibility and extension guidance, and documented the target branch’s DNS allowlist and public HTTPS MCP requirements so the instructions match the merged runtime.
spritesProvisioning.ts Both branches changed lease release. Kept the PR’s shutdown-aware cleanup deadline and background replacement. Added policy verification before credential write-back and verified policy clearing after checkpoint restoration, so a Sprite is reused only after its cleanup and network state are confirmed.
spritesRun.ts Both branches changed run preparation. Kept the PR’s early clone and payload validation, late credential reads, and execution timeout. Added restricted-network environment defaults that fill only unset variables, preserving explicit run configuration.
spritesRuntime.ts Both branches changed capabilities and launch sequencing. Kept the PR’s shared capability declaration and bounded upload, added restricted networking and reachable MCP support, and required policy verification before upload. A Sprite with an unverified policy or failed upload is discarded to keep it out of the reuse pool.
fakeSprites.ts Both branches added fields to the test double. Kept stderr simulation and network policy state and failure simulation so both sets of tests exercise their intended behavior.

Verification: All 201 tests passed across the five focused suites. Whitespace checks passed. TypeScript passed with @propr/local-setup resolved directly to workspace source because the standard check could not resolve its built declarations.


🤖 Resolution Details

  • Model: GPT-6.2 Sol
  • Time: 4m 37s

View Task Execution


System-triggered merge conflict resolution

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- docs/docs/architecture/agent-runtime.md
- packages/core/src/agents/runtime/sprites/spritesProvisioning.ts
- packages/core/src/agents/runtime/sprites/spritesRun.ts
- packages/core/src/agents/runtime/spritesRuntime.ts
- test/helpers/fakeSprites.ts

PR: #3796
Model: GPT-6.2 Sol
@github-actions

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 45510394582, attempt 1
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
589002ba0eae: Pull complete
c09af8888d6a: Pull complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Download complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v22.23.5
10.9.9

--- Dependency installation ---
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: '@fly/[email protected]',
npm warn EBADENGINE   required: { node: '>=24.0.0' },
npm warn EBADENGINE   current: { node: 'v22.23.5', npm: '10.9.9' }
npm warn EBADENGINE }
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1113 packages, and audited 1123 packages in 20s

318 packages are looking for funding
  run `npm fund` for details

8 moderate severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 32.0kB README.md
npm notice 36.3kB dist/agentSkill.js
npm notice 477B dist/api/admission.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.1kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.4kB dist/api/automations.js
npm notice 13.3kB dist/api/client.js
npm notice 5.9kB dist/api/errors.js
npm notice 1.6kB dist/api/followupHandoffs.js
npm notice 16.9kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.9kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 7.7kB dist/api/plans.js
npm notice 586B dist/api/pullRequests.js
npm notice 4.2kB dist/api/relay.js
npm notice 12.5kB dist/api/repos.js
npm notice 2.5kB dist/api/repositoryEvents.js
npm notice 16.2kB dist/api/settings.js
npm notice 2.0kB dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 34.5kB dist/assets/env.example.txt
npm notice 5.9kB dist/auth/githubLogin.js
npm notice 5.0kB dist/auth/verifyToken.js
npm notice 10.5kB dist/commands/admissionCommands.js
npm notice 19.7kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 30.0kB dist/commands/agentValidation.js
npm notice 31.2kB dist/commands/automationCommands.js
npm notice 73.1kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 3.1kB dist/commands/deploy/flyBrowserAuth.js
npm notice 7.6kB dist/commands/deploy/flyctlBackend.js
npm notice 18.3kB dist/commands/deploy/flyDeployRunner.js
npm notice 7.3kB dist/commands/deploy/flyIntake.js
npm notice 13.6kB dist/commands/deploy/flyLegacyDocker.js
npm notice 18.4kB dist/commands/deploy/flyMachineConfig.js
npm notice 7.8kB dist/commands/deploy/flyMachinesApi.js
npm notice 2.7kB dist/commands/deploy/flyOrgPlan.js
npm notice 8.4kB dist/commands/deploy/flyRelay.js
npm notice 2.3kB dist/commands/deploy/flyStaleMachineConfig.js
npm notice 24.7kB dist/commands/deployFly.js
npm notice 12.2kB dist/commands/eventCommands.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 60.8kB dist/commands/goalCommands.js
npm notice 9.4kB dist/commands/handoffCommands.js
npm notice 3.7kB dist/commands/idleShutdownCheck.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.6kB dist/commands/implementCommands.js
npm notice 2.1kB dist/commands/index.js
npm notice 8.4kB dist/commands/initCommands.js
npm notice 14.1kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 26.5kB dist/commands/planCommands.js
npm notice 3.1kB dist/commands/prCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 41.4kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 19.8kB dist/commands/settingCommands.js
npm notice 4.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.7kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 37.3kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.8kB dist/commands/startCommand.js
npm notice 4.8kB dist/commands/statsCommands.js
npm notice 4.9kB dist/commands/statsCostCommand.js
npm notice 14.8kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 47.6kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 27.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.3kB dist/desktopLocalSetup.js
npm notice 17.4kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 14.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 137.3kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 6.2kB dist/rootHelp.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.9kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.4kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.4kB dist/tui/StartApp.js
npm notice 3.8kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 64.5kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.4kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 13.2kB dist/vendor/shared/acceptanceCriteria.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.7kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 2.3kB dist/vendor/shared/agentFailureLine.js
npm notice 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 1.2kB dist/vendor/shared/agentTankHistory.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 4.4kB dist/vendor/shared/antigravityCompatibility.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 17.2kB dist/vendor/shared/automationDefinitions.js
npm notice 9.2kB dist/vendor/shared/automationReportPreview.js
npm notice 2.4kB dist/vendor/shared/automationRunProductivity.js
npm notice 6.4kB dist/vendor/shared/automationTemplateContract.js
npm notice 18.5kB dist/vendor/shared/automationTemplates.catalog.json
npm notice 1.3kB dist/vendor/shared/automationTemplates.js
npm notice 3.4kB dist/vendor/shared/changedFileKinds.js
npm notice 1.4kB dist/vendor/shared/claudeCompatibility.js
npm notice 12.1kB dist/vendor/shared/commitSubject.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 13.0kB dist/vendor/shared/extensionLibrary.js
npm notice 703B dist/vendor/shared/extensionOAuth.js
npm notice 4.0kB dist/vendor/shared/extensionPackages.js
npm notice 2.9kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 12.8kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 5.1kB dist/vendor/shared/goalWait.js
npm notice 9.1kB dist/vendor/shared/idleShutdown.js
npm notice 14.7kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 21.0kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 2.9kB dist/vendor/shared/openCodeCompatibility.js
npm notice 16.9kB dist/vendor/shared/planItemGraph.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 884B dist/vendor/shared/proprRuntimePaths.js
npm notice 13.0kB dist/vendor/shared/proprServiceUrls.js
npm notice 17.0kB dist/vendor/shared/prTemplate.js
npm notice 6.9kB dist/vendor/shared/prTitleStatusSlot.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.7kB dist/vendor/shared/reasoningLevels.js
npm notice 1.8kB dist/vendor/shared/repositoryEvents.js
npm notice 6.7kB dist/vendor/shared/repositoryEventWait.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 10.4kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 2.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 392B dist/vendor/shared/sqliteTimestamp.js
npm notice 603B dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 2.0kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 2.6kB dist/vendor/shared/tokenOutlierSettings.js
npm notice 1.9kB dist/vendor/shared/ultrafixCycle.js
npm notice 1.8kB dist/vendor/shared/unfinishedRun.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 1.1kB dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 828B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.3
npm notice filename: propr-cli-0.9.3.tgz
npm notice package size: 593.6 kB
npm notice unpacked size: 2.4 MB
npm notice shasum: e6cd1a0746de7d215c9437be40f5f7c41ccec213
npm notice integrity: sha512-E7o9JdbIKCmei[...]GRPwoXaqQ0rRA==
npm notice total files: 235
npm notice
propr-cli-0.9.3.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
✅ Core Source Build passed

--- UI: Typecheck, Lint & Build ---
✅ Client Package validation passed
✅ UI Typecheck passed
✅ UI Lint passed
✅ UI Build passed

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed
✅ Docs Static Serving Check passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
❌ Core Package Lint FAILED

/home/runner/work/propr/propr/packages/core/src/agents/runtime/sprites/spritesRun.ts
  36:1  warning  Function 'runEnvironment' has too many parameters (5). Maximum allowed is 4  max-params

✖ 1 problem (0 errors, 1 warning)

ESLint found too many warnings (maximum: 0).

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
✅ API Lint passed

--- API Reference: OpenAPI Spec & Client Contract ---
✅ OpenAPI spec is current and valid
✅ @propr/client matches the OpenAPI spec

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: failure
Chromium install: skipped
PWA and mobile browser smoke: skipped

View Workflow

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:415
Process completed with exit code 1.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 144c34a

Processed 2 comments:

  • Comment 1 by @github-actions[bot] (ID: 7147527641✓)
  • Comment 2 by @propr-dev[bot] (ID: 7147529208✓)

Summary of Changes

Fixed the lint failure on PR #3796. runEnvironment now takes the existing SpriteLaunch object, reducing its parameter count from five to three and preserving validation and launch behavior.

Core lint passed locally with zero warnings, the core package built successfully, and all 32 Sprites runtime tests passed in demo mode.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/agents/runtime/sprites/spritesRun.ts (+7/−5)
  • Low risk: none

Diff size: 1 file changed, +7/−5 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @github-actions[bot], @propr-dev[bot]
  • Time: 3m 24s
  • Tokens: 212,311 (211,569 in / 742 out)
  • Cost: $0.24

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 7147527641✓, 7147529208✓

Fixed the lint failure on PR #3796. `runEnvironment` now takes the existing `SpriteLaunch` object, reducing its parameter count from five to three and preserving validation and launch behavior.

Core lint passed locally with zero warnings, the core package built successfully, and all 32 Sprites runtime tests passed in demo mode.

PR: #3796
Comment by: @github-actions[bot] (ID: 7147527641)
Comment by: @propr-dev[bot] (ID: 7147529208)
Model: GPT-6.2 Astra

ProPR-Agent: codex/gpt-6.2-astra
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR substantially delivers shared Docker/Sprites execution handling and addresses the demonstrated lifecycle issues. No merge blocker is verified from the supplied diff; merge readiness remains conditional on current-head checks, whose status is unavailable. This was a static review; no commands were run.

✅ Fresh credential materialization — Credentials, environment-file contents, and the Claude seed are read after acquiring a Sprite, immediately before upload.

✅ Conservative reconnect handling — Reattached runs report incomplete output, invalidate workflow observations, and retrieve the workspace before the dispatcher reports failure.

✅ Improved lifecycle coverage — Added tests exercise output arriving after exit, pre-spawn refusal, cancelled provisioning, and failed replacement recovery.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S10: 🟢 Make transcript redaction incremental

packages/core/src/agents/runtime/runPipeline.ts, in the streamExtraOutput wrapper, constructs a new redactor and processes the entire transcript on every poll. Incremental processing would avoid repeatedly scanning growing transcripts and retain incomplete secret suffixes between polls. Calling finish() on each snapshot can expose a partial secret before its remaining characters arrive. The previous Docker path passed this transcript through without redaction, so this is a follow-up to existing exposure rather than a demonstrated PR-introduced regression.

S11: 🟢 Consolidate extension refusal behavior

SpritesRuntime.start() still throws a plain extension-refusal error, while runAgent() uses AgentRuntimeCapabilityError; extensionLaunch.ts also retains the Docker-named compatibility alias. Consolidating these would simplify the public contract and tests. Both entry points currently refuse unsupported execution, so the duplication does not establish a correctness blocker.

S12: 🟢 Distinguish drain timeout from completion

drainOutput() treats expiration of its two-second grace period like successful stream completion. Consider returning whether both streams ended and marking output incomplete when the grace expires. This would extend the new protection to unusually delayed output; the previous implementation already discarded output immediately after exit, so this remaining limitation is not a new regression.

Score

The implementation has strong targeted coverage and no verified PR-introduced blocker. Current-head validation remains unverified, and the transcript handling and refusal paths have worthwhile follow-ups.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 17s
  • Tokens: 78,467 (76,968 in / 1,499 out)
  • Cost: $0.73

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S10 S11 S12

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 24, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness ✅❽ [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness Nov 25, 2026
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Maintainer verification at 144c34a (includes the merged #3793)

  • All blockers from my independent review are fixed. Credentials are read after the Sprite is acquired; output streams are drained before detach, with a 2 s grace; reattached runs are marked incomplete; admission uses only the explicit agent runtime; a missing supportsExtensions stays backward compatible for Docker; and there is a single refusal path.
  • Live on real Sprites: test/spritesRuntime.live.test.ts passes (179 s). The restricted-network check also passes: only the allowlisted host is reachable, and raw IPs are blocked.
  • One platform finding, not caused by this PR: the Sprites API sometimes answers restart() with restart outcome unknown. The pool safely discards the Sprite and logs the step. I passed it to [3765 by Claude Opus 5.5] Sprites runner pool with checkpoint reset and warm clones #3795 to handle without a full re-provision.
  • CI green, score 8. Merging into the epic.

@integry
integry merged commit 1c5d281 into 3758-epic-runtime-abstraction-sc0 Nov 25, 2026
45 checks passed
@propr-dev propr-dev Bot changed the title ✅❽ [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness [3794 by GPT-6.2 Astra] Runtime parity for Sprites/Fly Machines: extensions, workflow markers, timeouts, pool robustness Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant