Skip to content

h3rb3rn/moe-libris

Repository files navigation

MoE Libris

Federated Knowledge Exchange Hub for MoE Sovereign instances.

Latin liber = free & book.

License Docs Website

Sovereign AI instances can push knowledge to a Libris hub, which audits and queues it for human review before approved triples become available for federated pull. Inspired by Fediverse architecture — voluntary participation, bilateral trust, no forced assimilation.


Quick Start

cp .env.example .env
# Edit: POSTGRES_PASSWORD, NEO4J_PASSWORD, LIBRIS_NODE_ID, LIBRIS_ADMIN_KEY

docker compose up -d

# API:  http://localhost:8080
# Docs: http://localhost:8080/docs  (interactive OpenAPI)

Architecture

graph LR
    A["MoE Sovereign A"] -->|push| Hub["MoE Libris Hub"]
    B["MoE Sovereign B"] -->|push| Hub
    Hub -->|pull| A
    Hub -->|pull| B

    subgraph Hub["MoE Libris Hub"]
        PA["Pre-Audit"] --> AQ["Audit Queue"] --> GG["Global Graph"]
    end
Loading

Security model: Knowledge bundles are transmitted over mTLS (encrypted in transit). There is no end-to-end encryption — the Hub's Pre-Audit pipeline inspects the JSON-LD payload content, and a human Admin reviews bundles in the Audit Queue before graph merge. Privacy protection is handled at the sender node via the Privacy Scrubber before the bundle ever leaves the originating instance.

Stack

FastAPI · PostgreSQL · Neo4j · Valkey · Docker

Tests

pytest tests/   # 43 tests: security, pre-audit, abuse prevention

Documentation

Full documentation at docs.moe-sovereign.org/federation:

Links

License

Apache License 2.0

About

Knowlege sharing Server for MoE Sovereign

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors