Repository navigation
feat: extract local runtime provider #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
coding-agent/.opencode/prompts/tasks/local-daemon-pr30-local-runtime-provider.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| Goal: | ||
| Move local daemon runtime preparation out of SessionManager into a dedicated | ||
| runtime provider boundary, while preserving the current run path behavior. | ||
|
|
||
| Scope: | ||
| - Add a LocalDaemonSessionRuntimeProvider under coding_agent.executors. | ||
| - Move local target environment resolution, cached runtime reuse validation, | ||
| local runtime creation, tape restoration, consumer binding setup, and binding | ||
| construction from SessionManager into that provider. | ||
| - Keep SessionManager.run_agent() as the public control-plane method, but make | ||
| it delegate runtime preparation through the provider. | ||
| - Keep LocalDaemonExecutor and RunCoordinator behavior unchanged. | ||
| - Refresh ADR-0058 follow-up status for the runtime preparation ownership slice. | ||
|
|
||
| Out of scope: | ||
| - Change local daemon runtime execution semantics. | ||
| - Change checkpoint restore runtime preparation. | ||
| - Move run lifecycle bookkeeping, observation callbacks, approval handling, or | ||
| message snapshot persistence out of SessionManager. | ||
| - Add a daemon process/client product path. | ||
| - Change store schemas, HTTP routes, CLI behavior, or live stream protocols. | ||
|
|
||
| Context: | ||
| - ADRs: | ||
| - docs/adr/0058-local-daemon-control-plane-executor-architecture.md | ||
| - Relevant files: | ||
| - src/coding_agent/executors/local_daemon.py | ||
| - src/coding_agent/server/session_manager.py | ||
| - tests/ui/test_session_manager_runtime.py | ||
|
|
||
| Target tests: | ||
| - uv run pytest tests/coding_agent/test_local_daemon_executor.py -v | ||
| - uv run pytest tests/ui/test_session_manager_runtime.py -k "local_daemon_executor or coordinator_integration or default_run_target_workspace or rebuilds_live_runtime_when_default_run_target_changes" -v | ||
| - uv run ruff check src/coding_agent/executors src/coding_agent/server/session_manager.py tests/ui/test_session_manager_runtime.py | ||
| - uv run ruff format --check src/coding_agent/executors src/coding_agent/server/session_manager.py tests/coding_agent/test_local_daemon_executor.py | ||
| - git diff --check | ||
|
|
||
| Loop policy: | ||
| - Engineer implements the smallest correct change and runs target tests. | ||
| - Reviewer reports only P1/P2 runtime ownership, behavior regression, | ||
| compatibility, import-boundary, or test-gap findings. | ||
| - Engineer fixes only accepted P1/P2 findings and reruns the same target tests. | ||
|
|
||
| Stop conditions: | ||
| - Stop if this requires changing public HTTP/CLI behavior. | ||
| - Stop if this requires changing persisted payloads or runtime store schemas. | ||
| - Stop if this expands into daemon process/client implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.