Skip to content

fix: allow test builds in containers without systemd - #170640

Merged
steipete merged 1 commit into
mainfrom
fix/cloud-build-fence
Oct 13, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/cloud-build-fence

Conversation

@steipete

@steipete steipete commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes: cloud test preparation refuses to rebuild an isolated checkout when the Linux container has no systemd manager.

User Impact

Developers can prepare and run cloud tests without a nonexistent invoking Gateway blocking the build. Existing managed Gateway definitions and unavailable or running managers remain guarded.

Why This Change Was Made

Reuse the complete inventory's native manager-presence check before creating the synthetic invoking binding. Missing local manager endpoints establish absence; advertised managers, access failures, installed units, and overlapping live build outputs retain their existing checks.

Evidence

  • The original producer reproduced the exact unknown-artifact refusal in this cloud environment; a real verified-fence assertion failed before the change and returned refuse: false afterward.
  • Live OPENCLAW_TSDOWN_MAX_OLD_SPACE_MB=4096 node scripts/prepare-vitest-runtime.mjs --require-current-head completed successfully in 164.6 seconds through all eight build steps, including the private QA runtime and 96 external plugins. The explicit heap uses the supported option because this cloud cgroup namespace hides the process memory limit from the planner.
  • Regression and sibling daemon shard: 35 passed in 121.89 seconds wall time (114.02 seconds Vitest duration; cold worker compilation dominated, new regression cases took 23ms and 9ms). Native tsgo:core passed; formatting passed; targeted type-aware lint passed. CI run 38347334094 passed on the exact head; its changed-node job completed in 375 seconds including setup/build/tests. Required GitHub gates passed and the PR merged through normal auto-squash.
  • Independent source review found no actionable P0–P2 issues. The canonical autoreview helper could not authenticate in this cloud session; an independent reviewer inspected the full discovery, fence, command-reader, and systemd transport owners instead.

@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Oct 13, 2026
@steipete
steipete marked this pull request as ready for review October 13, 2026 04:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T04:41:06.479842Z 9e5e568 Draft marked ready
ℹ️ 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.

@steipete
steipete enabled auto-merge (squash) October 13, 2026 04:44
@steipete
steipete merged commit caae050 into main Oct 13, 2026
188 checks passed
@steipete
steipete deleted the fix/cloud-build-fence branch October 13, 2026 04:49

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

RomneyDa added a commit that referenced this pull request Oct 13, 2026
* improve: simplify workspace and memory plugin messages

* test(reef): match stored-key generation diagnostic

* fix(webchat): stage offloaded images for file tools (#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 877301a (#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: cde6bbd (#152237), exposed by
7e48efb (#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 13, 2026
* improve: simplify gateway, protocol, and security diagnostics

* fix(webchat): stage offloaded images for file tools (#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 877301a (#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: cde6bbd (#152237), exposed by
7e48efb (#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 13, 2026
* improve: simplify agent, exec, and automation messages

* fix(webchat): stage offloaded images for file tools (#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 877301a (#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: cde6bbd (#152237), exposed by
7e48efb (#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
* improve: simplify workspace and memory plugin messages

* test(reef): match stored-key generation diagnostic

* fix(webchat): stage offloaded images for file tools (openclaw#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 044ae43 (openclaw#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: 0a54fc6 (openclaw#152237), exposed by
5dbf215 (openclaw#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (openclaw#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
* improve: simplify gateway, protocol, and security diagnostics

* fix(webchat): stage offloaded images for file tools (openclaw#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 044ae43 (openclaw#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: 0a54fc6 (openclaw#152237), exposed by
5dbf215 (openclaw#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (openclaw#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
* improve: simplify agent, exec, and automation messages

* fix(webchat): stage offloaded images for file tools (openclaw#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 044ae43 (openclaw#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: 0a54fc6 (openclaw#152237), exposed by
5dbf215 (openclaw#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (openclaw#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant