Skip to content

Commit 4e7c117

Browse files
committed
chore: update progress for US-083
1 parent 1c86f3d commit 4e7c117

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

progress.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,3 +1284,20 @@ PRD: ralph/kernel-hardening (46 stories)
12841284
- Tests pass (verified in US-081 run)
12851285
- Marked passes: true in prd.json
12861286
---
1287+
1288+
## 2026-03-17 - US-083 (partial)
1289+
- What was implemented:
1290+
- Converted `cd /tmp` + `pwd` test from `.todo()` to a passing test (was blocked by WASI hang, now works)
1291+
- Added VFS lazy directory entry population in kernel-worker.ts (populateDirEntries, inoToPath, populatedDirs)
1292+
- Updated `ls` `.todo()` comment with better root cause analysis
1293+
- Files changed:
1294+
- packages/runtime/wasmvm/src/kernel-worker.ts — added lazy directory population in createKernelVfs()
1295+
- packages/runtime/wasmvm/test/shell-terminal.test.ts — converted cd test from .todo() to real test, updated ls comment
1296+
- Status: 4/5 tests pass, `ls /` remains .todo() due to child process WASI VFS access issue
1297+
- The `ls` blocker: child processes spawned via proc_spawn have their own Worker and WASI polyfill, but ls fails with "ls-error-cannot-access-no-such-file" — the child's WASI path_open/fd_readdir cannot access directories despite VFS being available via RPC. brush-shell also reports "WARN could not retrieve pid for child process" suggesting proc_spawn PID tracking has issues.
1298+
- **Learnings for future iterations:**
1299+
- cd builtin no longer hangs — the prior WASI path_filestat_get blocking issue was fixed in an earlier iteration
1300+
- brush-shell glob expansion (`echo /tmp/*`) does NOT work — outputs literal glob pattern
1301+
- Child process WASI VFS requires getInodeByIno to lazy-populate directory entries, but the root ls failure is in child Worker WASI initialization, not VFS population
1302+
- Pre-existing failures in driver.test.ts: cat /dev/null exits 1 (not 0), writeStdin to cat times out — not related to terminal tests
1303+
---

0 commit comments

Comments
 (0)