{"version":"2.1.219","anchor":"compaction-hook-plumbing-reworked","canonical_anchor":"compaction-hook-plumbing-reworked","heading":"Compaction hook plumbing reworked","tier":"internal","area":"Compaction","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.219\/e\/compaction-hook-plumbing-reworked","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.219","markdown":"### Compaction hook plumbing reworked\n\nAutomatic compaction passes more context when rebuilding attachments and handles failures on a dedicated path.\n\n**What**\n\nThe reactive-compaction path passes more context into attachment building and handles failures through a dedicated path.\n\n**Details**\n\n- The attachment builder is now called with the message list and an agent-context descriptor in addition to its previous arguments.\n- Errors go through a dedicated handler rather than a generic catch that logged and returned empty attachments.\n\n**Evidence**\n\n`reactive_compact`\n\n- Area: Compaction\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 0\/5"}