Skip to content

MIF v1.4.0

Choose a tag to compare

@mif-release mif-release released this 08 Oct 14:00
· 19 commits to main since this release
Immutable release. Only release title and notes can be modified.
f4a1879

Added

  • [Site]: The mif-spec.dev specification pages are generated from
    SPECIFICATION.md by scripts/build_spec_pages.py, so the spec is their
    single source; --check fails the okf-conformance CI job when committed
    pages drift. §16 Examples gets its own specification/examples page. (#305)
  • [Schema]: context.jsonld registers timestamp, description
    (dc:description), summary, and compressedAt; without terms, a JSON-LD
    processor dropped them on expand. The three new mif: properties are
    published in vocabulary.jsonld. (#305)
  • [Spec]: §7.3.1 Entity Subtyping (subtype_of), previously documented
    only on the site. (#307)
  • [Spec]: Appendix A lists entities, relationships, properties,
    documents, citations, summary, and compressedAt. (#307)

Changed

  • [Spec]: §3.2/§3.3 describe the OKF bundle layout used by examples/
    (/<type>/<slug>.md, no memories/ root); JSON-LD is emitted output
    (mif_convert.py emit-jsonld --out-dir), not a file committed beside its
    source. docs/GETTING-STARTED.md updated to match, and the
    memories/*.json validation globs in docs/MIGRATION-GUIDE.md and
    docs/SCHEMA-REFERENCE.md now validate emitted JSON-LD instead.
  • [Spec]: §6.1 defines a concept URN as urn:mif:<uuid> and reserves the
    urn:mif:entity:, agent:, activity:, conversation: and vector:
    sub-namespaces.
  • [Spec]: §4.1 and §13.1 state that content is the Markdown body, a
    named property only in the JSON-LD projection.
  • [Spec]: New §8.1.1 defines how a configured relationship name becomes
    its stored token (kebab-case, ns: prefix for a namespace, inverses
    likewise).
  • [Spec]: §3.3 states the key casing convention: snake_case in .mif/
    configuration, camelCase in concept frontmatter.
  • [Spec]: §5.3 and §8.4 RECOMMEND bundle-relative path targets for
    same-bundle concepts, reserving urn:mif: targets for out-of-bundle ones.
  • [Spec]: The core spec calls its atomic element a concept, matching
    the schema (@type: Concept, conceptType), Invariant 6 and ADR-010:
    §4.1 Concept (was Memory Unit), §4.2 Knowledge Types (was Memory
    Types
    ), §4.4 Categorizing Concepts, §7.5 Entity References in
    Concepts
    . §1 records memory/Memory Unit as synonyms. No schema or
    wire-format change; the deprecated memoryType/Memory terms remain.
  • [Spec]: §13.1 Level 1 conformance requires a valid OKF bundle shape (a
    directory of .md concept files), replacing "valid Markdown or JSON-LD
    structure". A JSON-LD-only artifact is no longer Level 1 conformant;
    JSON-LD is derived output (Invariant 2, ADR-011/012). (#307)
  • [Spec]: §10.8.5 ontology resolution uses vendor-neutral paths
    (.mif/ontologies/) instead of ${MNEMONIC_ROOT}/.claude/mnemonic. (#307)
  • [Spec]: §4.2 type descriptions match the schema's conceptType
    description, and point to the AI Memory profile for the triad's
    cognitive-memory origin. (#307)
  • [Schema]: A concept @id MUST be urn:mif:<uuid>; the
    mif.schema.json pattern now enforces the UUID instead of accepting any
    urn:mif: suffix (§6.1). Projections with slug ids, such as
    urn:mif:my-note, no longer validate. The AI Memory profile's migration
    mappings now show UUIDv5 ids, matching scripts/migrate_0_1_to_1_0.py.
  • [Schema]: context.jsonld no longer defines Vector, vector,
    encoding, or data. They described an inline vector that no schema
    property allows (§11 uses vectorUri). vocabulary.jsonld keeps the
    IRIs, marked owl:deprecated.
  • [CI]: ci.yml pins reusable-sca-osv.yml to the .github commit that
    runs osv-scanner from its v2.6.0 release tag.
  • [Deps]: package-lock.json security updates (astro 7.3.7 and others)
    clear the osv-scanner findings; osv-scanner.toml documents two remaining
    exceptions (katex, braces) with no fix in range. (#305)

Fixed

  • [Spec]: §4.1 and §5.6 name the compression timestamp compressedAt,
    matching schema/mif.schema.json (was compressed_at).
  • [Spec]: Concept relationship targets in §6.2 and §8.4 use
    urn:mif:<uuid> (was urn:mif:memory:<slug>, a form no concept @id
    can take); docs/SCHEMA-REFERENCE.md and ADR-002's JSON-LD snapshot
    updated to match.
  • [Spec]: The §15.3 conversion example uses a full UUID (was the
    truncated urn:mif:550e8400).
  • [Spec]: §8.3's custom-type example declares BreedsWith, matching
    its JSON-LD farm:breeds-with; the old comment named the schema-invalid
    token farm:Contradicts.
  • [Spec]: Appendix B and docs/SCHEMA-REFERENCE.md list the core type
    created (the term schema/context.jsonld registers), not its inverse
    created-by.
  • [Schema]: $defs.Relationship.description cites spec §5.3/§8 (was
    §4.4, Categorizing Memories). Description-only; no $id or validation
    change.
  • [Spec]: The §6.2 JSON-LD example validates against
    schema/mif.schema.json (created/modified/timestamp, not
    dc:created/dc:modified). (#307)
  • [Spec]: §5.1 and §5.3 examples carry the frontmatter relationships
    their body links mirror, and §5.3 states the MUST that every frontmatter
    relationship has a body link. (#307)
  • [Spec]: §11 embedding examples drop quantization and the inline
    vector block, neither of which EmbeddingReference allows. (#307)
  • [Spec]: §15.4's converted citation keeps the author's entityType and
    name (citations pass through verbatim); §16.2 uses a UUID id. (#307)
  • [Spec]: The §15.3 conversion input includes the timestamp mirror
    the converter emits, and the output notes that it is dropped on the way
    back to Markdown.
  • [Schema]: A document carrying only the deprecated memoryType now
    satisfies the required type check. (#275)