Skip to content

fix(registry): coreutils stat/chmod/ls show real permission bits#266

Draft
NathanFlurry wants to merge 1 commit into
fs-native-parityfrom
codex/coreutils-posix-perms
Draft

fix(registry): coreutils stat/chmod/ls show real permission bits#266
NathanFlurry wants to merge 1 commit into
fs-native-parityfrom
codex/coreutils-posix-perms

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member

Summary

  • Wire WASI Rust coreutils permission display and chmod paths to the existing host_fs mode/chmod imports.
  • Keep host chmod changes durable by updating the mapped guest-visible path in the Wasm runner.
  • Embed vendored uutils English locale catalogs in the uucore stub and lazily initialize localization so message IDs do not leak in Wasm commands.
  • Keep native builds gated away from the WASI-specific code paths.

Validation

  • cd registry/native && make cmd/stat cmd/chmod cmd/ls cmd/touch
  • just registry-build coreutils
  • Fresh vendor apply: cd registry/native && make clean-vendor && make vendor && ./scripts/patch-vendor.sh
  • Real just shell tmux proof: stat shows 0644, chmod 600, stat/stat -c show 0600, and ls -l shows -rw-------.
  • cd agentos/packages/core && AGENTOS_WASM_SNAPSHOT_RUNNER=off AGENTOS_SIDECAR_BIN=/home/nathan/workspaces/shell/agentos/target/debug/agentos-sidecar pnpm exec vitest run tests/fs-native-parity.test.ts tests/vim-render.test.ts

@railway-app

railway-app Bot commented Jul 4, 2026

Copy link
Copy Markdown

🚅 Deployed to the secure-exec-pr-266 environment in secure-exec

Service Status Web Updated (UTC)
secure-exec 😴 Sleeping (View Logs) Web Jul 4, 2026 at 4:08 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant