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
{{ message }}
Repository navigation
Proposal: reduce unnecessary day-file locks for single-row mutations #215
agent:readyHuman-approved for autonomous work by ocsi-fixerbenchEnd-to-end effectiveness benchmarks (A/B evals, recall-quality)enhancementNew feature or requestreleasedseverity:lowEnhancement, refactor proposal, decision record, docs polish
Single-row store mutations lock and read every day file, so their cost grows linearly with store age. WM measured on a synthetic store (30 day files × 10 rows, medians of 5): loadAll 4.6 ms, but superseding ONE row 116 ms, of which ~113 ms is the lock sweep itself. Maintainer ruling 2026-11-04: accept now, do not wait for a bigger store.
Fix direction
markManySupersededReport (src/store/files/supersede.ts:56) and the sibling paths clearSuperseded, releaseQuarantine and prune resolve the target rows first — a row's ts carries its day file — then lock and rewrite only the files that actually contain a match. Files with no matching key are neither locked nor read. Locking semantics per touched file are unchanged: refuse-on-contention stays.
Acceptance
RED: scenario test on a synthetic 30-day-file store — instrument lock acquisitions (counter or spy) and supersede one row: every day file is locked. Fails on main for exactly that reason.
GREEN: exactly the one containing file is locked and rewritten; wall time for the single-row supersede drops to within 5× loadAll on the same fixture; contention refusal on the touched file still refuses (one existing or new test pins it).
No existing assertion weakened; bun run typecheck && bun run lint && bun run test green; bun run test:e2e since src/ changed.
osi-spec-hash: f7363bcd12362cae 2026-11-03T22:38:37Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
agent:readyHuman-approved for autonomous work by ocsi-fixerbenchEnd-to-end effectiveness benchmarks (A/B evals, recall-quality)enhancementNew feature or requestreleasedseverity:lowEnhancement, refactor proposal, decision record, docs polish
Activity
ocsi-triager commentedon Nov 3, 2026
osi-spec-hash: f7363bcd12362cae 2026-11-03T22:38:37Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.
abogartz commentedon Nov 5, 2026
Spec moved after the ready-anchor: f7363bcd12362cae -> 336e229031c394f2. The reviewer will not approve on the old contract.
chore(release): 0.21.0 [skip ci]
abogartz-opencode-self-improvement commentedon Nov 9, 2026
🎉 This issue has been resolved in version 0.21.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
abogartz commentedon Nov 9, 2026
Landed on
mainine10a550(PR #373, approved ate67b12b). 365-day fixture: supersede one row median 1.4 ms vs 74.8 ms ond0929a6.