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-03 13:12:23 -07:00
2026-09-06 13:21:17 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 14:00:59 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-08-16 10:51:11 -07:00
2026-08-07 18:07:19 +05:30
2026-09-03 14:00:59 -07:00
2026-07-27 11:53:48 -04:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-08-14 21:41:26 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 14:37:14 -07:00
2026-09-09 10:32:49 +05:30
2026-09-07 06:15:43 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:27:01 -07:00
2026-09-02 13:28:41 +05:30
2026-09-03 14:21:52 -07:00
2026-08-29 22:29:28 +05:30
2026-08-02 21:17:49 +05:30
2026-08-04 11:25:18 +05:30
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-08-24 15:30:30 +05:30
2026-07-29 13:10:23 -07:00
2026-09-03 13:29:35 -07:00
2026-07-29 13:10:23 -07:00
2026-09-02 18:17:52 -07:00
2026-07-29 13:10:23 -07:00
2026-08-15 10:22:47 +05:30
2026-07-29 13:10:23 -07:00
2026-09-06 13:21:17 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:46:50 -07:00
2026-09-08 13:37:01 -07:00
2026-09-03 13:12:23 -07:00
2026-08-26 07:16:04 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-07 06:06:20 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 14:00:59 -07:00
2026-07-29 13:10:23 -07:00
2026-08-15 13:36:25 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-01 21:42:19 -07:00
2026-09-03 13:28:22 -07:00
2026-08-03 20:43:38 +05:30
2026-09-03 03:41:52 -07:00
2026-09-03 14:00:59 -07:00
2026-09-03 13:46:50 -07:00
2026-09-09 12:20:04 +05:30
2026-09-05 15:54:14 +05:30
2026-08-30 05:16:10 -07:00
2026-09-02 13:29:40 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-02 16:57:21 +05:30
2026-09-03 13:28:22 -07:00
2026-08-13 21:38:30 +02:00
2026-08-03 22:53:32 +05:30
2026-09-03 13:28:22 -07:00
2026-09-02 13:30:15 -07:00
2026-09-01 09:28:31 -07:00
2026-08-20 11:36:54 +05:30
2026-08-30 19:46:11 -07:00
2026-09-03 03:31:03 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-08-23 18:25:19 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:48:49 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-01 14:56:30 +05:30
2026-07-29 13:10:23 -07:00
2026-08-21 15:02:29 -07:00
2026-07-29 13:10:23 -07:00
2026-07-31 21:52:36 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-08-30 05:15:54 -07:00
2026-08-21 17:24:22 +05:30
2026-08-30 05:16:10 -07:00
2026-08-30 05:16:10 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:12:23 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-02 18:45:20 -07:00
2026-09-03 13:28:22 -07:00
2026-08-12 19:15:02 -07:00
2026-09-06 09:09:00 -07:00
2026-08-25 03:55:55 -07:00
2026-09-07 14:11:41 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-09-06 09:09:00 -07:00
2026-09-03 13:28:22 -07:00
2026-09-07 07:08:25 -07:00
2026-09-07 07:06:58 -07:00
2026-08-20 00:03:50 +05:30
2026-09-09 12:20:04 +05:30
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-08-25 12:12:08 +05:30
2026-09-04 08:15:22 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-08 13:36:05 -07:00
2026-09-03 13:28:22 -07:00
2026-09-03 13:28:22 -07:00
2026-08-02 16:16:36 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-07 08:14:14 -07:00
2026-08-06 03:53:38 +05:30
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-08-14 22:11:30 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-08-16 01:55:00 -07:00
2026-09-03 04:46:41 +05:30
2026-09-03 13:28:22 -07:00
2026-09-05 10:54:19 +05:30
2026-09-03 13:28:22 -07:00
2026-09-03 03:42:15 -07:00
2026-08-08 14:08:44 -07:00
2026-09-03 14:00:59 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:16:47 -07:00
2026-07-29 13:10:23 -07:00
2026-08-13 21:38:30 +02:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:46:50 -07:00
2026-08-14 21:20:03 -07:00
2026-09-03 15:50:55 -07:00
2026-09-03 13:28:22 -07:00
2026-07-29 13:10:23 -07:00
2026-09-03 13:28:22 -07:00
2026-09-07 02:30:04 -07:00
2026-09-03 14:37:14 -07:00
2026-09-03 13:28:22 -07:00
2026-09-07 06:06:20 -07:00
2026-09-01 03:19:59 +05:30
2026-09-03 16:35:01 -07:00
2026-09-07 08:08:41 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00
2026-07-29 13:10:23 -07:00