Skip to content

feat(import): add memory draft import#41

Merged
Grivn merged 1 commit into
masterfrom
docs/issue-32-import-schema-guide
May 27, 2026
Merged

feat(import): add memory draft import#41
Grivn merged 1 commit into
masterfrom
docs/issue-32-import-schema-guide

Conversation

@Grivn
Copy link
Copy Markdown
Member

@Grivn Grivn commented May 27, 2026

Summary

Adds a versioned memory draft schema and mnemon import command for converting historical chat exports into Mnemon memories.

Details

  • Defines schema_version: "1" draft structures with validation and source resolution.
  • Imports draft insights through Mnemon's normal write behavior for deduplication, embeddings, graph edges, lifecycle scoring, and pruning.
  • Disables real-time temporal edge creation during historical import, then repairs affected source timelines after all imported insights land.
  • Refreshes effective importance after explicit edges and temporal repair before auto-prune runs.
  • Documents the import schema, field constraints, category/importance guidance, and a copy-paste LLM extraction prompt.
  • Adds tests for draft validation, backdated temporal repair, and EI refresh after explicit edges.

Validation

  • go test ./...
  • go build -o mnemon .
  • git diff --check

Refs #32

Add a versioned memory draft schema and import command so historical chat exports can be converted into Mnemon insights with normal deduplication, graph construction, embedding, lifecycle scoring, and pruning behavior.

The import path disables real-time temporal edge generation, repairs affected source timelines after all backdated insights land, refreshes effective importance after explicit edges are inserted, and documents the JSON schema plus LLM extraction prompt. Validation includes importdraft unit tests and command integration coverage for temporal repair and EI refresh.
@Grivn Grivn merged commit bfd0975 into master May 27, 2026
1 check passed
@Grivn Grivn deleted the docs/issue-32-import-schema-guide branch May 27, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant