Skip to content

fix(runtime): isolate workers and bound cron top-off - #86955

Closed
Joshtt23 wants to merge 3 commits into
openclaw:mainfrom
Joshtt23:jtraver/runtime-isolation-research
Closed

Joshtt23 wants to merge 3 commits into
openclaw:mainfrom
Joshtt23:jtraver/runtime-isolation-research

Conversation

@Joshtt23

@Joshtt23 Joshtt23 commented May 26, 2026 •

Copy link
Copy Markdown

Summary

  • wrap Linux service-managed Codex app-server and supervised child launches in user systemd scopes under openclaw-workers.slice, with an opt-out to avoid recursive scopes
  • make cron reserve only available run slots, finalize jobs as they finish, and top off freed slots while slower jobs continue
  • route stale Codex thread-binding fallback compaction through the Codex OAuth runtime path and add regression coverage around the changed scheduling/isolation paths

Overlap check

Validation

  • git diff --check origin/main...HEAD
  • pnpm exec vitest run --config test/vitest/vitest.process.config.ts src/process/supervisor/adapters/child.test.ts (19 tests)
  • pnpm exec vitest run --config test/vitest/vitest.cron.config.ts src/cron/service/timer.regression.test.ts (52 tests)
  • pnpm exec vitest run --config test/vitest/vitest.config.ts extensions/codex/src/app-server/transport-stdio.test.ts (10 tests)
  • pnpm exec vitest run --config test/vitest/vitest.config.ts src/gateway/server-runtime-services.test.ts (11 tests)
  • pnpm exec vitest run --config test/vitest/vitest.config.ts src/agents/pi-embedded-runner/compact.hooks.test.ts (104 tests)

@Joshtt23
Joshtt23 requested a review from a team as a code owner May 26, 2026 15:39
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling extensions: codex size: L triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 26, 2026
@clawsweeper

clawsweeper Bot commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask.

Close: this external PR has had a real-behavior-proof ask open for more than 14 days, the current head has been idle since late May with failing proof/checks, and the prior blocking source findings remain unresolved.

So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again.

Review details

Best possible solution:

Close this stalled branch; a future rebased or split PR should preserve current-main compaction routing, make systemd scoping fallback-safe or explicitly maintainer-approved, and include redacted Linux service-managed proof.

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

Yes for the review blockers: the undefined helper call is visible in PR-head source, and the systemd default-on risk follows from the changed spawn path plus current spawn fallback behavior. No high-confidence real setup proof exists for the intended Linux service-managed fix.

Is this the best way to solve the issue?

No. The useful ideas need a current-main rebase or split that compiles, keeps canonical OpenAI/Codex compaction routing, and proves the service-managed systemd behavior in a real setup.

Security review:

Security review cleared: No concrete dependency, workflow, lockfile, secret-handling, or supply-chain regression was found; the spawn changes remain compatibility and availability sensitive.

AGENTS.md: found and applied where relevant.

What I checked:

Likely related people:

  • vincentkoc: Recent current-main history includes process, cron, and gateway runtime-service work on central files touched by this PR. (role: recent area contributor; confidence: high; commits: f00f42abf7ab, 44ae2fd93601, 4bae78858f05; files: src/process/supervisor/adapters/child.ts, src/cron/service/timer.ts, src/gateway/server-runtime-services.ts)
  • steipete: Recent history includes Codex app-server transport/runtime utility work and gateway startup/runtime-service changes adjacent to this PR's Codex and gateway surfaces. (role: adjacent Codex and gateway contributor; confidence: medium; commits: 22efdfa90437, 5f15bea6ce30, dc23e924efce; files: extensions/codex/src/app-server/transport-stdio.ts, src/gateway/server-runtime-services.ts)
  • sallyom: Auth-provider compaction routing overlap is tied to the merged Codex OAuth compaction fix on the current embedded-agent compaction files. (role: recent compaction fix author; confidence: medium; commits: 487951f813a8; files: src/agents/embedded-agent-runner/compact.queued.ts, src/agents/embedded-agent-runner/compaction-runtime-context.ts)
  • hclsys: Earlier service-managed process supervision work established the detached:false and kill-tree boundary that this PR's default systemd wrapping changes. (role: introduced adjacent service-managed process behavior; confidence: medium; commits: 4a72e1b99017; files: src/process/supervisor/adapters/child.ts)

Codex review notes: model internal, reasoning high; reviewed against 785ab7477982.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels May 26, 2026
@clawsweeper

clawsweeper Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@BingqingLyu

This comment was marked as spam.

@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels May 29, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 15, 2026
@clawsweeper

clawsweeper Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

@Joshtt23 thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward.

Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive.

Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it.

@clawsweeper

clawsweeper Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

@clawsweeper clawsweeper Bot closed this Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling extensions: codex gateway Gateway runtime merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants