From 538a5d926fa626a00cc3dc12c555f11f82867efd Mon Sep 17 00:00:00 2001 From: t Date: Mon, 22 Jun 2026 18:18:28 -0600 Subject: libpanto ponytail-audit simplifications --- libpanto/src/compaction.zig | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'libpanto/src/compaction.zig') diff --git a/libpanto/src/compaction.zig b/libpanto/src/compaction.zig index dfa3242..f620f30 100644 --- a/libpanto/src/compaction.zig +++ b/libpanto/src/compaction.zig @@ -222,14 +222,8 @@ pub fn computeSplit( ) Split { if (usages) |u| std.debug.assert(u.len == messages.len); - const active_start = blk: { - if (conversation.latestCompactionIndex(messages)) |anchor| { - // The summary message itself anchors the window; active turns - // begin after it. - break :blk anchor + 1; - } - break :blk 0; - }; + // The summary message itself anchors the window; active turns begin after it. + const active_start = if (conversation.latestCompactionIndex(messages)) |anchor| anchor + 1 else 0; // Identify turn boundaries within the active window. A turn starts at a // user message that is NOT purely tool-results (a fresh human/user -- cgit v1.3