惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
B
Blog
F
Fortinet All Blogs
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
A
About on SuperTechFans
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
MyScale Blog
MyScale Blog
B
Blog RSS Feed

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - upcomingsimplecoder/mosaic: Trust primitives for...
Jedidiah37 · 2026-04-29 · via Hacker News - Newest: "AI"

Trust primitives for AI agent memory. A portable wire spec, two reference servers, and a 17-case conformance suite for the audit and policy layer that AI memory systems are missing today.


Why this exists

Today's AI memory libraries (mem0, Letta, graphiti, txtai, ...) are excellent at storing memories. They were not designed to prove what they did with those memories - what was deleted, when, by whom, under what policy. As AI agents move into regulated environments (GDPR Art. 17 erasure, SOC 2 Type 2 audits, HIPAA, the EU AI Act) that gap becomes load-bearing.

MOSAIC defines four trust primitives every memory substrate should expose, and ships them as an open HTTP wire spec:

  1. Cryptographic deletion receipts - every forget returns a signed, chain-linked receipt that an external auditor can verify without trusting the substrate.
  2. Default-DENY policy DSL - a small contract language with glob subjects, priority resolution, and DENY-wins-tie semantics.
  3. Bi-temporal validity - every fact carries valid_at, invalid_at, and expired_at so historical state can be queried.
  4. Tamper-evident audit chain - Merkle-linked deletion log, per-tenant, replayable.

The spec is intentionally minimal. It does not compete with the storage / retrieval / extraction layers of the upstream libraries - it sits above them.


What's in this repo

mosaic/
├── agentic/                   Python reference substrate + HTTP server
│   ├── memory/store.py        SQLite + bi-temporal columns
│   ├── memory/tenants.py      per-tenant store factory
│   ├── mosaic_forgetting.py   HMAC-Merkle deletion receipt chain
│   ├── mosaic_contracts.py    default-DENY policy engine
│   └── memory_api.py          Python reference HTTP server
│
├── mosaic-ts/                 TypeScript reference HTTP server
│
├── conformance/               the spec + the runner
│   ├── profiles/              `mosaic-memory-v1` (11 required + 6 optional)
│   ├── cases/                 17 JSON-driven case files
│   ├── runner/                stateless HTTP runner
│   └── render_leaderboard.py  auto-renders the matrix
│
├── adapters/                  HTTP wrappers around real upstream packages
│   ├── mem0_real.py           wraps mem0ai
│   ├── txtai_real.py          wraps txtai
│   ├── letta_real.py          proxies to live Letta server
│   └── graphiti_real.py       Cypher direct against live Neo4j
│
├── integrations/acpx-flow-memory/   npm package - 4 acpx flow primitives
├── tests/                            7 pytest files
├── demo/index.html                   static browser demo
└── LEADERBOARD.md / CHANGELOG.md / WHAT_REAL_NUMBERS_MEAN.md

Conformance results

Both reference servers score full marks on the mosaic-memory-v1 profile. Real upstream packages are scored against the same suite, with no shimming - each adapter is a thin HTTP wrapper that calls the actual library or service.

Substrate Required (11) Optional (6) Total Verdict
MOSAIC reference (Python) 11/11 6/6 17/17 ✅ CONFORMANT
MOSAIC reference (TypeScript) 11/11 6/6 17/17 ✅ CONFORMANT
graphiti (Neo4j 5) 5/11 6/6 11/17 partial
Letta v0.16.7 5/11 4/6 9/17 partial
txtai 9.7.0 5/11 4/6 9/17 partial
mem0 2.0.1 5/11 3/6 8/17 partial

The 6 cases none of the upstream substrates currently pass are the trust primitives: signed receipts, chain verification, default-DENY, DENY-wins-tie, case + whitespace normalisation. These are the behaviours an enterprise procurement / compliance review typically asks for.

graphiti is the strongest non-MOSAIC substrate - its bi-temporal edge model already covers the time-axis, leaving only the trust layer above it. graphiti + MOSAIC compose naturally.

See LEADERBOARD.md and WHAT_REAL_NUMBERS_MEAN.md for per-case breakdowns and reproduction notes.


Quick start

Run the reference server (Python)

pip install -e .
python -m agentic.memory_api --port 5151

Run the reference server (TypeScript / Node, no build needed)

node mosaic-ts/server.js --port 5119

Score a substrate against the conformance suite

python -m conformance.runner \
    --include-optional \
    --url http://127.0.0.1:5151 \
    --report results/python-ref.json

Render the leaderboard from a directory of reports

python -m conformance.render_leaderboard \
    --reports-dir results --out LEADERBOARD_AUTO.md

Scoring real upstream substrates

# Infra
docker run -d --name neo4j -p 7687:7687 -p 7474:7474 \
    -e NEO4J_AUTH=neo4j/mosaic-test-password neo4j:5
docker run -d --name letta -p 8283:8283 letta/letta:latest

# Python deps
pip install -e ".[adapters]"

# Adapters (each on its own port)
python -m adapters.mem0_real     --port 8811 &
python -m adapters.txtai_real    --port 8812 &
python -m adapters.letta_real    --port 8813 &
python -m adapters.graphiti_real --port 8814 &

# Run conformance against each
for p in 8811 8812 8813 8814; do
  python -m conformance.runner --include-optional \
    --url http://127.0.0.1:$p \
    --report results/leaderboard-port$p.json
done

Tests

pip install -e ".[dev]"
pytest tests/ -v

Covers the substrate primitives, the bi-temporal store, contract fuzzing, cross-language signature parity (Python ⇔ TypeScript byte equality), differential conformance, the chain-concurrency stress test, and the acpx integration.


Roadmap

  • More upstream substrates wrapped (zep, cognee, langmem, MIRIX).
  • A reference Go and Rust implementation of the wire spec.
  • Hosted leaderboard service so substrates can self-submit results.
  • An optional v2 profile expanding contract grammar (RBAC roles, rate-limited DENY) and adding pluggable signature schemes.

Contributing

PRs welcome. Particularly interested in:

  • Adapters wrapping additional upstream memory libraries.
  • New conformance cases that surface real behavioural divergence.
  • Bug-finding via cross-implementation runs (this is how the v0.4.1 Python /v0/forget table-name bug was caught).

Open an issue to discuss before large changes.


License

MIT. See LICENSE.


Contact

Open an issue, or reach the author via @upcomingsimplecoder.