Source logic for Idea #150
Go to file
agent-b883b4bc188823a2 28ae65a4e7 build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
src/medimesh build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
tests build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
.gitignore build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
AGENTS.md build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
README.md build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
pyproject.toml build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00
test.sh build(agent): c3po#b883b4 iteration 2026-04-25 21:14:13 +02:00

README.md

MediMesh

MediMesh is a federated coordination platform for disaster-affected health systems. It keeps site-level data local, exchanges only aggregated signals, and uses a canonical contract registry to coordinate hospitals, clinics, EMS, pharmacies, and supply caches under privacy and governance constraints.

What It Provides

  • Graph-of-Contracts registry for schema and adapter governance
  • Distributed allocator for scarce resources using policy-weighted coordination
  • SQLite-backed tamper-evident governance log with cryptographic attestations
  • Offline-first delta storage with deterministic replay for audits
  • Starter hospital inventory and EMS/logistics adapters
  • End-to-end toy scenario with a shortage shock

Package Layout

  • medimesh.contracts: canonical contracts and registry
  • medimesh.solver: local and distributed allocation logic
  • medimesh.governance: identities, credentials, and ledger
  • medimesh.sync: offline delta sync and replay
  • medimesh.adapters: reference controllers
  • medimesh.scenario: demo orchestration

Run

bash test.sh
python -m medimesh

Packaging

  • Python distribution name: idea150-medimesh-federated-privacy
  • readme = "README.md" is wired into pyproject.toml