memorix icon indicating copy to clipboard operation
memorix copied to clipboard

Expose privacy-safe memory handoff receipts for cross-agent debugging

Open caioribeiroclw-pixel opened this issue 6 months ago • 2 comments

I saw #93 and the maintainer response about the important distinction between:

  • MCP connection is configured correctly
  • a memory write was actually requested by the agent / hook / CLI
  • another agent searched the same project identity and got a result

That distinction seems worth making observable, because users understandably read “cross-agent memory” as “my Trae/Codex conversation will show up elsewhere automatically”. The current answer clarifies it well, but a small receipt/doctor artifact could make support/debugging much faster.

Proposal: add a privacy-safe “memory handoff receipt” or memorix doctor section that proves the handoff boundary without storing raw chat/memory content.

Example fields:

{
  "project.identity": "git:<repo-root-hash>",
  "client.name": "trae",
  "mcp.transport": "stdio",
  "mcp.cwd": "<normalized repo root>",
  "write_policy": "rules_only | hook | explicit_tool | cli",
  "write.trigger": "agent_selected | hook_event | manual_cli | not_triggered",
  "memory.write.count": 1,
  "memory.write.ids_hash": ["sha256:..."],
  "memory.search.query_hash": "sha256:...",
  "memory.search.result_count": 1,
  "memory.search.result_ids_hash": ["sha256:..."]
}

What this would help users answer:

  1. Are Codex and Trae bound to the same Git/project identity?
  2. Did the agent actually call memorix_store, or was it only normal chat?
  3. If memory was written, did memorix_search return it from the other client?
  4. If nothing was written, was it because this client is rules-only and no stable runtime hook exists?

The privacy boundary matters: hashes/counts/project identity are enough for debugging, while raw prompts, raw memory text, chat transcript, and tool args/results should stay local by default.

I think this also gives docs a crisp line:

shared memory means “stored memories are searchable across clients in the same project”; it does not mean “all chat messages are mirrored across clients”.

If this direction fits Memorix, I’d be happy to help turn it into a tiny docs section or fixture first, before any runtime feature.

caioribeiroclw-pixel avatar May 21 '26 16:05 caioribeiroclw-pixel

@caioribeiroclw-pixel Sorry for dragging you into this unrelated situation.

Over the past few days, several new accounts have posted Star-related accusations across multiple issues, unrelated to the technical discussion. Some of those comments were clearly aggressive and spam-like. I used GitHub Mobile's quote-reply button intending to respond to a later unrelated comment, but because GitHub issues are flat threads rather than nested replies, the quoted text included your username and could make it look like I was targeting you.

That was not the case. Your issue is a valid product/debugging suggestion, and I will continue handling it as part of the 1.0.10 direction. Thank you for raising it.

To avoid further misunderstanding, I have deleted my earlier emotional and inappropriate reply. Going forward, I will separate unrelated disputes from normal technical feedback.

AVIDS2 avatar Jun 03 '26 11:06 AVIDS2

This feature has been implemented and shipped in 1.0.10.

What landed:

  • memorix_handoff MCP tool — creates structured handoff artifacts with durable observations (valueCategory core, immune to retention archival), event bus emission, and recipient notification
  • memorix receipt CLI command — generates privacy-safe handoff receipts with SHA-256 hashed identifiers, explicit omission of raw memory text / chat transcripts / search queries / tool arguments / local file paths
  • src/team/handoff.ts — core handoff library with fanout-on-write broadcast and role validation
  • src/cli/receipt-service.ts — receipt generation with boundary statement and privacy model

Closing as completed. Feel free to reopen if the implementation doesn't cover your use case.

AVIDS2 avatar Jun 08 '26 10:06 AVIDS2