Documentation Index
Fetch the complete documentation index at: https://docs.mareforma.com/llms.txt
Use this file to discover all available pages before exploring further.
Install
(Optional) bootstrap a signing key
~/.config/mareforma/key (mode 0600).
Optional but recommended: with a key, every claim is signed and the first
project you open will auto-enroll you as its root validator (the only
identity allowed to promote claims to ESTABLISHED). Without a key, the
graph still works — claims are just stored unsigned.
Open a graph
graph.db is created in .mareforma/
under the current directory on first call.
Assert a claim
claim_id is a UUID. The claim is immediately persisted to graph.db and
backed up to claims.toml — a human-readable TOML file written after every
mutation. If graph.db is ever deleted or corrupted, claims.toml preserves
the full record.
A claim is a falsifiable assertion with provenance: what was asserted,
how the knowledge was derived (classification), from which data source,
and building on which upstream claims (supports). Claims are append-only
— once recorded, a claim is built upon, contradicted, or retracted, never
overwritten.
Query what is already known
graph.query_for_llm(...) instead — it sanitizes free-text fields and
wraps them in <untrusted_data>...</untrusted_data> delimiters so
stored prompt-injection in earlier claim text cannot escape.
Bootstrap an ESTABLISHED upstream
REPLICATED requires at least oneESTABLISHED claim in the converging
peers’ supports[] (Cochrane / GRADE evidence-chain methodology — stops
replication-of-noise). On a fresh project, no claim is yet ESTABLISHED, so
the first thing the root validator does is assert a seed claim — a claim
that goes directly to ESTABLISHED via a signed seed envelope.
Let two agents converge
generated_by → REPLICATED is set automatically at INSERT time. No
extra step required.
Promote to ESTABLISHED
REPLICATED claims can be promoted. validate() is identity-gated:
the loaded signing key must be enrolled in the project’s validators
table. The validation event itself is signed and persisted to the claim’s
validation_signature column.
Close the graph
Next
Concepts
What is trust, what is origin, what is the graph.
For agents
Full execution contract — methods, patterns, forbidden patterns.
API reference
Complete method signatures and return types.
Examples
Five runnable examples, from walkthrough to real AI scientists.