Skip to content

feat(runtime): contain default Auto tasks on macOS - #422

Merged
lg2m merged 14 commits into
feat/windows-fleet-resourcesfrom
feat/macos-auto-execution
Oct 24, 2026
Merged

lg2m merged 14 commits into
feat/windows-fleet-resourcesfrom
feat/macos-auto-execution

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

macOS Auto runs through the durable worker with private task files, Seatbelt file/network restrictions, protected grant directories and checked publication. Cancellation, deadlines and worker loss clean the owned process group. Native spawn-attribute tests verify that children starting a different group or session retain path/network restrictions and can still write task files; the fixture explicitly reaps those children.

Detached processes can outlive owned-group cleanup while remaining sandboxed. Sampled memory/thread safeguards cover the owned group and are not aggregate quotas. No VM, privileged setup or custom custody API is introduced.

Verified on current head efa74966: full CI passed Linux checks and real-binary smoke, native macOS/Windows, Windows teardown and wasm. Native macOS passed all seven protection tests, including both spawn attributes and existing cancellation/resource checks. Codex reviewed this head with no findings; the prior custody thread is resolved against the explicitly accepted practical contract.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m lg2m added the ci:full label Oct 22, 2026
@lg2m lg2m changed the title feat(core): add setup-free macOS command resource safeguards feat(runtime): contain default Auto tasks on macOS Oct 22, 2026
@lg2m
lg2m force-pushed the feat/macos-auto-execution branch from 59ff270 to 84a0fab Compare October 22, 2026 15:40
@lg2m
lg2m added this pull request to stack #430 October 22, 2026 17:02
@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-24T04:56:39.603940Z 38496a1 Manual request
ℹ️ 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

Copy link
Copy Markdown

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

Reviewed commit: 84a0fabe5c

ℹ️ 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/macos-auto-execution branch from 84a0fab to 85f38a6 Compare October 22, 2026 18:06
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m force-pushed the feat/macos-auto-execution branch 3 times, most recently from 8a37ee2 to f92d9c2 Compare October 23, 2026 01:49

@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: eeb773a8b4

ℹ️ 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 removed this pull request from stack #430 October 23, 2026 03:59
@lg2m
lg2m force-pushed the feat/macos-auto-execution branch from d01633a to 5a85376 Compare October 23, 2026 06:33
@lg2m
lg2m force-pushed the feat/macos-auto-execution branch 3 times, most recently from 0d70150 to 067f2bf Compare October 23, 2026 20:24
Base automatically changed from feat/auto-session-execution to main October 23, 2026 21:37
@lg2m
lg2m added this pull request to stack #441 October 23, 2026 21:41
@lg2m
lg2m force-pushed the feat/macos-auto-execution branch from 067f2bf to 7761f32 Compare October 23, 2026 21:49
@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head 38dd1c66f50e364db8c6fce0b878137f6c8d7541. The user has explicitly accepted practical Seatbelt containment and owned-process-group cleanup on macOS, with detached-process limitations documented. This change retains file/network authority, durable execution and cleanup mechanics; it replaces the impossible no-detachment assertion with native SETPGROUP/SETSID inheritance tests and exact fixture reaping. Local exact-head fmt/lint/strict Clippy and 3,093 workspace plus 220 minimal-provider tests passed; actual macOS CI must qualify the new native tests. Please identify defects in implementation or truthful reporting against this explicit scope.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 38dd1c66f5

ℹ️ 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 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review latest head efa74966f89b341a81e0a7fa6fc06679ecd83393. This fixes the new native-test cleanup-loop Clippy finding. The accepted macOS contract remains Seatbelt file/network containment plus owned-group cleanup with documented detached-process limitations. The parent implementation passed the full local gate; the exact payload probe and spawn/reap helper now also pass extracted all-target strict Clippy. Native CI must qualify actual Darwin behavior.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: efa74966f8

ℹ️ 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/macos-auto-execution branch from efa7496 to 38496a1 Compare October 24, 2026 04:53
@lg2m
lg2m removed this pull request from stack #441 October 24, 2026 04:54
@lg2m
lg2m changed the base branch from main to feat/windows-fleet-resources October 24, 2026 04:54
@lg2m
lg2m added this pull request to stack #458 October 24, 2026 04:54
@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Rebased onto current main and aligned the dependency stack. Please review the current head against its current base.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 38496a19e9

ℹ️ 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 merged commit a36f052 into main Oct 24, 2026
10 checks passed
@lg2m
lg2m deleted the feat/macos-auto-execution branch October 24, 2026 13:12
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