Skip to content

Commit 2f6b26b

Browse files
committed
chore: add cross-runtime patterns to progress.txt
1 parent 5a66b46 commit 2f6b26b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

progress.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ PRD: ralph/kernel-hardening (46 stories)
9898
- Console output (logRef/errorRef) should NOT count against maxBridgeCalls — output has its own maxOutputBytes budget; counting it would exhaust the budget during error reporting
9999
- Per-execution budget state: `budgetState` object reset via `resetBudgetState()` before each context creation (executeInternal and __unsafeCreateContext)
100100
- Kernel maxProcesses: check `processTable.runningCount() >= maxProcesses` in spawnInternal before PID allocation; throws EAGAIN
101+
- Cross-runtime spawn (WasmVM→Node, WasmVM→Python): kernel.spawnInternal registers child PID in parent's driver PID set AND inherits parent's onStdout/onStderr callbacks when stdout is not piped
102+
- kernel.exec() always runs `sh -c command` through brush-shell — all cross-runtime commands go through WasmVM proc_spawn
101103
- ERR_RESOURCE_BUDGET_EXCEEDED is the error code for all bridge resource budget violations
102104
- maxBuffer enforcement: host-side for sync paths (spawnSyncRef tracks bytes, kills, returns maxBufferExceeded flag), bridge-side for async paths (exec/execFile track bytes, kill child); default 1MB for exec/execSync/execFile/execFileSync, unlimited for spawnSync
103105
- Adding a new bridge fs operation requires 10+ file changes: types.ts, all 4 VFS impls, permissions.ts, bridge-contract.ts, global-exposure.ts, setup-fs-facade.ts, runtime-globals.d.ts, execution-driver.ts, bridge/fs.ts, and runtime-node adapters

0 commit comments

Comments
 (0)