mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 14:36:35 +09:00
* feat(mods): compactSnapshot — pre-compaction transcript snapshot + one-shot reload block (ADR-505) New ruflo-mods option compactSnapshot (default on). On a main-loop manual/auto/plugin session.compact it writes the transcript about to be summarized to .claude-flow/sessions/compactions/snapshot-<n>.jsonl (role, text <= 2000 chars, tool names/ids only; each line screened; 400 messages / 2 MiB; ten rotating slots), beside the compaction so it is never blocked, delayed or rewritten. The next non-slash prompt after a compaction that stood gets one [RUFLO_AFTER_COMPACT] context block (<= 2000 chars) from lessons shown this session, the last 5 loop outcomes, open swarm/claim ids and the snapshot path. ruflo doctor warns when snapshots exist and git would commit them. Co-Authored-By: RuFlo <ruv@ruv.net> * test(mods): isolate the ADR-505 doctor test from global git excludes; note precompute inference Co-Authored-By: RuFlo <ruv@ruv.net> * docs(adr): ADR-505 status names PR #4591 Co-Authored-By: RuFlo <ruv@ruv.net> * fix(mods): compactSnapshot screens raw message text before JSON encoding (ADR-505) JSON escaping put a backslash before quotes and encoded newlines, so the key-assignment rule missed "api_key": "..." / password="..." and the line-start role-tag rule missed a \nsystem: line; those were written to the snapshot in plaintext. messageLine now screens the raw cut text and the tool names, plus the encoded line as before. Negative-control test added. Co-Authored-By: RuFlo <ruv@ruv.net> * chore(ruflo-mods): 0.10.0 for ADR-505 --------- Co-authored-by: r <r@x>