Skip to content

02.nov.2026

Illustrative framing scene (fictional motif): a short exchange on why V8 heap flags alone cannot protect a 2 GiB appliance from child-process memory spikes, and why hypervisor teardown must never chain kill and bhyvectl --destroy.

Operator: We have our modified clawdie-quindecim ISO booted inside a 2 GiB (1,998 MiB) bhyve guest on valhala in window 5:2gb-bhyve. How does the resource watchdog hold up when a child tool tries to allocate past the tier envelope? Clawdie: Under an inherited limits -v 1536m, an unwrapped python3 child inherits the full 1,536 MiB virtual address space needed by Node/V8 and balloons to 1,070.2 MiB RSS. Once wrapBashWithChildEnvelope prepends the per-tier ulimit -c 0; ulimit -v envelope, child RSS caps cleanly at 492.5 MiB on small-2g (≤ 524 MiB) and 251.9 MiB on nano-512m (≤ 267 MiB). Jev: My 3×3 1.14.0 evaluation rejected chained kill; sleep 1; bhyvectl --destroy; rm pidfile commands in favor of a 4-step verified state machine (3.60 / 4.00, choice = 0.99) and scored the calibrated <Requested, Allocated, Available> watchdog at 3.99 / 4.00. Agy: We also merged sync/upstream-v0.9.5 (#26 → 1543e3b6) on clawdie/herdr, pruned four zero-patch-ID branches, and updated check-dates.sh with full calendar and leap-year validation for Slovenian and Croatian DD.MM.YYYY[.] prose dates.

WorkstreamResultStatus and evidence
Live 2 GiB bhyve Resource Watchdog Verification (5:2gb-bhyve)Verified small-2g (1 subagent slot) and nano-512m (0 subagent slots, 1 sequential tool slot), child virtual-memory envelopes (492.5 MiB vs. 1,070.2 MiB unfixed), and protected-tree crawl blocking (dummy64MbBytesRead = 0) on usb.clawdie.home.arpa (1,998 MiB RAM, 14/14 unit tests)Verified on Valhala: 2 GiB bhyve Report JSON · Jev Row 2 JSON
Stepwise bhyve, bastille, and tmux Teardown Discipline (3×3 Jev 1.14.0)Replaced chained kill; sleep 1; bhyvectl --destroy with a 4-step state machine (poweroff/ACPI SIGTERM → poll kill -0 <pid> → disconnect cu → bhyvectl --destroy → verify /dev/vmm/<vm> absent), literal tmux send-keys -l (<= 60 chars/line), and #{pane_in_mode} == 0 checksCodified: Jev Row 1 JSON · Jev Row 3 JSON
clawdie/herdr Branch Triage & CleanupMerged sync/upstream-v0.9.5 (#26 → 1543e3b6, P = 1.00), deleted 4 zero-patch-ID branches (feat/freebsd-port-15.1, sync/upstream-0.9.1, docs/wiki, issue/3798-selection-host-colors), and rebased docs/documentation-workflow-clawdie (f026f921)Merged & Pruned: herdr 1543e3b6 · herdr Triage JSON
Calendar-Validated sl/hr Date Gate (check-dates.sh)Added full month-length and leap-year validation (4/4 --self-check assertions); explicitly Slovenian and Croatian prose in samob accepts valid 4-digit dotted DD.MM.YYYY[.] (31.10.2026.) alongside DD.mmm.YYYY, while English and shared prose keep strict DD.mmm.YYYYVerified in CI: samob 17819fd

1. Live 2 GiB FreeBSD 15.1 bhyve Verification & Child-Process Memory Envelopes

Section titled “1. Live 2 GiB FreeBSD 15.1 bhyve Verification & Child-Process Memory Envelopes”

On valhala, we booted the clawdie-quindecim image inside a 2 GiB (-m 2048, 1,998 MiB guest RAM) bhyve VM (3:root running bhyve and 5:2gb-bhyve attached via cu -l /dev/nmdm2gB):

FreeBSD 15.1 loader and ZFS kernel boot inside the 2 GiB bhyve VM over serial console nmdm2gB

While the verification suite ran inside usb.clawdie.home.arpa, btop on valhala tracked bhyve: clawdie-2g-test (PID 80657, 12 threads, 182 MiB host resident memory alongside the active cu serial connection):

Valhala btop view monitoring the running 2 GiB bhyve VM process 80657

Running the live probe (2gb-bhyve-verification.json) caught and fixed three concrete resource-boundary bugs in hooks/resource-watchdog.ts:

  1. Per-child ulimit envelope (T2_childEnvelope): Because Node.js/V8 on FreeBSD requires ~1,536 MiB of virtual address space (RLIMIT_AS) for its pointer-compression cage, an unwrapped python3 subprocess inheriting limits -v 1536m grew to 1,070.2 MiB RSS. Wrapping non-Node tool commands via wrapBashWithChildEnvelope (ulimit -c 0; ulimit -v 786432 on small-2g and 450560 on nano-512m) deterministically capped child RSS at 492.5 MiB (≤ 524 MiB) and 251.9 MiB (≤ 267 MiB).
  2. Separating usableNodeRssCeilingMb from the tier budget (T1_rlimit1536m): Under limits -v 1536m, the tier downgrades to nano-512m (usableNodeRssCeilingMb = 323 MiB, availableSubagentSlots = 0), while a 98 MiB parent retains 350 MiB of tier headroom for 1 sequential tool slot (267 MiB).
  3. Pre-execution scope gate (T4_scopeGate): Recursive scans (find, rg, grep -R) targeting ~/.config, ~/.gemini, ~/.pi, ~/ai/**, or transcript_full.jsonl are blocked before reading a single byte (dummy64MbBytesRead = 0), while direct single-file access to ~/.config/clawdie/jev.env remains permitted.

2. Stepwise Hypervisor Teardown (3×3 Jev 1.14.0) & clawdie/herdr Branch Triage

Section titled “2. Stepwise Hypervisor Teardown (3×3 Jev 1.14.0) & clawdie/herdr Branch Triage”

Tearing down the bhyve test instance exposed the same failure mode we previously eliminated in Bastille jail && chains: chaining kill $(cat pid); sleep 1; bhyvectl --destroy; rm -f pid assumes hypervisor exit completes within one second. Three parallel subagents evaluated a 3×3 matrix with Jev 1.14.0 (jev-3x3-row1-lifecycle.json, jev-3x3-row2-watchdog.json, jev-3x3-row3-merge-iso.json) and codified a strict 4-step state machine (3.60 / 4.00, choice = 0.99):

  • Step 1: Initiate guest poweroff (or a single unchained ACPI SIGTERM).
  • Step 2: Poll kill -0 <pid> until hypervisor process exit is proven.
  • Step 3: Disconnect cu (~.) and run bhyvectl --vm=<name> --destroy.
  • Step 4: Verify /dev/vmm/<name> is absent before removing the PID file.

We then triaged the seven open branches on clawdie/herdr (jev-herdr-post-merge-triage.json):

Forgejo clawdie/herdr open branches before merging sync/upstream-v0.9.5 and pruning stale branches

After merging sync/upstream-v0.9.5 (herdr PR #26 → 1543e3b6), we deleted four branches with zero unique patch-IDs against master and rebased docs/documentation-workflow-clawdie (f026f921, +1 / -0).


3. Calendar-Validated sl/hr Date Gate & Continuation Plan

Section titled “3. Calendar-Validated sl/hr Date Gate & Continuation Plan”

To resolve the CI failure on the Croatian diary heading (### Potvrda · 31.10.2026.) without rewriting existing prose, we updated scripts/check-dates.sh and AGENTS.md (samob 17819fd):

  • Shared and English prose (src/content/docs/en/**) continues to require DD.mmm.YYYY (02.nov.2026) and rejects all numeric dates.
  • Explicitly Slovenian (src/content/docs/{diary,cv,guides,projects}/**) and Croatian (src/content/docs/hr/**) prose in samob accepts both DD.mmm.YYYY and calendar-validated 4-digit dotted DD.MM.YYYY[.] dates (checking month lengths and leap years across 4/4 --self-check assertions).
  1. Bottom-Up 5-Repo Merge Sequence:
    • agent-skills: commit and merge the <Requested, Allocated, Available> resource watchdog (hooks/resource-watchdog.ts + 14/14 unit tests) and test-harness-isolation lifecycle rules.
    • herdr: merge the rebased docs/documentation-workflow-clawdie (f026f921) PR.
    • zot (feat/openviking-extension-ovcli, d51157b) → colibri (feat/sysctl-posture-oxy-hydration-0.15.1 and feat/node-island-origin-and-rcorder) → clawdie-iso (feat/asgard-vaultwarden-mesh-server).
  2. Fresh clawdie-quindecim ISO Build on valhala: Rebuild the ISO from clean main so the image embeds the signed 15.1-RELEASE packages (zot, colibri, openviking, agent-vault) and updated watchdog hooks.
  3. Live 2 GiB bhyve zot vs. pi Benchmark: Boot the fresh ISO in 5:2gb-bhyve and compare live RSS and latency measurements against our pre-recorded Jev 1.14.0 baseline predictions (jev-zot-vs-pi-predictions.json).