Skip to content

[Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) - #3774

Merged
integry merged 363 commits into
mainfrom
3758-epic-runtime-abstraction-sc0
Dec 1, 2026
Merged

integry merged 363 commits into
mainfrom
3758-epic-runtime-abstraction-sc0

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes)

This Epic PR aggregates all changes for the plan: Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes)

Issues in this Epic

Auto-close

When this PR is merged, the following issues will be automatically closed:

Fixes #3758
Fixes #3759
Fixes #3760
Fixes #3761
Fixes #3762
Fixes #3763
Fixes #3766
Fixes #3768
Fixes #3769


Created automatically by ProPR

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

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Epic progress: Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes)

9 of 9 issues merged ✅

Merged child PRs: #3771, #3772, #3773, #3775, #3776, #3777, #3778, #3783, #3787, #3791, #3793, #3796, #3800, #3801, #3804, #3812, #3815, #3816, #3817, #3818, #3823, #3825, #3826, #3852, #3853, #3865, #3866, #3868, #3880, #3883, #3885, #3886, #3888, #3894, #3900, #3901, #3902, #3905, #3909, #3910, #3911, #3913, #3915, #3921, #3922, #3924, #3927, #3928, #3930, #3933, #3937, #3938, #3941, #3943, #3946, #3947, #3949, #3951, #3953, #3956, #3959, #3961, #3965

3 planned issues were closed without a merge and are not counted.

✅ This epic PR has been merged into main.


This comment is updated automatically by ProPR as child PRs open, change and merge.

@propr-dev propr-dev Bot changed the title ◔ 1/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◔ 2/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev propr-dev Bot changed the title ◔ 2/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◔ 3/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/core/src/git/workspaceCloneTransport.ts:65 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings with many repetitions of '-'.
This regular expression that depends on library input may run slow on strings with many repetitions of '-'.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 3fbb95e

Summary of Changes

Replaced the CodeQL-flagged hyphen-trimming regex in workspaceCloneTransport.ts with linear scans. Run IDs keep the same 64-character prefix limit, run fallback, and random suffix.

Core typecheck and all 10 focused run ID checks passed. The workspace transport suite passed 22 tests and skipped one that requires root or passwordless sudo. CodeQL verification is pending.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/git/workspaceCloneTransport.ts (+9/−1)
  • Low risk: none

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


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @github-advanced-security[bot]
  • Time: 4m 6s
  • Tokens: 316,145 (313,951 in / 2,194 out)
  • Cost: $0.12

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

propr-dev Bot pushed a commit that referenced this pull request Nov 24, 2026
Replaced the CodeQL-flagged hyphen-trimming regex in [workspaceCloneTransport.ts](/home/node/workspace/packages/core/src/git/workspaceCloneTransport.ts:65) with linear scans. Run IDs keep the same 64-character prefix limit, `run` fallback, and random suffix.

Core typecheck and all 10 focused run ID checks passed. The workspace transport suite passed 22 tests and skipped one that requires root or passwordless sudo. CodeQL verification is pending.

PR: #3774
Comment by: @github-advanced-security[bot] (ID: 4677562060)
Model: GPT-6.2 Sol

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

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

PR #3774 already contains the fix in 3fbb95edf. Run ID generation trims leading and trailing hyphens with linear scans, removing the polynomial regex while preserving the ID format. Fix commit

Locally, 22 workspace transport tests passed, one was skipped because it requires root or passwordless sudo, and all eight direct run ID checks passed.

GitHub’s analysis job for the fix was canceled, and the code-scanning check concluded neutral after a SARIF processing error. A passing CodeQL result remains unverified. Analysis job · Code scanning check

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


🤖 Analysis Details

  • Model: GPT-6.2 Sol (medium)
  • Time: 5m 30s
  • Tokens: 397,882 (396,130 in / 1,752 out)
  • Cost: $0.15
  • 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: 7126687727✓

@propr-dev propr-dev Bot changed the title ◔ 3/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◔ 4/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/core/src/agents/runtime/agentRunMcpTransport.ts:25 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings with many repetitions of '/'.
This regular expression that depends on library input may run slow on strings with many repetitions of '/'.
This regular expression that depends on library input may run slow on strings with many repetitions of '/'.
This regular expression that depends on library input may run slow on strings with many repetitions of '/'.

test/agentRuntimeNetworkCapability.test.ts:246 — Incomplete URL substring sanitization
'mcp.example.com' can be anywhere in the URL, and arbitrary hosts may come before or after it.

test/agentRuntimeNetworkCapability.test.ts:285 — Incomplete URL substring sanitization
'propr.example.com' can be anywhere in the URL, and arbitrary hosts may come before or after it.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit f84aa97

Processed 3 comments:

  • Comment 1 by @github-advanced-security[bot] (ID: 4678287933✓)
  • Comment 2 by @github-advanced-security[bot] (ID: 4678288100✓)
  • Comment 3 by @github-advanced-security[bot] (ID: 4678288028✓)

Summary of Changes

Addressed all three review findings for PR #3774. MCP URL construction now strips trailing slashes with a linear scan and preserves configured path prefixes. Both capability-report tests now assert the exact MCP summary, verifying that it omits the endpoint URL.

All 12 targeted tests passed, and git diff --check passed. CodeQL was unavailable locally. The changes have no visible UI effect.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/agents/runtime/agentRunMcpTransport.ts (+5/−2)
  • Low risk (1 file)
    • test/agentRuntimeNetworkCapability.test.ts (+10/−5)

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


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @github-advanced-security[bot]
  • Time: 3m 44s
  • Tokens: 250,736 (249,540 in / 1,196 out)
  • Cost: $0.10

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment IDs: 4678287933✓, 4678288100✓, 4678288028✓

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

❌ ProPR could not start on the follow-up

The job failed 3 times before processing began:

API rate limit exceeded for installation ID 68212616. If you reach out to GitHub Support for help, please include the request ID 97E0:A7263:63FBC39:96E04DA:6B05605C and timestamp 2026-11-24 10:01:01 UTC. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service) - https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api#rate-limiting

Post the command again once the cause is resolved.

propr-dev Bot pushed a commit that referenced this pull request Nov 24, 2026
Addressed all three review findings for PR #3774. MCP URL construction now strips trailing slashes with a linear scan and preserves configured path prefixes. Both capability-report tests now assert the exact MCP summary, verifying that it omits the endpoint URL.

All 12 targeted tests passed, and `git diff --check` passed. CodeQL was unavailable locally. The changes have no visible UI effect.

PR: #3774
Comment by: @github-advanced-security[bot] (ID: 4678287933)
Comment by: @github-advanced-security[bot] (ID: 4678288100)
Comment by: @github-advanced-security[bot] (ID: 4678288028)
Model: GPT-6.2 Sol

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

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

❌ ProPR could not start on the follow-up

The job failed 3 times before processing began:

API rate limit exceeded for installation ID 68212616. If you reach out to GitHub Support for help, please include the request ID BE42:2B5C13:62DB911:94BAD73:6B056107 and timestamp 2026-11-24 10:03:55 UTC. For more on scraping GitHub and how it may affect your rights, please review our Terms of Service (https://docs.github.com/en/site-policy/github-terms/github-terms-of-service) - https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api#rate-limiting

Post the command again once the cause is resolved.

@propr-dev propr-dev Bot changed the title ◔ 4/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◔ 5/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev propr-dev Bot changed the title ◔ 5/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◑ 6/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev propr-dev Bot changed the title ◑ 6/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◑ 7/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
Comment thread test/computeUsageSummaries.test.ts Fixed
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/core/src/agents/runtime/computeUsageSampler.ts:129 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings starting with '.' and with many repetitions of '\t'.
This regular expression that depends on library input may run slow on strings starting with '.' and with many repetitions of '\t'.

test/computeUsageSummaries.test.ts:30 — Incomplete string escaping or encoding
This does not escape backslash characters in the input.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ef67a89

Processed 2 comments:

  • Comment 1 by @github-advanced-security[bot] (ID: 4679159674✓)
  • Comment 2 by @github-advanced-security[bot] (ID: 4679159788✓)

Summary of Changes

Addressed both CodeQL findings in PR #3774. The Docker size parser now trims surrounding whitespace before matching, removing the overlapping whitespace patterns that caused excessive backtracking. The PR summary test now checks the exact Markdown text with a literal string comparison.

All 17 targeted tests passed, along with a parser check using one million tabs. CodeQL itself was unavailable locally.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/agents/runtime/computeUsageSampler.ts (+1/−1)
  • Low risk (1 file)
    • test/computeUsageSummaries.test.ts (+1/−1)

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


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @github-advanced-security[bot]
  • Time: 3m 46s
  • Tokens: 224,788 (223,695 in / 1,093 out)
  • Cost: $0.08

Undo Changes • View Task Execution


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

🤖 Generated by ProPR
Processing comment IDs: 4679159674✓, 4679159788✓

propr-dev Bot pushed a commit that referenced this pull request Nov 24, 2026
Addressed both CodeQL findings in PR #3774. The Docker size parser now trims surrounding whitespace before matching, removing the overlapping whitespace patterns that caused excessive backtracking. The PR summary test now checks the exact Markdown text with a literal string comparison.

All 17 targeted tests passed, along with a parser check using one million tabs. CodeQL itself was unavailable locally.

PR: #3774
Comment by: @github-advanced-security[bot] (ID: 4679159674)
Comment by: @github-advanced-security[bot] (ID: 4679159788)
Model: GPT-6.2 Sol

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

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

PR #3774 already contains fixes for both reported CodeQL findings in ef67a89. The Docker size parser trims whitespace before matching to avoid polynomial backtracking, and the PR summary test uses a literal string comparison, removing the need for regex escaping. No further code edits were needed. Fix commit

All 17 targeted tests and 10 parser edge cases passed locally. GitHub verification remains incomplete because the follow-up analysis was canceled and the code-scanning check concluded neutral after a SARIF processing error. Analysis job · CodeQL check

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


🤖 Analysis Details

  • Model: GPT-6.2 Sol (medium)
  • Time: 3m 38s
  • Tokens: 261,677 (260,434 in / 1,243 out)
  • Cost: $0.11
  • 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: 7129832083✓

@propr-dev propr-dev Bot changed the title ◑ 7/12 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◑ 7/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev propr-dev Bot changed the title ◑ 7/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◑ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 24, 2026
@propr-dev propr-dev Bot changed the title ◑ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ⚠️ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 25, 2026
@propr-dev propr-dev Bot changed the title ⚠️ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◑ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 25, 2026
@propr-dev propr-dev Bot changed the title ◑ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ⚠️ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 25, 2026
@propr-dev propr-dev Bot changed the title ⚠️ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) ◑ 8/11 [Epic] Runtime abstraction and lighter footprint (Sprites + Fly as first remote runtimes) Nov 25, 2026
This was referenced Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment