Repository navigation
Description
Proposed classification: bug, retrieval, severity:medium. Labels require maintainer permissions; these are suggestions for your triage.
For maintainer triage and approval of scope. Reviewed main at bf9f4d2, still current when these proposals were prepared. Review probes use synthetic temporary stores; this is not a report of a production incident. No implementation or assignment is implied by this issue.
HITS-1: recordHits arms the 1h throttle before the write, so a refused write suppresses the same use for an hour
- src/hits.ts:101-133 — lastWrite.set(key, now) at 105 precedes the locked append; the catch returns false without clearing it
Reproduction: LOCK_WRITE.timeoutMs=30; hold the hits.logfmt store lock; recordHits('recall','sid-1',[row]); release; call it again with identical arguments.
Observed: While busy: false. After release, the same use returns false (throttled). hits.logfmt does not exist.
Effect: Use telemetry undercounts under contention, inflating 'never retrieved' (status) and biasing consolidation replays. The code comment already concedes a dropped observation, but not the extra one-hour suppression.
Preconditions: Lock contention on hits.logfmt past the write budget.
Proposed scope / decision requested
Keep retry available after a refused ledger write while preserving deduplication for simultaneous calls. Moving the throttle assignment after the await without guarding in-flight calls can introduce duplicates. Test failure followed by successful retry and concurrent identical calls. Retrieval must remain available when telemetry fails.
Please accept, narrow, defer, or decline this independently of the other review findings. We will wait for your direction before taking implementation. Happy to supply a checked-in regression reproducer with an accepted fix; the review report and probe artifacts are preserved locally.
Activity
WhollyMindless commentedon Nov 2, 2026
Claiming this one per our coordination agreement. I will keep the change scoped to ledger retry/throttle bookkeeping and regression tests: a failed write must allow retry, concurrent identical calls must not duplicate a successful record, and telemetry failures must remain non-fatal to retrieval. I will post a PR for your consideration; please feel free to defer or reject it if it does not fit your plans.
WhollyMindless commentedon Nov 2, 2026
Implementation is ready for consideration in #256. Both lock-refusal and append-failure retries are covered, with a concurrency regression that detects duplicate successful writes. Windows unit tests pass (851 pass, 26 skip), Linux focused ledger tests pass, and all 30 E2E tests pass on rerun; the initial npm-install setup failure is disclosed in the PR. Please feel free to defer or reject it.
abogartz-opencode-self-improvement commentedon Nov 2, 2026
🎉 This issue has been resolved in version 0.15.8 🎉
The release is available on:
Your semantic-release bot 📦🚀