Skip to content

feat(windows): contain scoped commands in LPAC and owned jobs - #423

Merged
lg2m merged 13 commits into
feat/auto-session-executionfrom
feat/windows-auto-execution
Oct 23, 2026
Merged

lg2m merged 13 commits into
feat/auto-session-executionfrom
feat/windows-auto-execution

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Windows restricted commands run in LPAC inside the durable worker's owned jobs, with no host fallback. Restricted subprocesses receive registryRead; no COM or network capability is granted. Resource limits and default Windows Auto activation follow in #424/#425.

Held-root validation and parent-relative opens prevent junction replacement from redirecting ACL grants. Read-only roots reuse identity-bound read/execute entries. QQ's writable grants remain package-private and all supplied aliases are validated.

Startup now checks cancellation and the original deadline again after suspended process creation and job assignment, before resuming the payload. A refused startup terminates the exact child and job, confirms exit and preserves the uncertainty fence if cleanup fails. The upstream resume helper can still spend up to 500 ms discovering the initial thread; this fixes the creation/setup gap rather than claiming an atomic deadline-to-ResumeThread operation.

Native before/after tests passed on Windows Server and ARM: the old path resumes the deliberately cancelled payload; the fixed path rejects both cancellation and expiry without running it. Native evidence. The final local gate at 3271a426 passed formatting, lint, strict Clippy and all 2,491 tests (14 skipped). All current-head CI jobs passed. Codex reviewed this exact head with no findings; no unresolved review threads remain.

Windows Auto is not qualified by this PR. #425 retains the installed-toolchain compatibility and outside-task writes through ambient Windows capability ACL findings. Existing private-file/network tests do not prove those remaining boundaries. Stacked on #421; #427 applies the same startup check to its fleet-budgeted path.

@lg2m lg2m added the ci:full label Oct 22, 2026
@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-23T20:32:31.651026Z 3271a42 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

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 commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 61b169b989

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

@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/windows-auto-execution branch 2 times, most recently from c6994ea to f4c3432 Compare October 22, 2026 19:01
@lg2m
lg2m force-pushed the feat/windows-auto-execution branch from f4c3432 to 871522b Compare October 22, 2026 19:32
@lg2m
lg2m force-pushed the feat/windows-auto-execution branch from 871522b to a358f20 Compare October 23, 2026 03:58
@lg2m
lg2m removed this pull request from stack #430 October 23, 2026 03:59
@lg2m
lg2m changed the base branch from feat/macos-auto-execution to feat/auto-session-execution October 23, 2026 03:59
@lg2m
lg2m added this pull request to stack #435 October 23, 2026 03:59

@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: 8d98b9cc6f

ℹ️ 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 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 54f26ea042

ℹ️ 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/windows-auto-execution branch from 54f26ea to 51467b2 Compare October 23, 2026 06:33
@lg2m
lg2m force-pushed the feat/windows-auto-execution branch 2 times, most recently from 8128cd0 to 0bfab2c Compare October 23, 2026 18:29
@lg2m
lg2m force-pushed the feat/windows-auto-execution branch from 0bfab2c to 3271a42 Compare October 23, 2026 20:30
@lg2m
lg2m merged commit 003efb9 into main Oct 23, 2026
10 checks passed
@lg2m
lg2m deleted the feat/windows-auto-execution branch October 23, 2026 21:37
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