Feature Request: discoverable and configurable execution environment capacity

Open
#2,684 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
java

Research direction

No files, tests, or concrete entry points are named. Start by tracing the hosted-session lifecycle and the providers and resource configuration discussed in related issue #1223. Done means the acceptance criteria are addressed: discoverable capacity, a supported larger-environment mechanism, and distinct documented capacity errors.

Written by the indexing model from the issue text.

Description

Problem

Sessions that run in a hosted environment receive a fixed allocation of CPU, memory, and disk. That allocation is not visible before the session starts and is not configurable. For a large repository, the first indication that capacity is insufficient is a failure partway through dependency installation, a build, or a test run — after the setup time has already been spent.

Large repositories, native application builds, and multi-platform validation all need substantially more capacity than a small allocation provides. There is also no documented pattern for delegating validation that the hosted environment cannot perform to external CI and consuming the result.

What is missing

  • Effective CPU, memory, disk, operating system, and timeout values are not reported to the caller.
  • There is no way to select a larger or differently configured environment where one is available.
  • Caching behavior across sessions is undocumented.
  • There is no documented pattern for delegating unsupported platform validation to external CI.

Proposed behavior

  • The session reports its effective environment — operating system, CPU count, memory, available disk, timeout, and cache configuration — before work begins.
  • Repository or organization owners can select from approved environment profiles.
  • Documented guidance exists for delegating validation that cannot run in the hosted environment to external CI, and for the session to consume those results.
  • Capacity-related failures are identified as such, rather than surfacing as generic build or test errors.

Example scenario

A caller starts a session against a large repository. The session reports its capacity up front, so the caller knows immediately whether a full build is viable or whether validation should be delegated to external CI.

Acceptance criteria

  • Effective environment capacity is programmatically discoverable.
  • At least one mechanism exists to request a larger environment where supported.
  • Capacity exhaustion produces a distinct, documented error.

Related

  • #1223 — sandbox support, which overlaps on lifecycle, providers, and resource configuration.
Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 12h
Merged PRs (30d)
133

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-sdk

All issues in github/copilot-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.