Conversation
|
@codex review |
There was a problem hiding this comment.
Pull request overview
Adds an immutable, pre-admission Docker execution-plan format for controlled sessions, binding controller/workload container authority (identity, mounts/masks, commands, and lifecycle commands) into digested plans and embedding those digests into the controlled-session authorization record.
Changes:
- Extend private runtime masking to support multiple deployment roots (for cross-environment bind protection).
- Introduce
controlled-session-*execution/container plan schemas, planning + validation, and unit/integration evidence. - Restructure controlled-session authorization to carry per-participant environment authorization (controller + workload) including plan digests.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| internal/dockerdeploy/private_workload_environment.go | Generalize private runtime masking to accept multiple protected deployment roots. |
| internal/dockerdeploy/controlled_session_plan.go | New controlled-session execution/container plan types, plan derivation, digests, and validation to “freeze” Docker authority pre-admission. |
| internal/dockerdeploy/controlled_session_plan_test.go | Unit coverage for plan immutability, digest binding, mask derivation, and validation rejection cases. |
| internal/dockerdeploy/controlled_session_plan_integration_test.go | Docker-gated integration evidence that planned container create/start behaves as expected. |
| internal/controlledsession/authorization.go | Authorization schema change: embed controller/workload EnvironmentAuthorizationV1 with plan digests and identities. |
| internal/controlledsession/authorization_test.go | Update authorization fixtures and validation tests for the new nested authorization shape. |
| docs/CONTROLLED_SESSION_DESIGN.md | Update design doc to reflect two-environment immutable Docker planning and current implementation status. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| framed protocol, lifecycle state machine, and immutable two-environment | ||
| Docker planning are implemented. The planner binds exact controller and | ||
| workload builds, runtime identities, mounts, masks, commands, and inert | ||
| lifecycle commands while networking remains disabled. Private environment | ||
| injection is rejected until its controlled-session launch path is wired. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Stack created with Sapling. Best reviewed with ReviewStack.