chore(lr-b6fa): cut machinery superseded by bounded-history hardening#339
Conversation
|
PEACHES — clean (no findings). This PR documents a post-hardening consolidation audit (lr-b6fa) examining whether bounded-history machinery from lr-2ea2a7/lr-c10f6d/lr-5e70 supersedes earlier lazy-load and LRU mechanisms. The audit is factually accurate and internally consistent: Verified claims:
No behavior change, no code deletions. All verdicts justified: search paths already de-coupled by Fix A, boundary math still load-bearing, history cap now a second consumer of the LRU budget. Two forward-looking gaps (palette search and messageUUIDs eviction) surfaced correctly for lr-efd60f. Docs-only, consolidation audit, no new rules violated. |
|
Merged via clagentic-loadout v0.1.0
|
|
This issue has been resolved in version 1.7.0-beta.1. To update, run: |
|
This issue has been resolved in version 1.7.0. To update, run: |
lr-b6fa post-hardening consolidation audit. See docs/guides/architecture.md new section: Post-hardening consolidation audit (lr-b6fa) for full per-candidate verdicts (KEEP for all 6 candidates plus lr-efd60f fold-in reasoning). Summary: KEEPERS confirmed unchanged (lazy load/tail replay/scroll pagination, findTurnBoundary/extendWindowForVisibility). historyMatchesDisk/_historyPersistedLength kept -- load-bearing per lr-f940 regression tests. LRU_HISTORY_LIMIT=50 kept unchanged -- now also consumed by lr-5e70 forceEvictToLimit pressure eviction, more load-bearing than before. Sticky-bottom timer chain kept -- frontend UI, already minimal, unrelated to memory chain. Search paths (searchSessions/searchSessionContent) already fully cut by lr-2ea2a7 itself -- audited, no residue found. lr-2f75 duplicate-utility task has zero file overlap with this sweep. lr-efd60f: 0 items absorbed -- the two items touching sessions.js (messageUUIDs never trimmed on eviction, broadcastSessionList undebounced) are additive fixes, not cuts, so folding them in would violate this PR's no-behavior-change contract; left explicit in lr-efd60f. Bonus finding documented (not fixed, out of scope): /api/palette/search reads session.history without loadSessionHistory, silently incomplete for lazy sessions -- predates the fork. Net result: documentation-only PR, no code deletions -- every candidate already consolidated or independently load-bearing. Tests: npm test baseline 926 tests / 4 pre-existing failures in sdk-bridge-context-window-warn.test.js as stated in the task; re-run after this docs-only change shows no failures attributable to the diff (markdown is not read by any JS module). Task lr-b6fa; fold-in source lr-efd60f left open for its own PR.