Skip to content

docs: add cloud workspace execution ADR - #100

Merged
delete-cloud merged 1 commit into
mainfrom
adr17-cloud-workspace-execution
May 4, 2026
Merged

delete-cloud merged 1 commit into
mainfrom
adr17-cloud-workspace-execution

Conversation

@delete-cloud

@delete-cloud delete-cloud commented May 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add ADR-0017 for cloud workspace execution as the next staged architecture step after ADR-0016.
  • Split cloud work into environment de-localization, provider-neutral CloudEnvironment, session binding integration, and lifecycle hardening.
  • Explicitly defer full subagent orchestration until cloud execution is stable.

Verification

  • python3 ADR section/term check passed locally.

Summary by CodeRabbit

  • Documentation
    • Added architecture decision documentation outlining the technical roadmap for cloud workspace execution capabilities.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@coderabbitai

coderabbitai Bot commented May 4, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

ADR-0017 documents a design decision for implementing cloud workspace execution across four sequenced PRs: decoupling Environment from local workspace_root, introducing CloudEnvironment and CloudWorkspaceClient, resolving CloudWorkspaceBinding via HTTP session factory injection, and hardening execution lifecycle with cwd/env persistence and error propagation without fallback.

Changes

Cloud Workspace Execution ADR

Layer / File(s) Summary
Decision Context & Plan
coding-agent/docs/adr/0017-cloud-workspace-execution.md (lines 1–99)
Motivation, status, decision statement outlining four-PR phased approach: (1) decoupling Environment from workspace_root, (2) introducing CloudEnvironment and CloudWorkspaceClient, (3) binding resolution in HTTP sessions, (4) lifecycle hardening with error propagation.
Rejected Alternatives
coding-agent/docs/adr/0017-cloud-workspace-execution.md (lines 100–126)
Clarifies out-of-scope decisions: full subagent orchestration, treating remote workspaces as local paths, placing CloudWorkspaceClient in agentkit, immediate real vendor backend, alternative tool routing, and resumable turns.
Acceptance Criteria & References
coding-agent/docs/adr/0017-cloud-workspace-execution.md (lines 127–161)
Comprehensive acceptance-test checklist covering environment decoupling, cloud tool behavior, error non-fallback handling, binding resolution, execution propagation, checkpoint preservation, session storage, and stale-owner rejection. References to repository modules and external documentation.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly Related PRs

  • PR #87 — ADR-0017 directly follows ADR-0016's staged environment/runtime/tooling sequencing and specifies the four cloud-workspace execution PRs that ADR-0016 deferred.

Poem

🐰 A cloud workspace hops into view,
Four small PRs, a journey true—
Decouple, bind, resolve, and test,
The architecture passing every quest! ☁️✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: add cloud workspace execution ADR' clearly and concisely summarizes the main change—adding a new Architecture Decision Record (ADR-0017) for cloud workspace execution.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch adr17-cloud-workspace-execution

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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
coding-agent/docs/adr/0017-cloud-workspace-execution.md (1)

143-162: ⚠️ Potential issue | 🟠 Major

Update source file reference paths: add coding-agent/ prefix.

All 10 source files exist but at coding-agent/src/... instead of src/.... Update all source file references in the References section to include the coding-agent/ directory prefix:

  • coding-agent/src/agentkit/environment/protocols.py
  • coding-agent/src/agentkit/runtime/pipeline.py
  • coding-agent/src/coding_agent/app.py
  • coding-agent/src/coding_agent/environment/local.py
  • coding-agent/src/coding_agent/plugins/core_tools.py
  • coding-agent/src/coding_agent/plugins/shell_session.py
  • coding-agent/src/coding_agent/ui/binding_resolver.py
  • coding-agent/src/coding_agent/ui/execution_binding.py
  • coding-agent/src/coding_agent/ui/session_manager.py
  • coding-agent/src/coding_agent/tools/subagent.py

The ADR references are correct.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@coding-agent/docs/adr/0017-cloud-workspace-execution.md` around lines 143 -
162, Update the References section to point to the actual file locations by
prefixing each source path with "coding-agent/": replace occurrences like
"src/agentkit/environment/protocols.py", "src/agentkit/runtime/pipeline.py",
"src/coding_agent/app.py", "src/coding_agent/environment/local.py",
"src/coding_agent/plugins/core_tools.py",
"src/coding_agent/plugins/shell_session.py",
"src/coding_agent/ui/binding_resolver.py",
"src/coding_agent/ui/execution_binding.py",
"src/coding_agent/ui/session_manager.py", and
"src/coding_agent/tools/subagent.py" with
"coding-agent/src/agentkit/environment/protocols.py",
"coding-agent/src/agentkit/runtime/pipeline.py",
"coding-agent/src/coding_agent/app.py",
"coding-agent/src/coding_agent/environment/local.py",
"coding-agent/src/coding_agent/plugins/core_tools.py",
"coding-agent/src/coding_agent/plugins/shell_session.py",
"coding-agent/src/coding_agent/ui/binding_resolver.py",
"coding-agent/src/coding_agent/ui/execution_binding.py",
"coding-agent/src/coding_agent/ui/session_manager.py", and
"coding-agent/src/coding_agent/tools/subagent.py" respectively so the ADR
references resolve to the actual files.
🧹 Nitpick comments (1)
coding-agent/docs/adr/0017-cloud-workspace-execution.md (1)

78-87: ⚡ Quick win

Rephrase to reduce repetitive sentence structure.

Lines 79, 82, 83, 85, and 86 all begin with "Add", which reduces readability.

✍️ Suggested rewording for better flow
 4. PR 4: Harden cloud execution lifecycle and parity
-   - Add cwd/env persistence semantics for cloud shell execution that match the
+   - Implement cwd/env persistence semantics for cloud shell execution that match the
      existing local shell session behavior where possible.
-   - Add deterministic timeout, cancellation, and error propagation contracts for
+   - Ensure deterministic timeout, cancellation, and error propagation contracts for
      cloud shell and file operations.
-   - Add trace metadata and prompt-time runtime context that identify the cloud
+   - Include trace metadata and prompt-time runtime context that identify the cloud
      workspace without exposing secrets.
-   - Add local/cloud parity tests for the common tool contract.
-   - Add failure-path tests proving cloud tool errors are visible to the model and
+   - Verify local/cloud parity with tests for the common tool contract.
+   - Validate failure paths with tests proving cloud tool errors are visible to the model and
      do not mutate local files.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@coding-agent/docs/adr/0017-cloud-workspace-execution.md` around lines 78 -
87, Rewrite the bullet points under "PR 4: Harden cloud execution lifecycle and
parity" to avoid starting multiple lines with "Add" by varying verbs and
sentence structures; for example, change some items to "Persist cwd/env
semantics...", "Define deterministic timeout, cancellation, and error
propagation...", "Attach trace metadata and prompt-time runtime context...",
"Introduce local/cloud parity tests...", and "Create failure-path tests..."
while keeping the original meanings in the list for cwd/env persistence,
timeout/cancellation contracts, trace metadata, parity tests, and failure-path
tests so the content remains accurate and clearer.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@coding-agent/docs/adr/0017-cloud-workspace-execution.md`:
- Around line 143-162: Update the References section to point to the actual file
locations by prefixing each source path with "coding-agent/": replace
occurrences like "src/agentkit/environment/protocols.py",
"src/agentkit/runtime/pipeline.py", "src/coding_agent/app.py",
"src/coding_agent/environment/local.py",
"src/coding_agent/plugins/core_tools.py",
"src/coding_agent/plugins/shell_session.py",
"src/coding_agent/ui/binding_resolver.py",
"src/coding_agent/ui/execution_binding.py",
"src/coding_agent/ui/session_manager.py", and
"src/coding_agent/tools/subagent.py" with
"coding-agent/src/agentkit/environment/protocols.py",
"coding-agent/src/agentkit/runtime/pipeline.py",
"coding-agent/src/coding_agent/app.py",
"coding-agent/src/coding_agent/environment/local.py",
"coding-agent/src/coding_agent/plugins/core_tools.py",
"coding-agent/src/coding_agent/plugins/shell_session.py",
"coding-agent/src/coding_agent/ui/binding_resolver.py",
"coding-agent/src/coding_agent/ui/execution_binding.py",
"coding-agent/src/coding_agent/ui/session_manager.py", and
"coding-agent/src/coding_agent/tools/subagent.py" respectively so the ADR
references resolve to the actual files.

---

Nitpick comments:
In `@coding-agent/docs/adr/0017-cloud-workspace-execution.md`:
- Around line 78-87: Rewrite the bullet points under "PR 4: Harden cloud
execution lifecycle and parity" to avoid starting multiple lines with "Add" by
varying verbs and sentence structures; for example, change some items to
"Persist cwd/env semantics...", "Define deterministic timeout, cancellation, and
error propagation...", "Attach trace metadata and prompt-time runtime
context...", "Introduce local/cloud parity tests...", and "Create failure-path
tests..." while keeping the original meanings in the list for cwd/env
persistence, timeout/cancellation contracts, trace metadata, parity tests, and
failure-path tests so the content remains accurate and clearer.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bf99c21c-29da-44c9-9606-5d77839b5aa6

📥 Commits

Reviewing files that changed from the base of the PR and between af14b36 and bb0ea56.

📒 Files selected for processing (1)
  • coding-agent/docs/adr/0017-cloud-workspace-execution.md

@delete-cloud
delete-cloud merged commit 79fea37 into main May 4, 2026
1 check passed
@delete-cloud
delete-cloud deleted the adr17-cloud-workspace-execution branch May 4, 2026 11:28
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