kshitijk4poor
1f6718b0ff
test(agent): prove the re-anchor through prepare_iteration; reuse the compaction _reanchor
...
The salvaged regression test exercised only repair_message_sequence and
reanchor_current_turn_user_idx — pre-existing helpers — so reverting the fix left it
green. It now drives prepare_iteration on a real AIAgent with adjacent user rows and
asserts the returned index addresses this turn's row and mirrors into
_persist_user_message_idx (red without the re-anchor: IndexError).
Both re-anchor sites (repair and compression restart) call
turn_context_compaction._reanchor instead of inlining "reanchor + mirror", so they
cannot drift. The export tests fold into one parametrized invariant plus the
run_conversation envelope test; the WHAT-restating comment shrinks to the WHY.
2026-09-09 12:20:04 +05:30
..
2026-09-07 07:10:28 -07:00
2026-09-07 16:48:29 -07:00
2026-09-07 21:43:54 +05:30
2026-09-06 20:50:02 +05:30
2026-09-08 02:27:01 +05:30
2026-09-07 08:24:54 -07:00
2026-09-07 06:15:43 -07:00
2026-09-07 08:07:26 -07:00
2026-09-06 05:37:03 -07:00
2026-09-06 05:37:03 -07:00
2026-09-07 21:43:54 +05:30
2026-09-07 07:06:58 -07:00
2026-09-07 06:02:22 -07:00
2026-09-07 07:06:58 -07:00
2026-09-09 12:19:13 +05:30
2026-09-07 07:08:25 -07:00
2026-09-07 05:24:15 -07:00
2026-09-07 05:24:15 -07:00
2026-09-07 06:07:16 -07:00
2026-09-07 21:43:54 +05:30
2026-09-07 08:09:57 -07:00
2026-09-06 22:45:31 +05:30
2026-09-07 21:22:49 -07:00
2026-09-07 08:13:01 -07:00
2026-09-07 05:59:08 -07:00
2026-09-07 14:11:41 -07:00
2026-09-08 13:37:01 -07:00
2026-09-09 12:20:04 +05:30
2026-09-07 08:06:48 -07:00
2026-09-07 08:06:48 -07:00
2026-09-07 06:15:43 -07:00
2026-09-07 08:19:32 -07:00
2026-09-07 07:10:28 -07:00
2026-09-09 12:17:29 +05:30
2026-09-07 07:08:25 -07:00
2026-09-07 21:10:50 -07:00
2026-09-07 08:08:04 -07:00
2026-09-06 14:19:42 -07:00
2026-09-07 06:05:13 -07:00
2026-09-05 13:51:06 -07:00
2026-09-07 08:28:43 -07:00
2026-09-07 06:05:13 -07:00
2026-09-07 06:15:43 -07:00
2026-09-07 21:43:54 +05:30
2026-09-07 21:43:54 +05:30
2026-09-06 09:09:00 -07:00
2026-09-06 09:11:04 -07:00
2026-09-09 12:17:57 +05:30
2026-09-08 13:39:01 -07:00
2026-09-07 21:43:54 +05:30
2026-09-07 08:24:54 -07:00
2026-09-08 04:38:47 -07:00
2026-09-07 06:15:43 -07:00
2026-09-06 05:35:12 -07:00
2026-09-09 10:32:01 +05:30
2026-09-07 07:10:28 -07:00
2026-09-07 07:10:28 -07:00
2026-09-09 10:31:26 +05:30
2026-09-09 10:31:26 +05:30
2026-09-07 08:28:43 -07:00
2026-09-06 22:56:51 +05:30
2026-09-06 13:21:17 -07:00
2026-09-09 12:20:04 +05:30
2026-09-07 06:06:20 -07:00
2026-09-09 12:17:57 +05:30
2026-09-07 08:13:01 -07:00
2026-09-09 12:20:04 +05:30
2026-09-09 12:17:57 +05:30
2026-09-06 13:21:17 -07:00
2026-09-06 13:21:17 -07:00
2026-09-06 21:37:47 +05:30
2026-09-07 06:15:43 -07:00
2026-09-06 14:19:42 -07:00
2026-09-06 13:21:17 -07:00
2026-09-07 21:43:54 +05:30