Skip to content

Add durable memory facts store and read APIs #271

Description

@michaelmwu

Parent: #265

Goal

Add durable memory fact storage and read APIs for user, project, and org facts.

Scope

  • Add a memory_facts table or equivalent store.
  • Support scopes:
    • user
    • project
    • org
  • Store:
    • key
    • structured value
    • visibility
    • source type/ref
    • source excerpt hash
    • created by
    • verification status
    • confidence
    • expiry/review timestamp
    • soft delete timestamp
  • Add read helpers/tools:
    • memory_read.get_user_facts
    • memory_read.get_project_facts
    • memory_read.search_context

Design constraint

Prefer authoritative CRM/profile/service fields over inferred memory when both exist.

Acceptance criteria

  • Durable facts can be stored with provenance and verification status.
  • User/project/org lookups enforce visibility and scope.
  • Deleted or expired facts are not returned by default.
  • Tests cover read filtering, expiry, soft delete, and authoritative-data precedence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions