Commit Graph
2 Commits
Author SHA1 Message Date
SrijanSriv e8b5d276a4 fix(extract): keep shrink accounting out of graph.json
The prune counter included a stub created in this run, so it could
excuse a dedup shrink. Count only nodes that were already saved.
Strip both counters inside to_json so other writers cannot persist them.

Co-Authored-By: Grok 4.7 <noreply@x.ai>
(cherry picked from commit 294946d4ce)
2026-10-04 02:09:34 +01:00
SrijanSriv daee93f782 fix(extract): refuse a dedup shrink unless the user accepts it
A finished extract force-writes, so the node-count check never sees a
graph that dedup made smaller. Refuse that overwrite and name
--allow-dedup-shrink. A deleted file still writes.

Fixes #3774

Co-Authored-By: Grok 4.7 <noreply@x.ai>
(cherry picked from commit 686bef5855)
2026-10-04 02:08:29 +01:00