Graph Export
What it does
Section titled “What it does”hyodo graph export writes the ledger’s structure — atomic event ids,
parent chains, evidence links, and pillar clusters — as one JSON file an
external note system can turn into permanent notes. It mirrors hyodo report --format graph’s own node/edge shape and adds a backlinks index
(the reverse of every evidence_refs entry) and pillar clusters. It also
powers the local evidence-graph viewer’s per-actor “rings” drill-down
(skills, memory, routines, tools) for each row.
hyodo graph export --out .hyodo/graph.json --yesBy default the command asks before writing, mirroring hyodo connect’s
consent pattern; --yes skips the prompt for scripted callers.
What is stored
Section titled “What is stored”- Node/edge ids,
actor_idlabels, and pillarclusters— the same shapehyodo report --format graphalready emits. - A
backlinksmap of{cited_event_id: [citing_event_id, ...]}. - Per-actor rings built only from the local ledger and local manifests
(
.hyodo/skills/manifest.json,.hyodo/chunks-manifest.json,.hyodo/connect.json) — never the network.
What is never stored
Section titled “What is never stored”- Event bodies, chunk text, or embeddings — only ids, parents, refs, claims, and clusters cross this bridge.
- A score, probability, or confidence value in any node, edge, or cluster.
- Anything read back from an external note system — this is a one-way export, not a sync target.
Exit codes
Section titled “Exit codes”| Outcome | Exit |
|---|---|
| Export written | 0 |
Confirmation declined without --yes |
1 |
| Ledger unreadable, or the write itself failed | 2 |
An empty or pre-1-B ledger still exports successfully with empty
nodes/edges/backlinks — an honestly empty graph is a valid graph.
Full reference
Section titled “Full reference”docs/GRAPH_EXPORT.md covers the actor-rings shape and cluster-assignment rules in full.