Skip to content

refactor(agent): isolate graph-keyed SWM materialization memo - #3000

Merged
branarakic merged 1 commit into
testnet-canaryfrom
codex/fix-issue-2982-20261004
Oct 4, 2026
Merged

branarakic merged 1 commit into
testnet-canaryfrom
codex/fix-issue-2982-20261004

Conversation

@branarakic-agent

Copy link
Copy Markdown
Contributor

Summary

SWM materialization checks now use a focused memo owner keyed by assertion graph, so invalidation is a direct lookup and a graph keeps only its current validated version. Both the witness and digest paths use the same stable-generation admission rule.

Changes

  • Extract revision probing, lookup, expiry, admission and invalidation into swm-materialization-memo.ts using BoundedLruCache.
  • Preserve the all-writers capability gate, fallback on revision errors, empty-projection checks, TTL and 1,024-entry bound.
  • Add direct version replacement, admission and expiration coverage alongside the real-store parity suites.

Test Plan

  • Agent and dependencies build, including package type tests and export checks.
  • Focused Vitest run of swm-snapshot-materializer, swm-materialization-witness, and swm-materialization-memo: 57 tests passed. Used a temporary config preserving fork pool, sqlite flags and 120s timeout while omitting unrelated Hardhat global deployment.
  • git diff --check passes.

Closes #2982

@otReviewAgent otReviewAgent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Agent completed this review and found no issues.

@branarakic
branarakic merged commit e3910a7 into testnet-canary Oct 4, 2026
44 checks passed
branarakic-agent pushed a commit that referenced this pull request Oct 4, 2026
Adds read batching through Multicall3 (#2996), the endpoint that refuses a
read (#3020), the receipt requested with the authentication views (#3021)
and the reconcile pass that waits for sync capacity (#2994), with their
upgrade notes. The share-recovery entry and its upgrade row take in #3004,
the gossip restart entry takes in #3005, the large-content guide (#2997) is
listed, and #3000, #3001, #3002 and #3016 join the list of changes without
a behaviour change. The summary names the recovery speed-up, and the date
moves to 4 October.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

3 participants