Teknium
26e8e3f4d5
Memory entries stay removable after the char limit is lowered (salvage #133029 ) ( #144240 )
...
* fix(memory): an entry written before a limit was lowered stays removable
The drift guard reads any entry longer than the whole-file char limit as
free text an external writer appended, on the premise that no tool write
can produce one. Lowering memory_char_limit or user_char_limit breaks that
premise: a well-formed file whose entry was written under the old limit
then refuses every replace and remove (tool, approval replay and the
Journey/dashboard delete alike) and writes a .bak each time, while adds are
blocked by the total. Pruning, the documented way back under the limit, is
refused, so the store stays locked until hand-edited.
A file that round-trips but carries an oversized entry now refuses only a
write that adds or rewrites text. A write that only deletes entries goes
through; when it drops an oversized entry the .bak snapshot is still taken
first and returned as drift_backup, so text glued onto an entry without a
delimiter is never deleted without a copy. Round-trip mismatches are
refused as before.
* fix(memory): a refused write beside an oversized entry still names that entry
With deletions now allowed past an oversized entry, a replace or edit that blows the budget
because of that entry came back as a plain budget refusal ("shorten the new content") with no
snapshot, although the oversized entry is the real obstacle. An over-budget refusal next to an
oversized entry returns the drift error and its .bak again; other refusals (no match, would
empty the store) pass through unchanged. The Journey edit/delete closure reports its budget
refusal through _error so the class is visible.
The Journey drift test (43d3d4e851 ) pinned "delete is refused beside free text"; it now pins
the edit refusal and that a delete leaving the oversized entry in place goes through, which is
the ruling for #133028 (removes must work while the store is over its limit).
* fix(memory): delete-only batches prune past a lowered cap; snapshots never overwrite or go missing
Review round (Greptile on e0ca0c027a8):
- A remove-only batch skips the final budget check like a single remove (the empty-store guard
still applies), so pruning two small entries beside an oversized one is one call, not two.
- Snapshots are created exclusively (.bak.<ts>, then .bak.<ts>.<n>): two deletes of oversized
entries in the same second no longer overwrite the first snapshot with content that lacks
what the first delete removed.
- A delete that drops an oversized entry is refused when its snapshot could not be written,
instead of deleting possibly glued free text with no copy.
* test(memory): freeze the clock so the same-second snapshot test cannot pass by luck
Greptile on 2eba9c5e78a: with the real clock, two deletes straddling a second boundary get
distinct backup names even without exclusive creation. Pinning time.time makes the collision
certain; reverting to overwrite-mode writes now fails the test.
* chore: retrigger CI (lost synchronize event)
---------
Co-authored-by: John Paul Soliva <soliva.johnpaul@icloud.com >
2026-10-25 03:00:43 -07:00
..
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-23 01:43:09 -07:00
2026-10-23 01:41:24 -07:00
2026-10-10 15:20:13 +02:00
2026-10-22 05:26:10 -07:00
2026-10-15 22:12:28 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 03:50:22 -07:00
2026-10-08 00:49:32 -07:00
2026-10-08 21:38:54 -07:00
2026-10-17 08:29:20 -07:00
2026-10-11 19:27:06 +02:00
2026-10-16 05:44:47 -07:00
2026-10-10 17:47:35 -07:00
2026-10-16 07:09:45 -07:00
2026-10-22 05:26:10 -07:00
2026-10-10 17:47:35 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:56 -07:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-23 01:41:51 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-20 03:19:01 -07:00
2026-10-16 07:43:02 -07:00
2026-10-20 03:19:01 -07:00
2026-10-10 17:47:35 -07:00
2026-10-10 22:49:21 -07:00
2026-10-08 09:10:28 -07:00
2026-10-08 12:09:24 -07:00
2026-10-10 17:47:35 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:56 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:56 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:14 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:09 -07:00
2026-10-23 01:43:15 -07:00
2026-10-23 01:43:15 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:54 -07:00
2026-10-23 01:43:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:29 -07:00
2026-10-23 01:43:16 -07:00
2026-10-10 15:20:14 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-24 18:44:31 -07:00
2026-10-23 01:43:16 -07:00
2026-10-23 01:42:21 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:42:21 -07:00
2026-10-15 21:17:23 +02:00
2026-10-10 13:29:32 -07:00
2026-10-10 15:20:13 +02:00
2026-10-17 14:51:46 -07:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-12 22:25:50 -05:00
2026-10-16 17:42:48 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-13 01:35:42 +05:30
2026-10-14 02:14:52 +05:30
2026-10-21 15:46:19 +05:30
2026-10-14 02:14:52 +05:30
2026-10-13 01:35:42 +05:30
2026-10-13 01:35:42 +05:30
2026-10-23 06:08:27 +05:30
2026-10-13 23:55:11 +05:30
2026-10-13 01:35:42 +05:30
2026-10-21 15:46:19 +05:30
2026-10-14 00:32:21 +05:30
2026-10-10 15:20:13 +02:00
2026-10-14 00:06:58 +05:30
2026-10-08 19:22:03 +02:00
2026-10-22 05:26:10 -07:00
2026-10-22 05:26:10 -07:00
2026-10-08 19:22:03 +02:00
2026-10-08 03:50:22 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:14 +02:00
2026-10-23 16:04:50 -07:00
2026-10-20 03:22:11 -07:00
2026-10-08 17:22:54 +02:00
2026-10-18 20:17:19 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 05:44:47 -07:00
2026-10-23 00:37:14 -07:00
2026-10-18 20:48:21 -07:00
2026-10-22 14:37:10 -07:00
2026-10-10 15:20:13 +02:00
2026-10-22 14:37:10 -07:00
2026-10-08 17:22:54 +02:00
2026-10-11 11:55:56 -07:00
2026-10-10 15:20:13 +02:00
2026-10-24 18:48:01 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-18 10:49:17 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-20 17:41:05 -07:00
2026-10-08 19:22:03 +02:00
2026-10-12 13:41:29 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:42:20 -04:00
2026-10-10 15:20:13 +02:00
2026-10-12 22:25:50 -05:00
2026-10-08 19:22:03 +02:00
2026-10-19 01:31:31 -07:00
2026-10-09 17:31:52 +02:00
2026-10-10 15:20:14 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 22:12:27 +02:00
2026-10-23 15:33:14 -07:00
2026-10-22 05:26:10 -07:00
2026-10-20 04:03:52 -07:00
2026-10-12 13:41:29 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-08 19:22:03 +02:00
2026-10-10 15:20:13 +02:00
2026-10-24 18:45:02 -07:00
2026-10-12 13:41:29 -04:00
2026-10-08 19:22:03 +02:00
2026-10-22 05:26:10 -07:00
2026-10-23 01:41:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-20 12:30:50 -07:00
2026-10-23 15:54:23 -07:00
2026-10-19 01:31:31 -07:00
2026-10-09 15:36:14 -04:00
2026-10-19 01:31:31 -07:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-22 05:26:10 -07:00
2026-10-10 15:20:13 +02:00
2026-10-13 22:51:07 -04:00
2026-10-13 16:31:45 -04:00
2026-10-22 05:26:10 -07:00
2026-10-11 16:53:57 -07:00
2026-10-16 14:19:22 -07:00
2026-10-08 17:22:54 +02:00
2026-10-23 01:41:56 -07:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:21 +05:30
2026-10-20 03:22:11 -07:00
2026-10-12 18:25:59 -07:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-20 23:36:32 -04:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-23 17:40:33 -07:00
2026-10-23 17:40:33 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 18:37:22 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-19 07:27:50 -07:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-13 04:04:33 -07:00
2026-10-19 02:10:20 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-21 13:41:22 -07:00
2026-10-23 17:39:48 -07:00
2026-10-13 22:51:07 -04:00
2026-10-20 04:41:58 -07:00
2026-10-21 13:41:22 -07:00
2026-10-23 17:40:33 -07:00
2026-10-23 16:16:43 -07:00
2026-10-23 17:39:48 -07:00
2026-10-23 16:54:27 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 21:34:11 -04:00
2026-10-13 01:04:38 -07:00
2026-10-24 18:44:31 -07:00
2026-10-25 03:00:43 -07:00
2026-10-08 19:22:03 +02:00
2026-10-22 05:26:10 -07:00
2026-10-15 22:25:22 +02:00
2026-10-24 18:44:31 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:24 -07:00
2026-10-23 01:41:24 -07:00
2026-10-22 05:26:10 -07:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:14 +02:00
2026-10-22 05:26:10 -07:00
2026-10-14 20:38:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-11 04:37:57 -07:00
2026-10-24 04:11:24 -07:00
2026-10-08 19:22:03 +02:00
2026-10-20 03:08:38 -07:00
2026-10-11 19:31:36 -07:00
2026-10-16 20:25:10 -07:00
2026-10-21 17:06:34 -07:00
2026-10-10 17:59:08 -07:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-21 17:06:34 -07:00
2026-10-17 04:35:05 -07:00
2026-10-10 15:20:13 +02:00
2026-10-16 07:09:45 -07:00
2026-10-18 12:27:21 +02:00
2026-10-08 17:22:54 +02:00
2026-10-23 01:41:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 17:59:08 -07:00
2026-10-10 17:59:08 -07:00
2026-10-23 01:43:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-24 18:44:31 -07:00
2026-10-10 15:20:13 +02:00
2026-10-13 16:27:55 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-16 19:42:34 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 07:09:45 -07:00
2026-10-10 17:59:08 -07:00
2026-10-20 03:08:38 -07:00
2026-10-09 10:24:04 -07:00
2026-10-16 17:49:54 -04:00
2026-10-13 23:55:10 +05:30
2026-10-24 04:01:10 -07:00
2026-10-14 00:06:58 +05:30
2026-10-10 15:20:13 +02:00
2026-10-16 07:09:45 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-24 17:11:13 -07:00
2026-10-15 21:01:31 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 02:36:34 -07:00
2026-10-09 13:58:16 -07:00
2026-10-15 22:12:28 +02:00
2026-10-08 19:22:03 +02:00
2026-10-18 00:47:38 -07:00
2026-10-18 00:47:38 -07:00
2026-10-18 00:47:38 -07:00
2026-10-08 17:22:54 +02:00
2026-10-22 05:26:10 -07:00
2026-10-16 15:21:07 -04:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 16:53:57 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-23 01:41:24 -07:00
2026-10-08 19:22:03 +02:00
2026-10-17 21:49:14 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-21 17:06:34 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-22 05:26:10 -07:00
2026-10-22 05:26:10 -07:00
2026-10-10 15:20:13 +02:00
2026-10-22 05:26:10 -07:00
2026-10-24 18:48:01 -07:00
2026-10-20 16:17:56 -04:00
2026-10-22 05:26:10 -07:00
2026-10-22 05:26:10 -07:00
2026-10-22 05:26:10 -07:00
2026-10-23 01:41:24 -07:00
2026-10-22 05:26:10 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-22 05:26:10 -07:00
2026-10-08 17:22:54 +02:00
2026-10-22 05:26:10 -07:00
2026-10-23 15:33:14 -07:00
2026-10-24 18:55:33 -07:00
2026-10-09 17:31:52 +02:00
2026-10-23 16:04:50 -07:00
2026-10-14 00:29:12 +05:30
2026-10-08 17:22:54 +02:00
2026-10-23 01:41:24 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 02:34:03 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:14 +02:00
2026-10-08 17:22:54 +02:00
2026-10-23 11:51:27 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-19 01:31:31 -07:00
2026-10-08 19:22:03 +02:00
2026-10-08 19:22:03 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-23 01:42:14 -07:00
2026-10-08 17:22:54 +02:00
2026-10-22 23:24:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 19:13:09 -07:00
2026-10-17 04:23:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-23 01:41:24 -07:00