Skip to content

Commit bd2de8f

Browse files
NathanFlurryclaude
andcommitted
chore: move incomplete prd.json stories to todo.md, delete ralph artifacts
Migrated 26 incomplete stories (make, git, codex, test fixes) from scripts/ralph/prd.json into docs-internal/todo.md. Deleted prd.json, all backups, progress.txt, and archived ralph runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a1c2c6e commit bd2de8f

File tree

17 files changed

+88
-12724
lines changed

17 files changed

+88
-12724
lines changed

docs-internal/todo.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,94 @@ See `docs-internal/specs/v8-perf-research.md` for detailed profiling data and an
229229
- Job fails (no PR opened) if `cargo test` or TypeScript tests fail — prevents broken updates from being proposed
230230
- Files: `.github/workflows/v8-update.yml`, `crates/v8-runtime/Cargo.toml`
231231

232+
## WasmVM: Test Fixes (pre-existing on main)
233+
234+
- [ ] Fix kernel PTY flaky test — single large write EAGAIN.
235+
- test/resource-exhaustion.test.ts 'single large write (1MB+)' expects immediate EAGAIN but PTY ring buffer can accept some data before blocking.
236+
- Files: `packages/kernel/test/resource-exhaustion.test.ts`
237+
238+
- [ ] Fix Node RuntimeDriver kernel integration tests (11 of 25 failing).
239+
- Kernel integration tests (node -e, node -p, node script) fail — V8 runtime process spawn or session setup issues. Exploit/abuse tests return code:undefined instead of code:EACCES. Concurrent PID test returns 'err' for all spawns.
240+
- Files: `packages/runtime/node/test/driver.test.ts`
241+
242+
- [ ] Fix V8 crash isolation test timeouts.
243+
- crash-isolation.test.ts and process-isolation.test.ts timeout at 30s. V8 process crash detection or IPC cleanup too slow.
244+
- Files: `packages/secure-exec-v8/test/crash-isolation.test.ts`, `packages/secure-exec-v8/test/process-isolation.test.ts`
245+
246+
- [ ] Fix crossterm vendor patch auto-apply in patch-vendor.sh.
247+
- `patch -R --dry-run` gives false positives for patches that add new files. Forward-apply check should run first.
248+
- Files: `wasmvm/scripts/patch-vendor.sh`
249+
250+
- [ ] Fix C parity test WASM exit code 17 for non-patched programs.
251+
- All C programs compiled against patched wasi-libc import host_user.isatty. Verify host_user imports are provided correctly for C-built WASM binaries and isatty signature matches between C sysroot patch and kernel-worker.ts.
252+
- Files: `packages/runtime/wasmvm/src/kernel-worker.ts`, `wasmvm/c/Makefile`, `wasmvm/patches/wasi-libc/`
253+
254+
- [ ] Fix secure-exec main test suite failures from build cascade.
255+
- UpgradeSocket bridge refs fix (already committed) should resolve most failures. Verify after rebuild. Remaining failures may be Node runtime driver issues (above) or missing pyodide.
256+
- Files: `packages/secure-exec-core/src/shared/bridge-contract.ts`
257+
258+
## WasmVM: GNU Make (real upstream, not reimplementation)
259+
260+
- [ ] Vendor real GNU make — download, configure, and patch for WASM.
261+
- Previous clean-room reimplementation was deleted (violated Tool Integration Policy). Must compile real GNU make to wasm32-wasip1.
262+
263+
- [ ] make basic test suite.
264+
- Tests proving make can execute basic Makefiles with variables, recipes, and dependencies.
265+
266+
- [ ] make advanced test suite.
267+
- Tests for pattern rules, includes, conditionals, shell functions, and error handling.
268+
269+
## WasmVM: Git (real upstream, not reimplementation)
270+
271+
- [ ] Vendor real git source and compile for WASM.
272+
- Previous clean-room reimplementation (2925 lines) was deleted (violated Tool Integration Policy). Must compile real git (likely via libgit2 or actual git source) to wasm32-wasip1.
273+
274+
- [ ] git local commands — init, add, commit, status, log, diff.
275+
- Core porcelain commands compiled for WASM.
276+
277+
- [ ] git local test suite — filesystem operations.
278+
279+
- [ ] git branching — branch, checkout, merge, tag + test suite.
280+
281+
- [ ] git remote commands — clone, fetch, push, pull (HTTP/HTTPS via libcurl).
282+
283+
- [ ] git remote test suite — network operations.
284+
285+
## WasmVM: Codex (rivet-dev/codex fork)
286+
287+
- [ ] Delete fake codex stubs and fork real codex-rs to rivet-dev/codex.
288+
- Existing `wasmvm/crates/commands/codex/` and `codex-exec/` are fake stubs that print "agent loop is under development". Delete them. Fork `openai/codex` to `rivet-dev/codex`.
289+
290+
- [ ] Add WASI cfg gates to codex-rs fork — core dependencies.
291+
- Gate tokio process/signal/rt-multi-thread, portable-pty, reqwest, landlock/seccompiler behind `cfg(not(target_os = "wasi"))`.
292+
293+
- [ ] Add WASI cfg gates to codex-rs fork — spawn and exec.
294+
- Replace `tokio::process::Command` with `host_process_spawn` from wasi-ext on WASI.
295+
296+
- [ ] Add WASI cfg gates to codex-rs fork — PTY and unified exec.
297+
- Replace `portable-pty` with host_process PTY support on WASI.
298+
299+
- [ ] Add WASI HTTP client to codex-rs fork replacing reqwest.
300+
- Build HTTP client on host_net TCP/TLS imports for API calls.
301+
302+
- [ ] Stub codex-network-proxy and codex-otel in the fork for WASI.
303+
- No-op implementations for network proxy and telemetry on WASI.
304+
305+
- [ ] Build real codex-exec WASM binary from fork (headless mode).
306+
- The binary MUST be the real codex-exec from the fork. Verify --help shows clap-derived output with 'resume' subcommand.
307+
308+
- [ ] Headless codex-exec integration tests with real agent.
309+
- Verify real agent loop, clap-generated --help, not a hand-written placeholder.
310+
311+
- [ ] Build real codex TUI WASM binary from fork.
312+
- Real codex-cli with complex TUI layout (model selection, conversation history, tool calls), not a simple ratatui demo.
313+
314+
- [ ] TUI codex integration tests with real agent.
315+
- Verify real codex UI elements, not "Welcome to Codex on WasmVM" placeholder.
316+
317+
- [ ] Update docs for real codex WasmVM integration.
318+
- Document rivet-dev/codex fork as Tier 3 in wasmvm/CLAUDE.md with all WASI patches.
319+
232320
## Spec-Hardening Cross-References (items 29-42)
233321

234322
Items below are tracked in detail in `docs-internal/spec-hardening.md`. Kept here for backlog visibility.

0 commit comments

Comments
 (0)