Skip to content

feat(server): host owned commands in an independent worker - #385

Merged
lg2m merged 6 commits into
feat/command-ownerfrom
feat/command-owner-process
Oct 21, 2026
Merged

lg2m merged 6 commits into
feat/command-ownerfrom
feat/command-owner-process

Conversation

@lg2m

@lg2m lg2m commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Adds an independent native command worker through the hidden _command-owner command. 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.

@lg2m lg2m added the ci:full label Oct 20, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T02:50:33.532942Z e3ef15f New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

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

Comment thread src/command_owner.rs Resolved
Comment thread crates/qq-server/src/command_owner.rs Resolved
@lg2m
lg2m force-pushed the feat/command-owner-process branch from 3dd4825 to 07ecf4c Compare October 21, 2026 00:16

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

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

@lg2m
lg2m force-pushed the feat/command-owner-process branch from 07ecf4c to 5a2085b Compare October 21, 2026 00:50

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

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

Comment thread crates/qq-server/src/command_owner.rs Resolved
@lg2m
lg2m force-pushed the feat/command-owner-process branch 2 times, most recently from fe77ce9 to 1d83764 Compare October 21, 2026 01:09

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

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

Comment thread crates/qq-server/src/command_owner.rs Resolved
Comment thread src/command_owner.rs Resolved
@lg2m
lg2m added this pull request to stack #386 October 21, 2026 01:34
@lg2m
lg2m force-pushed the feat/command-owner-process branch 7 times, most recently from 648ec90 to 1e6caa0 Compare October 21, 2026 02:34

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

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

Comment thread crates/qq-server/src/command_owner.rs Resolved
@lg2m
lg2m force-pushed the feat/command-owner-process branch from 1e6caa0 to 67c1a7f Compare October 21, 2026 02:41
@lg2m
lg2m merged commit 92f6f88 into main Oct 21, 2026
10 checks passed
@lg2m
lg2m deleted the feat/command-owner-process branch October 21, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant