Skip to content

0.4.0

Latest

Choose a tag to compare

@Krivoblotsky Krivoblotsky released this 02 Dec 02:13
· 2 commits to main since this release
34f267f

Format 1.2.0: foreign fields ride along on every record kind, and every claim can say how
it came to be and who stands behind it — RFC-0002 and RFC-0003, accepted on 2026-12-02 — in
both reference SDKs, with a shared sample-1.2.mem fixture. Every 1.0 and 1.1 bundle remains
valid. RFC-0001 (scopes & visibility) stays Draft, targeted at format 1.3.

Specification

  • RFC-0002 ext for all kinds (#13) and RFC-0003 Provenance typing (#14, both in
    the Python repo) are accepted for format 1.2.0 (2026-12-02, lazy consensus after the
    comment period closed on 2026-10-05). Resolutions recorded in each RFC: canonical-line
    sidecar keys for id-less kinds, no per-record size cap, an ext:all-kinds manifest
    capability; five claim classes, singular assertedBy (no approvedBy), claimClass on
    episodes alongside sourceType, model:<name>@<version> as a SHOULD; a claim's age is read
    from the existing bi-temporal fields, and adapters MUST carry the source's evidence time.
    RFC-0001's recommended principal types gain model and system. RFC-0002 and RFC-0003 ship
    in this release (format 1.2.0, see Added).
  • Spec §2 and §10 pointers updated from "proposed" to "accepted" for RFC-0003 and RFC-0002.
    The Spec/ tree stays byte-identical to the Python repo's.
  • Specification v1.2: §3.2 Format 1.2 additions, §8 (L1 wording), §9 format history, §10
    ext for every kind; RFC-0002 status → Implemented. §2 Typed provenance, §6 Evidence Pack
    SHOULD, §10 adapter provenance row; RFC-0003 status → Implemented.

Added

  • Format 1.2.0 — ext on every record kind (RFC-0002,
    MacPaw/portable-memory#13). The importer hands the foreign remainder of every native record to
    the host through the new seam pair exportExt(kind:) / importExt(kind:key:ext:) — episodes
    keep importEpisode(_:ext:), and the defaults delegate to the 1.0 episode pair — and the
    exporter merges it back without overriding native keys, ordering rows by their native line.
    Id-less kinds (factLink, episodeLink, preference, category) are keyed by the SHA-256 of
    their canonical native line (Interop.extKey; PortableIdentified marks the kinds with an
    id). Manifests declare ext:all-kinds; format is now 1.2.0; every 1.0/1.1 bundle remains
    valid. New helpers: Interop.extractExt, mergeExt, extKey, nativeKeys(of:).
  • Typed provenance — claimClass, assertedBy, mergedFrom (RFC-0003,
    MacPaw/portable-memory#14) as optional properties with defaulted initializer parameters on
    PortableEpisode, PortableEntity, PortableEdge and PortableFact (documented values in
    ClaimClass); schemas gain $defs/claimClass, $defs/principal, $defs/mergedFrom (unique ids). Adapters
    set the RFC-0003 §4 pair: transfer text imported / agent:<source>, ChatGPT turns observed /
    user:owner or agent:chatgpt, ChatGPT saved memories and Claude memory files asserted /
    agent:chatgpt or agent:claude, mem0 inferred / agent:mem0. Parity bytes changed:
    Conformance/fixtures/transfer/expected-episode.jsonl and the manifest-test digest now include
    the pair; sample-1.1.mem is unchanged.
  • Conformance/fixtures/sample-1.2.mem — the format-1.2 cross-SDK fixture written by the
    Python SDK: the 1.1 content plus an episode, a context, two entities, an edge, two facts, a
    fact link, an episode link, two preferences and a category, most carrying foreign fields.
    The Swift suite validates it, imports it keeping every sidecar, and re-exports it
    byte-identically (ExtAllKindsTests).
  • Governance — MAINTAINERS.md, a maintainer-addition process in GOVERNANCE.md, and a
    DCO check on every pull request; ADOPTERS.md and IMPLEMENTATIONS.md list users,
    published evaluations and implementations with public references.
  • README: the mem command line from the Python SDK can also be installed with Homebrew
    (brew install macpaw/taps/portable-memory, from
    MacPaw's Homebrew tap).