Skip to content

fix: preserve standalone CLI profiles and settle Doctor shutdown - #173154

Merged
steipete merged 18 commits into
mainfrom
fix/standalone-doctor-snapshot
Oct 16, 2026
Merged

steipete merged 18 commits into
mainfrom
fix/standalone-doctor-snapshot

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Standalone CLI re-execution passed the loose runtime's runtime/openclaw.mjs operand back into the compiled executable, which parsed it as a command. cli-invocation.mjs now owns both executable identity and argument shape: loose <runtime> <entry> <args> versus standalone <exe> <args>. It uses the embedded builder fact for the current executable and the adjacent manifest for another executable, without hashing. CLI respawns and runtime CLI children consume this owner; registered embedded child programs keep their own dispatch protocol. Compile-cache workers and the bootstrap module are included in the appropriate embedded/package inventories.

Doctor had two further defects. A snapshot failure could be swallowed by optional inspections, yielding a false completion, and the compiled process could remain stuck behind a native cleanup barrier after SIGTERM. Execution completion and physical resource closure are now settled independently. Confirmed broker startup refusal releases undispatched resource claims only after the broker process and pipes close; operation errors retain the transport needed for cleanup. Doctor reports snapshot failures, exits nonzero, and stops admitting inspections after cancellation while preserving maintenance restoration.

Sandbox contract

The reported allocation error occurred before SQLite snapshot allocation: the sandbox denied the spawn broker's AF_UNIX bind at $TMPDIR/oc-br-*/resource.sock. Both loose and standalone Doctor use this broker, through sqlite-snapshot-staging-owner and worker-native-lifecycle. A same-source loose Doctor control reproduced the denial. The earlier passing loose verifier exercised version/help and a direct SQLite import, not that Doctor path.

After (deny network*), allow only local IPC under the isolated temporary root:

(allow network-bind
  (local unix-socket (subpath (param "ISOLATED_ROOT"))))
(allow network-outbound
  (remote unix-socket (subpath (param "ISOLATED_ROOT"))))

IP networking, operator home, Keychain, launchctl, and host SQLite remain denied. Use a short canonical temporary root for Darwin's Unix-socket path limit. docs/install/standalone.md documents the requirement.

Evidence

Signed production-pinned builds at 4aa64f9ddc294 passed both JIT and bytecode qualification. These are exact artifact identities, not claims that later source-only repairs were rebuilt.

Proof JIT Bytecode
Direct explicit-profile Doctor exit 0, 32.092 s exit 0, 4.433 s
Relocated sandbox, private IPC allowed exit 0, 31.580 s exit 0, 5.404 s
Same sandbox, private IPC denied exit 1, 22.252 s exit 1, 2.610 s
SIGTERM after failure, full process-tree settlement exit 143, 364 ms exit 143, 375 ms

The original 60-second command limits are unchanged. Original loose Doctor printed false completion and stayed alive for 90 seconds, but SIGTERM already worked there; the original compiled process required SIGKILL. The fix does not claim an OS-level signal or Atomics defect.

The paired explicit-profile campaign passed config, Doctor, two Gateway generations, agent turns, restart, and stop: strict proof 402.053 s, 181/179 observed JIT/bytecode workers, zero disk-JavaScript execution; functional proof 4/4 rounds per mode in 1088.723 s. Delayed audit covered 453 owned PIDs with no owned or uncertain crashes. Builds and per-run state were retired after proof under the shared-disk policy; logs, JSON, and manifests remain.

Focused owner regressions cover invocation, embedding, broker startup refusal, resource settlement, snapshot propagation, cancellation, and maintenance restoration. Eighteen files passed with pnpm test <file> --maxWorkers=1; full build passed in 426.232 s. Independent Codex review is clean through P2. Later repairs also passed negative controls, focused tests, types, lint, format, and independent review: native-exit shutdown classification (19 transport/stderr tests, 35.654 s; exact CI Node 24.19 auth pair, 36.246 s), and the complete doctor readiness-command receipt (7 tests, 28.207 s). The source execution argv is unchanged by the receipt repair.

Reproduce either signed production-pinned mode:

node scripts/verify-standalone-doctor.mjs /path/to/standalone-output
node scripts/verify-standalone-doctor.mjs /path/to/standalone-output --deny-local-ipc
node scripts/verify-standalone-doctor.mjs /path/to/standalone-output --interrupt-on-snapshot-failure

The script APFS-clones the artifact, uses isolated state and an explicit profile, and preserves normal startup respawn. The interrupt case requires exit 143 and process-tree cleanup within two seconds. There is no Doctor skip, timeout increase, or interpreter fallback.

CI and integration

Head 9617855492767 integrates main 172aae503c51c. Exact-head CI 38833042547 passed: 172 successful jobs, 19 skipped, zero failures, including the aggregate gate. The tested merge 58c3b87a8594 has the prepared main/head parents and the same tree as the PR head. No CI exception or rerun was used. Previous head 4ba5b010dcc62 completed with 168 successful jobs, 19 skipped, and three failed extension bundles plus the gate. Scheduled main had no matching jobs, so no automatic inheritance classification or admin exception was used.

The browser, voice-call, and Synology failures reproduced on the actual main parent 44998b0afc07. Main 172aae503c51c fixes lifecycle cleanup lost behind an activity-cancelled browser sweep, scopes the voice fixture's worker-retirement assertions to its own workers, and restores Synology's fake timers before native shutdown. Telegram's relevant cases passed normal local replays; a controlled 1.25-second initialization delay exposed the one-second readiness assumption, and the repaired registration barrier passed all three delayed cases without changing deadlines or shutdown assertions.

That repair passed 53 focused cases, extension production/test types, lint, format, and independent Codex review through P2. Negative controls prove the browser regression catches a lost close and the voice assertion catches omitted database retirement. After integrating main's GC changes, voice and Synology passed again in 48.817 s and 44.409 s. The final rebases preserve the reviewed patch byte-for-byte. Historical investigated local failures remain in native review evidence, including a Node wire timeout whose original cause was not established; later exact-head CI passed that case.

The builder parent #172802 has merged, so this PR targets main. Desktop packaging #172569 consumes the shared invocation API and owns daemon migration. Stacked #173473 owns remaining standalone entry-discovery consumers and their separate live qualification.

@clawsweeper

clawsweeper Bot commented Oct 15, 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 cli CLI command changes scripts Repository scripts commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling size: XL labels Oct 15, 2026
@steipete
steipete marked this pull request as ready for review October 15, 2026 13:05
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-16T01:07:23.470877Z 9617855 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.

@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: d1f0cb2ffb

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

Comment thread openclaw.mjs Resolved
@steipete steipete changed the title fix: standalone profile respawns and Doctor cleanup fix: preserve standalone CLI profiles and settle Doctor shutdown Oct 15, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR preserves standalone CLI arguments and makes Doctor settle failed snapshot resources and stop inspections after cancellation.

Example: Run openclaw --profile isolated doctor --non-interactive using a standalone executable.

  • Before: A startup respawn prepends runtime/openclaw.mjs, which is interpreted as an unknown command.
  • After: The executable receives the profile and Doctor arguments directly.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The repair has clear value and focused lifecycle coverage, but reproducible distribution and wrapper failures make the current patch unready.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor-proof gate is not applicable to this maintainer-authored PR; its body records signed profile and IPC controls at d1f0cb2, while final cancellation validation remains in progress.
Patch quality 🧂 unranked krab (1/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Profiled standalone commands can fail before Doctor starts, and failed snapshots or cancellation can leave Doctor alive or incorrectly report completion.
Reason: The reported failures have concrete source paths and runtime observations, and the maintainer-authored direction preserves existing capabilities without adding product settings.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: this PR addresses concrete runtime failures, but two incomplete dependency inventories currently break packaged launches and PR tooling.

Priority: P1
Reviewed head: 4ab116864a6262c04508a8e7f4874a1d668aef48

Before merge

  • Include the new CLI module in curated runtime distributions (P1) - This static import makes cli-invocation.mjs mandatory before any launcher command can run, but Dockerfile's dependency-input and final runtime COPY lists omit it. The final image therefore fails even node /app/openclaw.mjs --version with ERR_MODULE_NOT_FOUND. BOOTSTRAP_LAUNCHER_FILES also omits the module, so node-bootstrap generation fails its import-closure validation. Add the dependency to these production inventories and the isolated launcher fixtures that copy the same files; updating package.json and cleanup-smoke alone does not cover them.
  • Retain both extracted broker modules in the PR-wrapper inventory (P2) - The new child-diagnostics.js and resource-authority.js imports are absent from scripts/pr-lib/wrapper-components.txt. Materialized wrappers extract only their declared closure, so provisioning now exits with ERR_MODULE_NOT_FOUND before running its command. Exact-head annotations in eager-import-closure, pr-wrapper-source-closure, and pr-wrappers tests confirm this trigger. Add src/process/spawn-broker/child-diagnostics.ts and src/process/spawn-broker/resource-authority.ts to the inventory.
  • Complete next step - After the standalone builder base lands, retarget this PR to main as its body specifies.

Findings

  • [P1] Include the new CLI module in curated runtime distributions — openclaw.mjs:9
  • [P2] Retain both extracted broker modules in the PR-wrapper inventory — src/process/spawn-broker/host.ts:17

Tests

  • Missing end-to-end proof: Final signed JIT/bytecode SIGTERM settlement and a published-driver-to-candidate upgrade run are not shown; the recorded signed success predates the final cancellation commit.
Agent review details

How this fits together

The launch planner translates executable identity and CLI arguments into child-process invocations; Doctor coordinates inspections, snapshot workers, cleanup, and maintenance recovery.

flowchart TD
  A[CLI arguments] --> B[Invocation planner]
  B --> C[Loose or standalone executable]
  C --> D[Doctor inspections]
  D --> E[Snapshot worker and broker]
  E --> F[Resource settlement]
  D --> G[Maintenance recovery]
  F --> H[Command exit]
  G --> H
Loading

Technical review

Best possible solution:

Keep the shared invocation and cleanup owners, complete their distribution inventories, and preserve the existing worker-dispatch and maintenance-recovery contracts.

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

The pinned source explains the reported script-as-command failure and the introduced missing-module failures; GitHub annotations additionally reproduce the wrapper failure, and no target code was executed during this review.

Is this the best way to solve the issue?

Centralizing invocation shape and repairing cleanup custody address the owning boundaries, but the cutover is incomplete until every curated distribution includes the new imports.

Full review comments:

  • [P1] Include the new CLI module in curated runtime distributions — openclaw.mjs:9
    This static import makes cli-invocation.mjs mandatory before any launcher command can run, but Dockerfile's dependency-input and final runtime COPY lists omit it. The final image therefore fails even node /app/openclaw.mjs --version with ERR_MODULE_NOT_FOUND. BOOTSTRAP_LAUNCHER_FILES also omits the module, so node-bootstrap generation fails its import-closure validation. Add the dependency to these production inventories and the isolated launcher fixtures that copy the same files; updating package.json and cleanup-smoke alone does not cover them.
    Confidence: 1
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Retain both extracted broker modules in the PR-wrapper inventory — src/process/spawn-broker/host.ts:17
    The new child-diagnostics.js and resource-authority.js imports are absent from scripts/pr-lib/wrapper-components.txt. Materialized wrappers extract only their declared closure, so provisioning now exits with ERR_MODULE_NOT_FOUND before running its command. Exact-head annotations in eager-import-closure, pr-wrapper-source-closure, and pr-wrappers tests confirm this trigger. Add src/process/spawn-broker/child-diagnostics.ts and src/process/spawn-broker/resource-authority.ts to the inventory.
    Confidence: 1
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • CLI invocation and installation identity keeps the original intent (8aefa9e: Preserve the invoked installation's lexical launcher across compile-cache respawns; the PR retains that resolver and adapts only the executable's invocation shape.)
  • Current-package CLI resolution keeps the original intent (bfcce12: Installed local TUI authentication needed a canonical current-package invocation and package-root working directory; both remain owned by the existing resolver.)
  • Native resource and snapshot custody keeps the original intent (9c93bc3: Retain snapshot cleanup until native resources actually settle, including worker loss; the repair adds independent closure receipts without treating ordinary transport loss as successful cleanup.)
  • Doctor optional-check isolation changes intended behavior with a stated reason (4c2d8d8: Optional checks originally became warnings so one failure would not abort all diagnostics; the PR explains why native snapshot failure must still prevent successful completion and cancellation must stop further admission.)
  • Natural shutdown and signal settlement keeps the original intent (98813c2: Finish admitted work and owned cleanup before natural exit while preserving signal status; Doctor now participates in that cancellation contract and leaves maintenance recovery independent.)
  • Post-plugin config diagnostics keeps the original intent (4121cea: Preserve real validator causes and distinguish invalid config from execution failure; extraction into the new module retains those classifications and diagnostic handling.)
  • Broker authority and stderr diagnostics keeps the original intent (04c4594: Retain bounded, redacted broker shutdown diagnostics; the extraction preserves that behavior, and the resource-authority extraction preserves the existing secret and private-directory construction.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/pr-wrapper-source-closure.test.ts
  • pnpm test test/scripts/eager-import-closure.test.ts
  • pnpm test test/scripts/pr-wrappers.test.ts
  • pnpm test src/gateway/worker-environments/node-bootstrap-artifact.test.ts
  • pnpm test test/openclaw-launcher.e2e.test.ts test/openclaw-launcher-version.e2e.test.ts test/node-host-launcher.test.ts

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 9c93bc3 adds src/process/spawn-broker/resource-client.ts:54 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9c93bc347cec; files: src/process/spawn-broker/resource-client.ts)
  • Vincent Koc: Raw commit bfcce12 adds src/infra/openclaw-cli-invocation.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: bfcce12e6b38; files: src/infra/openclaw-cli-invocation.ts)
  • Dallin Romney: Raw commit 8aefa9e adds openclaw.mjs:127 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 8aefa9e43c0f; files: openclaw.mjs)

PR surface

Source +260, Tests +530, Docs +47, Config +1, Other +303. Total +1141 across 74 files. Added test files: 5.

View PR surface stats
Area Files Added Removed Net
Source 42 640 380 +260
Tests 19 540 10 +530
Docs 2 50 3 +47
Config 1 1 0 +1
Generated 0 0 0 0
Other 10 330 27 +303
Total 74 1561 420 +1141

Labels

Label changes:

  • add P1: The runtime failures block standalone Doctor qualification, and the introduced packaging omission would prevent Docker CLI startup.
  • add merge-risk: 🚨 availability: The final Docker image lacks a module statically required by its launcher.
  • add merge-risk: 🚨 automation: The extracted PR wrapper lacks two newly imported broker modules, and exact-head CI shows provisioning failures.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦐 gold shrimp and patch quality is 🧂 unranked krab.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P1: The runtime failures block standalone Doctor qualification, and the introduced packaging omission would prevent Docker CLI startup.
  • merge-risk: 🚨 availability: The final Docker image lacks a module statically required by its launcher.
  • merge-risk: 🚨 automation: The extracted PR wrapper lacks two newly imported broker modules, and exact-head CI shows provisioning failures.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦐 gold shrimp and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 15, 2026, 9:37 AM ET / 13:37 UTC.

@steipete
steipete force-pushed the feat/bun-standalone-minimal-sidecar branch from 7c57577 to bf0d98d Compare October 15, 2026 13:51
@steipete
steipete force-pushed the fix/standalone-doctor-snapshot branch from 4ab1168 to 9ba6561 Compare October 15, 2026 14:00

@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: a39dc49c74

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

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 15, 2026

@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: 50cfae4f32

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

Comment thread package.json Resolved
Base automatically changed from feat/bun-standalone-minimal-sidecar to main October 15, 2026 19:22
Use one bootstrap-safe owner for standalone identity and CLI invocation shape. Route startup, compile-cache, Doctor, update, and runtime CLI children through it while retaining explicit worker protocols and pinned target identity. Qualify the relocated Doctor with an explicit profile and normal startup respawn enabled.
Stop admitting optional Doctor checks after CLI cancellation and propagate the signal to ordinary read-only inspections. Preserve the independent maintenance recovery lifetime so cancellation cannot prevent restoring a stopped Gateway.

Add cancellation and recovery regressions plus a standalone SIGTERM repro mode.

@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: 4ba5b010dc

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

Comment thread package.json
"files": [
"CHANGELOG.md",
"LICENSE",
"cli-invocation.mjs",

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.

P2 Badge Include the launcher helper in upgrade identity checks

Adding cli-invocation.mjs to the published package makes it part of the immutable launcher payload, but scripts/e2e/lib/upgrade-survivor/worker-cell-package.mjs still hashes and extracts only package.json, openclaw.mjs, and dist (lines 44 and 145-147). The upgrade-survivor identity comparison can therefore accept an installed candidate whose required launcher helper is missing or altered, despite claiming to verify the complete application payload; include this new file in both inventories.

AGENTS.md reference: AGENTS.md:L52-L53

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 3bfccdb into main Oct 16, 2026
269 of 270 checks passed
@steipete
steipete deleted the fix/standalone-doctor-snapshot branch October 16, 2026 01:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 16, 2026
The bootstrap-safe cli-invocation.mjs added by #173154 was missing from
both focused guard aliases. Include it at the package-script owner so the
existing root-executable coverage regression passes and the new bootstrap
owner receives the same guards as the other root entrypoints.

Focused tooling proof: 30/30 across the boundary and type-shard files;
the separately landed avatar reference repair is 35039a4. The actual
focused boundary command and targeted tooling/UI-component types pass.
Independent P2 review is clean. Coverage assertions and runtime behavior
are unchanged.
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits)
  fix(ui): remove stale Lit cleanup from model catalog tests
  refactor(tests): consolidate iMessage discovery checks (#173624)
  fix(auto-reply): retire older collect cancellation after admission
  fix(memory): avoid rebuilding initially empty indexes after restart (#173622)
  fix(test): preserve subprocess runtime identity (#173446)
  perf(sessions): batch transcript index reconciliation (#173620)
  fix(gateway): share GitHub options preparation during reconnects (#173589)
  perf(control-ui): open the composer model picker without list-wide work (#173275)
  fix: finish compile-cache cleanup after short CLI commands exit (#173603)
  refactor(ui): finish native shell rendering (#171554)
  fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154)
  refactor: centralize agent memory host typing (#173619)
  fix: camera fallback picker opens away from the attachment button (#173618)
  refactor: deduplicate existing CI runner routing with YAML anchors (#172670)
  fix(ai): preserve multiline Google replies and report malformed streams (#173612)
  refactor(tests): remove duplicate speech policy test (#173606)
  refactor(ui): simplify page rendering and derivations (#173608)
  fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)
  fix(update): wait for native Gateway ownership before restarting (#173588)
  test(sessions): admit schema probe fixture writes behind maintenance
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…nclaw#173154)

Preserve explicit profiles across standalone CLI respawns through one bootstrap-safe invocation owner. Select loose runtime/script arguments or direct compiled arguments from the embedded builder fact or adjacent manifest. Include the owner and compile-cache workers in packaged launchers and standalone builds.

Settle worker execution and native resource closure independently after snapshot failure. Release startup-refused broker claims only after native process and pipe closure, retain cleanup transport on operation failure, propagate Doctor snapshot errors, and cancel further inspections without losing maintenance restoration.

Document the private Unix-domain bind/connect allowance required by both loose and standalone snapshot workers. Keep network, home, Keychain, launchctl, and host-SQLite denials in the relocated verifier.

Validation: signed production-pinned JIT and bytecode artifacts at 4aa64f9 passed explicit-profile Doctor, Gateway/agent/restart campaigns, denied-IPC failure, and SIGTERM settlement in 364/375 ms with unchanged deadlines. Later source repairs passed owning-boundary regressions, scoped checks, and independent review. Signed artifact identity is preserved separately from the final CI head.

Exact-head CI for 9617855: 172 successful jobs, 19 skipped, zero failures (run 38833042547). Tested merge 58c3b87a8594 has the same tree as the prepared PR head. No CI exception, rerun, or timeout increase.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…173663)

The bootstrap-safe cli-invocation.mjs added by openclaw#173154 was missing from
both focused guard aliases. Include it at the package-script owner so the
existing root-executable coverage regression passes and the new bootstrap
owner receives the same guards as the other root entrypoints.

Focused tooling proof: 30/30 across the boundary and type-shard files;
the separately landed avatar reference repair is 06249c0. The actual
focused boundary command and targeted tooling/UI-component types pass.
Independent P2 review is clean. Coverage assertions and runtime behavior
are unchanged.
vincentkoc added a commit that referenced this pull request Oct 16, 2026
* fix(ci): share the iOS screenshot build

* fix(ci): preserve the screenshot artifact container on download

* merge: integrate main for iOS screenshot workflow conflicts

* style(ci): format the combined screenshot evidence changes

* docs(ci): name the combined screenshot capture

* fix(ios): expose screenshot simulator creation errors

* Merge main at 56c3151 to include the UI test cleanup fix

* commit '56c315156f4542f197a2b7f727681ba3f41c21b5': (23 commits)
  fix(ui): remove stale Lit cleanup from model catalog tests
  refactor(tests): consolidate iMessage discovery checks (#173624)
  fix(auto-reply): retire older collect cancellation after admission
  fix(memory): avoid rebuilding initially empty indexes after restart (#173622)
  fix(test): preserve subprocess runtime identity (#173446)
  perf(sessions): batch transcript index reconciliation (#173620)
  fix(gateway): share GitHub options preparation during reconnects (#173589)
  perf(control-ui): open the composer model picker without list-wide work (#173275)
  fix: finish compile-cache cleanup after short CLI commands exit (#173603)
  refactor(ui): finish native shell rendering (#171554)
  fix: preserve standalone CLI profiles and settle Doctor shutdown (#173154)
  refactor: centralize agent memory host typing (#173619)
  fix: camera fallback picker opens away from the attachment button (#173618)
  refactor: deduplicate existing CI runner routing with YAML anchors (#172670)
  fix(ai): preserve multiline Google replies and report malformed streams (#173612)
  refactor(tests): remove duplicate speech policy test (#173606)
  refactor(ui): simplify page rendering and derivations (#173608)
  fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)
  fix(update): wait for native Gateway ownership before restarting (#173588)
  test(sessions): admit schema probe fixture writes behind maintenance
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
* fix(ci): share the iOS screenshot build

* fix(ci): preserve the screenshot artifact container on download

* merge: integrate main for iOS screenshot workflow conflicts

* style(ci): format the combined screenshot evidence changes

* docs(ci): name the combined screenshot capture

* fix(ios): expose screenshot simulator creation errors

* Merge main at a11e38b to include the UI test cleanup fix

* commit 'a11e38b8bb1eb58aaf392a0eab458dbb47aad30f': (23 commits)
  fix(ui): remove stale Lit cleanup from model catalog tests
  refactor(tests): consolidate iMessage discovery checks (openclaw#173624)
  fix(auto-reply): retire older collect cancellation after admission
  fix(memory): avoid rebuilding initially empty indexes after restart (openclaw#173622)
  fix(test): preserve subprocess runtime identity (openclaw#173446)
  perf(sessions): batch transcript index reconciliation (openclaw#173620)
  fix(gateway): share GitHub options preparation during reconnects (openclaw#173589)
  perf(control-ui): open the composer model picker without list-wide work (openclaw#173275)
  fix: finish compile-cache cleanup after short CLI commands exit (openclaw#173603)
  refactor(ui): finish native shell rendering (openclaw#171554)
  fix: preserve standalone CLI profiles and settle Doctor shutdown (openclaw#173154)
  refactor: centralize agent memory host typing (openclaw#173619)
  fix: camera fallback picker opens away from the attachment button (openclaw#173618)
  refactor: deduplicate existing CI runner routing with YAML anchors (openclaw#172670)
  fix(ai): preserve multiline Google replies and report malformed streams (openclaw#173612)
  refactor(tests): remove duplicate speech policy test (openclaw#173606)
  refactor(ui): simplify page rendering and derivations (openclaw#173608)
  fix(release): Linux channel promotion fails after a withdrawn Windows companion (openclaw#173615)
  fix(update): wait for native Gateway ownership before restarting (openclaw#173588)
  test(sessions): admit schema probe fixture writes behind maintenance
  ...

Co-authored-by: Vincent Koc <[email protected]>
steipete added a commit that referenced this pull request Oct 19, 2026
Close the retained rehearsal broker before deleting its socket directory. Observe the native snapshot cleanup receipt on Windows rather than a parent-process fs spy, retaining the real open-handle blocker and source preservation assertions. The native-child cutovers in #173154 and #176334 exposed these stale fixture assumptions.
steipete added a commit that referenced this pull request Oct 19, 2026
…7526)

A resource failure may arrive over parent IPC after the worker socket has
already observed it and finished native cleanup. Do not reject the parent's
pending close with that delayed failure; keep reporting the original error
and wait for the independent close receipt or actual cleanup failure.

Add a deterministic delayed-failure regression with retained custody and
close/release assertions. This preserves the separate execution and native
settlement contract from #160946 and #173154.

Validation: regression red on the old owner; 30 focused cases pass under
Node and Bun with one worker. Targeted types, lint, format and P2 review pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
…nclaw#177526)

A resource failure may arrive over parent IPC after the worker socket has
already observed it and finished native cleanup. Do not reject the parent's
pending close with that delayed failure; keep reporting the original error
and wait for the independent close receipt or actual cleanup failure.

Add a deterministic delayed-failure regression with retained custody and
close/release assertions. This preserves the separate execution and native
settlement contract from openclaw#160946 and openclaw#173154.

Validation: regression red on the old owner; 30 focused cases pass under
Node and Bun with one worker. Targeted types, lint, format and P2 review pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant