File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 13751375 " Tests pass"
13761376 ],
13771377 "priority" : 81 ,
1378- "passes" : false ,
1378+ "passes" : true ,
13791379 "notes" : " Phase 1 of terminal-e2e-testing.md spec. Uses MockRuntimeDriver \u2014 no WASM binary required."
13801380 },
13811381 {
Original file line number Diff line number Diff line change @@ -1264,3 +1264,16 @@ PRD: ralph/kernel-hardening (46 stories)
12641264 - WasmVM copy has 5s default timeout vs kernel's 2s — WasmVM shell commands are slower
12651265 - Shell death detection uses Promise.race with 0ms timeout to non-blockingly check shell.wait()
12661266---
1267+
1268+ ## 2026-03-17 - US-081
1269+ - Already implemented in prior iteration — packages/kernel/test/shell-terminal.test.ts (276 lines, 10 tests)
1270+ - MockShellDriver reads PTY slave FDs, implements echo/noecho/^C/^D commands
1271+ - All assertions use exact-match screenshotTrimmed() — no toContain/substring
1272+ - Tests pass: 10/10 in 797ms
1273+ - Typecheck passes
1274+ - Marked passes: true in prd.json
1275+ - **Learnings for future iterations:**
1276+ - MockShellDriver reads from ctx.fds.stdin/stdout (kernel-assigned FDs), not hardcoded 0/1
1277+ - PTY line discipline handles echo, backspace, ^C→SIGINT — mock shell just reads cooked lines
1278+ - \x03 = ^C (SIGINT), \x04 = ^D (EOF), \x7f = backspace in terminal input
1279+ ---
You can’t perform that action at this time.
0 commit comments