From 2d6e7f9b7532a5c80ef10855d7e85d13f8cc796e Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Sun, 26 Jul 2026 09:29:14 +0530 Subject: [PATCH 1/2] feat: add NodeTypeOperations constant to graph contracts --- graph/graph.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graph/graph.go b/graph/graph.go index f231d59..eed6636 100644 --- a/graph/graph.go +++ b/graph/graph.go @@ -35,6 +35,8 @@ const ( NodeTypeQuality NodeType = "quality" // NodeTypeExecution represents an execution journal node NodeTypeExecution NodeType = "execution" + // NodeTypeOperations represents an operations orchestration node + NodeTypeOperations NodeType = "operations" ) // NodeKind classifies a node by the ecosystem view to which it belongs. @@ -62,7 +64,7 @@ func ParseNodeKind(s string) (NodeKind, error) { // ParseNodeType normalizes a graph node type. func ParseNodeType(s string) (NodeType, error) { switch NodeType(strings.ToLower(strings.TrimSpace(s))) { - case NodeTypeAgent, NodeTypeTool, NodeTypeFunction, NodeTypeStart, NodeTypeEnd, NodeTypeRouter, NodeTypeQuality, NodeTypeExecution: + case NodeTypeAgent, NodeTypeTool, NodeTypeFunction, NodeTypeStart, NodeTypeEnd, NodeTypeRouter, NodeTypeQuality, NodeTypeExecution, NodeTypeOperations: return NodeType(strings.ToLower(strings.TrimSpace(s))), nil default: return "", fmt.Errorf("graph: unknown node type %q", s) From 3916501687d577a7a4178a6c8d002bdbbfa3ae7a Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Sun, 26 Jul 2026 11:32:49 +0530 Subject: [PATCH 2/2] feat: add NodeTypeSystem alias for backward compatibility --- graph/graph.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graph/graph.go b/graph/graph.go index eed6636..39dfed8 100644 --- a/graph/graph.go +++ b/graph/graph.go @@ -37,6 +37,8 @@ const ( NodeTypeExecution NodeType = "execution" // NodeTypeOperations represents an operations orchestration node NodeTypeOperations NodeType = "operations" + // NodeTypeSystem is an alias for NodeKindSystem for backward compatibility + NodeTypeSystem NodeType = "system" ) // NodeKind classifies a node by the ecosystem view to which it belongs.