Commit Graph
4 Commits
Author SHA1 Message Date
morluto fcc357b936 perf(process): avoid full-chunk Buffer.concat in ProcessOutputTokenScanner (#13727)
* perf(process): avoid full-chunk Buffer.concat in ProcessOutputTokenScanner

* fix(process): preserve token line truncation at chunk boundaries
2026-11-23 00:45:25 +00:00
morluto b795aee553 perf(process): wake OwnedCommand on output close, lazily materialize diagnostic snapshots, and bound tail copies (#13261)
* perf(process): wake OwnedCommand on output close, lazily materialize diagnostic snapshots, and bound tail copies

* fix(process): capture event-time bytes in diagnostic snapshots and make wrap test independent
2026-11-22 03:15:02 -05:00
morluto bbe2bcc979 refactor: remove legacy seams and consolidate resource ownership (#10349) 2026-11-13 04:45:16 -05:00
91884c3743 fix(ghidra): own operation-scoped JVM failure evidence
Scan provider output before retention and keep bounded confirmed token facts
through output completion. Exclude identifier prefixes, pre-checkpoint context,
and unconfirmed tails; preserve invalid UTF-8 and directional truncation facts.

Make confirmed OOME observations authoritative for projection. Retained raw
prefixes cannot establish an OOME, and unrelated output cannot supply its
resource kind or recovery advice. Incomplete no-OOME output preserves the
primary error and explains uncertainty. Current checkpoint coverage remains
separate from historical budget loss.

Adapt the retention approach from #4774 with independently reproduced scanner
and projection counterexamples corrected before integration.

Validation: 268 focused tests, npm run check, npm run docs:check, and test
discovery (1639 files exactly once) pass. Controlled Node pipes/socket and fake
Ghidra JVM only; real Ghidra and native Linux/Windows behavior are unverified.

Fixes #4682
Fixes #5220

Co-authored-by: reason-machines[bot] <293529679+reason-machines[bot]@users.noreply.github.com>
Co-authored-by: Saim Shafique <msaimshafique4664@gmail.com>
2026-10-19 17:15:32 +08:00