Repository navigation
build: consume platform-specific fs-safe packages - #132240
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 2, 2026, 7:01 PM ET / 23:01 UTC. ClawSweeper reviewWhat this changesAdds Docker and package-install checks that verify fs-safe loads a platform-native binding when present and uses its JavaScript fallback after optional platform packages are removed. Merge readiness⛔ Blocked before merge - 4 items remain Keep open for maintainer review. The branch remains necessary because current main lacks this package/Docker verification; no introduced correctness defect was established. Direct fs-safe package source and the linked exact-head Actions job could not be retrieved because DNS was unavailable, so their contract and result need independent confirmation before merge. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s package and Docker lanes build an installable tarball and test it across package managers and Linux variants. The verifier resolves fs-safe from the installed package tree, performs a hash operation, and checks whether the selected native or fallback path matches the installation. flowchart LR
A[OpenClaw package tarball] --> B[Docker install lanes]
B --> C[fs-safe verifier]
C --> D{Platform package installed?}
D -->|Yes| E[Load native binding]
D -->|No| F[Use JavaScript fallback]
E --> G[Verify hash operation]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +67, Other +143. Total +210 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the focused installed-package verifier and merge after a reviewer can directly confirm fs-safe’s published exports/native loader and the exact-head Docker lane’s native and fallback results. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds package and Docker verification rather than fixing a separately reported user-facing failure. Is this the best way to solve the issue? Unclear: the verifier follows existing fs-safe package-boundary and cache-observation coverage, but direct fs-safe 0.7.0 export/loader inspection was unavailable in this environment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4bb80002a2b5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
9569a20 to
e2500ca
Compare
e2500ca to
a9d0e74
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
a9d0e74 to
bd668c6
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
bd668c6 to
ce96dd2
Compare
ce96dd2 to
aafd118
Compare
|
@clawsweeper re-review Addressed the Bun layout finding: required mode now permits multiple installed platform-package siblings while still requiring exactly one loaded binding and proving that binding came from one of those installed packages. Skipping the fallback-mode recommendation for update-channel-switch. The OpenClaw candidate tarball bundles its dependency tree, so npm omit-optional cannot remove the already-bundled fs-safe platform package. Exact-head CI run https://github.com/openclaw/openclaw/actions/runs/33686296305 proved this contract: docker-seed-e2e passed with required mode after fallback mode failed because the platform package was present. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Addressed the remaining ClawSweeper blocker on
Focused package/Docker tooling tests pass (374 passed, 2 skipped), and the worker regression test passes separately. Please re-review this exact head. |
|
@clawsweeper re-review Exact-head evidence is now complete for
The data-model checklist item is not applicable: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* build: consume platform-specific fs-safe packages * test: prove fs-safe optional fallback
Summary
The fs-safe dependency update, lockfile metadata, documentation, and worker runtime policy originally developed on this branch have since landed on
mainthrough #134068. This PR now contains only the remaining package/Docker verification and focused regression coverage.Architecture
Normal Gateway, CLI, plugin, and container installs resolve a platform-specific optional package. The verifier performs a real
sha256Fileoperation in native-required mode and confirms that the loaded.nodebinding came from one of the installed fs-safe platform packages.The update-channel fixture installs with
npm --omit=optional. npm 11 global tarball installs can still retain the host fs-safe platform package in this package graph, so that disposable prefix explicitly relocates any retained platform package before running fallback verification. This makes the zero-package, zero-native-binding JavaScript path deterministic while the other install lanes retain native-required coverage.Isolated workers contain no dependency tree and use fs-safe's bundled JavaScript implementation. The worker regression test verifies that this policy is selected through
src/infra/fs-safe-defaults.tsbefore the runtime is registered.Validation
pnpm check:changed: passedpnpm build: passedgit diff --check: passedDocker is not installed in this checkout, so real image execution is validated by exact-head CI.