shafdev
bd70d7387a
fix(agent): lock save_trajectory() appends so concurrent processes cannot corrupt the JSONL
...
Gateway sessions and batch workers append to the same default
trajectory_samples.jsonl / failed_trajectories.jsonl with a plain open("a") +
write(); concurrent writers interleaved mid-object and the file stopped
parsing (#12684 ). The append now holds an exclusive lock for write+flush:
flock on POSIX, a 1-byte msvcrt.locking range on Windows.
Tests: a foreign process holding the lock must block the append (red on
base); six processes appending oversized entries all land parseable.
Fixes #12684 . Salvaged from #12685 by @shafdev; Windows arm and test trim ours.
2026-09-12 08:25:14 -07:00
..
2026-09-07 04:46:04 -07:00
2026-09-11 19:50:46 -07:00
2026-09-12 08:25:14 -07:00
2026-09-06 07:19:21 -07:00
2026-09-11 11:54:49 -07:00
2026-09-12 08:21:08 -07:00
2026-09-07 22:47:33 +05:30
2026-09-12 08:25:09 -07:00
2026-09-12 08:24:52 -07:00
2026-09-11 06:37:27 -07:00
2026-09-10 10:45:57 -07:00
2026-09-07 10:24:17 +02:00
2026-09-12 08:06:48 -07:00
2026-09-07 06:06:46 -07:00
2026-09-11 06:37:27 -07:00
2026-09-12 07:54:04 -07:00
2026-09-11 11:54:49 -07:00
2026-09-11 06:37:27 -07:00
2026-09-12 08:23:28 -07:00
2026-09-12 07:59:59 -07:00
2026-09-09 02:35:41 -07:00
2026-09-09 04:38:01 -07:00
2026-09-11 19:01:47 -07:00
2026-09-07 22:47:33 +05:30
2026-09-10 11:48:01 -07:00
2026-09-12 05:13:50 -07:00
2026-09-06 22:45:31 +05:30
2026-09-12 05:09:59 -07:00
2026-09-07 06:09:56 -07:00
2026-09-08 17:13:48 -07:00
2026-09-08 17:13:48 -07:00
2026-09-06 07:19:21 -07:00
2026-09-05 02:31:06 -07:00
2026-09-10 18:13:16 -07:00
2026-09-11 06:37:27 -07:00
2026-09-11 10:30:29 +10:00
2026-09-08 02:27:24 +05:30
2026-09-11 06:23:23 -07:00
2026-09-11 06:24:54 -07:00
2026-09-10 10:45:57 -07:00
2026-09-09 18:26:15 +05:30
2026-09-09 09:19:54 -07:00
2026-09-09 13:30:28 -07:00
2026-09-10 02:21:16 +05:30
2026-09-11 11:54:49 -07:00
2026-09-11 15:44:00 -07:00
2026-09-04 20:24:24 -04:00
2026-09-09 11:31:10 -07:00
2026-09-11 06:24:54 -07:00
2026-09-07 06:04:23 -07:00
2026-09-09 18:26:15 +05:30
2026-09-11 06:37:27 -07:00
2026-09-09 09:19:57 -07:00
2026-09-11 15:44:00 -07:00
2026-09-05 12:21:21 +05:30
2026-09-11 15:27:23 -07:00
2026-09-11 19:50:46 -07:00
2026-09-09 12:20:38 -07:00
2026-09-10 10:27:07 -07:00
2026-09-11 19:50:46 -07:00
2026-09-07 08:23:08 -07:00
2026-09-09 18:25:11 +05:30