fix/resource-watchdog-ulimit-bypass #73
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/resource-watchdog-ulimit-bypass"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
- Remove the silent command.includes('ulimit -v ') skip in wrapBashWithChildEnvelope() so comments, quoted strings, or trailing ulimit calls cannot bypass child virtual-memory wrapping. - Replace fail-open 'ulimit -v <kb> 2>/dev/null || true' with an explicit fail-closed check (exit 126 + truthful stderr noting RLIMIT_AS, not host RSS) so protected bash calls never run uncapped when ulimit -v fails. - Extend the existing 1,536 MiB virtual-memory arena floor (V8_VMEM_CAGE_MB + 323) to Go binaries (go, zot, colibri, bherdr) alongside V8 runtimes without altering any tier profile values. - Clarify header/inline comments that this is a per-child Pi tool_call hygiene guard (not host-wide RSS enforcement or an unbypassable OS boundary), preserving RESOURCE_WATCHDOG_DRY_RUN=1 semantics. - Add focused unit + POSIX /bin/sh tests in hooks/tests/test_resource_watchdog.py.