Implement canonical graph document and type registry #94

Merged
lost-rob0t merged 8 commits from agent/issue-7-graph-core into main 2026-07-26 13:41:04 +00:00
lost-rob0t commented 2026-07-26 13:32:25 +00:00 (Migrated from github.com)

Closes #7

What changed

  • add a platform-independent canonical graph document model
  • define graph metadata, nodes, edges, positions, viewport, timestamps, type-library references, and extension fields
  • add stable identifier validation
  • reject duplicate IDs, dangling edges, invalid view state, malformed properties, and endpoint constraint violations
  • add deterministic node and edge type registries with property definitions and display hints
  • keep unknown node and edge types visible through generic fallback definitions
  • add a bridge from existing StarIntel documents into the canonical graph model
  • export the graph core through src/core

Validation

  • blank graph creation and validation
  • deterministic typed fixture conformance
  • unknown-type and extension-field round trips
  • invalid identifier, duplicate ID, and dangling-edge rejection
  • endpoint constraint enforcement
  • typed property validation
  • registry duplicate detection and deterministic ordering

The core imports no React, Cytoscape, storage, or network modules.

Closes #7 ## What changed - add a platform-independent canonical graph document model - define graph metadata, nodes, edges, positions, viewport, timestamps, type-library references, and extension fields - add stable identifier validation - reject duplicate IDs, dangling edges, invalid view state, malformed properties, and endpoint constraint violations - add deterministic node and edge type registries with property definitions and display hints - keep unknown node and edge types visible through generic fallback definitions - add a bridge from existing StarIntel documents into the canonical graph model - export the graph core through `src/core` ## Validation - blank graph creation and validation - deterministic typed fixture conformance - unknown-type and extension-field round trips - invalid identifier, duplicate ID, and dangling-edge rejection - endpoint constraint enforcement - typed property validation - registry duplicate detection and deterministic ordering The core imports no React, Cytoscape, storage, or network modules.
Sign in to join this conversation.
No description provided.