Skip to content

feat(windows): bound resources across simultaneous native commands - #427

Merged
lg2m merged 3 commits into
fix/native-storage-rootsfrom
feat/windows-fleet-resources
Oct 24, 2026
Merged

lg2m merged 3 commits into
fix/native-storage-rootsfrom
feat/windows-fleet-resources

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Simultaneous budgeted Windows commands now share a kernel resource envelope: 75% of initially available physical/commit memory, 4,096 processes and a 90% CPU cap. Each command retains independent cancellation and limits. Suspended processes join both jobs before payload execution; cancellation and deadlines are checked again before the single resume.

Memory limits round down to native pages and are verified by reading the kernel settings back. Cleanup uncertainty remains visible to the durable worker. Native startup and fleet tests cover command isolation, process limits, nested CPU accounting and cancellation.

Based on #443 (the replacement for #426). This PR does not enable default Windows Auto or resolve its outstanding filesystem/tool-access findings. The Auto integration CI step stays with #425, where its test is introduced.

Verified on exact head b467d790: cargo xtask check passed 3,095 workspace tests, 220 minimal-provider tests, doctests, formatting, lint and strict Clippy. Full hosted CI passed on this head, including native macOS and Windows. Codex reviewed this exact commit with no findings; no unresolved review threads remain. CI result.

@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-24T05:32:52.970678Z c98c19f 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 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 force-pushed the feat/windows-fleet-resources branch from 5001cc9 to 53c0def Compare October 22, 2026 16:06
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch 2 times, most recently from 774cfa3 to fa7d121 Compare October 22, 2026 17:01
@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

@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from fa7d121 to db1f644 Compare October 22, 2026 17:30
@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-fleet-resources branch from db1f644 to d8bf806 Compare October 22, 2026 18:06
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from d8bf806 to 07517c7 Compare October 22, 2026 18:17
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from 279fb1f to bbd50d3 Compare October 22, 2026 19:01
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from bbd50d3 to 4be536b Compare October 22, 2026 19:32
@lg2m
lg2m removed this pull request from stack #430 October 23, 2026 03:59
@lg2m
lg2m added this pull request to stack #435 October 23, 2026 03:59
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from 4be536b to c309240 Compare October 23, 2026 06:33
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from c309240 to e9cc18d Compare October 23, 2026 07:01
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch 2 times, most recently from d45726f to bdc24b2 Compare October 23, 2026 21:37
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from bdc24b2 to 131db76 Compare October 23, 2026 22:18
@lg2m

lg2m commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head 131db769fe8d4a373e3fb9f221d35d893e5c9397. The stack now includes the independently qualified Windows task-home path representation fix; descendant PR patches are unchanged by range-diff. Existing Windows containment/tool-compatibility findings remain open.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 131db769fe

ℹ️ 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 #435 October 23, 2026 22:45
@lg2m
lg2m added this pull request to stack #442 October 23, 2026 22:45
@lg2m
lg2m force-pushed the feat/windows-fleet-resources branch from 131db76 to b467d79 Compare October 23, 2026 23:09
@lg2m
lg2m removed this pull request from stack #442 October 23, 2026 23:09
Base automatically changed from fix/native-storage-roots to main October 23, 2026 23:09
@lg2m
lg2m changed the base branch from main to fix/native-storage-roots October 23, 2026 23:09
@lg2m
lg2m added this pull request to stack #444 October 23, 2026 23:10
@lg2m

lg2m commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head b467d79046e9ccbcd4411196d764f7d1f5f750de against its current base after the stack reorder. The combined final source tree is unchanged. Existing unresolved Auto findings remain open; restacking does not resolve them.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: b467d79046

ℹ️ 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-fleet-resources branch from b467d79 to c98c19f Compare October 24, 2026 04:53
@lg2m
lg2m removed this pull request from stack #444 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.

@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head c98c19f1f7bc24fcf11e402a35157fc258d84477 against its current base. CI has passed. This follows the rebase onto main; the earlier review request has no current-head receipt.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: c98c19f1f7

ℹ️ 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 4225336 into main Oct 24, 2026
13 of 20 checks passed
@lg2m
lg2m deleted the feat/windows-fleet-resources 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