Repository navigation
feat(server): host owned commands in an independent worker - #385
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3dd4825368
ℹ️ 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".
3dd4825 to
07ecf4c
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 07ecf4c194
ℹ️ 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".
07ecf4c to
5a2085b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5a2085badc
ℹ️ 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".
fe77ce9 to
1d83764
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d83764bf3
ℹ️ 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".
648ec90 to
1e6caa0
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e6caa0f26
ℹ️ 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".
1e6caa0 to
67c1a7f
Compare
Adds an independent native command worker through the hidden
_command-ownercommand. Trusted hosts submit authorized commands over authenticated loopback HTTP and reconnect by command ID. Completion waits reserve capacity separately from cancellation. The worker settles commands on SIGINT/SIGTERM, retains its journal identity across restarts, and withdraws healthy discovery after a fatal owner failure, including journal read failures. Reservation and discovery verify the endpoint for the requested service and its complete discovery identity. Workers expose only their authenticated private v1 endpoint: neither service can be mistaken for the other, regardless of display name.Stacked on #383, including its native process teardown and paused-clock corrections. Normal agent/server tool dispatch remains local; automatic worker startup, server reattachment and task continuation are not wired yet. This does not supply filesystem/network containment, and Unix descendants can still escape process groups, and a worker crash can leave Unix processes running. Kernel-backed Unix lifecycle enforcement remains unfinished.
Verification: six real-binary tests cover observer loss, result recovery without replay, signal settlement, automatic replacement after write/snapshot/submit journal failures, rejecting a regular server while reusing an actual worker, and refusing workers in ordinary server discovery/reservation. Seven focused transport/discovery tests, fmt, lint and Clippy pass locally. The base passes all Linux/macOS/Windows CI. The latest worker discovery change is running in CI.