Repository navigation
Commit ea9debf
committed
fix(catalog): do not carry a retained compact limit onto a corrected window
#1905 taught catalog sync never to raise a compaction threshold retained from
Codex. The rule is right, but the retained number was trusted even when sync
corrected the row's context window in the same pass.
An upstream entry arriving as 128k/115_200 whose window is then widened to 272k
kept the stale 115_200 — 42% of the real window — so every long turn compacted
early. CI caught it on macos and test 1/4 at 121c1fb.
A retained threshold only describes the window it arrived with. Capture the
incoming window before any override or cap rewrites the row, and trust the
retained value only when the window is unchanged; lower-is-policy still holds
there, which is what #1905 was protecting.1 parent 121c1fb commit ea9debf
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
355 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
356 | 366 | | |
357 | 367 | | |
358 | 368 | | |
| |||
0 commit comments