change-report-narrative-v1.test.mjs: ok
✔ deploy/pi-agent/change-report-narrative-v1.test.mjs (61.937041ms)
✔ withResultV1 is additive and strips stderr (1.191542ms)
✔ typedErrorCode is allowlisted and ignores raw stderr (0.104958ms)
✔ path escape members are omitted (0.778875ms)
✔ truncateExecutionLogContent keeps only the tail (0.178333ms)
✔ oversized patch content is dropped from both members and patches (0.854459ms)
✔ capPatches truncates execution.log and enforces total wire budget (0.32525ms)
✔ withResultV1 wire estimate stays under soft budget for truncated logs (3.463917ms)
settle-policy.test.mjs PASS
✔ deploy/pi-agent/settle-policy.test.mjs (56.850792ms)
ℹ tests 9
ℹ suites 0
ℹ pass 9
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 89.694625
