Skip to content

feat: shrink standalone sidecars and bundle SQLite - #172802

Merged
steipete merged 25 commits into
mainfrom
feat/bun-standalone-minimal-sidecar
Oct 15, 2026
Merged

steipete merged 25 commits into
mainfrom
feat/bun-standalone-minimal-sidecar

Conversation

@steipete

@steipete steipete commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Follow-up to #172384 for desktop packaging #171755. The standalone executable embedded the application, but its loose sidecar still copied the dependency tree. That left tens of thousands of files and pnpm symlinks for macOS to assess and the desktop app to seed.

The sidecar now contains 5,963 files with no symlinks. It also bundles SQLite, so a clean Mac does not need Homebrew to start OpenClaw.

Implementation

  • Keep disk-owned resources through builder-owned category rules: docs, skills and custodian skills, plugin admission metadata/assets, Control UI assets, templates, notices, and selected native dependencies. Application/plugin modules and their worker/dynamic-import entries remain embedded.
  • Flatten retained native packages, preserve their resolution aliases, and validate destination collisions before compilation. Different contents cannot silently overwrite the same destination. The resulting sidecar contains no pnpm tree or symlinks.
  • Reuse scripts/build-mac-sqlite.sh and scripts/lib/sqlite-macos.json to produce runtime/lib/libsqlite3.dylib; there is one SQLite build owner. OPENCLAW_SQLITE_LIBRARY remains the explicit override, followed by bundled SQLite in standalone builds. Normal installs retain their existing selection paths. The bundled dylib must be signed with the app.
  • Record runtime file/byte/category totals, hashes, selected SQLite version/options/source, and sidecarPlugins in the manifest. sidecarPlugins is currently empty: bundled plugin code remains in the executable.

Evidence

Current qualification source: bf0d98d76cbb12ebfad45d5d043ebd200b011430. Both modes use the production-pinned Bun 1.4.3-canary.1+94f8f5ffe (commit 94f8f5ffec48f47b3b3fb84891ef5ced046f5814, executable SHA-256 10da5107e6eabd746f82715b59779ecbcba171fe15698e26d26543ecc9f82667). The results below are cycle-21 evidence; older compiler successes are not reused.

Runtime layout Regular files Bytes Symlinks
Historical PRB sidecar 91,540 2,702,762,797 5,660
Raw same-head snapshot, either mode 190,526 3,994,101,184 6,231
Derived same-executable full control, either mode 191,841 4,570,860,671 6,231
Minimal signed sidecar, either mode 5,963 704,741,109 0

The historical comparison includes source/dependency differences and predates added docs and bundled SQLite. The raw snapshot is the actual pre-prune tree. The derived full control overlays final native/resource paths onto that snapshot so the exact signed executable can run; it is not another original builder output. Per-category totals reconcile to each signed manifest. JIT and bytecode have equal category counts/bytes but distinct signed hashes.

Signed executable Bytes
JIT 1,002,181,520
Bytecode 1,977,866,480
Proof Current result
Strict zero-disk-JS trace Pass in JIT and bytecode; 200/201 observed VMs, 130 workers each, complete worker census
Full functional campaigns 4 JIT + 4 bytecode passed; paired qualification report passed
Signed hardened runtime Both exact artifacts verified against their manifest entitlements; bundled SQLite signed
Host-SQLite-hidden startup/config/Doctor/Gateway/turns/restart Pass in both modes; mapped bundled SQLite 3.53.4, extension loading enabled
Natural profile/respawn dispatch Pass in both modes; admitted spawned child entry observed
Local TypeScript + SDK plugin Linked fixture passed in both modes, including enum-bearing sibling and loaded SDK registration
JIT early native Doctor/Gateway comparison Pass: 0 missing successful baseline paths, 0 new missing paths
Content/category audits and app-envelope signature check Pass; no unclassified files/category mismatches/symlinks; envelope check did not launch the app
Exact-head CI 60 successful, 25 skipped, 0 failed checks
Full native JIT/bytecode open/stat/ENOENT comparison Pass: 0 missing successful paths, 0 new missing paths in both modes; 13,103/13,102 physical path operations and 18 embedded-image probes per mode.
Broader plugin/Control UI/docs/skills/memory/cron feature pass Original: JIT 64/65, bytecode 65/65; the JIT team-preset timeout passed its separate unchanged replay. Original suite remains failed; no repair is claimed.
LanceDB persistence/restart pass Pass in both modes: native table creation, two committed rows, semantic search and restart persistence.
Fresh-path loose-layout timing Pass in all four layouts; APFS clone copies, first --version, first Gateway ready, clean shutdown and per-copy audit. See observations below.
Linux SQLite on current production pin Pass on arm64 and x64 (x64 under emulation): SQLite 3.53.4, sqlite-vec loading via both APIs, FTS5/JSON/WAL/reopen/integrity, no external SQLite mapping
Final all-attempt delayed crash audit Pass: 53 ownership ledgers, including original failures and the focused replay; zero owned or uncertain crash reports.

The original signed PRB JIT and bytecode artifacts both fail the hidden-host-SQLite control with Install one with brew install sqlite. The current signed artifacts pass the isolated config/Doctor/two-Gateway-lifetime sequence with the bundled library mapped. The full strict and 4+4 functional campaigns run separately: the macOS seatbelt policy cannot permit the setuid process utility needed by the normal spawn-broker shutdown. This limitation is retained in the SQLite sequence report.

The file audit combines the Node fs observer and native libc interposition. It checks physical resources after recorded relocation and accounts for the 18 image-owned metadata probes against immutable builder diagnostics. This is not a kernel syscall trace; dyld-private/raw syscalls are outside that observer scope. The interposed diagnostic copies are separate from the signed hardened-runtime functional campaigns.

The original TypeScript-only fixture used copy installation, which now correctly requires compiled JavaScript. It was corrected to the documented plugins install --link development path; copied compiled-plugin coverage remains separate in the broader feature fixture. The failed attempt's receipt/log/result were preserved, and its separate delayed PID/UUID crash audit was clean. Ten completed early-stage receipts were reused unchanged from the original cycle-21 specification; the linked-fixture revision changed only that fixture's install mode and expected success text, without rebuilding either artifact or changing the frozen harness.

The original broader feature sequence retained one JIT team-preset timeout at 180 seconds; all other original assertions passed. The exact isolated JIT assertion passed on replay with unchanged timeout and expectations (139.070 seconds including wrapper/audit). The original exit-1 receipt remains intact. High host load is a correlation, not a proven cause or repair. The native-minimal run also retains an earlier Gateway readiness timeout under high host load; its full retry passed with the original limits (1,256.758 seconds for both modes). The failed attempt remains included in the final crash audit.

Per-category historical comparison

Bytes are logical file bytes. This is the historical PRB comparison, with the source/dependency and added-docs/SQLite caveats above.

Category Before files After files Before bytes After bytes
controlUi 1,895 1,895 60,426,297 63,299,312
dependencyAssets 635 85 779,472,453 49,877,713
dependencyJavaScript 41,139 0 414,862,286 0
dependencyLicenses 1,691 551 4,272,030 1,638,368
dependencyMetadata 1,829 614 3,328,279 1,213,184
development 18,551 0 133,344,513 0
docs 0 1,348 0 28,032,596
embeddedJavaScript 17,554 0 248,452,406 0
externalRuntime 49 45 108,999,568 108,945,836
hookMetadata 5 5 9,736 9,736
licenses 3 3 5,011 5,386
nativeAddons 45 15 330,655,162 266,108,362
nativeLibraries 55 6 404,382,266 150,737,080
otherDependencyFiles 5,858 0 148,443,118 0
otherFiles 809 0 11,363,353 0
otherJavaScript 56 0 19,263,309 0
pluginAssets 574 580 26,851,374 27,007,419
pluginMetadata 668 696 2,513,230 2,565,984
pnpmMetadata 4 0 818,215 0
runtimeAssets 10 10 4,333,243 4,333,243
runtimeMetadata 8 8 342,174 342,714
skills 76 76 287,914 287,914
templates 26 26 336,860 336,262
Focused tests and local checks

317 passing tests and one existing skip across 14 files. This combines fresh runs with source-bound, unchanged-input evidence; it is not one suite run. Each command is pnpm test <file> --maxWorkers=1.

File Passed Skipped Wall seconds
test/scripts/bun-standalone-sidecar.test.ts 45 0 4.132
test/scripts/bun-standalone-contract.test.ts 22 0 3.860
test/scripts/bun-standalone-snapshot.test.ts 1 0 2.738
test/scripts/bun-standalone-sqlite.test.ts 5 0 10.038
src/infra/node-sqlite.test.ts 65 0 4.830
src/plugins/sdk-alias.test.ts 67 1 72.805
src/plugins/sdk-alias-workspace.test.ts 1 0 24.979
test/scripts/bun-standalone-module-resolution.test.ts 6 0 3.987
test/scripts/bun-standalone-native.test.ts 19 0 5.869
test/scripts/bun-standalone-imports.test.ts 6 0 3.812
test/scripts/bun-standalone-metadata.test.ts 50 0 4.460
test/scripts/bun-standalone-entry.test.ts 1 0 3.233
src/entry.respawn.test.ts 16 0 2.687
test/scripts/bun-standalone-workers.test.ts 13 0 3.547

Full changed checks at 87919cad4185 completed in 1,380.714 seconds: 44/46 passed. The two failures were reproduced on clean pinned main: max-lines stale entries (19.651 seconds) and dead exports (108.525 seconds; 21 overlapping findings across scans). The subsequent metadata-only delta has fresh type/lint/format/tests. This local result remains red; the current-head CI result above is green. No CI rerun or inherited-CI admin exception was needed. Codex reviews are clean through P2 for the final delta and prior owner changes.

Fresh-path timing observations

The primary layout comparison uses the exact same signed executable per mode. Each row is one observation on the shared host, with warm caches and the same supervised harness settings (OPENCLAW_NO_RESPAWN=1). Copies use APFS clonefile (cp -c for the executable, cp -c -R for runtime/); no whole physical copy was made per run. Default respawn is covered separately. These observations do not establish a cold-machine, notarization, or general startup-speed claim.

Mode / layout Copy seconds First --version seconds First Gateway ready seconds
jit / derived full control 493.991 7.227 29.653
jit / minimal 10.241 6.882 38.545
bytecode / derived full control 501.426 15.243 12.955
bytecode / minimal 29.358 13.926 3.321

Historical PRB measurements used physical cp -X and different source/dependency/compiler artifacts. The table shows three-sample historical medians against the current single observations; it cannot isolate the pruning change. The first historical pair remains excluded for the recorded concurrent task-owned typecheck; the source report retains both included and excluded observations.

Mode Historical copy / version / ready seconds Current minimal copy / version / ready seconds
jit 53.468 / 5.985 / 4.383 10.241 / 6.882 / 38.545
bytecode 75.377 / 11.187 / 1.933 29.358 / 13.926 / 3.321

The manifest also carries per-category file/byte totals, the actual 52 SQLite compile options, and pinned SQLite source archive provenance. Example excerpt:

{
  "runtime": {
    "fileCount": 5963,
    "sizeBytes": 704741109,
    "symlinkCount": 0,
    "sidecarPlugins": [],
    "sqlite": {
      "source": "bundled",
      "path": "lib/libsqlite3.dylib",
      "version": "3.53.4",
      "sha256": "e40c480b7d37b38226e8b647f1876cd1e3c6fdf965aa0ad5222828219e46ac15",
      "extensionLoadingSupported": true
    }
  }
}

@steipete
steipete marked this pull request as ready for review October 15, 2026 04:05
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@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-15T13:57:01.667946Z bf0d98d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels 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: ddac94407e

ℹ️ 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 scripts/lib/bun-standalone-snapshot.mjs Resolved
Comment thread scripts/lib/bun-standalone-snapshot.mjs Resolved

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

ℹ️ 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 scripts/lib/bun-standalone-sidecar.mjs Resolved
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 15, 2026
@steipete
steipete force-pushed the feat/bun-standalone-minimal-sidecar branch from 66c5dd6 to 38d033f Compare October 15, 2026 06:41
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR replaces the full standalone runtime copy with selected resources, embeds dependency code, and bundles SQLite on macOS.

Example: Run a macOS arm64 standalone artifact on a Mac without Homebrew SQLite.

  • Before: Database initialization requires a separately provisioned supported SQLite library.
  • After: The executable selects runtime/lib/libsqlite3.dylib unless an explicit override is supplied.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful owner-backed implementation with no discrete introduced defect found, but required execution-boundary proof remains insufficient; no user-state schema or serialized format changes were found.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Standalone artifacts carry excessive runtime files and require separately installed SQLite on clean Macs.
Reason: The direction is maintainer-backed, addresses measured distribution overhead, and supports an active desktop consumer.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this maintainer-backed PR open: current main lacks its minimal sidecar and bundled SQLite, and the linked desktop work depends on it.

Priority: P2
Reviewed head: 19a7e3ee2acd31fa687def247030dc819e9aed0e

Before merge

  • Add real behavior proof - Authority-chain proof required: show actual execution of an image-owned plugin and declared secret resolver, with external or redirected roots and undeclared resolver entrypoints rejected before import or child spawning. The body reports older signed builds and explicitly leaves final qualification pending; the supplied tests mock these final effects. Attach redacted terminal output or logs, removing IPs, API keys, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security concern: Verify image authority through actual execution - Build-time image membership now substitutes for physical safe opens across several executable entrypoint owners. Existing negative tests constrain path admission, but mocked module loaders and entrypoint-only secret tests cannot establish that forbidden paths remain rejected at the final import or process spawn.
  • Resolve merge risk - Confirm that external or redirected plugin paths cannot acquire image-owned admission authority and reach module execution or secret-resolver spawning.
  • Complete next step - Classify the failed session-management and sidebar UI E2E jobs against the base revision before landing.

Findings

  • [medium] Verify image authority through actual execution — scripts/lib/bun-standalone-metadata.mjs:327

Tests

  • Missing end-to-end proof: Final artifact qualification must exercise actual embedded loading and secret-resolver execution with allowed and nearest-forbidden paths; the supplied admission tests mock those final effects.
Agent review details

How this fits together

The standalone builder consumes a completed OpenClaw runtime and produces an executable, resource sidecar, and manifest used by deployment and desktop packaging.

flowchart TD
A[Built source runtime] --> B[Bun builder and adapters]
B --> C[Embedded executable]
B --> D[Resource sidecar]
B --> E[Artifact manifest]
C --> F[Standalone CLI and Gateway]
D --> F
F --> G[Plugins and SQLite]
Loading

Technical review

Best possible solution:

Ship one resource-selection owner with embedded application code, contained native resources, bundled SQLite, and complete artifact replacement.

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

Current-main source confirms the full-sidecar pruning policy and external SQLite requirement; the reported artifact measurements were not independently reproduced during this read-only review.

Is this the best way to solve the issue?

Reusing the existing SQLite builder and selector, sharing workspace alias rules, and replacing the previous pruning path is a coherent solution without a competing runtime owner.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Prove rejection at execution (recommended)
    Provide production-path evidence that image-owned entries execute while external paths, redirected roots, and undeclared secret entrypoints are rejected before import or child spawning.

Provenance checked

  • Standalone sidecar selection and manifest changes intended behavior with a stated reason (7c6b8bc: Establish relocatable executable, runtime, provenance, signing, and whole-artifact update contracts.)
  • macOS Bun SQLite selection keeps the original intent (757e482: Select an extension-capable library before the first database open while preserving explicit override priority.)
  • Unsupported system SQLite refusal keeps the original intent (65eb326: Avoid Apple's SQLite failures on read-only database connections and explain recovery.)
  • Workspace package aliases keeps the original intent (refactor: clean up ACP package metadata and helpers #88659: Derive aliases from package exports and preserve packaged fallbacks; the extraction shares these rules with the builder.)

Testing

Proof path: in-process harness.

Security

Needs attention: Image-backed executable admission requires final-effect evidence, although source inspection established no concrete exploitable bypass.

Evidence

Security concerns:

  • [medium] Verify image authority through actual execution — scripts/lib/bun-standalone-metadata.mjs:327
    Build-time image membership now substitutes for physical safe opens across several executable entrypoint owners. Existing negative tests constrain path admission, but mocked module loaders and entrypoint-only secret tests cannot establish that forbidden paths remain rejected at the final import or process spawn.
    Confidence: 0.94

What I checked:

  • Pinned introduction and current-main comparison: Reviewed the introduced change from 9e3e16c to 19a7e3e. Fetched main still uses declaration/map pruning and host SQLite discovery; the central change remains necessary. (scripts/lib/bun-standalone-contract.mjs:110, a10d95485b5d)
  • Existing SQLite owners reused: Staging invokes the existing pinned macOS SQLite builder, checks capabilities and version, and records its hash; runtime selection preserves explicit overrides before trying bundled SQLite. (scripts/lib/bun-standalone-sqlite.mjs:68, 19a7e3ee2acd)
  • Earlier review corrections verified: The shared resource policy preserves public templates and Markdown/MDX while excluding private documentation; the snapshot regression covers those outcomes, matching the discussion corrections. (test/scripts/bun-standalone-snapshot.test.ts:73, 19a7e3ee2acd)
  • Changed admission boundary: Image-owned paths can now satisfy module, hook, and secret-entrypoint admission without physical source-file opens; canonical-root and image-membership checks constrain that authority. (scripts/lib/bun-standalone-metadata.mjs:266, 19a7e3ee2acd)
  • Final-effect proof gap: Admission regressions use mocked module loaders, hook imports, or entrypoint resolution; they do not demonstrate rejection through actual module execution or secret-resolver child spawning. (test/scripts/bun-standalone-metadata.test.ts:1024, 19a7e3ee2acd)
  • Author qualification hold: The full PR body identifies d1ec6b758be3838a85302256302553ed61f651eb as the last built source and explicitly says final builds and qualification remain pending. (19a7e3ee2acd)

Likely related people:

  • Peter Steinberger: Raw commit 7c6b8bc adds scripts/build-bun-standalone.mjs:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7c6b8bcfcc99; files: scripts/build-bun-standalone.mjs)

PR surface

Source +14, Tests +3180, Docs +50, Other +1982. Total +5226 across 22 files. Added test files: 5.

View PR surface stats
Area Files Added Removed Net
Source 3 86 72 +14
Tests 9 3211 31 +3180
Docs 2 76 26 +50
Config 0 0 0 0
Generated 0 0 0 0
Other 8 2079 97 +1982
Total 22 5452 226 +5226

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful standalone packaging improvement with a limited deployment surface.
  • merge-risk: 🚨 security-boundary: Generated image facts replace physical admission checks for executable plugin, hook, and secret-provider entrypoints.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect proof for external or redirected plugin roots and undeclared secret entrypoints, demonstrating rejection before module import or child spawning.

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, 3:16 AM ET / 07:16 UTC.

@steipete
steipete force-pushed the feat/bun-standalone-minimal-sidecar branch from 19a7e3e to 7c57577 Compare October 15, 2026 11:56
@steipete
steipete force-pushed the feat/bun-standalone-minimal-sidecar branch from 7c57577 to bf0d98d Compare October 15, 2026 13:51
@steipete
steipete merged commit 9df2906 into main Oct 15, 2026
159 of 160 checks passed
@steipete
steipete deleted the feat/bun-standalone-minimal-sidecar branch October 15, 2026 19:22
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
* build: minimize the standalone runtime sidecar

* fix: compile minified standalone runtime dependencies

* fix: classify executable-bit dependency licenses once

* test: fix standalone fixture checks

* fix: resolve standalone package export paths

* fix: admit embedded SQLite workers in standalone builds

* fix: resolve hoisted packages from standalone runtime

* fix: discover installed packages under Bun

* fix: admit embedded plugin public surfaces

* fix: admit embedded sidecar modules and native resolutions

* test: preserve workspace alias fixture types

* fix: preserve standalone plugin admission and diagnostics

* fix: filter standalone native payloads by target

* fix: preserve standalone native and metadata dependencies

Retain runtime-referenced native resources and embed opaque required modules. Keep source aliases on image facts, retain public templates, and exclude private documentation.

* fix: exclude resolved child programs from standalone graph

* fix: preserve standalone resolution directory boundaries

* fix: reject unsafe standalone runtime symlinks

* fix: include MDX in standalone documentation

* fix: collapse duplicate standalone resource destinations

* fix: preserve collapsed native resource source aliases

* fix: embed lazy conditional standalone module resolutions

* fix: preserve standalone CLI respawn arguments

* fix: resolve standalone worker sources by lexical scope

* fix: retain standalone module loader path resolver

* fix: resolve renamed standalone filesystem imports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant