Skip to content

Memory provenance and per-agent trust scores #309

Closed

Description

@currentbits

From the memory-systems research (SuperLocalMemory arXiv 2603.02240; Governed Shared Memory arXiv 2606.24535; OWASP ASI06 memory-poisoning framing).

The column is stored but never used as a filter or signal. Add provenance fields (created_by agent, source surface) and derive a per-agent trust score from the existing helpful/harmful evidence: an agent whose memories keep getting invalidated writes lower-trust entries. Trust then feeds ranking and the review queue. Complements the memory governance UI (#299): 'who wrote this' is half of 'can I trust this'.

Activity

  1. added
    enhancement
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Landed on main as 8a568f3 (two grok workers off a shared contract at bede896).

    Provenance — entries.source column; agent/source persisted by store()/supersede(), accepted at MCP and REST write surfaces (defaulting to mcp/rest), and returned on every read path (FTS, graph, vector, fused, get, recent, bootstrap). agent is now an actual search filter, which was the 'stored but never used' complaint.

    Trust — agentTrust(db) rolls up helpful/harmful/invalidated per writer in one GROUP BY; trustFactor() weighs a wrong memory heavier than a right one, clamped to [0.5, 1.5]. Cached (5s TTL, dropped on a feedback verdict) and multiplied into BASE_SCORE_SQL. NULL writers stay at exactly 1.0 so existing ranks do not move — asserted in a test.

    Review queue — no new review_queue.kind: kind has a CHECK constraint that would need migrating, so suspect agents (trust < 0.8) are reported in memory_maintenance instead. Revisit if the report proves too passive.

    memory-server suite: 138/138 pass on main. The governance UI half (#299) still needs to consume the new agent/source/trust fields.

  3. added a commit that references this issue on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions