e518bc22c4
- Prevented compaction from reopening a settled terminal answer unless queued work or an active goal remains. - Ran auto-learn capture in an abortable detached agent with constrained tools and isolated provider state. - Replaced primary-turn capture coverage with private-capture regression tests. Fixes #5715