Skip to content

[3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent - #3784

Closed
propr-dev[bot] wants to merge 33 commits into
3758-epic-runtime-abstraction-sc0from
3767/claude-opus-5-5-flymachinesruntime-epheme-20261124-1023-ez4
Closed

propr-dev[bot] wants to merge 33 commits into
3758-epic-runtime-abstraction-sc0from
3767/claude-opus-5-5-flymachinesruntime-epheme-20261124-1023-ez4

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3767

Branch: 3767/claude-opus-5-5-flymachinesruntime-epheme-20261124-1023-ez4
Commits: ✅ Changes committed (8c4a3db)


AI Processing Completed

Execution Details:

Summary:
I added a fly-machines agent runtime that starts one ephemeral Fly Machine per run from the propr/agent image, with the image's own entrypoints. It has only been run against a fake Machines API and a local bash run of the launcher script — never against real Fly. Typecheck and lint pass, the 11 new tests pass, and the 10 existing runtime, credential and workspace-transport suites still pass.

How you select it: set PROPR_AGENT_RUNTIME=fly-machines, or runtime: fly-machines on an agent. I didn't call it fly, because an existing test uses fly as its example of an unknown runtime.

Configuration:

  • Required: PROPR_FLY_API_TOKEN (falls back to FLY_API_TOKEN), a deploy token scoped to the app, and PROPR_FLY_APP.
  • Optional: PROPR_FLY_REGION and PROPR_FLY_MACHINE_SIZE (shared-cpu-<n>x / performance-<n>x, default performance-2x). Memory comes from PROPR_FLY_MACHINE_MEMORY_MB, else the run's memory limit.
  • PROPR_FLY_IMAGE: needed when the run's image is only built locally, because Fly can't pull a local image.

What a run does:

  • Creation: each run is a Machine created through api.machines.dev/v1 with auto-destroy on exit and restart policy no.
  • Workspace: runs always use the clone workspace transport, since Fly can't bind-mount the worktree.
  • Credentials: a new step (agentRunFileUpload.ts) turns credential mounts into per-run copies from the credential broker, uploaded as files. Refreshed tokens are read back after the run and written to the canonical store. Other mounted files are copied in (up to 16 MiB); log directories start empty.
  • Prompt and output: Machines have no stdin, so a small launcher script feeds the prompt from a file. It forwards stop signals to the agent and keeps exact stdout/stderr in files. It also sends output to the console so the Fly logs API streams it live.
  • Results: after the agent exits, the Machine waits so the worker can read the exact output and the clone result, then the worker destroys it.
  • Stop, cancel, liveness: stop() signals the agent and the run ends with its exit code. If the agent doesn't exit in time, or the run is cancelled, the Machine is destroyed. Liveness comes from the Machine's state, and a crash or out-of-memory exit takes its exit code from Fly's record.
  • MCP over .internal: private networking is declared only when the control plane runs on Fly. Runs then reach ProPR at http://<app>.internal:<port>/api/mcp, which you set as PROPR_INTERNAL_API_URL or PROPR_AGENT_MCP_URL. Elsewhere they use a reachable URL with the per-run token.
  • Cold start and pre-warm: the time from create to started (image pull plus boot) is logged per run. PROPR_FLY_PREWARM=1 pulls the image in the region once at startup and logs how long it took.

Things to know before using it:

  • Restricted network runs are refused. Fly has no per-Machine outbound allowlist.
  • Docker-only safeguards don't apply. The spend cap, admission slots and activity watchdog are not enforced for Fly runs.
  • Secrets are readable through the token. Environment secrets and uploaded credential copies sit in the Machine config, which anyone holding the deploy token can read until the Machine is destroyed.
  • Every run must start as root. The clone transport requires it. I'm also assuming Fly starts the process as root; if it doesn't, the launcher refuses the run with a clear message rather than running it wrongly.
  • Assumed API details. The request formats for exec and logs follow Fly's Go client and public docs. The real API should be checked before relying on this.

I also updated the two architecture pages (agent-runtime.md, coding-agent-integration.md). No previews were made, since nothing here is visible in the UI.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • packages/core/src/agents/credentials/hostCredentialStaging.ts (+4/−4): auth-looking path
  • Normal risk (11 files)
    • packages/core/src/agents/runtime/agentRunFileUpload.ts (added, +214/−0)
    • packages/core/src/agents/runtime/dockerRunArgs.ts (+11/−1)
    • packages/core/src/agents/runtime/dockerRuntime.ts (+2/−2)
    • packages/core/src/agents/runtime/flyMachinesApi.ts (added, +193/−0)
    • packages/core/src/agents/runtime/flyMachinesConfig.ts (added, +164/−0)
    • packages/core/src/agents/runtime/flyMachinesLaunch.ts (added, +189/−0)
    • packages/core/src/agents/runtime/flyMachinesRunHandle.ts (added, +360/−0)
    • packages/core/src/agents/runtime/flyMachinesRuntime.ts (added, +134/−0)
    • packages/core/src/agents/runtime/registry.ts (+27/−7)
    • packages/core/src/agents/runtime/types.ts (+24/−0)
    • packages/core/src/index.ts (+2/−0)
  • Low risk (3 files)
    • docs/docs/architecture/agent-runtime.md (+21/−1)
    • docs/docs/architecture/coding-agent-integration.md (+1/−1)
    • test/flyMachinesRuntime.test.ts (added, +351/−0)

Diff size: 15 files changed, +1,697/−16 lines

View task for the run's logs and conversation.


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


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

I added a `fly-machines` agent runtime that starts one ephemeral Fly Machine per run from the `propr/agent` image, with the image's own entrypoints. It has only been run against a fake Machines API and a local bash run of the launcher script — never against real Fly. Typecheck and lint pass, the 11 new tests pass, and the 10 existing runtime, credential and workspace-transport suites still pass.

How you select it: set `PROPR_AGENT_RUNTIME=fly-machines`, or `runtime: fly-machines` on an agent. I didn't call it `fly`, because an existing test uses `fly` as its example of an unknown runtime.

Configuration:
- Required: `PROPR_FLY_API_TOKEN` (falls back to `FLY_API_TOKEN`), a deploy token scoped to the app, and `PROPR_FLY_APP`.
- Optional: `PROPR_FLY_REGION` and `PROPR_FLY_MACHINE_SIZE` (`shared-cpu-<n>x` / `performance-<n>x`, default `performance-2x`). Memory comes from `PROPR_FLY_MACHINE_MEMORY_MB`, else the run's memory limit.
- `PROPR_FLY_IMAGE`: needed when the run's image is only built locally, because Fly can't pull a local image.

What a run does:
- Creation: each run is a Machine created through `api.machines.dev/v1` with auto-destroy on exit and restart policy `no`.
- Workspace: runs always use the clone workspace transport, since Fly can't bind-mount the worktree.
- Credentials: a new step (`agentRunFileUpload.ts`) turns credential mounts into per-run copies from the credential broker, uploaded as files. Refreshed tokens are read back after the run and written to the canonical store. Other mounted files are copied in (up to 16 MiB); log directories start empty.
- Prompt and output: Machines have no stdin, so a small launcher script feeds the prompt from a file. It forwards stop signals to the agent and keeps exact stdout/stderr in files. It also sends output to the console so the Fly logs API streams it live.
- Results: after the agent exits, the Machine waits so the worker can read the exact output and the clone result, then the worker destroys it.
- Stop, cancel, liveness: `stop()` signals the agent and the run ends with its exit code. If the agent doesn't exit in time, or the run is cancelled, the Machine is destroyed. Liveness comes from the Machine's state, and a crash or out-of-memory exit takes its exit code from Fly's record.
- MCP over `.internal`: private networking is declared only when the control plane runs on Fly. Runs then reach ProPR at `http://<app>.internal:<port>/api/mcp`, which you set as `PROPR_INTERNAL_API_URL` or `PROPR_AGENT_MCP_URL`. Elsewhere they use a reachable URL with the per-run token.
- Cold start and pre-warm: the time from create to started (image pull plus boot) is logged per run. `PROPR_FLY_PREWARM=1` pulls the image in the region once at startup and logs how long it took.

Things to know before using it:
- Restricted network runs are refused. Fly has no per-Machine outbound allowlist.
- Docker-only safeguards don't apply. The spend cap, admission slots and activity watchdog are not enforced for Fly runs.
- Secrets are readable through the token. Environment secrets and uploaded credential copies sit in the Machine config, which anyone holding the deploy token can read until the Machine is destroyed.
- Every run must start as root. The clone transport requires it. I'm also assuming Fly starts the process as root; if it doesn't, the launcher refuses the run with a clear message rather than running it wrongly.
- Assumed API details. The request formats for exec and logs follow Fly's Go client and public docs. The real API should be checked before relying on this.

I also updated the two architecture pages (`agent-runtime.md`, `coding-agent-integration.md`). No previews were made, since nothing here is visible in the UI.

ProPR-Agent: claude/claude-opus-5-5
@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 3767/claude-opus-5-5-flymachinesruntime-epheme-20261124-1023-ez4 in commit d922a38

Conflicting Files

  • packages/core/src/agents/runtime/registry.ts

Resolution Summary

Resolved both merge conflicts in the runtime registry.

  • Imports. Both branches added imports in the same location. I kept the PR’s file-upload and credential-collection helpers alongside the target branch’s compute-cost helper because the merged runtime uses both.
  • Run dispatch. The PR routed runs through a wrapper that retrieves refreshed credentials before the runtime is released. The target branch added compute-usage accounting to both workspace transport paths. I kept the wrapper in both paths and applied compute-usage accounting to their results. This preserves credential write-back and retains runtime-reported usage, with elapsed time as the fallback.

The workspace scan found no remaining merge conflict markers. TypeScript syntax, the core type check, and all 50 targeted tests passed.

Git could not mark the file resolved in the index because the index resides on a read-only filesystem. The resolved file is saved in the workspace.


🤖 Resolution Details

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

View Task Execution


System-triggered merge conflict resolution

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.

Automatically resolved merge conflicts after merging target branch into PR branch.
Resolved conflicts in:
- packages/core/src/agents/runtime/registry.ts

PR: #3784
Model: GPT-6.2 Sol
@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

CI failed: Full Test Suite Shard 2/4, Run Full Test Suite

Please investigate and fix these CI failures.

  • Check: Full Test Suite Shard 2/4
  • Result: failure
  • Commit: d922a385ae2b (d922a385ae2b028a6fea00f1cd11e3d9daf46db7)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:44852
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/


Depends on the failed job(s): Full Test Suite Shard 2/4. It may have failed only because they did; check them first.

Failure evidence

.github:68
Process completed with exit code 1.

.github:66
Full test suite shards finished with result 'failure'.

.github:4
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960, actions/download-artifact@018cc2c. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit b065f31

Summary of Changes

Fixed: the shard failed on the new test/flyMachinesRuntime.test.ts. All 11 tests in it passed, but the process never exited, so the runner killed it at 180s and marked it failed.

Cause: the runtime modules the test imports pull in @propr/core, which opens the shared SQLite connection when it loads. Nothing in the test closed that connection, so it kept the process alive. Other runtime tests avoid this by closing the connection at the end — test/agentRuntimeNetworkCapability.test.ts does it, for example.

Fix: I added the same after() hook to test/flyMachinesRuntime.test.ts. It calls closeConnection() and also deletes the temporary credential-run directory the test creates. The runtime code itself is unchanged.

Verification:

  • The file alone with tsx --test: 11 passed, exited 0 in about 7s. Before the fix it hung until my 60s timeout.
  • The file through the CI runner (node scripts/run-test-suite.mjs test/flyMachinesRuntime.test.ts): passed in 6.7s.

I didn't re-run the rest of Shard 2. The CI log shows this file as the only failure there.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • test/flyMachinesRuntime.test.ts (+9/−1)

Diff size: 1 file changed, +9/−1 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 5m 27s
  • Tokens: 615,433 (612,948 in / 2,485 out)
  • Cost: $0.43

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 ID: 7130112915✓

Fixed: the shard failed on the new `test/flyMachinesRuntime.test.ts`. All 11 tests in it passed, but the process never exited, so the runner killed it at 180s and marked it failed.

**Cause:** the runtime modules the test imports pull in `@propr/core`, which opens the shared SQLite connection when it loads. Nothing in the test closed that connection, so it kept the process alive. Other runtime tests avoid this by closing the connection at the end — `test/agentRuntimeNetworkCapability.test.ts` does it, for example.

**Fix:** I added the same `after()` hook to `test/flyMachinesRuntime.test.ts`. It calls `closeConnection()` and also deletes the temporary credential-run directory the test creates. The runtime code itself is unchanged.

**Verification:**
- The file alone with `tsx --test`: 11 passed, exited 0 in about 7s. Before the fix it hung until my 60s timeout.
- The file through the CI runner (`node scripts/run-test-suite.mjs test/flyMachinesRuntime.test.ts`): passed in 6.7s.

I didn't re-run the rest of Shard 2. The CI log shows this file as the only failure there.

PR: #3784
Comment by: @propr-dev[bot] (ID: 7130112915)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@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 adds a Fly Machines runtime with clone-based workspaces, credential uploads, output capture, and lifecycle management. It needs significant corrections before merge, particularly around termination and preservation of credentials and workspace results.

✅ Runtime integration — The dispatcher registers fly-machines, selects clone transport for runtimes without bind mounts, and collects credentials before workspace cleanup.

✅ Explicit network limitations — The capability declaration refuses restricted-network runs instead of claiming unsupported enforcement.

✅ Bounded output capture — Live output uses existing bounded buffers, and final stdout/stderr reads have explicit limits.

The supplied current-head checks show 18 passed, no failures, and no pending checks. This review is a static analysis of the supplied code; no commands or tests were run.

Merge blockers

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

F1: 🔴 Timeout settles without stopping execution

  • Category: correctness

  • Required behavior: A timed-out run must stop execution before reporting settlement and allowing result collection.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, stopAfterTimeout, run, and stop.

    1. An agent reaches its execution deadline and does not exit after SIGTERM.
    2. stopAfterTimeout() exhausts its grace period and sets exitCode = null, without stopping or destroying the Machine.
    3. run() collects output and settles the run while its process is still executing.
    4. Subsequent stop() calls return immediately because settled is true. Workspace and credential collection can therefore read files that the agent is still changing.

    The automatic removal timer is delayed, and launcher linger starts only after the process exits. Neither establishes termination before settlement. The timeout test covers a cooperative agent, not this path. static trace: the timeout branch contains no forced termination after the grace period.

  • Minimum fix: Force termination when the grace period expires and establish that execution has stopped before settling. Preserve available partial output without treating an active run as completed.

F2: 🔴 Failed cancellation disables subsequent cleanup

  • Category: correctness

  • Required behavior: A failed destroy request must leave the Machine eligible for cleanup.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, destroyAfterAbort, constructor settlement callback, and release.

    1. A running Machine receives cancellation.
    2. destroyAfterAbort() sets machineGone = true before awaiting destroyMachine().
    3. The DELETE fails, for example with an API 503; the error is logged and swallowed.
    4. The run rejects, but both automatic removal and release() skip destruction because machineGone is already true.

    The remote process can continue running and consuming resources after cancellation. auto_destroy only helps after that process exits; it does not stop it. static trace: both cleanup paths condition their DELETE on !machineGone, while the failed DELETE leaves that flag set.

  • Minimum fix: Mark the Machine gone only after confirmed destruction or absence. Preserve cleanup eligibility after failure and allow subsequent release to retry destruction.

F3: 🔴 Collection time overwrites newer credentials

  • Category: correctness

  • Required behavior: Concurrent credential write-back must preserve the newer credential version, using modification time rather than collection order.

  • Evidence: packages/core/src/agents/runtime/agentRunFileUpload.ts, uploadAgentRunFiles credential collection.

    1. Two runs receive the same credential baseline. Run A refreshes its credential first but continues executing.
    2. Run B refreshes later, finishes, and commits its newer credential while A is still awaiting completion.
    3. A finishes afterward. Its returned credential receives mtimeMs: Date.now(), representing collection time rather than its earlier refresh.
    4. The broker detects a changed canonical baseline, compares timestamps, and overwrites B’s newer credential with A’s older one.

    Concurrent runs are supported, and the broker lock serializes writes without correcting their supplied timestamps. This can restore an obsolete refresh token and break subsequent authentication. static trace: the new collector invents timestamps; the supplied broker.ts conflict path trusts them when choosing written-newer.

  • Minimum fix: Return the remote file’s modification time with its content and use it for conflict resolution, or conservatively preserve the changed canonical credential when reliable version ordering is unavailable.

F4: 🔴 Failed credential write-back loses refreshed tokens

  • Category: correctness

  • Required behavior: Failure to persist refreshed credentials must preserve their recoverable copy.

  • Evidence: packages/core/src/agents/runtime/agentRunFileUpload.ts, credential collection’s broker.commit() catch and collectingHandle.

    1. An agent refreshes a credential, and collection reads the updated bytes successfully.
    2. broker.commit() fails because the canonical store cannot be written.
    3. The collector logs the error and returns an empty result, so collectingHandle.wait() completes normally.
    4. On an otherwise successful run, workspace cleanup releases and destroys the Machine. The collector has saved no durable copy of the refreshed credential.

    The refreshed token is lost, potentially leaving an invalid canonical token. The existing host-staging implementation explicitly retains failed write-back copies; this new transport has no equivalent protection. static trace: the catch discards the collected bytes and communicates no preservation obligation to cleanup.

  • Minimum fix: Durably save uncommitted refreshed credentials to a protected recovery location before permitting Machine cleanup, and report that location. Cover both commit failures and collection failures where the Machine may hold the only refreshed copy.

F5: 🔴 Retained workspace results still self-destruct

  • Category: correctness

  • Required behavior: retain() must preserve a sandbox holding the last recoverable workspace result until explicit release.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, retain; packages/core/src/agents/runtime/flyMachinesLaunch.ts, LAUNCHER_SCRIPT and renderFlyMachineRequest.

    1. The clone wrapper cannot push its result and leaves a fallback bundle in the Machine.
    2. The worker cannot retrieve that bundle. The clone transport retains the handle because the sandbox may hold the only recoverable result.
    3. retain() cancels only the worker’s removal timer.
    4. The launcher’s independent linger timer expires and exits. With auto_destroy: true, the Machine and its bundle are deleted despite retention.

    This converts a recoverable result-transfer failure into loss of the agent’s work. Configuring a longer finite linger merely delays the same failure. static trace: retention never updates the launcher or the Machine’s automatic destruction behavior; the supplied clone contract requires retention until explicit release.

  • Minimum fix: Make retention prevent automatic destruction until explicit release, or durably preserve the result elsewhere before claiming it is retained.

F6: 🔴 Credential size limit applies after allocation

  • Category: security

  • Required behavior: Credential output limits must bound remote reads and worker memory consumption before accepting untrusted files.

  • Evidence: packages/core/src/agents/runtime/agentRunFileUpload.ts, credential collection; packages/core/src/agents/runtime/flyMachinesRunHandle.ts, readFile and execRead.

    1. A run writes an oversized regular file at a refreshable credential path, such as .credentials.json.
    2. The collector calls handle.readFile() without a size bound.
    3. execRead() obtains the size, downloads every chunk, retains all chunks, and concatenates the complete file.
    4. Only afterward does the collector compare its length with MAX_RETURNED_CREDENTIAL_BYTES.

    A sandbox-controlled credential file can therefore exhaust worker memory or hold collection open for a large transfer. Chunking limits individual responses, not aggregate allocation. The bounded stdout/stderr reads do not protect this path. static trace: readFile() omits maxBytes, and the credential length check happens after the complete buffer is returned.

  • Minimum fix: Support a maximum accepted file size in the remote read operation and reject oversized credential files immediately after stat, before downloading their contents. Do not truncate credentials and commit the truncated result.

Suggestions

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

S1: 🟢 Validate the actual Fly contract

The fake API accepts the request and response shapes defined by this implementation, so it cannot independently validate exec, logs, upload permissions, or image-user behavior. An opt-in integration smoke test against Fly would provide valuable deployment confidence. This is an additional verification recommendation, not a claim that those API assumptions are wrong.

S2: 🟢 Update runtime overview wording

The architecture pages still say every agent runs in Docker, while their new sections describe Fly execution. Updating those introductory statements would make the documentation consistent. This is editorial cleanup and does not block runtime correctness.

Score

The integration is coherent and current checks pass, but termination and recovery defects can leave execution running or lose credentials and workspace results. These require correction before merge.

Score: 4/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 43s
  • Tokens: 83,658 (81,084 in / 2,574 out)
  • Cost: $0.81

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 S1 S2

🤖 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 800d335

Addressed 1 AI review comment (IDs: 7130806282)

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

Summary of Changes

I've fixed all six findings (F1–F6) and added a regression test for each. All 19 tests in test/flyMachinesRuntime.test.ts pass. Against the original code, all 8 new tests fail. As before, this has only run against the fake Machines API plus a local bash run of the launcher, never against real Fly.

F1 – a timed-out run kept executing. After the grace period the worker now kills the agent's whole process group: the launcher starts the agent in its own session (setsid) and records its pid. The Machine stays, so partial output and result files are still readable. If the kill isn't confirmed, the Machine is destroyed before the run settles. If the destroy also fails, the run fails instead of reporting a timeout. The same rule now covers every error after the Machine is created, including a start timeout: the run never settles while the agent might still be running.

F2 – a failed cancel destroy blocked cleanup. The Machine counts as gone only after a destroy request succeeds (a 404 also counts). After a failure, cleanup retries it, starting at 30s and backing off to 10 minutes. A failed release() no longer gets cached, so the next call tries again.

F3 – collection time overwrote newer credentials. Remote reads now return the file's modification time inside the Machine, and the broker uses that to decide which copy is newer. A runtime that reports no modification time gets time 0, so a canonical credential that changed meanwhile is kept, never overwritten.

F4 – failed write-back lost refreshed tokens.

  • Write-back fails: the refreshed copy is saved (fsynced) to a root-only <run>-recovered-* directory under the credential run root. It carries the same "retained" marker as host staging, so it is never swept. The location is logged and returned.
  • Credential can't be read back, or can't be saved: the Machine may hold the only copy, so it is kept and release() doesn't destroy it. An operator has to remove it by hand.

F5 – retained runs still self-destructed. retain() now writes a marker into the Machine, and the launcher keeps waiting while the marker exists until the Machine is destroyed. File reads made after retain() wait for the marker to be written first. One gap remains: if retain() is called after the linger has already run out (at least 30s, default 15 min), the Machine is already gone.

F6 – credential size checked after download. Remote reads accept a size limit and refuse an oversized file right after the size check, before downloading any of it. Credential reads pass the 1 MiB limit, and oversized files are never written back. The exit-status file read now has a small limit too.

Other changes:

  • New method: AgentRunHandle gets an optional readFileWithStat(path, { maxBytes }).
  • Docs: agent-runtime.md is updated to describe this behaviour.

Checks:

  • Launcher, run locally in bash: an agent ignoring SIGTERM, together with a child process, is killed and records exit 137. A retained run keeps waiting past its linger and exits on SIGTERM. An unretained run still exits when its linger ends.
  • Other suites, typecheck, lint: the 8 neighbouring suites pass (five of them need --experimental-test-module-mocks). Core typecheck and both zero-warning lint gates are clean.

Limits that can't be fully fixed:

  • Clock skew: the Machine's clock can differ from the clock that dates the canonical file, and nothing here can correct that.
  • Lost create response: if the create request succeeds but its response never arrives, there is no Machine id to destroy.

Not fixed (outside these findings): the clone transport still reads the workspace result bundle through readFile with no size limit.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (5 files)
    • packages/core/src/agents/runtime/agentRunFileUpload.ts (+123/−16)
    • packages/core/src/agents/runtime/flyMachinesApi.ts (+10/−0)
    • packages/core/src/agents/runtime/flyMachinesLaunch.ts (+17/−4)
    • packages/core/src/agents/runtime/flyMachinesRunHandle.ts (+198/−66)
    • packages/core/src/agents/runtime/types.ts (+12/−0)
  • Low risk (2 files)
    • docs/docs/architecture/agent-runtime.md (+2/−2)
    • test/flyMachinesRuntime.test.ts (+235/−4)

Diff size: 7 files changed, +597/−92 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 16m 30s
  • Tokens: 5,564,512 (5,511,981 in / 52,531 out)
  • Cost: $2.92
  • 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

I've fixed all six findings (F1–F6) and added a regression test for each. All 19 tests in `test/flyMachinesRuntime.test.ts` pass. Against the original code, all 8 new tests fail. As before, this has only run against the fake Machines API plus a local bash run of the launcher, never against real Fly.

**F1 – a timed-out run kept executing.** After the grace period the worker now kills the agent's whole process group: the launcher starts the agent in its own session (`setsid`) and records its pid. The Machine stays, so partial output and result files are still readable. If the kill isn't confirmed, the Machine is destroyed before the run settles. If the destroy also fails, the run fails instead of reporting a timeout. The same rule now covers every error after the Machine is created, including a start timeout: the run never settles while the agent might still be running.

**F2 – a failed cancel destroy blocked cleanup.** The Machine counts as gone only after a destroy request succeeds (a 404 also counts). After a failure, cleanup retries it, starting at 30s and backing off to 10 minutes. A failed `release()` no longer gets cached, so the next call tries again.

**F3 – collection time overwrote newer credentials.** Remote reads now return the file's modification time inside the Machine, and the broker uses that to decide which copy is newer. A runtime that reports no modification time gets time 0, so a canonical credential that changed meanwhile is kept, never overwritten.

**F4 – failed write-back lost refreshed tokens.**
- **Write-back fails:** the refreshed copy is saved (fsynced) to a root-only `<run>-recovered-*` directory under the credential run root. It carries the same "retained" marker as host staging, so it is never swept. The location is logged and returned.
- **Credential can't be read back, or can't be saved:** the Machine may hold the only copy, so it is kept and `release()` doesn't destroy it. An operator has to remove it by hand.

**F5 – retained runs still self-destructed.** `retain()` now writes a marker into the Machine, and the launcher keeps waiting while the marker exists until the Machine is destroyed. File reads made after `retain()` wait for the marker to be written first. One gap remains: if `retain()` is called after the linger has already run out (at least 30s, default 15 min), the Machine is already gone.

**F6 – credential size checked after download.** Remote reads accept a size limit and refuse an oversized file right after the size check, before downloading any of it. Credential reads pass the 1 MiB limit, and oversized files are never written back. The exit-status file read now has a small limit too.

**Other changes:**
- **New method:** `AgentRunHandle` gets an optional `readFileWithStat(path, { maxBytes })`.
- **Docs:** `agent-runtime.md` is updated to describe this behaviour.

**Checks:**
- **Launcher, run locally in bash:** an agent ignoring SIGTERM, together with a child process, is killed and records exit 137. A retained run keeps waiting past its linger and exits on SIGTERM. An unretained run still exits when its linger ends.
- **Other suites, typecheck, lint:** the 8 neighbouring suites pass (five of them need `--experimental-test-module-mocks`). Core typecheck and both zero-warning lint gates are clean.

**Limits that can't be fully fixed:**
- **Clock skew:** the Machine's clock can differ from the clock that dates the canonical file, and nothing here can correct that.
- **Lost create response:** if the create request succeeds but its response never arrives, there is no Machine id to destroy.

**Not fixed (outside these findings):** the clone transport still reads the workspace result bundle through `readFile` with no size limit.

PR: #3784
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@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

This PR adds an ephemeral Fly Machines runtime with clone-based workspaces, credential uploads, output capture, and lifecycle management. It needs changes before merge because credential recovery and Machine cleanup have concrete failure paths.

✅ Workspace integration — Dispatch preserves clone preparation and collects credentials before workspace cleanup releases the handle.

✅ Bounded credential transfers — Credential reads check remote file size before transferring content and preserve remote modification times for concurrent write-back decisions.

✅ Explicit capability limits — The runtime declares unsupported bind mounts and restricted networking, allowing dispatch to refuse incompatible runs.

This review is a static analysis of the supplied code; no commands were run. Current checks report 16 passed, one pending, and no failures.

Merge blockers

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

F7: 🔴 Reject symlinks when collecting credentials

  • Category: security

  • Required behavior: Credential collection must read only regular files within the credential store and preserve the separation between the unprivileged agent and root-owned runtime state.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, execRead; packages/core/src/agents/runtime/agentRunFileUpload.ts, readReturnedCredential

    1. The agent can replace its writable credential output, such as .credentials.json, with a symlink to a root-readable file outside the credential store.
    2. Collection executes [ -f "$1" ] as the Machine's root execution context; that check follows the symlink. stat reports the link's metadata, and the subsequent tail command follows the link and reads its target.
    3. Those target bytes are returned as credential content and can be written into the worker's canonical credential store. Padding the symlink target with redundant /./ components increases the link size used as the read length.

    static trace: The changed reader performs no symlink or store-containment check. The broker validates the declared output name and content size, but receives no information about the remote symlink. The existing host collector instead uses readRegularFileInside. The size limit therefore does not prevent privileged reads outside the intended store.

  • Minimum fix: Add a credential-specific remote reader that enforces store containment and rejects symlink traversal, including parent components, while opening the file. Preserve the general runtime file reader separately if workspace retrieval requires it.

F8: 🔴 Preserve refreshes from unwritable stores

  • Category: correctness

  • Required behavior: A refreshed credential that cannot be committed must remain recoverable instead of being destroyed with the ephemeral run.

  • Evidence: packages/core/src/agents/runtime/agentRunFileUpload.ts, uploadAgentRunFiles and collect

    1. A writable credential mount refers to a canonical store that the worker can read but cannot write.
    2. canWriteBack(mount) returns false, so the upload step logs a warning and still launches the agent with a writable credential copy.
    3. The provider refreshes its credential inside the Machine.
    4. Collection filters out this target because writeBack is false. It neither reads the refresh nor saves a recovery copy, and returns keepRun: false.
    5. Normal workspace cleanup destroys the Machine, losing the refreshed credential and potentially leaving the canonical login unusable after token rotation.

    static trace: Recovery and retention only operate on targets admitted to the collection loop. The warning does not prevent the run or preserve its output. The existing host implementation handles this condition by retaining a direct mount or refusing explicitly requested per-run staging.

  • Minimum fix: Refuse these runs before launch, or collect their refreshable outputs and save them through the existing recovery mechanism even when canonical write-back is unavailable.

F9: 🔴 Retry failed explicit Machine releases

  • Category: correctness

  • Required behavior: Once result recovery completes, cleanup must destroy the ephemeral Machine or retain an active retry obligation.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, release, retain, and scheduleRelease

    1. A clone run returns a bundle, so workspace completion calls retain() before retrieving it. This cancels the removal timer and creates the marker that disables the launcher's automatic expiry.
    2. The worker successfully retrieves and applies the result, then workspace cleanup calls release().
    3. The DELETE request fails transiently. release() clears its promise and throws, but schedules no retry.
    4. runWithWorkspaceTransport catches and logs the cleanup error. No subsequent release call is scheduled, while the retained Machine continues waiting indefinitely.

    static trace: Retry scheduling exists only in the callback installed by scheduleRelease. A direct release from workspace cleanup bypasses that callback, and retention has already removed its timer. The new test demonstrates recovery only through an additional manual release() call, which the supplied production caller does not make.

  • Minimum fix: Make failed explicit releases schedule bounded-backoff destruction retries, including for previously retained Machines whose release has now been requested.

Suggestions

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

S3: 🟢 Validate the real API contract

The fake API accepts exactly the request shapes implemented by this client, so it cannot independently validate authentication, file injection, signal requests, pagination, or exec response limits. An opt-in real-Fly smoke test would strengthen confidence in those assumptions. This is optional validation beyond the concrete defects above.

S4: 🟢 Share credential recovery helpers

The upload module duplicates changedOutputs and portions of the retained-credential persistence logic already present in hostCredentialStaging.ts. A small shared helper could reduce divergence between host and remote recovery behavior. This cleanup is optional; the demonstrated defects can be fixed locally.

Score

The implementation covers substantial lifecycle behavior, but privileged credential reads, lost refreshes, and indefinite Machine retention remain merge blockers. Passing checks and focused fake-API tests do not cover these paths.

Score: 5/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 48s
  • Tokens: 87,507 (85,126 in / 2,381 out)
  • Cost: $0.84

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 F8 F9 S3 S4

🤖 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 be55f62

Addressed 1 AI review comment (IDs: 7131753273)

Addressed findings F7, F8, F9

Summary of Changes

I fixed all three findings (F7, F8, F9). The 22 tests in test/flyMachinesRuntime.test.ts pass, typecheck is clean, and lint passes with zero warnings. As before, none of this has been run against real Fly; it was all checked against the fake Machines API.

F7 — Reject symlinks when collecting credentials

  • New credential-only reader: readCredentialFile(root, relative, { maxBytes }), added as an optional method on AgentRunHandle in types.ts. Its Fly implementation lives in a new file, flyMachinesFileRead.ts. The general readFile/readFileWithStat reader is unchanged and still used for output and results.
  • What the reader refuses:
    • Before running anything, it rejects paths whose segments are .., . or empty, or whose root is not absolute.
    • On the Machine, it refuses a symlink anywhere on the path, including the store directory and its parents.
  • How it reads: one shell script that:
    • enters the directory with cd -P and checks pwd -P is exactly the expected path.
    • checks the name isn't a symlink and is a regular file.
    • opens the file and checks /proc/$$/fd/3 points at exactly that path, so a symlink swapped in after the checks is still caught.
    • takes the size, modification time and content all from that one open file. Reads are capped at the limit plus one byte, so a file that grows after the size check is refused.
  • What happens on a refusal: a symlinked output is logged and treated as missing, the same as the host collector's readRegularFileInside.
  • Collector change: agentRunFileUpload.ts now reads credentials only through this reader. A handle without it counts as unread, so the run is kept rather than read through the general reader.

F8 — Preserve refreshes from unwritable stores

uploadAgentRunFiles now refuses the run before any Machine is created if a writable credential mount points at a store the worker can't write to. That matches the host's behaviour when per-run copies are explicitly requested, since a Fly run has no direct mount to fall back to. Read-only mounts still run.

F9 — Retry failed explicit Machine releases

  • Retries: release() now marks the release as requested. Any failed destroy, including a failed explicit release of a retained Machine, is retried with doubling backoff capped at 10 minutes until one succeeds. The scheduled retries go through the same path.
  • Retain after release: retain() no longer cancels a pending retry once release has been requested.
  • Unchanged: an automatic removal that fails after a concurrent retain() still leaves the Machine to whoever retained it.

Tests

  • New regressions (all three fail against the previous versions of the two source files):
    • Symlinks: the real reader script runs under /bin/sh against real symlinks — a symlinked file, a symlinked parent directory, a symlinked store root, a directory, a missing file, an oversized file, and .. or absolute paths. A handle with only the general reader is never used for credentials.
    • Unwritable store: the run is refused, the runtime's start() is never called, and a read-only mount still works.
    • Release retries: a failed release() of a retained Machine is retried at 60 s, then again at 120 s, with no further release() call, and stops once the destroy succeeds.
  • Updated: the existing upload and write-back tests now supply the credential reader in their fake handles.
  • Neighbouring suites: the credential broker, runtime registry, worker credentials, workspace transport, context analysis and review scout suites all pass when run with --experimental-test-module-mocks, as test:unit does.

Other changes and remaining limits

  • Line limit: to stay under the 400-line lint limit, the existing general Machine file reader moved unchanged from flyMachinesRunHandle.ts into the new flyMachinesFileRead.ts.
  • Docs: agent-runtime.md now describes the symlink refusal, the refusal of unwritable stores, and the retry behaviour.
  • Things it can't fully stop (none returns content from outside the store):
    • If an agent process left running swaps in a FIFO between the checks and the open, the exec times out. That output then counts as unread, so the Machine is kept.
    • A hard link to a root-owned file is not detected by the path check. It relies on the kernel's protected_hardlinks setting, which normally blocks the agent from creating one.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (4 files)
    • packages/core/src/agents/runtime/agentRunFileUpload.ts (+28/−15)
    • packages/core/src/agents/runtime/flyMachinesFileRead.ts (added, +96/−0)
    • packages/core/src/agents/runtime/flyMachinesRunHandle.ts (+39/−41)
    • packages/core/src/agents/runtime/types.ts (+10/−0)
  • Low risk (2 files)
    • docs/docs/architecture/agent-runtime.md (+1/−1)
    • test/flyMachinesRuntime.test.ts (+114/−4)

Diff size: 6 files changed, +288/−61 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 12m 21s
  • Tokens: 3,500,951 (3,500,537 in / 414 out)
  • Cost: $1.27

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

I fixed all three findings (F7, F8, F9). The 22 tests in `test/flyMachinesRuntime.test.ts` pass, typecheck is clean, and lint passes with zero warnings. As before, none of this has been run against real Fly; it was all checked against the fake Machines API.

## F7 — Reject symlinks when collecting credentials
- **New credential-only reader:** `readCredentialFile(root, relative, { maxBytes })`, added as an optional method on `AgentRunHandle` in `types.ts`. Its Fly implementation lives in a new file, `flyMachinesFileRead.ts`. The general `readFile`/`readFileWithStat` reader is unchanged and still used for output and results.
- **What the reader refuses:**
  - Before running anything, it rejects paths whose segments are `..`, `.` or empty, or whose root is not absolute.
  - On the Machine, it refuses a symlink anywhere on the path, including the store directory and its parents.
- **How it reads:** one shell script that:
  - enters the directory with `cd -P` and checks `pwd -P` is exactly the expected path.
  - checks the name isn't a symlink and is a regular file.
  - opens the file and checks `/proc/$$/fd/3` points at exactly that path, so a symlink swapped in after the checks is still caught.
  - takes the size, modification time and content all from that one open file. Reads are capped at the limit plus one byte, so a file that grows after the size check is refused.
- **What happens on a refusal:** a symlinked output is logged and treated as missing, the same as the host collector's `readRegularFileInside`.
- **Collector change:** `agentRunFileUpload.ts` now reads credentials only through this reader. A handle without it counts as unread, so the run is kept rather than read through the general reader.

## F8 — Preserve refreshes from unwritable stores
`uploadAgentRunFiles` now refuses the run before any Machine is created if a writable credential mount points at a store the worker can't write to. That matches the host's behaviour when per-run copies are explicitly requested, since a Fly run has no direct mount to fall back to. Read-only mounts still run.

## F9 — Retry failed explicit Machine releases
- **Retries:** `release()` now marks the release as requested. Any failed destroy, including a failed explicit release of a retained Machine, is retried with doubling backoff capped at 10 minutes until one succeeds. The scheduled retries go through the same path.
- **Retain after release:** `retain()` no longer cancels a pending retry once release has been requested.
- **Unchanged:** an automatic removal that fails after a concurrent `retain()` still leaves the Machine to whoever retained it.

## Tests
- **New regressions** (all three fail against the previous versions of the two source files):
  - **Symlinks:** the real reader script runs under `/bin/sh` against real symlinks — a symlinked file, a symlinked parent directory, a symlinked store root, a directory, a missing file, an oversized file, and `..` or absolute paths. A handle with only the general reader is never used for credentials.
  - **Unwritable store:** the run is refused, the runtime's `start()` is never called, and a read-only mount still works.
  - **Release retries:** a failed `release()` of a retained Machine is retried at 60 s, then again at 120 s, with no further `release()` call, and stops once the destroy succeeds.
- **Updated:** the existing upload and write-back tests now supply the credential reader in their fake handles.
- **Neighbouring suites:** the credential broker, runtime registry, worker credentials, workspace transport, context analysis and review scout suites all pass when run with `--experimental-test-module-mocks`, as `test:unit` does.

## Other changes and remaining limits
- **Line limit:** to stay under the 400-line lint limit, the existing general Machine file reader moved unchanged from `flyMachinesRunHandle.ts` into the new `flyMachinesFileRead.ts`.
- **Docs:** `agent-runtime.md` now describes the symlink refusal, the refusal of unwritable stores, and the retry behaviour.
- **Things it can't fully stop** (none returns content from outside the store):
  - If an agent process left running swaps in a FIFO between the checks and the open, the exec times out. That output then counts as unread, so the Machine is kept.
  - A hard link to a root-owned file is not detected by the path check. It relies on the kernel's `protected_hardlinks` setting, which normally blocks the agent from creating one.

PR: #3784
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@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 adds a substantial Fly Machines runtime with clone workspace transport, credential upload/write-back, output capture, and lifecycle management. It needs changes before merge: forced timeouts can lose workspace changes, and release during creation can disable cleanup retries.

✅ Credential isolation — Uploads use provider manifests, and credential collection exclusively uses the confined reader.

✅ Recovery coverage — Tests exercise failed credential commits, retention, cancellation, and repeated destruction failures.

This review used static analysis of the supplied code; no commands were run. Current checks show 13 passed, four pending, and no failures.

Merge blockers

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

F10: 🔴 Forced timeout kills workspace finalization

  • Category: correctness

  • Required behavior: Timed-out implementation runs must preserve their workspace changes through the clone transport.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, stopAfterTimeout; packages/core/src/agents/runtime/flyMachinesLaunch.ts, LAUNCHER_SCRIPT

    1. A clone-mode agent modifies its checkout, then ignores TERM.
    2. The launcher’s setsid "$@" starts the clone transport wrapper as the recorded process-group leader.
    3. After the timeout grace period, stopAfterTimeout kills that entire group, including the clone wrapper responsible for snapshotting and publishing the workspace.
    4. The outer launcher records the killed wrapper’s status, and the runtime returns a timed-out result.
    5. Workspace completion finds neither a published result nor a fallback bundle: the process responsible for producing both was killed.

    The checkout may remain inside the Machine, but its changes are not returned to the worker or published through the normal partial-result flow. Keeping the Machine and capture files does not execute the missing snapshot step. The timeout test uses FakeFly.finish() to synthesize completion and does not run the clone wrapper.

    static trace: verified against the launcher command chain, forced-kill target, and supplied workspace transport finalization contract.

  • Minimum fix: Target forced termination at the agent subtree while keeping the clone wrapper alive to finalize changes, and wait for its finalization before collecting the result. Add a regression using the actual wrapper with an agent that modifies a file and ignores TERM.

F11: 🔴 Early release can suppress destruction retries

  • Category: correctness

  • Required behavior: Releasing a run must clean up a Machine created by an outstanding launch, including retrying failed destruction.

  • Evidence: packages/core/src/agents/runtime/flyMachinesRunHandle.ts, run, destroy, and constructor settlement callback

    1. A caller invokes release() while createMachine() is awaiting its response and machineId is unset.
    2. destroy() calls stop(). Cancellation is recorded, but creation can take up to 120 seconds; stop() throws after its shorter settlement window.
    3. destroy() suppresses that error, sees no machineId, and resolves. Its successful promise remains stored in this.released.
    4. Creation subsequently returns a Machine ID. The cancellation branch attempts destruction, but that DELETE fails.
    5. The run rejects, and its settlement callback returns immediately because this.released is already set. No destruction retry is scheduled; subsequent release() calls also return the cached successful promise.

    A running Machine can remain after release without the promised cleanup retries. This interleaving uses the outstanding create request and one explicitly handled DELETE failure; no competing owner or speculative lease expiry is needed. Existing retry tests release Machines only after their IDs are available.

    static trace: verified from the create timeout, stop() settlement window, swallowed stop error, cached release promise, and settlement guard.

  • Minimum fix: Keep release pending until creation settles and any resulting Machine is destroyed. Do not cache successful release while creation remains outstanding; ensure a later failed destruction schedules retries. Cover delayed creation followed by a failed DELETE.

Suggestions

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

S5: 🟢 Validate the real API contract

An opt-in integration smoke test would strengthen confidence in creation, uploaded permissions, exec responses, and log pagination. The fake API reproduces the client’s assumptions, so it cannot independently validate them. This is optional here because no specific external API incompatibility was established.

S6: 🟢 Correct the credential reader documentation

coding-agent-integration.md says refreshed credentials are collected through readFile, while the implementation deliberately requires readCredentialFile. Updating that wording would clarify the security boundary; it does not affect execution.

Score

The implementation has useful recovery logic and focused tests, but two lifecycle defects remain in consequential paths. Passing checks do not cover these sequences.

Score: 5/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 18s
  • Tokens: 92,139 (90,367 in / 1,772 out)
  • Cost: $0.88

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 F10 F11 S5 S6

🤖 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 acf6bc9

Addressed 1 AI review comment (IDs: 7132229860)

Addressed findings F10, F11

Summary of Changes

I fixed both findings, F10 and F11, and added regression tests for each. Every new test fails against the old code and passes with the fix. Typecheck and lint for packages/core are clean. The full suites pass: flyMachinesRuntime (24 tests), the new flyMachinesForcedStop (2), and workspaceTransport (22). workspaceTransport needs PROPR_DEMO_MODE=true in this container, or it exits early on the GitHub-auth banner. As before, none of this has run against real Fly.

F10: a forced timeout no longer kills the clone wrapper

  • Wrapper phase (workspaceTransportScript.ts): the clone wrapper writes a phase file in its result directory. It says agent while the agent runs and finalizing once it starts the snapshot and publish. The worker never reads this file, so Docker runs behave as before.
  • New forced-stop script (FLY_FORCED_STOP_SCRIPT in flyMachinesLaunch.ts): it pauses the wrapper while it reads the phase, so the wrapper can't start finalizing in between. Then it acts on the phase:
    • agent: it kills every other process in the run's session: the agent, its children and anything it left behind. The wrapper sees its agent exit, then snapshots and publishes.
    • finalizing: it kills nothing.
    • No phase yet, or a run without the clone wrapper: it kills the whole process group, as before.
  • Waiting for finalization (stopAfterTimeout): for clone runs the handle waits up to 3 minutes for the launcher to record the exit before it collects the result. The fallback is unchanged: if that doesn't happen, the Machine is destroyed.
  • Tests:
    • The main regression runs the real launcher and the real clone wrapper locally. Its agent edits files, leaves a process behind and ignores TERM. The test checks that the exit is 137, the leftover process is dead, the status is pushed, and the result ref on the remote has the edited files. With the old kill command the status file is never written.
    • A second test checks that a finalizing wrapper is spared and not left paused, and that the whole group is killed when there is no phase.
    • A third test, using the fake Machines API, checks that the run waits past the old 15-second window while the wrapper finalizes.

F11: release() during a slow create

  • Fix: after stop() gives up, destroy() now waits for the run itself to settle before checking for a Machine. A Machine whose create request returns late is then destroyed by the release. If that destroy fails, the release rejects instead of caching a success, and retries are scheduled.
  • Test: the create request is held past stop()'s 15-second window, then the cancellation's DELETE and the release's DELETE both fail. The test checks that the release stayed pending, then rejected, and that the automatic retry destroys the Machine. With the old code the release resolved early.

The architecture page (agent-runtime.md) and the wrapper's header comment now describe both behaviours.

Separate issues I noticed but did not change

  • Docker runs: a Docker clone run that times out is stopped with its whole container, wrapper included. It probably loses its changes the same way, but the Docker path is outside this PR's changes.
  • Late TERM: the wrapper stops forwarding TERM once it starts finalizing, so a second TERM during finalization (for example from stop()) would kill it. The timeout path sends TERM only once.

No previews, since nothing here is visible in the UI.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/agents/runtime/flyMachinesLaunch.ts (+41/−0)
    • packages/core/src/agents/runtime/flyMachinesRunHandle.ts (+24/−8)
    • packages/core/src/git/workspaceTransportScript.ts (+13/−1)
  • Low risk (3 files)
    • docs/docs/architecture/agent-runtime.md (+1/−1)
    • test/flyMachinesForcedStop.test.ts (added, +196/−0)
    • test/flyMachinesRuntime.test.ts (+67/−1)

Diff size: 6 files changed, +342/−11 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 12m 24s
  • Tokens: 3,636,604 (3,600,853 in / 35,751 out)
  • Cost: $2.02
  • 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

I fixed both findings, F10 and F11, and added regression tests for each. Every new test fails against the old code and passes with the fix. Typecheck and lint for `packages/core` are clean. The full suites pass: `flyMachinesRuntime` (24 tests), the new `flyMachinesForcedStop` (2), and `workspaceTransport` (22). `workspaceTransport` needs `PROPR_DEMO_MODE=true` in this container, or it exits early on the GitHub-auth banner. As before, none of this has run against real Fly.

### F10: a forced timeout no longer kills the clone wrapper
- **Wrapper phase** (`workspaceTransportScript.ts`): the clone wrapper writes a `phase` file in its result directory. It says `agent` while the agent runs and `finalizing` once it starts the snapshot and publish. The worker never reads this file, so Docker runs behave as before.
- **New forced-stop script** (`FLY_FORCED_STOP_SCRIPT` in `flyMachinesLaunch.ts`): it pauses the wrapper while it reads the phase, so the wrapper can't start finalizing in between. Then it acts on the phase:
  - **`agent`:** it kills every other process in the run's session: the agent, its children and anything it left behind. The wrapper sees its agent exit, then snapshots and publishes.
  - **`finalizing`:** it kills nothing.
  - **No phase yet, or a run without the clone wrapper:** it kills the whole process group, as before.
- **Waiting for finalization** (`stopAfterTimeout`): for clone runs the handle waits up to 3 minutes for the launcher to record the exit before it collects the result. The fallback is unchanged: if that doesn't happen, the Machine is destroyed.
- **Tests:**
  - The main regression runs the real launcher and the real clone wrapper locally. Its agent edits files, leaves a process behind and ignores TERM. The test checks that the exit is 137, the leftover process is dead, the status is `pushed`, and the result ref on the remote has the edited files. With the old kill command the status file is never written.
  - A second test checks that a `finalizing` wrapper is spared and not left paused, and that the whole group is killed when there is no phase.
  - A third test, using the fake Machines API, checks that the run waits past the old 15-second window while the wrapper finalizes.

### F11: `release()` during a slow create
- **Fix:** after `stop()` gives up, `destroy()` now waits for the run itself to settle before checking for a Machine. A Machine whose create request returns late is then destroyed by the release. If that destroy fails, the release rejects instead of caching a success, and retries are scheduled.
- **Test:** the create request is held past `stop()`'s 15-second window, then the cancellation's DELETE and the release's DELETE both fail. The test checks that the release stayed pending, then rejected, and that the automatic retry destroys the Machine. With the old code the release resolved early.

The architecture page (`agent-runtime.md`) and the wrapper's header comment now describe both behaviours.

### Separate issues I noticed but did not change
- **Docker runs:** a Docker clone run that times out is stopped with its whole container, wrapper included. It probably loses its changes the same way, but the Docker path is outside this PR's changes.
- **Late TERM:** the wrapper stops forwarding TERM once it starts finalizing, so a second TERM during finalization (for example from `stop()`) would kill it. The timeout path sends TERM only once.

No previews, since nothing here is visible in the UI.

PR: #3784
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@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 adds an ephemeral Fly runtime with clone-based workspaces, uploaded credentials, output capture, and cleanup. It needs changes before merge because it silently drops security requirements and accepts unreadable environment files.

✅ Credential confinement — Credential collection exclusively uses the confined reader, with size limits and recovery handling for failed write-back.

✅ Workspace preservation — Forced timeout handling distinguishes agent execution from clone finalization, with tests covering preservation of workspace changes.

This review used static analysis of the supplied code; no commands were run. Current checks show 13 passed, four pending, and no failures.

Merge blockers

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

F12: 🔴 Reject unsupported filesystem security requirements

  • Category: security

  • Required behavior: A runtime must enforce or refuse the security requirements declared by its run specification.

  • Evidence: packages/core/src/agents/runtime/flyMachinesLaunch.ts, renderFlyMachineRequest

    1. A caller supplies an otherwise valid clone specification with security.readOnlyRootFilesystem: true.
    2. The renderer validates bind mounts and the entrypoint but never examines spec.security; it creates an ordinary writable Machine filesystem.
    3. An agent can consequently write to image directories permitted by its Unix ownership, outside the cloned workspace, despite the explicit read-only filesystem requirement.

    The existing capability checks cover mounts, workspace transport, and networking; the supplied launch path contains no enforcement or rejection of this filesystem requirement. Unix ownership does not make an agent-owned directory read-only. static trace: compared the new renderer with renderDockerRunArgs, which translates this same field into --read-only.

  • Minimum fix: Reject specifications requesting a read-only root filesystem before Machine creation unless equivalent enforcement is implemented. Audit the other discarded spec.security fields and explicitly reject unsupported restrictions.

F13: 🔴 Fail launch for unreadable environment files

  • Category: correctness

  • Required behavior: Declared environment files must be loaded successfully or cause launch failure; missing configuration must not silently become an empty environment.

  • Evidence: packages/core/src/agents/runtime/flyMachinesLaunch.ts, flyMachineEnvironment; packages/core/src/agents/credentials/hostCredentialStaging.ts, envFileValues

    1. A run declares an environment file that has been deleted or is unreadable by the worker.
    2. envFileValues catches the read failure and returns an empty map.
    3. The Fly renderer treats that map as successfully loaded configuration and creates the Machine without those variables.
    4. The agent starts with missing credentials or unintended defaults instead of reporting the configuration error before launch.

    The helper’s existing comment explicitly relies on Docker subsequently refusing the unreadable file. Fly replaces that downstream validation with uploaded environment values, so that protection no longer exists. static trace: followed environment-file loading through flyMachineEnvironment, request rendering, and createMachine.

  • Minimum fix: Make Fly environment-file loading propagate read failures before creating the Machine, while preserving the existing staging helper’s behavior where Docker performs validation.

Suggestions

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

S7: 🟢 Add a live Fly smoke test

The fake API exercises lifecycle logic extensively but implements the same request and response assumptions as the client. An opt-in smoke test covering uploads, exec, logs, signals, and destruction would provide independent integration evidence. This is an optional validation improvement, not a separately demonstrated defect.

Score

The implementation has substantial lifecycle coverage, but two launch-contract regressions require correction. Pending checks are not themselves blockers.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 52s
  • Tokens: 97,530 (95,379 in / 2,151 out)
  • Cost: $0.95

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 F12 F13 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 640d90e

Addressed 1 AI review comment (IDs: 7132725600)

Addressed findings F12, F13

Summary of Changes

I've fixed both findings in flyMachinesLaunch.ts: a Fly run now fails before any Machine is created if it asks for a security restriction Fly can't enforce, or if one of its environment files can't be read. The Fly test file passes (26 tests, 2 new), the credential broker tests pass (23), and packages/core typechecks. This is still checked only against the fake Machines API and a local bash run, never real Fly.

F12 — security requirements. I went through every spec.security field before Machine creation:

  • Refused: a read-only root filesystem, any dropped capabilities, and any security option other than those below. The error names the field.
  • Allowed: seccomp=unconfined and apparmor=unconfined, which only switch off confinement a Machine never applies. Added capabilities are also allowed: the run starts as root and already has them all.
  • Now enforced: no-new-privileges, set through the field or the no-new-privileges option. I didn't refuse it, because every run turns it on by default, so refusing would block every Fly run. Instead the launcher runs the agent under setpriv --no-new-privs, so a setuid program can't gain privileges, like Docker's option. A local run of the launcher confirmed it wraps the agent only when asked to.

F13 — environment files. envFileValues (in hostCredentialStaging.ts) takes a new required option. The Fly renderer passes it, so an unreadable file fails the launch with "Cannot read environment file …". Docker's staging path keeps the old behaviour (empty map, Docker refuses the file later). The new test confirms both paths, and that no Machine is created on failure.

Found separately, not changed: the Fly upload step (agentRunFileUpload.ts) still reads env files the lenient way when choosing fallback secrets. The run then fails at the renderer, before any Machine exists, so this does nothing to what the agent sees.

The credential broker tests only run with --experimental-test-module-mocks; without it they fail with mock.module is not a function.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • packages/core/src/agents/credentials/hostCredentialStaging.ts (+7/−2): auth-looking path
  • Normal risk (1 file)
    • packages/core/src/agents/runtime/flyMachinesLaunch.ts (+34/−5)
  • Low risk (1 file)
    • test/flyMachinesRuntime.test.ts (+39/−1)

Diff size: 3 files changed, +80/−8 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 6m 28s
  • Tokens: 1,804,671 (1,792,905 in / 11,766 out)
  • Cost: $0.96

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

I've fixed both findings in `flyMachinesLaunch.ts`: a Fly run now fails before any Machine is created if it asks for a security restriction Fly can't enforce, or if one of its environment files can't be read. The Fly test file passes (26 tests, 2 new), the credential broker tests pass (23), and `packages/core` typechecks. This is still checked only against the fake Machines API and a local bash run, never real Fly.

**F12 — security requirements.** I went through every `spec.security` field before Machine creation:
- **Refused:** a read-only root filesystem, any dropped capabilities, and any security option other than those below. The error names the field.
- **Allowed:** `seccomp=unconfined` and `apparmor=unconfined`, which only switch off confinement a Machine never applies. Added capabilities are also allowed: the run starts as root and already has them all.
- **Now enforced:** no-new-privileges, set through the field or the `no-new-privileges` option. I didn't refuse it, because every run turns it on by default, so refusing would block every Fly run. Instead the launcher runs the agent under `setpriv --no-new-privs`, so a setuid program can't gain privileges, like Docker's option. A local run of the launcher confirmed it wraps the agent only when asked to.

**F13 — environment files.** `envFileValues` (in `hostCredentialStaging.ts`) takes a new `required` option. The Fly renderer passes it, so an unreadable file fails the launch with "Cannot read environment file …". Docker's staging path keeps the old behaviour (empty map, Docker refuses the file later). The new test confirms both paths, and that no Machine is created on failure.

**Found separately, not changed:** the Fly upload step (`agentRunFileUpload.ts`) still reads env files the lenient way when choosing fallback secrets. The run then fails at the renderer, before any Machine exists, so this does nothing to what the agent sees.

The credential broker tests only run with `--experimental-test-module-mocks`; without it they fail with `mock.module is not a function`.

PR: #3784
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@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

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: 640d90eadfb1 (640d90eadfb194f547203d9c5cae2ca5aa07bdee)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:46811
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 29bcf5f

Addressed 1 AI review comment (IDs: 7149955363)

Addressed finding F33

Summary of Changes

Fixed F33. When Fly cannot retrieve a complete stdout or stderr capture, the result names the affected stream in outputIncomplete, preserves available output, and changes a zero exit code to -1. The shared pipeline treats the run as disconnected even if workflow reports were retrieved successfully.

All 54 Fly runtime tests passed, including regressions for independent stream failures and short reads. Core typecheck passed. Live Fly E2E verification remains with the maintainer.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/agents/runtime/flyMachinesFileRead.ts (+6/−3)
    • packages/core/src/agents/runtime/flyMachinesRunHandle.ts (+1/−0)
  • Low risk (1 file)
    • test/flyMachinesRuntime.test.ts (+39/−1)

Diff size: 3 files changed, +46/−4 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @propr-ultrafix
  • Time: 4m 51s
  • Tokens: 805,662 (802,700 in / 2,962 out)
  • Cost: $0.77

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 F33. When Fly cannot retrieve a complete stdout or stderr capture, the result names the affected stream in `outputIncomplete`, preserves available output, and changes a zero exit code to `-1`. The shared pipeline treats the run as disconnected even if workflow reports were retrieved successfully.

All 54 Fly runtime tests passed, including regressions for independent stream failures and short reads. Core typecheck passed. Live Fly E2E verification remains with the maintainer.

PR: #3784
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 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Live Fly E2E at head a46f296 (2026-11-25)

Image: Dockerfile.agent built remotely and referenced by digest (registry.fly.io/<app>@sha256:…), as the new docs say. Same path runAgent uses: credential copy upload → collecting handle → clone transport (no push, so the result returns as a bundle).

test result
task (Claude Code, create hello-fly.txt) pass: exit 0, file correct, 55.5 s total including Machine create, image pull and clone
termination via handle.stop() during sleep 300 pass: stop requested at 150 s, stop() resolved in 2.3 s, run settled with exit 143; the transport still left its result bundle; done.txt was correctly never created
Machine lifecycle Machine destroyed after each run; none left (no Free-plan Machine-cap 422 this time)
uid / git runs as root via processes, then drops to node; no dubious ownership
credentials copy changed only in subscriptionTypeSource metadata; tokens unchanged; no token strings in logs

The earlier live blockers (uid 1000, safe.directory, Machine cap/linger, digest docs) are resolved. The remaining review item F33 (capture-read failure reported as success) is a correctness edge case that a live run cannot easily trigger. Fix it, and then this PR is live-verified.

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @integry

Analysis Summary

F33 is already fixed in 29bcf5f13, immediately after the live-tested a46f296. A failed or short capture read changes an otherwise successful exit code to -1, identifies the affected stream in outputIncomplete, and preserves available output.

I reran all four F33 regression tests against the fake Fly API. All passed. No additional code changes were needed.

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


🤖 Analysis Details

  • Model: GPT-6.2 Astra (medium)
  • Time: 3m 24s
  • Tokens: 214,993 (214,431 in / 562 out)
  • Cost: $0.32
  • 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: 7150107356✓

@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds an ephemeral Fly Machines runtime with credential upload, clone workspace transport, and shared execution monitoring. It needs a small correction before merge: phase publication omits the explicitly requested fsync.

✅ Shared execution pipeline — Fly calls startRunPipeline for workflow capture, cost enforcement, watchdog monitoring, and output redaction. Workflow reports come from the captured stderr file.

✅ Explicit capability refusals — Extensions and restricted networking are refused before Machine creation.

✅ Phase publication coverage — Temporary-file replacement preserves the previous phase during publication, and the new regression test exercises interruption during the rename.

Current-head checks report 19 passed and no failures or pending checks. This was a static review; no commands were run. The omitted test/flyMachinesRuntime.test.ts limits verification of runtime-specific regression coverage.

Merge blockers

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

F34: 🔴 Sync phase files before publication

  • Category: requirement

  • Required behavior: Additional Review Instructions, item 1, explicitly requests phase publication using “write a temp file in the same dir, fsync, rename.”

  • Evidence: packages/core/src/git/workspaceTransportScript.ts, publish_phase

    1. Both agent and finalizing call the new publish_phase helper.
    2. The helper writes the temporary file with printf and immediately runs mv.
    3. No fsync occurs between writing and renaming, so merging this implementation leaves the explicitly requested synchronization step unimplemented.

    The retry loop handles publication failures, and the regression test checks preservation of the previous phase during rename; neither implements or verifies synchronization. static trace: verified against the supplied helper and test/flyMachinesForcedStop.test.ts. This finding concerns the explicit acceptance gap, not a claim that rename exposes partially written contents.

  • Minimum fix: Synchronize the completed temporary phase file before renaming it, handle synchronization failure as publication failure, and verify the write–sync–rename ordering while retaining the existing interruption regression.

Suggestions

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

S30: 🟢 Finish consolidating capability refusals

extensionRuntimeRefusal now exists in both agentRuntimeCapabilityError.ts and registry.ts, with the same capability check and message. Have the registry reuse and, if necessary, re-export the extracted helper. This is optional cleanup because both implementations currently agree, but consolidation would prevent their refusal behavior from drifting.

S31: 🟢 Complete the planned live validation

The maintainer’s planned task and handle.stop() E2E remains useful evidence for the new API integration. The supplied launcher tests simulate identities and mount operations, so they cannot establish actual Fly behavior. This is a follow-up validation recommendation, not a separately demonstrated code blocker.

Score

The implementation has substantial lifecycle safeguards and passing current checks. One explicit acceptance requirement remains incomplete, and the omitted runtime test file limits coverage assessment.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 32s
  • Tokens: 123,880 (121,829 in / 2,051 out)
  • Cost: $1.19
  • Review scope: Partial — 1 changed file has no patch content from GitHub, which a larger review budget cannot recover.

View Task

Files omitted from review diff

1 file was omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized.

No patch content from GitHub (a larger review budget cannot recover these)

  • test/flyMachinesRuntime.test.ts

💡 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 F34 S30 S31

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ae7c736

Addressed 1 AI review comment (IDs: 7150859449)

Addressed finding F34

Summary of Changes

Addressed F34. The wrapper now writes each agent and finalizing phase to a temporary file in the same directory, fsyncs it, and renames it only after sync succeeds. A failed sync triggers the existing retry loop and leaves the published phase intact.

A new regression forces the first sync to fail for each phase and verifies that rename follows a successful sync of the complete file. The existing stop-during-publication regression also passed.

Across the Fly forced-stop and workspace transport suites, 31 tests passed and one root-only test was skipped. The live Fly E2E remains pending the maintainer’s rerun.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/git/workspaceTransportScript.ts (+4/−3)
  • Low risk (1 file)
    • test/flyMachinesForcedStop.test.ts (+31/−0)

Diff size: 2 files changed, +35/−3 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @propr-ultrafix
  • Time: 3m 48s
  • Tokens: 264,875 (263,502 in / 1,373 out)
  • Cost: $0.39

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 F34. The wrapper now writes each `agent` and `finalizing` phase to a temporary file in the same directory, fsyncs it, and renames it only after sync succeeds. A failed sync triggers the existing retry loop and leaves the published phase intact.

A new regression forces the first sync to fail for each phase and verifies that rename follows a successful sync of the complete file. The existing stop-during-publication regression also passed.

Across the Fly forced-stop and workspace transport suites, 31 tests passed and one root-only test was skipped. The live Fly E2E remains pending the maintainer’s rerun.

PR: #3784
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 25, 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 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR adds an ephemeral Fly Machines runtime with credential upload, workspace recovery, and shared pipeline integration. It needs changes before merge because initial phase publication introduces a window where stopping a run can lose workspace changes.

✅ Shared pipeline integration — Fly calls startRunPipeline for workflow evidence, cost enforcement, watchdog handling, and output redaction; unsupported extensions remain explicitly refused.

✅ Atomic phase replacement — Phase updates write a temporary file, sync it, and rename it, preserving the previous complete value during replacement.

This is a static review of the supplied code. No commands were run. Coverage is partial because test/flyMachinesRuntime.test.ts was omitted. Current checks report no failures, with four test shards pending.

Merge blockers

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

F35: 🔴 Publish the initial phase before starting the agent

  • Category: correctness

  • Required behavior: Stopping an agent must preserve its workspace changes by allowing the clone wrapper to finalize; an absent phase must reliably mean that no agent has started.

  • Evidence: packages/core/src/git/workspaceTransportScript.ts:234, initial publish_phase agent; packages/core/src/agents/runtime/flyMachinesLaunch.ts, launcher forward() and FLY_FORCED_STOP_SCRIPT.

    static trace:

    1. The workspace wrapper starts its agent child, then calls publish_phase agent before installing its termination traps.
    2. While the wrapper waits for the external sync or mv command, the child can modify the checkout. The phase file is still absent.
    3. A concurrent handle.stop() sends TERM to the launcher. Its forward() holds the wrapper stopped, sees no phase file, sends TERM to the wrapper itself, and resumes it.
    4. The wrapper has not installed its TERM trap, so it terminates without snapshotting or publishing the changed checkout. The worker cannot retrieve those changes. A forced stop in this same window also explicitly kills the wrapper because the phase is absent.

    Atomic rename prevents partial values but does not prevent this interval between child launch and initial publication. The new test in test/flyMachinesForcedStop.test.ts, “a forced stop during a phase publication…”, pauses initial publication but then releases it and waits for the phase before signalling; it therefore avoids this failure sequence.

    proposed regression: pause the initial phase rename, wait until the child has changed the checkout, then signal the launcher without releasing the rename first. Assert that the wrapper survives and publishes the changes.

  • Minimum fix: Establish the initial agent phase successfully before starting the child, and install the forwarding traps before the child can run. Abort bootstrap if initial publication fails. Keep atomic replacement for the later finalizing transition and cover termination during initial publication.

Suggestions

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

S32: 🟢 Reuse the extension refusal helper

agentRuntimeCapabilityError.ts introduces extensionRuntimeRefusal, but registry.ts retains the same implementation. Importing the shared helper would avoid divergent refusal behavior or wording. This duplication is small and does not itself block correctness.

S33: 🟢 Complete runtime verification

Review the omitted runtime test file and record the planned live Fly task and handle.stop() results. The supplied shell tests provide useful coverage, but they cannot establish the actual Machines API behavior. This is a verification follow-up, not an additional demonstrated code defect.

Score

The implementation addresses substantial runtime and recovery requirements, but the initial phase publication window still permits loss of completed agent edits. Current validation has no reported failures; runtime test coverage could not be fully inspected.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 15s
  • Tokens: 124,517 (122,679 in / 1,838 out)
  • Cost: $1.21
  • Review scope: Partial — 1 changed file has no patch content from GitHub, which a larger review budget cannot recover.

View Task

Files omitted from review diff

1 file was omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized.

No patch content from GitHub (a larger review budget cannot recover these)

  • test/flyMachinesRuntime.test.ts

💡 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 F35 S32 S33

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 5b0899a

Addressed 1 AI review comment (IDs: 7151125958)

Addressed finding F35

Summary of Changes

Fixed F35. The clone wrapper now publishes the initial agent phase and installs its signal traps before starting the child. If publication fails, bootstrap aborts. Fly also records a stop that arrives between publication and child startup, so the agent cannot miss it.

Regression tests cover graceful and forced stops on both sides of the initial rename, publication failure, and preservation of workspace changes during the finalizing rename.

Across the Fly runtime and workspace transport suites, 90 tests passed and one root-only test was skipped. The live Fly E2E remains pending for the maintainer.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/agents/runtime/flyMachinesLaunch.ts (+4/−1)
    • packages/core/src/git/workspaceTransportScript.ts (+23/−12)
  • Low risk (1 file)
    • test/flyMachinesForcedStop.test.ts (renamed, +61/−39)

Diff size: 3 files changed, +88/−52 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @propr-ultrafix
  • Time: 5m 59s
  • Tokens: 834,228 (828,987 in / 5,241 out)
  • Cost: $0.81

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 F35. The clone wrapper now publishes the initial `agent` phase and installs its signal traps before starting the child. If publication fails, bootstrap aborts. Fly also records a stop that arrives between publication and child startup, so the agent cannot miss it.

Regression tests cover graceful and forced stops on both sides of the initial rename, publication failure, and preservation of workspace changes during the `finalizing` rename.

Across the Fly runtime and workspace transport suites, 90 tests passed and one root-only test was skipped. The live Fly E2E remains pending for the maintainer.

PR: #3784
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 25, 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 25, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

This PR adds an ephemeral Fly Machines runtime with credential uploads, clone workspace transport, and shared execution safeguards. It needs changes before merge because captured-output reconciliation can silently omit usage records from cost accounting.

✅ Atomic phase publication — Both wrapper phases use a temporary file, sync, and rename; regression tests exercise stops around publication.

✅ Explicit capability refusals — Fly declares extensions unsupported and rejects restricted networking before Machine creation.

✅ Shared pipeline integration — Fly connects workflow-report capture, redaction, cost monitoring, and the watchdog to runPipeline.ts.

This is a static review; no commands were run. The supplied diff omits test/flyMachinesRuntime.test.ts, so its coverage could not be assessed. Current checks show no failures, with four test shards pending.

Merge blockers

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

F36: 🔴 Capture truncation silently drops usage accounting

  • Category: correctness

  • Required behavior: The shared pipeline must account for provider usage recovered from captured output rather than silently losing it when live log delivery is incomplete.

  • Evidence: packages/core/src/agents/runtime/runPipeline.ts, recoverCapturedRecords; packages/core/src/agents/runtime/flyMachinesFileRead.ts, collectFlyOutput.

    1. A cost-monitored Fly run successfully delivers an initial stdout record through live logs.
    2. Subsequent log requests fail, which FlyLogStream.poll() explicitly tolerates. The agent continues producing output and billable usage records, eventually exceeding the capture reader’s 8 MiB tail.
    3. At completion, collectFlyOutput() supplies only the retained output tail to recoverCapturedRecords(). The initial live record is no longer in that tail.
    4. Reconciliation searches for that initial record before advancing through liveLines. Because it cannot find it, next === liveLines.length is false, and none of the missing records collected from the tail reaches execution.observeLine().
    5. finishCost() therefore settles without those usage observations, even though the runtime successfully retrieved them. Cost accounting is understated and a cap exceeded by those records is not recognized through this recovery path.

    The equality check protects against duplicate charging by abandoning recovery altogether; neither redaction nor bounded capture resolves the missing-prefix case. The alternative branch where live output itself exceeded its buffer also disables recovery. static trace: verified from the supplied reconciliation conditions, capture bounds, tolerated log failures, and subsequent finishCost() call. proposed regression: deliver one initial live record, fail later log requests, generate enough output to evict that record from capture, and verify that later captured usage is still accounted for exactly once.

  • Minimum fix: Reconcile usage independently of truncated display buffers, using complete bounded scanning or stable record identities/offsets to avoid duplicate observations. If complete accounting cannot be recovered, explicitly report accounting as incomplete instead of silently completing it.

Suggestions

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

S34: 🟢 Consolidate extension refusal wording

extensionRuntimeRefusal now exists in both registry.ts and agentRuntimeCapabilityError.ts. Reusing the extracted helper would prevent wording or capability semantics from drifting. This small duplication does not currently change behavior, so cleanup is optional.

Score

The implementation addresses the requested phase publication and pipeline integration, but usage recovery still has a concrete correctness gap. Current checks have no failures; assessment of the omitted runtime tests remains limited.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 25s
  • Tokens: 124,201 (122,409 in / 1,792 out)
  • Cost: $1.18
  • Review scope: Partial — 1 changed file has no patch content from GitHub, which a larger review budget cannot recover.

View Task

Files omitted from review diff

1 file was omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized.

No patch content from GitHub (a larger review budget cannot recover these)

  • test/flyMachinesRuntime.test.ts

💡 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 F36 S34

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 83737d2

Addressed 1 AI review comment (IDs: 7151422116)

Addressed finding F36

Summary of Changes

Fixed F36. Cost-monitored Fly Machines runs now scan the complete stdout capture before settling cost. Reconciliation counts repeated records individually and skips occurrences already observed live. If a read fails or a reconciliation limit is reached, the result explicitly reports incomplete usage accounting.

Regression tests verified that missing usage triggers the cap exactly once after log delivery fails, including when both display buffers have truncated output. All 106 Fly, Sprites, and cost-cap tests passed. Core typecheck and runtime-file lint passed.

Live Fly E2E remains pending for the maintainer.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/agents/runtime/flyMachinesFileRead.ts (+13/−6)
    • packages/core/src/agents/runtime/runPipeline.ts (+77/−19)
  • Low risk (1 file)
    • test/flyMachinesRuntime.test.ts (+56/−0)

Diff size: 3 files changed, +146/−25 lines


🤖 Implementation Details

  • Model: GPT-6.2 Astra (medium)
  • Requested By: @propr-ultrafix
  • Time: 8m 6s
  • Tokens: 950,074 (942,216 in / 7,858 out)
  • Cost: $0.98
  • 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 F36. Cost-monitored Fly Machines runs now scan the complete stdout capture before settling cost. Reconciliation counts repeated records individually and skips occurrences already observed live. If a read fails or a reconciliation limit is reached, the result explicitly reports incomplete usage accounting.

Regression tests verified that missing usage triggers the cap exactly once after log delivery fails, including when both display buffers have truncated output. All 106 Fly, Sprites, and cost-cap tests passed. Core typecheck and runtime-file lint passed.

Live Fly E2E remains pending for the maintainer.

PR: #3784
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 25, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Ultrafix stopped before reaching its goal. Requested goal: 8/10. Last score: 6/10. Stopped in cycle 5 of 5. Max cycles were exhausted, so manual review and merge are now required.

@propr-dev propr-dev Bot removed the ultrafix label Nov 25, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent ⚠️❻ [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent Nov 25, 2026
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Pausing this PR; it stays open as a reference. It works live (task, stop mid-run, Machine cleanup), but the dual output path (live logs plus capture reconciliation) keeps producing edge cases (36 findings). It is restarted as #3798 with a focused spec: capture files are the only source for the result and accounting, live logs are display-only, there is one atomic status file, the Machine is destroyed on release, and the size budget is about 1,500 lines. All the live-verified Fly facts from this PR (digest image, root via processes, stop timing) are in that spec.

@propr-dev propr-dev Bot changed the title ⚠️❻ [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent 🔨 [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @integry

Analysis Summary

Work on #3784 is paused. The PR stays open as a reference for the live Fly checks covering task completion, mid-run stop, and Machine cleanup. The capture-only redesign belongs to #3798. No files were changed.

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


🤖 Analysis Details

  • Model: GPT-6.2 Astra (medium)
  • Time: 3m 41s
  • Tokens: 45,066 (44,928 in / 138 out)
  • Cost: $0.09

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: 7155044326✓

@propr-dev propr-dev Bot changed the title 🔨 [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent ⚠️❻ [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent Nov 25, 2026
@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

❌ Failed to resolve merge conflicts from 3758-epic-runtime-abstraction-sc0 into 3767/claude-opus-5-5-flymachinesruntime-epheme-20261124-1023-ez4

Agent execution failed during conflict resolution: Agent execution was cancelled.

System-triggered merge conflict resolution

@propr-dev propr-dev Bot changed the title ⚠️❻ [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent 🔨 [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent Nov 25, 2026

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Superseded by #3801 (FlyMachinesRuntime restart on a focused spec), which is merged into the epic after live Fly verification: a real Claude task, stop/SIGTERM, credential write-back, and no Machines left behind.

@integry integry closed this Nov 25, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent [3767 by Claude Opus 5.5] FlyMachinesRuntime: ephemeral Fly Machine per run using propr/agent 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