Skip to content

fix(cache): recover unreadable cache rows#555

Closed
wan9chi wants to merge 1 commit into
agent/cache-preallocation-limitfrom
agent/cache-row-recovery
Closed

fix(cache): recover unreadable cache rows#555
wan9chi wants to merge 1 commit into
agent/cache-preallocation-limitfrom
agent/cache-row-recovery

Conversation

@wan9chi

@wan9chi wan9chi commented Jul 21, 2026

Copy link
Copy Markdown
Member

Motivation

A malformed or incompatible value in the local SQLite cache should not prevent a task from running. Decode failures currently escape cache lookup as fatal errors, and a stale fingerprint can continue pointing at a missing cache entry.

Changes

  • Treat unreadable cache values as cache misses so task execution can continue.
  • Remove only the exact key and value observed, preserving concurrent replacements.
  • Clean up dangling task-fingerprint mappings safely.
  • Continue surfacing database access and key-encoding failures as operational errors.
  • Report recovered entries in cache status and saved run summaries.

wan9chi commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Co-authored-by: GPT-5.6 Codex <codex@openai.com>
@wan9chi
wan9chi force-pushed the agent/cache-row-recovery branch from a159706 to ffed460 Compare July 21, 2026 03:56
@wan9chi
wan9chi force-pushed the agent/cache-preallocation-limit branch from 02a2fad to c682426 Compare July 21, 2026 03:56
@wan9chi wan9chi closed this Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant