markspec/traceability-graph/v1.json

Graph payload for visualization and traversal.

Schema URL: https://driftsys.github.io/schemas/markspec/traceability-graph/v1.json

Nodes and edges for traceability graph visualization. Produced at api/traceability/graph.json. Nodes are colored by type category (requirement, architecture, verification, custom, reference) and edges are styled by link kind (satisfies, derived-from, allocates, verifies, implements). Designed for D3 force-directed layout rendering.

Quick guide

Properties

PathTypeRequiredDescription
nodes[]object[]yesGraph nodes, one per entry
nodes[].idstringyesNode identifier (display ID)
nodes[].displayIdstringyesHuman-readable display ID
nodes[].titlestringyesEntry title for tooltip/label
nodes[].kindstringyesNode kind for categorization
nodes[].urlstringyesRelative URL for click-to-navigate
nodes[].entryTypestringEntry type abbreviation
edges[]object[]yesDirected traceability edges
edges[].sourcestringyesDisplay ID of the source node
edges[].targetstringyesDisplay ID of the target node
edges[].kindstringyesLink kind (see values below)

Edge kind values

satisfies, satisfiedBy, derivedFrom, derivedTo, allocates, allocatedBy, verifies, verifiedBy, implements, implementedBy

Common pitfall

Do not assume nodes[].entryType exists for all node kinds.