Skip to main content

Adapter Guide

Building a GMP-conformant backend means implementing the MemoryBackend protocol and declaring only the capabilities you actually satisfy.

  1. Scaffold with grafomem init.
  2. Start minimal — implement AUDIT only (write + retrieve + audit).
  3. Add one capability at a time, running grafomem check after each (see progression).
  4. Run full conformance and publish a signed report (full conformance).

The cardinal rule: declare less, not more. An undeclared capability must raise CapabilityNotSupported; a declared one must pass its two-sided test.

Source: docs/adapter-guide.md