Skip to content

fix: allow large Linux host builds to use the shared memory allowance - #193044

Merged
joshavant merged 4 commits into
mainfrom
fix/host-exec-shared-memory
Nov 5, 2026
Merged

joshavant merged 4 commits into
mainfrom
fix/host-exec-shared-memory

Conversation

@joshavant

@joshavant joshavant commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #191975

What Problem This Solves

Large Linux host builds are killed at a per-command quarter-RAM limit despite unused capacity, while concurrent commands each receive a separate allowance.

User Impact

Foreground, PTY, background, and durable host commands can use the unused shared RAM/swap allowance automatically, with reserves for the host and Gateway. No new configuration is required. Existing execution policy, service hierarchy, and I/O isolation remain in effect.

Sampling can overshoot and shared pages can be overcounted. Cache-heavy commands can slow under kernel reclaim; ordinary cache protection requires writable delegation. Separate Gateways retain separate budgets.

Validation status: hosted ClawSweeper reviewed final head 5719663b097b3e8bea393e9e75027ba01164b953 with Before merge: None; Findings: None. Both prior blockers are resolved: export-preserving test mocks pass under Node/pinned Bun, and the native latest-stable upgrade passed through the published updater. The omitted red-on-base regression is linked below. Final CI settled with 59 successful / 2 failed / 26 skipped; no jobs remain active. Baseline-ratchets and build-artifacts passed. The failures are the scheduled-restart assertions independently reproduced on the earlier failing run’s exact base, plus the aggregate gate that propagates that lane. Earlier broad-CI failures and proof limits remain recorded below. No merge, release, or deployment is included.

Why This Change Was Made

One sampler accounts for combined RAM and swap, includes inherited cgroup limits, and cancels one large contributor through its existing cleanup owner. Ordinary commands remain inside their delegated hierarchy and receive a full-budget soft cache limit. Durable units join sampled accounting and retain individual hard RAM/swap backstops across restart/adoption. Commands are never automatically replayed.

Memory-limit failures remain eligible for notification after durable recovery; only an explicit manual stop suppresses that notification. A crash before persistence can still recover the system manager's observed exit instead of the exact cancellation reason.

The smallest coherent stage is one shared budget across ordinary and durable callers. Superseded per-command memory arguments/watch exports and caller plumbing are removed; existing owners retain cancellation, cleanup, persistence, and I/O sizing. Production grows by 331 lines; tests/support by 453 lines for inherited capacity, aggregate RAM/swap, durable recovery, and distinct lifecycle regressions. No schema, public config, hierarchy relocation, or dependency change.

Evidence

  • Hosted ClawSweeper re-review completed successfully in run 41977763955, reviewing final head 5719663b097b3e8bea393e9e75027ba01164b953: Before merge: None; Findings: None. It accepted the mock-export repair, published-stable upgrade and red-on-base evidence, and the documented CI attribution. The subsequent description update only records terminal CI status; source is unchanged.
  • Ready-PR CI before repair settled at 59 successful / 3 failed / 26 skipped. The two actual failed lanes were the repaired mock-export/test-line gates and the scheduled-restart assertions; the third failure was their aggregate gate. That run tested merge 18a5e2dfcffe3babc98f44f940184139dcf2a82d into exact base 4129e21215e7a6963bf34dc4bf2aad28b1543b95. The new-head CI tests merge fa5ebcc4624c2158cd51e14a9473d85405c2391c, candidate 5719663b097b3e8bea393e9e75027ba01164b953 into base 291428568d404edb7b6c4f63dd1d09e867a6acc8. Its baseline-ratchet gate and build-artifacts passed. The scheduled-restart lane again fails at the same two assertions (nine ordinary / seven bundled requests); both tests and their restart-resume owner are byte-identical across the reproduced base, new base, and new CI merge. The run completed with failure at 06:20:39 UTC: 59 successful / 2 failed / 26 skipped, no active jobs. The second failed job is the aggregate gate, which only propagates this test lane; it executes no product test. Automatic scheduled-main classification is unknown because that main run has no matching job. The independent exact-base reproductions above establish inherited presence separately; this is not a claim that CI passed.
  • The review-repair and exact-base attribution used the same quiet AWS VM and byte-verified the exact three-file patch now committed as 5719663b097. Both touched files passed 40 tests under Node and 40 under pinned Bun; scoped lint, formatter parity, agents-root/services typechecks, mock-export and test-line guards passed. No production changes were needed. A fresh independent shared Codex review of those three files returned scoped-clean. The allocation is 367 + 85 = 452, exactly the PR’s own counted test LF growth; inherited slack and the shared scalar remain unchanged.
  • The same bounded run reproduced both ready-PR scheduled-restart failures on exact failing-run base 4129e21215e7a6963bf34dc4bf2aad28b1543b95, with an independent frozen install/build and original assertions/deadlines. Both full-file Bun invocations failed at their final modelRequests assertions (ordinary line 226, bundled line 351), receiving eight /v1/responses calls each. Logs identify startup restart-resume and source=restart. This proves inherited presence, not a repair or a provider-payload claim. The files remained unchanged. Limit: files were replayed serially, not with CI’s concurrent-file load. New-head CI again reports those assertions; original and final CI counts vary, so attribution is to the unexpected-call behavior and owner path, not an identical request count.
  • The native latest-stable upgrade passed on quiet AWS Crabbox cbx_c8774d269865 (Ubuntu 24.04, Node 24.22.1). The full package/declaration build and tarball integrity passed at exact production head a12314606f5e93cb0ec34510155d8cfcfada9d73; all tracked source manifests stayed identical. The repository’s native systemd upgrade-survivor installed published 2026.10.10 (commit 7dc3350cb9f08fcf9a0af5c4845a20d5b2f1a8be), then used its installed updater to install the candidate without a harness restart. Updater status, authenticated RPC, health/readiness, exact serving build, retained state and execution approvals passed; MainPID changed from 16382 to 21916, then cleanup verified PID 0/inactive and disabled linger. Limit: stable has no legacy exec throttle or durable registry to migrate. Its preserved unit lacks newer delegation settings and reports the existing delegation/host-stop-timeout recommendations; it runs with sampled protection. Earlier base-to-candidate native proofs separately cover writable legacy-throttle removal and durable adoption. The later repair changes tests/allocation only, with identical production bytes.
  • The retained red-on-base above-quarter regression fails on exact original base 2dbd7f79bbf1fc49b38049429cb9e55b5437f0be for the intended reason: the real exec returns failed with watchdog diagnostic 497 MiB observed / 256 MiB limit and baseline exit 1. The candidate passes the same real regression (2,135 ms). This proof was previously run but omitted from the PR evidence.
  • The real Gateway build passed on quiet AWS Crabbox cbx_af642c4488d7: Ubuntu 24.04, actual 6.8.0-1067-aws, four CPUs, and a 20 GiB service RAM / 6 GiB swap envelope. A real model generated one approved foreground pnpm build with ordinary defaults in an independent cold checkout. Its original exec owner returned exit 0 in 380.5 seconds. Build-tree RSS reached 7.28 GiB, including one compiler at 6.27 GiB, above the former 5 GiB cutoff and within the 13.66 GiB shared allowance. No command was replayed.
  • The compiler's exact PID/starttime remained active during public cancellation of a concurrent 64 MiB peer. Committed abort and physical extinction settled within 0.392 seconds. All 9,780 health/readiness/session-write requests succeeded; session-write p95/max were 20.1/431.3 ms, and independent readback matched the final acknowledged write. Across 3,934 process samples and 1,523 kernel samples, no sampled budget violations or read/listener/max/OOM errors occurred; aggregate/session I/O policy stayed unchanged. All 195 recorded process incarnations exited; service, cgroup, port, task swap, and owned AWS lease cleanup were verified.
  • Both independent checkouts stayed at a12314606f5e93cb0ec34510155d8cfcfada9d73, with all 63,492 tracked source hashes identical before/after. All 26,293 prepared runtime-dist entries remained unchanged; the cold build produced 26,684 independent dist entries including the runtime entry. An independent receipt audit confirmed these outcomes. Limits: no swap, parallel JavaScript build workers, or native reclaim stack was observed. This run does not qualify parallel-worker contention, natural reclaim, performance parity, or an iOS compiler. The observer used 18.9 MiB peak RSS and 103.3 CPU-seconds over 393.2 seconds on four CPUs (about 6.6% of total CPU capacity); these are measurement overhead, not product sampler cost. Maximum polling gap was 139.5 ms.
  • The PTY cached-budget diagnostic confirmed a test-composition defect exposed by Node CI: an earlier shared-worker consumer could cache the real budget before the scaled fixture. The diagnostic matched the timeout signature; assigning the unchanged suite to the existing isolated owner passed all six cases under Node and pinned Bun. The routing consumer/lint check passed all 22 existing config tests and lint; format, diff and test-line gates also passed. This final one-line repair changes no production code or assertions.
  • Earlier exact-head broad CI verifies exact candidate a12314606f5e93cb0ec34510155d8cfcfada9d73 and base 2dbd7f79bbf1fc49b38049429cb9e55b5437f0be, with distinct trusted harness 4129e21215e7a6963bf34dc4bf2aad28b1543b95. Build-artifacts, types/lint, repaired agents-core-tools, and dependencies passed. The run completed with failure: 234 passed, 17 failed, 1 cancelled, 11 skipped, with no active jobs. The 17 failures comprise the 16 inspected lanes and the final aggregate gate, whose log only propagates selected-lane failures. iOS tests passed. Private-QA shard 17 exceeded its two-hour job limit; its Node half passed 873 tests and its Bun half was still passing cases 3.5 seconds before cancellation. Incomplete Bun coverage and the cause of the long total runtime remain unresolved. All current failed job logs were inspected. No CI redispatch or rerun was used to chase green.
  • The bounded CI attribution campaign ran complete failing files once per selected runtime on quiet AWS Crabbox cbx_0b1182459499 (Ubuntu 24.04, four observed CPUs, about 32 GiB RAM, Node 24.22.1, pinned Bun). Independent exact-base/candidate frozen installs and original assertions/deadlines were used. All 10 candidate invocations passed. Exact base passed nine and reproduced the CI extra CLI launch after credential revocation (9 vs 8 at server.chat-cli-auth.test.ts:364). The preceding 502/ok:false assertion passed; the later provider-request-count assertion did not execute, so unauthorized provider access is unproved. This establishes inherited presence, not a candidate repair. Gateway creation, hooks (Node/Bun), approval forwarding, reload continuations, CLI resume, native runtime selection, auth timers, and isolated completion passed their paired replays. No candidate-only defect was demonstrated, and no source or test assertion was changed. Limit: these replays do not reproduce full-shard predecessor/concurrency state; the original failures remain unresolved where not independently attributed. The 36,178-byte evidence archive matched the guest SHA256 d0be2c652186915f096f3b36a55d7da0d7e5c83a9aea372d13a86b25a8195d8c; all 20 command source-cleanliness checks passed.
  • The earlier fitting Gateway acceptance passed with a real model, 9.62 GiB allocation, one scoped 1 GiB reclaim, full byte/hash readback in 33.15 seconds, actual swap-in faults, public abort, acknowledged writes, controlled restart persistence, and physical cleanup. All 1,896 public probes succeeded. This was controlled-reclaim fitting-workload evidence on the 6.17 kernel, not natural-pressure or performance-parity proof. A separate pinned-Bun small-command smoke passed; Bun did not repeat heavy pressure.
  • Affected-contract validation passed 99 tests, targeted checks, a full build and CLI smoke. Pending-write tests proved cancellation and authority revocation prevent late launch with intended negative controls. Durable restart/adoption retained one native start/handle, canceled one aggregate-budget victim and let its sibling complete without replay. The recovered-notification regression has intended red and green/full-build proof.
  • Standard shared Codex review of the full committed repaired range returned scoped-clean with no P0–P2 findings. The final one-line owner change received another clean selected-helper review; direct inspection covered the owner/config/classifier consumers outside that narrow review sandbox. Reviewers did not run tests. Simplification retained the shared owner and existing lifecycle mechanisms, with no new production mechanism in the subsequent CI repairs.
Preserved failures, source bindings, and remaining limits

Earlier broad-CI failure attribution (source identity alone is not runtime inheritance):

Failed job Finding / proof limit
Locale Same catalog fallback drift runtime-reproduced on clean exact base; prior receipts reused.
UI E2E 4/6/7/10 Unchanged label/password-control, retired Secrets markup, copy/gutter, and capitalization expectations; no exact-base browser replay.
Real-Gateway UI Device summary has two actual matches; existing-key Set vs Replace action mismatch is source-supported. Prefix-input poll remains unresolved.
UI 3 Bun-only introduced-read counter 0 vs 1 in a mocked-Gateway fixture; actual counter location omitted; unresolved.
Release-packed 18 Real Gateway captured-creating-reference rejection during setup, not a package-content assertion. Full-file Node base/candidate pass; original shard failure unresolved.
CLI-process 7 Three Doctor advisory exit-124 results within the fixture subprocess budget. All 11 cases pass on Node base/candidate; original shard failure unresolved.
Core-tooling 11 Direct spawnSync copied-Node status null; missing error/signal metadata. All 3 cases pass on Node base/candidate; original failure unresolved.
HTTP-plugin-WS Deferred hooks event missing during polling and reload wrapper outer deadline. Full files pass in affected runtimes on base/candidate; original shard failures unresolved. All three nested reload scenarios complete, including failed-reload cleanup.
Agent runtime Mocked locked-quota output-rejected vs runtime-unavailable; deadline causality unproved. All 47 cases pass on Bun base/candidate; original failure unresolved.
Runtime-state Approval false-vs-true; shifted frame cannot identify which boolean. Full-file Bun base/candidate pass; original failure unresolved.
Isolated-server 5 Exact-base reproduction of extra CLI launch 9 vs 8; candidate 4/4 pass. Underlying cause/security impact unresolved.
Private-QA 26 Successful mocked auth leaves fake-timer count 1 vs 0; timer identity unknown. All 39 cases pass on Node base/candidate; original failure unresolved.
macOS Swift Full native artifact identifies interrupted-download represented URL /archive.bin vs actual WebKit /article at DashboardNativeBrowserTests.swift:753. Rollback vs queued projection ordering unresolved; unchanged native owners, no Gateway/Node/host-exec path; no base native replay.
Private-QA 17 (cancelled) GitHub explicitly reports the two-hour job limit. Node completed 62 passing files/873 passing tests (2 skipped); the subsequent Bun half continued passing cases until cancellation. No reported assertion or memory-budget failure. Outer budget exhaustion is proved; inherited timing/performance parity and unfinished Bun cases are not.
Final aggregate CI gate Propagates the previously inspected selected-lane failures; no new product test or failure signature.

The attribution setup first failed before tests because the copied Git seed lacked a base blob. Preserved failure evidence was followed by supported exact-SHA fetches into empty independent repositories and frozen installs; source and assertions were unchanged. No product verdict is assigned to that setup failure.

The first real-build prelaunch attempt failed because the harness required explicit optional background:false; awaitResults:true already disables backgrounding. Zero approvals were released, all native workload PID counts stayed zero, and build dist remained empty. The failed results, Gateway state and manifest were preserved. Only that documented-default comparison was corrected before fresh isolated state continued the unexecuted workload. Explicit true/null and all other differing/unknown arguments still fail. Source, resources, deadlines and ordinary build concurrency stayed fixed. The actual build ran once.

Earlier over-budget pressure attempts remain failed evidence. The earlier Gateway pressure attempt did not reach abort or full readback; it is not relabeled by the later successes. The direct native proof qualified discrete exact reclaim witnesses during a long nonblocking write and verified all original payload; it does not establish continuous reclaim or public Gateway behavior during it. An original native qualification missed full-readback bounds and remains failed. The storage comparison stopped at a baseline OOM after four candidate successes, so it does not establish performance parity. Earlier paired older-kernel work did not overlap reclaim and flagged latency changes.

Current head has 27 changed files. Earlier fitting evidence binds a4889ff through source manifest SHA256 596d005019baa631725e261d9095bcd19820a47bb03cc0528b63a0ceb1937780; production bytes are unchanged by the final test-routing commit. The exact-head real-build harness manifest is 71371a8b4654bb0539a4b51f16abb9415041e0e46468b9eb70009a87adf74f3d; the failed prelaunch manifest/evidence remain separate. Export hashes for all 107 final evidence files were verified.

Separate test-line records grant exactly 367 shared-owner lines plus 85 pending-write lines: 452 total, matching this PR’s net counted test LF growth including the two export-preserving mock lines. The shared scalar is unchanged; inherited ceiling slack is preserved rather than absorbing unrelated debt.

The native latest-stable upgrade passed as described above. No iOS/macOS compiler, latency-parity, saturated-I/O-throughput, or zero-regression claim. No release, deployment, or production-service change.

Replace per-command quarter-RAM cancellation with shared RAM/swap accounting,
host and Gateway reserves, and inherited cgroup bounds. Preserve delegated I/O
and add durable hard backstops and recovery notification for memory failures.

Retain the 304-line regression allocation and add exactly 85 lines for the
pending-write cancellation/authority regressions and required fixture repairs.
Focused tests, format, lint, typechecks and build passed on AWS; the final
older-kernel Gateway pressure acceptance remains failed and documented.

Closes #191975
@clawsweeper

clawsweeper Bot commented Nov 4, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling app: linux plugin: linux-node size: XL labels Nov 4, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces separate Linux host-command memory limits with a shared RAM and swap allowance covering ordinary and durable commands.

Example: A foreground build on a Linux service with 20 GiB RAM uses 7.28 GiB of process-tree RSS.

  • Before: The former quarter-RAM policy would terminate the command above 5 GiB.
  • After: The recorded Gateway build completes within the 13.66 GiB shared allowance.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful shared-budget implementation with meaningful shipped-flow and upgrade evidence, resolved prior findings, and documented validation limits.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The supplied evidence records a real model-driven Gateway build above the former cutoff, concurrent peer cancellation, durable adoption and aggregate cancellation, and a published-stable updater run; the final repair preserves those production bytes, while natural reclaim and performance parity remain explicitly unclaimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Legitimate Linux builds are terminated at a quarter-RAM ceiling despite unused host capacity.
Reason: The collaborator-authored PR supplies the direction decision, addresses the reported workload, and adds no user configuration.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed PR addresses a concrete Linux build restriction, resolves the prior mock-export finding, and has no newly identified actionable defect.

Priority: P2
Reviewed head: 5719663b097b3e8bea393e9e75027ba01164b953

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway exec launches ordinary process trees or durable systemd units; one memory sampler accounts their usage and requests cancellation through their existing cleanup owners.

flowchart TD
  A[Gateway exec] --> B[Process supervisor]
  A --> C[Durable systemd units]
  B --> D[Shared memory sampler]
  C --> D
  D --> E[Existing cancellation owners]
  E --> F[Cleanup and visible result]
Loading

Technical review

Best possible solution:

Use one shared memory-budget owner while preserving existing launch authority, process cleanup, durable recovery, and delegated I/O policy.

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

Current-main source establishes the quarter-RAM restriction, and the PR records a real exec regression failing on the original base at 497 MiB observed against a 256 MiB limit.

Is this the best way to solve the issue?

The shared owner directly addresses idle capacity and multiplied concurrent allowances, removes superseded per-command plumbing, and retains existing cancellation and persistence boundaries.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main retains the reported restriction: Fetched main still calculates the smaller of quarter-capacity RAM and half the remainder after Gateway RSS; the central change is not implemented there. (src/process/child-memory.ts:42, fadf3044c0b6)
  • Prior finding resolved: Both previously identified mock factories now spread importOriginal before overriding their selected exports; the latest commit changes only those tests and their allocation record. (src/agents/bash-process-systemd.test.ts:17, 5719663b097b)
  • Shared accounting retains lifecycle ownership: The sampler deduplicates overlapping ordinary roots, includes durable cgroup usage, selects one large contributor, and retains its charge until the native owner unregisters it. (src/process/child-memory.ts:283, 5719663b097b)
  • Launch authority remains checked after awaited preparation: After applying the asynchronous cache policy, the supervisor checks cancellation and current execution authority before replacing a surviving scope or constructing a process; sandbox transports remain excluded through external cleanup ownership. (src/process/supervisor/supervisor.ts:264, 5719663b097b)
  • Recorded behavior and upgrade evidence: The complete PR body records an above-quarter real Gateway build, red-on-base regression, concurrent peer cancellation, durable restart/adoption, and an installed-updater upgrade from published 2026.10.10 with state and approvals retained; production files are unchanged by the final mock repair. (5719663b097b)
  • CI failures match the recorded attribution: Current annotations identify unexpected model requests in the two scheduled-restart tests. Their blobs and the restart-resume owner match between the author's reproduced base and the CI merge. The PR records base reproductions and their concurrency limits; baseline-ratchets, security-fast, and build-artifacts passed while other checks remain pending. (test/plugin-command-scheduled-restart.e2e.test.ts:229, 5719663b097b)

Likely related people:

  • Vincent Koc: Raw commit ad1a025 adds src/process/linux-exec-cgroup.ts:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ad1a025f8ac6; files: src/process/linux-exec-cgroup.ts)

PR surface

Source +331, Tests +453, Docs +12, Other -16. Total +780 across 27 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 8 540 209 +331
Tests 11 663 210 +453
Docs 3 29 17 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 5 94 110 -16
Total 27 1326 546 +780

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production net +331 lines; tests/support net +453 lines. Growth supports aggregate accounting, inherited capacity limits, durable adoption, and distinct cancellation and recovery regressions within existing owners.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This improves a concrete advanced Linux build workflow without evidence of an urgent core-runtime outage.
  • merge-risk: 🚨 compatibility: Existing Linux commands receive a different automatic memory policy; the maintainer-authored direction explicitly accepts its documented sampling and reclaim tradeoffs.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-04T23:04:28.936Z sha 18501d4 :: blocked before merge. :: none
  • reviewed 2026-11-05T05:23:53.913Z sha a123146 :: blocked before merge. :: [P2] Preserve exports or explain isolation in both new mocks

Reviewed November 5, 2026, 1:07 AM ET / 06:07 UTC (Revision 3).

@joshavant
joshavant marked this pull request as ready for review November 5, 2026 05:16
@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@joshavant

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review final head 5719663b097b3e8bea393e9e75027ba01164b953 and the updated PR evidence. Both partial mocks now preserve real exports; focused Node/Bun, lint/format/typechecks and the required baseline gate pass. The native published-2026.10.10 upgrade through its installed updater passed, and the retained red-on-base memory regression is linked. No production changes were needed in this repair.

New-head CI is still running. Its scheduled-restart failures were independently reproduced on the earlier failing run’s exact base, with the same test and restart-owner bytes in the current CI merge. Original assertions remain intact; the PR records the failures and replay limits.

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Nov 5, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 5, 2026
@joshavant
joshavant merged commit 0af74c7 into main Nov 5, 2026
168 of 171 checks passed
@joshavant
joshavant deleted the fix/host-exec-shared-memory branch November 5, 2026 17:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…openclaw#193044)

* fix: allow large Linux host builds to use the shared memory allowance

Replace per-command quarter-RAM cancellation with shared RAM/swap accounting,
host and Gateway reserves, and inherited cgroup bounds. Preserve delegated I/O
and add durable hard backstops and recovery notification for memory failures.

Retain the 304-line regression allocation and add exactly 85 lines for the
pending-write cancellation/authority regressions and required fixture repairs.
Focused tests, format, lint, typechecks and build passed on AWS; the final
older-kernel Gateway pressure acceptance remains failed and documented.

Closes openclaw#191975

* fix: address shared exec memory validation findings

* test: isolate host exec PTY memory fixtures

* test(exec): preserve mock exports and account for regression coverage
wangmiao0668000666 pushed a commit to wangmiao0668000666/openclaw that referenced this pull request Nov 6, 2026
…openclaw#193044)

* fix: allow large Linux host builds to use the shared memory allowance

Replace per-command quarter-RAM cancellation with shared RAM/swap accounting,
host and Gateway reserves, and inherited cgroup bounds. Preserve delegated I/O
and add durable hard backstops and recovery notification for memory failures.

Retain the 304-line regression allocation and add exactly 85 lines for the
pending-write cancellation/authority regressions and required fixture repairs.
Focused tests, format, lint, typechecks and build passed on AWS; the final
older-kernel Gateway pressure acceptance remains failed and documented.

Closes openclaw#191975

* fix: address shared exec memory validation findings

* test: isolate host exec PTY memory fixtures

* test(exec): preserve mock exports and account for regression coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: linux docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: linux-node proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Host-exec restricts build tasks to 4.8 GiB on a 20 GB RAM / 28 GB swap server

1 participant