Repository navigation
Route Windows Codespaces owner ingress through managed UV - #14407
Conversation
Preserve scheduling and capability holds while admitting the addressed runtime through the existing prepared native selector. Retain the selected-owner daemon spawn path and qualify the installed entry on both PowerShell hosts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain the complete existing unit packet and coverage targets after changing the Windows owner producer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The routing change breaks valid-boolean test cases when pwsh is available, and isolated Python launches do not enforce UTF-8, risking corrupted input or non-ASCII output failures on Windows.
2 open issues
What changed in this PR
This PR routes Windows Codespaces Connection Owner task launches, installation-time status queries, and selected-owner startup through a prepared managed-UV entry. It advances #13775 while leaving broader launcher migration and installed-host adoption out of scope.
Changes:
- Adds runtime-local owner entry and canonical UV/capture helpers for acquisition-free interpreter selection.
- Updates installer routing and task ownership recognition while preserving scheduling and capability holds.
- Adds native Windows validation, packaging and uninstall support, and documentation.
| File | Description |
|---|---|
tools/promotion-unit-manifest.json |
Refreshes the installer reference hash. |
tools/installer_engine_ref.py |
Includes Windows UV and capture assets in canonical packaging. |
TESTING.md |
Documents the 28-control Windows owner validation packet. |
plugins/agent-codespaces/tests/test_windows_scheduling.py |
Adapts scheduling fixtures to owner-entry publication. |
plugins/agent-codespaces/tests/test_managed_owner_ingress_ps1.py |
Adds native selection, routing, stream, and ownership controls. |
plugins/agent-codespaces/tests/test_connection_owner_task_idempotent.py |
Updates selected-owner startup and task-registration fixtures. |
plugins/agent-codespaces/scripts/windows-scheduled-task.ps1 |
Recognizes legacy and managed owner task actions. |
plugins/agent-codespaces/scripts/uninstall-profile.json |
Adds the Windows owner entry and helpers to cleanup. |
plugins/agent-codespaces/scripts/install.ps1 |
Publishes helpers and routes status/startup through the managed entry. |
plugins/agent-codespaces/scripts/install.human-output.json |
Refreshes the installer entrypoint hash. |
plugins/agent-codespaces/scripts/codespaces-owner.ps1 |
Adds prepared-UV admission before owner application launch. |
plugins/agent-codespaces/scripts/bootstrap-uv.ps1 |
Supplies canonical managed-Python selection helpers. |
plugins/agent-codespaces/scripts/bootstrap-capture.ps1 |
Supplies bounded native process capture and cleanup. |
plugins/agent-codespaces/README.md |
Describes Windows owner routing and remaining migration scope. |
libs/payload-invocation/tests/test_codespaces_windows_owner_source.py |
Exposes owner controls without Codespaces dependencies. |
.github/workflows/python-selection-native.yml |
Adds path gating and mandatory owner-control checks. |
.changefiles/20261124075829-route-windows-connection-owner-task-stat-cbf9b2.json |
Requests an agent-codespaces patch release. |
Review effort: Balanced
…ixtures Route the remaining owner-config fixture through the installed entry, explicitly retain UTF-8 under isolation, and declare the existing seasoned YAML stubs for the touched test scope. Share owner and unit-writer runner preparation without dropping native controls or raising the six five-minute job limits. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No description provided. |
There was a problem hiding this comment.
🔵 Needs a closer look
Required native Windows checks remain unverified on PowerShell 5.1 and 7, particularly real bound-UV selection, argument/stdin and stream fidelity, task ownership, and process cleanup.
1 open issue
1 resolved since last review
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No description provided. |
|
This contribution was assisted using Copilot. The corrected Windows owner packet is now natively verified at 43b0537: all 117 controls passed (81 original Dispatch + 3 original unit-writer + 33 Codespaces owner), with cleanup and every independent count/no-skip/timing verifier complete. Both PowerShell hosts passed real bound-UV selection, Unicode stdin/argv, missing preparation, publication and selected-owner ensure controls. The corrected five-case boolean-status fixture is included; its addressed thread is resolved. That native run finished five jobs successfully. Its unchanged Linux packet passed its final 11 index controls and cleanup but reached the five-minute job limit before final verification, so I am not claiming a full native workflow pass. Required units also passed; the remaining CI issue was the manager-owned typecheck configuration needing its own changefile. Commit 7034db2 adds that changefile without changing runtime/test code. Current-head CI, native qualification and review remain required before merge. |
There was a problem hiding this comment.
🔵 Needs a closer look
Current-head native Windows qualification remains pending after earlier failures and cancellations, leaving PowerShell 5.1 argument and stream fidelity, managed-venv behavior, and process cleanup unverified in this review environment.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
The byte-identical native capture host retains the existing caller-contained classification used by the Bridge and Vault consumers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
No description provided. |
|
The following contribution was assisted using Copilot. The remaining native qualification is now complete for The first attempt retained five successful jobs; the launch job hit its unchanged five-minute deadline after its 63 tests passed, during final evidence verification. One failed-job retry completed that job in 4m36s, including its verifiers and cleanup. No test, assertion, worker count or deadline was removed or increased. The previous failed attempts remain recorded above. Current-head Copilot review |


This contribution was assisted using Copilot.
Intent
Route the Windows Connection Owner's task, installation-time status query and selected-owner startup through a prepared managed-UV entry instead of bypassing admission with direct application Python. This is a finite continuation of #13775, not closure of the all-launch migration.
Changes
bin/codespaces-owner.ps1entry, an absolute setup-bound UV executable and the existing canonical native capture/UV helpers.uv python find --managed-python --no-python-downloadsbefore application Python. No ordinary acquisition or PATH Python/UV fallback is introduced.Validation
typecheck.py --enforcedrun stopped at an unpreparedlib-process-telemetryenvironment; that local attempt is not reported as a full typecheck pass.Contract and architecture impact
This closes owner-ingress gaps toward the install contract and installer vision without changing the owner CLI or durable process API. Scheduling preservation still wins before publication/startup. The entry uses the existing exact-runtime admission stage for legacy slots: project/environment-declared selection and durable PATH UV exposure remain separate target work. Ordinary legacy CLI dispatch, installation policy readers, selected-caller on-demand children and installed-host adoption are not claimed here.
Performance and documentation impact
Each entry performs one bounded, acquisition-free UV selection through the existing native process owner. The native packet records separate cold/warm samples on both PowerShell hosts and retains cleanup, no-skip and timing-report checks. The existing six jobs and five-minute limits are unchanged; no latency-tail or desktop-observation claim is made. The plugin README and testing roster describe the implemented boundary and remaining gaps. No real service, Scheduled Task, credentials or shared-host settings are changed by the fixtures.