Skip to content

spec(control-plane): add Workspace Initialization for repo cloning#1477

Draft
jsell-rh wants to merge 1 commit intoambient-code:mainfrom
jsell-rh:jsell/spec/cp-workspace-init
Draft

spec(control-plane): add Workspace Initialization for repo cloning#1477
jsell-rh wants to merge 1 commit intoambient-code:mainfrom
jsell-rh:jsell/spec/cp-workspace-init

Conversation

@jsell-rh
Copy link
Copy Markdown
Contributor

Summary

  • Add Workspace Initialization section to control-plane.spec.md documenting the init container pattern for cloning repos into /workspace/repos/ before the runner starts
  • Documents trigger conditions (session.RepoURL or session.Repos), repo URL normalization, credential injection for private repos, and the current gap status
  • Adds REPOS_JSON to the environment variables table

Context

Sessions created with --repo-url via the CLI/TUI currently produce an empty directory at /workspace/repos/<name> — the control plane sets REPOS_JSON as an env var but does not create an init container to actually clone the repo. The operator implements this correctly; this spec defines the same behavior for the control plane so it can be implemented.

Test plan

  • Review spec section for completeness against operator implementation
  • Verify init container behavior matches operator pattern in reconcileSpecReposWithPatch
  • Confirm credential injection approach is consistent with CP credential resolver

🤖 Generated with Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 29, 2026

Deploy Preview for cheerful-kitten-f556a0 ready!

Name Link
🔨 Latest commit d42fd09
🔍 Latest deploy log https://app.netlify.com/projects/cheerful-kitten-f556a0/deploys/69f15e04e7a79b00080c37ac
😎 Deploy Preview https://deploy-preview-1477--cheerful-kitten-f556a0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 29, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: ca02b7af-b25b-4316-9d01-ea25a3f6a554

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
✨ Simplify code
  • Create PR with simplified code

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jsell-rh jsell-rh force-pushed the jsell/spec/cp-workspace-init branch from e08f8e4 to 1e95c84 Compare April 29, 2026 01:17
…oning

Document the init container pattern for cloning repos specified by
session.RepoURL or session.Repos into /workspace/repos/ before the
runner starts. Covers trigger conditions, normalization, credential
injection for private repos, and current gap status.

Also adds REPOS_JSON to the environment variables table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jsell-rh jsell-rh force-pushed the jsell/spec/cp-workspace-init branch from 1e95c84 to d42fd09 Compare April 29, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant