Imports a directory of JSONL memory records through Reminisce.remember/3.
Each *.jsonl file holds one JSON record a line, with these fields (id is
required; the others are read when present):
{"id": "L-001", "kind": "lesson", "title": "…", "body": "…",
"scope": ["ci"], "confidence": "observed", "sources": ["commit:…"],
"status": "active", "created_at": "2026-01-03T10:00:00Z",
"derived_from": ["I-001"], "superseded_by": "D-002", "retired_reason": "…"}The mapping:
idis the memory's key, so a rerun is idempotent;titleandbodybecome the content;kindbecomes a facet,kind=…, and picks the aspects: lessons and rejected approaches are procedural and semantic, everything else semantic;- each
scopetag becomes a facet,scope=…; confidencemaps onto basis: observed →:observed, inferred →:inferred, reported →:told;created_atisvalid_from;- a retired record is remembered, then archived with its reason, or marked
superseded by its
superseded_byrecord once that one is in.
A record the secret guard refuses is reported in refused with its rule and
never stored; anything else that fails is reported in failed.
Summary
Functions
@spec import_dir(Reminisce.Store.t(), Reminisce.owner(), Path.t()) :: {:ok, map()} | {:error, term()}