mirror of
https://github.com/morluto/rea.git
synced 2026-10-19 04:19:54 -05:00
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>