You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codex-rs/core/src/memories/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,14 @@ Phase 2 consolidates the latest stage-1 outputs into the filesystem memory artif
59
59
What it does:
60
60
61
61
- claims a single global phase-2 job (so only one consolidation runs at a time)
62
-
- loads a bounded set of the most recent stage-1 outputs from the state DB (the per-rollout memories produced by Phase 1, used as the consolidation input set)
62
+
- loads a bounded set of stage-1 outputs from the state DB using phase-2
63
+
selection rules:
64
+
- ignores memories whose `last_usage` falls outside the configured
65
+
`max_unused_days` window
66
+
- for memories with no `last_usage`, falls back to `generated_at` so fresh
67
+
never-used memories can still be selected
68
+
- ranks eligible memories by `usage_count` first, then by the most recent
69
+
`last_usage` / `generated_at`
63
70
- computes a completion watermark from the claimed watermark + newest input timestamps
64
71
- syncs local memory artifacts under the memories root:
65
72
-`raw_memories.md` (merged raw memories, latest first)
0 commit comments