Component evidence

ServiceNode (graph/schema.py)

Corbell · corbell/core/graph/schema.py · python · Apache-2.0
infra

Defines graph nodes and storage interface for modeling microservice architectures and tracking dependencies.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/Corbell-AI/Corbell | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Graph schema: nodes, edges, and the GraphStore abstract interface."""

from __future__ import annotations

from abc import ABC, abstractmethod
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional


@dataclass
class ServiceNode:
    """Represents a discovered service (microservice, API, worker, etc.)."""

    id: str
    name: str
    repo: str
    language: str = "python"
    tags: List[str] = field(default_factory=list)
    service_type: str = "api"  # api | worker | cron | cli | service | infrastructure


@dataclass
class DataStoreNode:
    """Repres

... (truncated -- full source via MCP)