Inspector, Relationships & graph
Relationships are the typed edges that turn a flat list of entities into a navigable graph. Inspector exposes them as a flat list (good for filtering and audit) and as an interactive graph explorer (good for understanding context around a single entity).
Relationship list
The list at /relationships shows every typed edge, PART_OF, REFERS_TO, EMBEDS, SUPERSEDES, and any custom types, with source and target entity, the agent that created the edge, and the relationship's trust tier (it inherits the writer's). Filters: by relationship type, by source or target entity_type, and by agent.
| Source | Type | Target | Agent | Created |
|---|---|---|---|---|
| msg · turn 4 (user) | PART_OF | conversation · Q2 review | claude-code | 12:30 |
| msg · turn 4 (user) | REFERS_TO | transaction · Vercel | claude-code | 12:30 |
| receipt · vercel-2026-04 | EMBEDS | file_asset · vercel-2026-04.pdf | claude-code | 11:08 |
| task · follow up Sarah | REFERS_TO | contact · Sarah Park | cursor-agent | 10:55 |
Graph explorer
The Graph Explorer (/graph) renders a 1- or 2-hop neighborhood around a chosen entity, using @xyflow/react for layout. Nodes are coloured by entity_type; edges by relationship type. Useful examples: confirming that a refund linked to the right charge, that a calendar event linked to the correct attendees, or that an embedded file linked back to the right container row.
Edge inspection
Right-clicking an edge opens its underlying relationship row: type, source, target, creator agent, trust tier, and any relationship-level metadata. Like observations, relationships are immutable; "removing" an edge is modeled with a separate SUPERSEDES link rather than a destructive delete.
Common workflows
- Audit a turn, center the graph on an
agent_messageto see every entity it created or referenced, with PART_OF and REFERS_TO edges. - Find orphans, filter relationships by source or target type and look for entities with zero incoming edges to a conversation.
- Trace a file, center on a
file_assetand walk EMBEDS edges back to every container row that referenced it.
For the underlying API and edge semantics, see REST API.