Repository navigation
fix(wasm)!: unblock host-backed shell compatibility - #2968
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | a121a24 | Commit Preview URL Branch Preview URL |
Nov 22 2026, 02:24 AM |
Review summary — #2968
|
|
Addressed all three review findings in a121a24:
Validation: all 82 optimized WASM package tests, the extended RealFs ownership test, all-target/all-feature Clippy, knowledge and documentation checks pass. The original full RealFs suite (51 tests), HTTP-enabled native suite apart from the reproduced main/macOS iconv mismatch, and all 19 failpoint tests also passed. CI is rerunning on the new head. |
What changed
Host filesystem metadata now carries UID/GID, and both
[ -O/-G ... ]and[[ -O/-G ... ]]compare owners against sandbox user/group 1000. Omitted ownership retains the existing single-user defaults; Unix RealFs reports host ownership.[() { ...; }now defines and dispatches a function. WASM custom builtins accept{ stdout?, stderr?, exitCode? }(sync or Promise), preserving status through$?, conditionals, AND/OR lists and errexit. Existing string callbacks continue to work.Why
Thebird's integration ledger reports these compatibility gaps blocking host ownership tests and silent custom test failures.
Before / After
Reproduced against published 0.21.1, then exercised against the rebuilt release package:
[() { echo override; return 7; }; [ x ]; echo status=$?override\nstatus=7\n{ stdout: "out\n", exitCode: 7 }[returns{ exitCode: 1 }Validation:
a121a247.Local gate limitations: full
just pre-pr/just testencounter the existing macOS iconv byte-order mismatch, also reproduced on unchanged main. Fullcargo deny checkreports existing unmaintained chrono/chrono-tz advisories; no dependencies, advisory exceptions or test assertions were changed. Linux CI passed the full test suite unchanged.Risk
Source-breaking for Rust backends constructing public
Metadataliterals: provide the new fields or use..Metadata::default(); examples and fixtures are updated. Release this in the next minor series. Existing JavaScript string callbacks remain compatible. The v1 filesystem ABI layout is unchanged and retains sandbox ownership. Ownership metadata does not enforce permissions. Malformed JS result shapes and owner IDs now fail explicitly.Checklist