Skip to content

feat(macos): stop guarded commands under system memory pressure - #429

Merged
lg2m merged 4 commits into
feat/macos-auto-executionfrom
feat/macos-memory-pressure
Oct 24, 2026
Merged

lg2m merged 4 commits into
feat/macos-auto-executionfrom
feat/macos-memory-pressure

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Guarded macOS commands check system memory pressure before readiness, after authorization immediately before payload creation, and periodically during execution. Warning/critical pressure or unavailable/unknown data refuses or stops the owned group. Confirmed pre-launch failures release both process leases without claiming a payload ran; partial receipts or guardian failure retain uncertainty.

This preserves durable execution and the accepted #422 Seatbelt/owned-group boundary. Sampled pressure and resource safeguards do not track detached descendants or provide aggregate quotas. No privileged setup or new custody mechanism is introduced.

Validation at current head bc6f86de: fmt, repository lint and strict workspace Clippy passed. The single full local suite passed 3,089/3,097 tests; eight unchanged deadline/goal tests timed out while other suites ran. All eight passed unchanged in one serial rerun (89.17s). The failed full receipt is preserved; it is not reported as a clean full pass. Parent #422 current-head native CI and Codex passed. Current-head CI passed, including native macOS/Windows, Linux tests/smoke, Windows teardown and wasm. Current-head Codex review is pending.

@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-24T04:56:21.144846Z ddcefd2 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 force-pushed the feat/macos-memory-pressure branch from 372d38d to ab4fe64 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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: ab4fe64625

ℹ️ 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-memory-pressure branch 2 times, most recently from e1443a1 to d0cfbae Compare October 22, 2026 18:06
@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch from d0cfbae to da695a6 Compare October 22, 2026 18:17
@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-memory-pressure branch from da695a6 to 22eacfe Compare October 22, 2026 18:27
@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch from 22eacfe to 1f6d322 Compare October 22, 2026 19:01
@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-memory-pressure branch from 1f6d322 to c59e995 Compare October 22, 2026 19:32
@lg2m
lg2m removed this pull request from stack #430 October 23, 2026 03:59
@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch from c59e995 to dd6c55c Compare October 23, 2026 06:33
@lg2m
lg2m changed the base branch from fix/linux-startup-deadline to feat/macos-auto-execution October 23, 2026 06:33
@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch from dd6c55c to 5ec9dc6 Compare October 23, 2026 18:17

@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: 5ec9dc6d5a

ℹ️ 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-memory-pressure branch from 5ec9dc6 to 4235aa4 Compare October 23, 2026 18:29
@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch from 4235aa4 to 044c848 Compare October 23, 2026 20:38
@lg2m
lg2m added this pull request to stack #441 October 23, 2026 21:41
@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch 2 times, most recently from fb68fdd to bc6f86d Compare October 24, 2026 01:00
@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head bc6f86de0571beb4e98eb5af675e4b67ce3e24ca against #422. The four production pressure/receipt commits are preserved after restacking; two old documentation commits are absorbed by the accepted practical Mac contract in the base. Parent #422 has clean current-head native CI and review. This candidate passed fmt/lint/strict Clippy; the full local suite had eight unchanged timing failures under concurrent load, and all eight passed unchanged in one serial rerun. Native CI is still required.

@lg2m
lg2m force-pushed the feat/macos-memory-pressure branch from bc6f86d to ddcefd2 Compare October 24, 2026 04:53
@lg2m
lg2m removed this pull request from stack #441 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. Keep it up!

Reviewed commit: ddcefd2df1

ℹ️ 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 b169420 into main Oct 24, 2026
10 checks passed
@lg2m
lg2m deleted the feat/macos-memory-pressure 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