Skip to content

Freeze controlled-session execution plans - #25

Open
omry wants to merge 1 commit into
pr24from
pr25
Open

Freeze controlled-session execution plans#25
omry wants to merge 1 commit into
pr24from
pr25

Conversation

@omry
omry changed the base branch from main to pr24 August 8, 2026 15:19
@omry
omry marked this pull request as ready for review August 8, 2026 15:21
Copilot AI lite review requested due to automatic review settings August 8, 2026 15:21
@omry

omry commented Aug 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Comment on lines +14 to +18
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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: dd1f677bd5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved PR reviewed and approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants