Documentation / STORE-002
Issue boardGitLab source
STORE-002 Planned contract

Bounded buffer pool, pinning and dirty eviction

Start near 48–64 MiB cache. Measure process virtual memory under the 256 MiB course limit; the cache is only one part of memory usage.

Contract

Field Value
Specification STORE-002
Module storage
Scope Required implementation or delivery
Milestone M1, due 2026-12-06
Owner role Storage / search — sjr24
Implementation Planned; scaffold only
Contract review Team review required before implementation

Open GitLab issue

Interface

BufferPool.fetch(PageId) -> PageGuard; flushAll()

These are proposed C++ design contracts, not an already implemented API. Shared types and ownership define the intended module boundaries.

Dependencies

Acceptance checklist

  • [ ] Bound memory explicitly with a configurable page budget
  • [ ] Pinned pages cannot be evicted; dirty eviction writes before reuse
  • [ ] Test eviction, guard lifetime and flush/reopen with a tiny cache

Verification

Use focused module checks plus the integration scenario above; no separate course score is claimed.

Completion rule

Link this spec and its GitLab issue in an MR into develop. Include relevant Linux evidence, obtain the other teammate’s review, merge, delete the feature branch, and close the issue. A page describes intended behavior; the GitLab issue and merged code determine completion.

DBS 005 · Specification v1 · Team review required for proposed interfaces.
Engine behavior is planned; implementation progress lives in GitLab.