Better HN
topnewbestaskshowjobs
Log inSign up

jpiasolutions

1 karma · joined Aug 11, 2026 (3mo ago) · 5 submissions

Submissions

comment 3mo ago · link · parent

Same bug, two angles. Nothing really copies 20 pages, the "20" is just a broken counter. SQLite's internal tally of how many WAL pages it already saved to the main db gets corrupted and reads too high. Since it trusts that tally, it assumes those pages are already saved and skips writing them for real, so when the WAL resets they're gone. The "copied more than existed" number is the bug showing in your metrics; "pages never written" is the actual damage.

comment 3mo ago · link · parent

The memory framing is right, but the real gap isn't recall, it's the missing feedback loop tying actions to outcomes. Even with perfect retrieval these agents don't update from a decision that lost money last week; they re-derive from context every step, so the same mistake is always one dropped detail away. And having built retrieval-backed agents, that's where "bolt a database on the side" breaks: similarity search returns the closest chunk, rarely the contextually-right one. Deciding what to write to memory and when to surface it is the actual product, harder than the retrieval itself.