Skip to content

fix(codex): preserve sandboxed process inspection and setup errors - #174284

Merged
steipete merged 4 commits into
mainfrom
fix/codex-process-census
Oct 16, 2026
Merged

steipete merged 4 commits into
mainfrom
fix/codex-process-census

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes Codex turns failing when a macOS sandbox refuses to execute /bin/ps, and zero-config setup silently treating Codex detection or process-inspection errors as absence and selecting Ollama.

User Impact

Sandboxed Bun runtimes can reuse an existing Codex login without allowing ps execution. Setup keeps detection and inspection failures visible. Genuine absence, sign-in-required behavior, and fallback after ordinary model failures remain covered. Shipped v2026.10.4 contains the old snapshot path, so existing users under rejecting sandboxes are affected. No credential migration or proc-safe release is needed.

Why This Change Was Made

One core Darwin owner now supplies Codex snapshots and process-group census through the documented openclaw/plugin-sdk/process-runtime contract. Bun uses libproc for topology/start identity and the pinned proc-safe reader for arguments. Node has no FFI and the pinned package has no Darwin census API, so Node retains bounded ps inspection and its topology-only group projection. Normalized UTC start identities remain compatible with persisted Codex registrations.

Darwin restricts full start-time records across UIDs. Collect complete short-record topology, then read full identities only for relevant Codex roots/descendants and the observer. Relevant denials stay errors. The retained PR-tooling inventory includes the new core dependency.

Evidence

  • 178 process/census/Codex snapshot tests pass (29.22 s wall), 20 automatic-setup tests pass (44.07 s), and 19 extracted-wrapper/import-closure tests pass (43.10 s). Detection probes, inference detection, and credential metadata add 39 passing tests (48.61 s / 82.62 s / 3.83 s).
  • Production build passes (244.50 s); SDK exports, qualified Codex import profile, targeted lint/types, and independent Codex review through P2 pass.
  • Developer ID signed JIT standalone embeds the requested 77-plugin desktop set. Seatbelt explicitly denies /bin/ps; the real Codex plain turn returns exact HR_OK, exit 0, in 41.421 s. No physical loose CLI entry is present.
  • A synthetic Codex metadata denial surfaces Codex sign-in detection failed with its permission error through the real openclaw.setup.auto RPC. No primary model is selected and no Ollama inference is attempted. Real loose Node v26.12.0 also returns exact HR_OK in 22.375 s.
  • Exact-head CI run passes, including openclaw/ci-gate. CI caught and verified repairs for the retained wrapper import, export-name collision, and Node census projection.

Local limitations are retained: repository-wide max-lines, wrapper-shadowing, and dead-export findings reproduce on the inspected clean-main snapshot. One macOS-only PR-tooling warm/sparse test exceeds its existing 120-second deadline both in the full file and in isolation; 15 other provisioning cases pass. No timeout or baseline was weakened. All OpenClaw proof state is isolated; real Codex auth uses homeScope=user REUSE with no OAuth copies.

Related: #174147.

@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 14:06
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

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-16T14:44:24.485093Z 0efe107 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime commands Command implementations agents Agent runtime and tooling extensions: codex plugin: file-transfer size: L labels Oct 16, 2026
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 0efe1076c2f899d21b5608597bd767d0eba3ae88
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/cli-credentials.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

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: b9580b3b25

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR shares native Darwin process inspection across Codex and cleanup, and surfaces Codex setup errors instead of silently selecting another provider.

Example: A macOS Bun runtime has an existing Codex login and a sandbox that denies /bin/ps execution.

  • Before: Codex process inspection fails, and automatic setup can silently select Ollama.
  • After: Codex uses native process inspection, while genuine inspection failures remain visible.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful repair direction, but concrete fallback and tooling defects block merge, and required authority and upgrade evidence remains incomplete.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Sandboxed Codex turns fail when ps cannot execute, and automatic setup can hide inspection errors by selecting another provider.
Reason: The maintainer-authored direction repairs an owned runtime failure using the existing process boundary without introducing configuration.

Merge readiness

⛔ Blocked before merge - 9 items remain

Keep this maintainer-authored PR open: it addresses a current sandbox failure, but introduces an overly broad setup stop and breaks wrapper extraction and census fixtures.

Priority: P1
Reviewed head: ed1dae11ec236600ccb3c5ca672f989cc6b3b1e5

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise native Bun inspection through Codex containment with an owned child and the nearest forbidden unrelated or replaced process, showing rejection before final signals. The body reports source inspection and tests but supplies no such trace. Maintainer authorship exempts ordinary contributor proof, not this authority evidence or upgrade compatibility; provide a v2026.10.4 upgrade showing retained registrations and settings survive Node/Bun transitions, with sensitive values redacted. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Restrict the setup stop to Codex inspection failures (P1) - With stored Codex credentials and a working Ollama candidate, a live Codex probe returning rate_limit or billing sets codexFailed because every non-auth status enters this branch. The loop then returns unavailable before trying Ollama, contrary to the first-working-connection ladder and the documented inspection-only stop. Carry a structured inspection/startup classification through activation and retain fallback for ordinary candidate failures.
  • Include the new inspector in the PR wrapper inventory (P1) - This static import adds a required dependency to a module extracted by scripts/pr, but scripts/pr-lib/wrapper-components.txt omits src/process/darwin-process-inspection.ts. Extracted wrapper commands therefore fail with ERR_MODULE_NOT_FOUND before worktree provisioning or lease bootstrap, including on Linux. Exact-head CI confirms the missing dependency. Add the new source to the inventory and update copied bootstrap layouts that assume the previous relative import.
  • Update process-census fixtures for the shared Darwin parser (P2) - Routing Node Darwin census through the shared inspector changes ps output to pid, ppid, pgid, state, uid, and lstart. The Darwin fixtures in src/infra/openclaw-process-census.test.ts still emit the old five-column format, so parsing throws before foreign-process, cwd, and retained-artifact assertions execute. Exact-head CI reports these failures. Update those external-I/O fixtures to the new format while preserving their existing behavioral expectations.
  • Resolve security concern: Verify forbidden targets remain outside native containment - The changed native topology and identity producer feeds existing signal authorization; supplied evidence does not demonstrate that unrelated or replaced identities are rejected immediately before signals.
  • Resolve merge risk - Native topology and start identities now govern process signals, but rejection of unrelated or replaced processes at the final signal boundary remains unverified.
  • Improve patch quality - Add final-effect proof that unrelated and replaced process identities receive no signals through native Bun containment.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.
  • Explain or restore the original intent of Automatic inference fallback - 7253647: Preserve configured inference and activate the first working ranked connection; the body explains stopping for inspection failures but not for billing or rate-limit rejection.

Findings

  • [P1] Restrict the setup stop to Codex inspection failures — src/gateway/server-methods/system-agent-setup-auto.ts:201-204
  • [P1] Include the new inspector in the PR wrapper inventory — src/process/supervisor/service-child-group-ownership.ts:5
  • [P2] Update process-census fixtures for the shared Darwin parser — src/process/supervisor/service-child-group-ownership.ts:175-176
  • [medium] Verify forbidden targets remain outside native containment — src/process/darwin-process-inspection.ts:157

Provenance

  • Automatic inference fallback changes intended behavior without addressing why it exists (7253647: Preserve configured inference and activate the first working ranked connection; the body explains stopping for inspection failures but not for billing or rate-limit rejection.)

Tests

  • Missing end-to-end proof: Missing native final-signal rejection evidence and a v2026.10.4 upgrade retaining registrations and settings; supplied regression results do not show fail-before runs.
Agent review details

How this fits together

The process owner supplies topology, start identities, and command observations to Codex registration and containment; setup detection and activation consume backend results to select inference or report recovery guidance.

flowchart TD
  A[Automatic setup] --> B[Backend detection and activation]
  B --> C[Codex transport]
  C --> D[Shared Darwin inspector]
  E[Process group cleanup] --> D
  D --> F[Bun libproc and proc safe]
  D --> G[Node bounded ps]
Loading

Technical review

Best possible solution:

Keep shared native inspection, narrow the setup stop to inspection failures, and preserve working fallbacks and retained registrations.

Do we have a high-confidence way to reproduce the issue?

Current-main source directly reaches ps for Darwin Codex inspection and discards discovery failures, establishing the reported path when a sandbox rejects execution; no target code was run.

Is this the best way to solve the issue?

A shared Darwin owner fits the existing architecture, but setup must distinguish inspection failures from ordinary candidate rejection and migrate affected tooling consumers.

Full review comments:

  • [P1] Restrict the setup stop to Codex inspection failures — src/gateway/server-methods/system-agent-setup-auto.ts:201-204
    With stored Codex credentials and a working Ollama candidate, a live Codex probe returning rate_limit or billing sets codexFailed because every non-auth status enters this branch. The loop then returns unavailable before trying Ollama, contrary to the first-working-connection ladder and the documented inspection-only stop. Carry a structured inspection/startup classification through activation and retain fallback for ordinary candidate failures.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P1] Include the new inspector in the PR wrapper inventory — src/process/supervisor/service-child-group-ownership.ts:5
    This static import adds a required dependency to a module extracted by scripts/pr, but scripts/pr-lib/wrapper-components.txt omits src/process/darwin-process-inspection.ts. Extracted wrapper commands therefore fail with ERR_MODULE_NOT_FOUND before worktree provisioning or lease bootstrap, including on Linux. Exact-head CI confirms the missing dependency. Add the new source to the inventory and update copied bootstrap layouts that assume the previous relative import.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Update process-census fixtures for the shared Darwin parser — src/process/supervisor/service-child-group-ownership.ts:175-176
    Routing Node Darwin census through the shared inspector changes ps output to pid, ppid, pgid, state, uid, and lstart. The Darwin fixtures in src/infra/openclaw-process-census.test.ts still emit the old five-column format, so parsing throws before foreign-process, cwd, and retained-artifact assertions execute. Exact-head CI reports these failures. Update those external-I/O fixtures to the new format while preserving their existing behavioral expectations.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d441bfc6e025.

Merge-risk options

Maintainer options:

  1. Prove native signal authorization (recommended)
    Exercise the real native inspector and containment owner with an owned child, an unrelated process, and a replaced retained identity; show that forbidden targets receive no signals.

Provenance checked

  • Native Darwin census and process-group cleanup keeps the original intent (6d50f72: Permit sandboxed Doctor cleanup without ps while retaining incomplete-inspection failures.)
  • Codex process registration and containment keeps the original intent (1180a53: Scope registration to required identities while destructive containment retains complete relevant topology and fresh identity checks.)
  • Codex credential-presence discovery keeps the original intent (7253647: Treat stored credentials as discovery evidence while Codex retains authentication ownership; the new error distinction preserves that boundary.)

Testing

Proof path: in-process harness.

Security

Needs attention: No concrete authorization bypass was established, but native process-signal authorization needs boundary proof.

Evidence

Security concerns:

  • [medium] Verify forbidden targets remain outside native containment — src/process/darwin-process-inspection.ts:157
    The changed native topology and identity producer feeds existing signal authorization; supplied evidence does not demonstrate that unrelated or replaced identities are rejected immediately before signals.
    Confidence: 0.9

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 7253647 adds src/gateway/server-methods/system-agent-setup-auto.ts:90 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 72536479c635; files: src/gateway/server-methods/system-agent-setup-auto.ts)

PR surface

Source +322, Tests +318, Docs +29. Total +669 across 23 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 10 404 82 +322
Tests 9 338 20 +318
Docs 4 30 1 +29
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 23 772 103 +669

Labels

Label changes:

  • add P1: The intended repair restores sandboxed Codex turns, while the current patch can stop otherwise usable automatic inference setup.
  • add merge-risk: 🚨 compatibility: The PR adds documented process-runtime SDK exports and changes the producer of start identities compared against persisted Codex registrations.
  • add merge-risk: 🚨 security-boundary: Native process observations feed containment decisions and final process signals.
  • add merge-risk: 🚨 automation: The new static import breaks trusted wrapper extraction and startup because its source is missing from the wrapper inventory.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P1: The intended repair restores sandboxed Codex turns, while the current patch can stop otherwise usable automatic inference setup.
  • merge-risk: 🚨 compatibility: The PR adds documented process-runtime SDK exports and changes the producer of start identities compared against persisted Codex registrations.
  • merge-risk: 🚨 security-boundary: Native process observations feed containment decisions and final process signals.
  • merge-risk: 🚨 automation: The new static import breaks trusted wrapper extraction and startup because its source is missing from the wrapper inventory.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 16, 2026, 10:35 AM ET / 14:35 UTC.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 16, 2026
@steipete
steipete merged commit 4959773 into main Oct 16, 2026
161 checks passed
@steipete
steipete deleted the fix/codex-process-census branch October 16, 2026 16:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits)
  fix(decisions): align accounting ratchet evidence
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits)
  fix(decisions): align accounting ratchet evidence
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits)
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  refactor(feishu): reuse streaming merge in dispatcher tests (#174371)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits)
  fix(decisions): align accounting ratchet evidence
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits)
  feat(memory): activate PostgreSQL memory search and lifecycle (#174374)
  fix: join process shutdown and isolate runtime fixtures (#174359)
  refactor(ui): scope native gateway observation to Solid (#174367)
  refactor(ui): own canvas widget lifetime in Solid (#174370)
  perf(control-ui): keep agent avatar faces stable across agent publications (#174239)
  perf(models): release unused account catalog instructions (#174361)
  refactor(ui): own composer command menus in Solid stores (#174321)
  refactor(ui): separate sidebar filter state from view lifecycle (#174352)
  test(release): make artifact qualification deadlines deterministic
  fix(codex): preserve sandboxed process inspection and setup errors (#174284)
  fix(gateway): stop worker processes before draining their queues (#174312)
  refactor(agents): reuse prepared tool facts (#174349)
  test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331)
  refactor(ui): replace MCP retirement host adapters with a factory (#174375)
  refactor(logging): remove redundant native success traces (#174330)
  refactor(test): remove dead control-plane fixture branches (#174377)
  refactor(mcp): remove test-only session runtime seams (#174347)
  feat(matrix): account-root state databases follow the selected engine (#174315)
  refactor(discord): collapse private interaction and factory seams (#174322)
  refactor(feishu): reuse streaming merge in dispatcher tests (#174371)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…penclaw#174284)

* fix(codex): preserve sandboxed process inspection and setup errors

* test(codex): match Node process mock callback types

* style(codex): satisfy process inspection lint checks

* fix(codex): preserve census and setup fallback contracts
RomneyDa pushed a commit that referenced this pull request Oct 30, 2026
* fix(process): backport native Darwin group inspection

Backport the process census and supervisor tests from #174147. The independent Doctor diagnostics and runtime-pin migration changes are excluded.

(cherry picked from commit 6d50f72)

* refactor(process): backport the shared Darwin inspection owner

Backport the process owner, SDK exports, Codex consumer and their tests from #174284. The independent credential detection and onboarding changes are excluded. Preserve the release branch's unrelated diagnostic documentation.

(cherry picked from commit 4959773)

* refactor(process): share native macOS census across runtimes

Backport #175368. Retain fs-safe 0.26.5 and adapt native census fixtures to the release branch. Carries the approved DarwinProcess uid-to-owner SDK migration; the following package pin completes the exit-window repair.

(cherry picked from commit f236b19)

* fix(codex): retry post-kill observations through the native exit window

Backport #176576. Keep custody while retrying observations after our own SIGKILL within the existing containment deadline.

(cherry picked from commit 5f94dfb)

* fix(process): preserve macOS cleanup while unrelated processes exit

Backport #176612. Pin proc-safe 0.4.2 and its exact native package exclusions, retain the real exiting-process regression, and align the SDK summary with native inspection on both runtimes. Retain the release branch's other dependency pins and exemptions.

(cherry picked from commit 727c607)

* test(process): reuse the process group inspection helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. commands Command implementations docs Improvements or additions to documentation extensions: codex gateway Gateway runtime plugin: file-transfer scripts Repository scripts security-sensitive-changed size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant