Skip to content

refactor: enforce explicit wrapper session ownership - #241

Merged
ejgallego merged 28 commits into
mainfrom
codex/daemon-owner-lifetime
Aug 29, 2026
Merged

refactor: enforce explicit wrapper session ownership#241
ejgallego merged 28 commits into
mainfrom
codex/daemon-owner-lifetime

Conversation

@ejgallego

@ejgallego ejgallego commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

This PR replaces implicit wrapper-daemon lifetime inference with an explicitly owned, authenticated CLI session whose routing and configuration are frozen in a typed descriptor.

  • Make lean-beam ensure --hold the sole wrapper-generation owner, with owner-pipe shutdown, a draining fence for normal teardown, and explicit non-signalling recovery after abnormal state.
  • Keep the default control plane in the project .beam directory for scoped sandboxes, while adding exact --control-dir selection and deterministic BEAM_CONTROL_ROOT discovery for advanced coordination.
  • Add the supported root-aware request-stream machine interface, scope request identity and cancellation by workspace, and keep raw port and dynamic multi-workspace administration on the generic maintenance broker boundary.

@ejgallego
ejgallego force-pushed the codex/daemon-owner-lifetime branch 4 times, most recently from b63f8ab to d5a4e22 Compare August 24, 2026 16:03
@ejgallego
ejgallego marked this pull request as ready for review August 24, 2026 16:10
@ejgallego
ejgallego force-pushed the codex/daemon-owner-lifetime branch 4 times, most recently from 8fe274a to 5556640 Compare August 25, 2026 16:45
@ejgallego
ejgallego force-pushed the codex/daemon-owner-lifetime branch from 5556640 to e7a96eb Compare August 25, 2026 18:18
@ejgallego
ejgallego marked this pull request as draft August 25, 2026 18:50
@ejgallego ejgallego changed the title fix: fence daemon lifetime to active wrapper requests refactor: make wrapper daemon ownership explicit Aug 25, 2026
@ejgallego
ejgallego force-pushed the codex/daemon-owner-lifetime branch from 1b579a7 to 7ae0af4 Compare August 25, 2026 20:35
@ejgallego
ejgallego force-pushed the codex/daemon-owner-lifetime branch from 7ae0af4 to 184ed18 Compare August 25, 2026 21:00
@ejgallego ejgallego changed the title refactor: make wrapper daemon ownership explicit refactor: enforce explicit wrapper daemon ownership Aug 27, 2026
@ejgallego ejgallego changed the title refactor: enforce explicit wrapper daemon ownership refactor: enforce explicit wrapper session ownership Aug 28, 2026
@ejgallego
ejgallego marked this pull request as ready for review August 29, 2026 16:18
@ejgallego
ejgallego merged commit 6f98ed6 into main Aug 29, 2026
61 of 62 checks passed
@ejgallego
ejgallego deleted the codex/daemon-owner-lifetime branch August 29, 2026 17:35
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