Mnestic projection generation behind HydraMem's interface with atomic publish #3

Open
opened 2026-09-02 07:53:30 +00:00 by larandar · 1 comment
Owner

Proposal

.hydramem/projections/mnestic/<generation>/: build fresh, validate, atomically advance the generation marker; readers hold stable snapshots; no in-place mutation of a published generation (ADR-0001 §6).

Design

docs/handoff.md §HydraMem and Mnestic. Projection interface owned by HydraMem; this unit adds the Mnestic generation writer.

Tasks

  • generation writer against a test engine behind the engine trait
  • atomic marker publish; reader snapshot semantics
  • corrupt-generation withdrawal per §Failure behavior

Requirement scenario

GIVEN a reader on generation N, WHEN generation N+1 publishes, THEN the reader completes on N and the next open sees N+1; a half-written generation is never observable.

Specification-completion clause (OD-1 / #34)

The production storage engine (SQLite vs RocksDB) awaits OD-1. This unit lands the trait plus a test-only engine; the engine module is the only file the ruling touches.

## Proposal `.hydramem/projections/mnestic/<generation>/`: build fresh, validate, atomically advance the generation marker; readers hold stable snapshots; no in-place mutation of a published generation (ADR-0001 §6). ## Design `docs/handoff.md` §HydraMem and Mnestic. Projection interface owned by HydraMem; this unit adds the Mnestic generation writer. ## Tasks - [ ] generation writer against a test engine behind the engine trait - [ ] atomic marker publish; reader snapshot semantics - [ ] corrupt-generation withdrawal per §Failure behavior ## Requirement scenario GIVEN a reader on generation N, WHEN generation N+1 publishes, THEN the reader completes on N and the next open sees N+1; a half-written generation is never observable. ## Specification-completion clause (OD-1 / #34) The production storage engine (SQLite vs RocksDB) awaits OD-1. This unit lands the trait plus a test-only engine; the engine module is the only file the ruling touches.
Author
Owner

Mnestic projection generation behind HydraMem's interface with atomic publish

State: open · Labels: Kind/Feature · Comments: 0

Rendered by CurryComb slice 1 projection v1. The body will be replaced by rule-derived content in Slice 3.

<!-- currycomb:refinement:v1 repo=Ting/CurryComb issue=3 --> # Mnestic projection generation behind HydraMem's interface with atomic publish State: `open` · Labels: Kind/Feature · Comments: 0 _Rendered by CurryComb slice 1 projection v1. The body will be replaced by rule-derived content in Slice 3._
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Ting/CurryComb#3
No description provided.