# eduardd76/multiagent-netops-kit architecture

> Architecture diagram of the GitHub repository eduardd76/multiagent-netops-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eduardd76/multiagent-netops-kit
- Repository: https://github.com/eduardd76/multiagent-netops-kit

## Overview

This teaching kit guides an incident from read-only network evidence through deterministic fault diagnosis, a playbook-constrained change proposal, human approval, execution, and post-change validation. The main runtime is assembled by the orchestrator; the coordinator dispatches specialist agents and owns the gated workflow. Distinct supporting capabilities include a simulated or real cEOS network, interchangeable LLMs, MCP read-only access, extension ports, audit, and trajectory scoring. The README documents these branches; sampled excerpts establish only some individual calls, so uncertain links are omitted.

Main entry points: [`netops/network.py`](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/network.py) (Network facade), [`netops/agents/coordinator.py`](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/coordinator.py) (Team coordinator), [`netops/protocol.py`](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/protocol.py) (Agent message bus), [`netops/orchestrator.py`](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/orchestrator.py) (Incident orchestrator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_network["Network access"]
  node_network["Network facade<br/>[network.py]"]
  node_device["Device drivers<br/>[driver.py]"]
  node_sim["Simulated fabric<br/>[fabric.py]"]
  node_ceos["Real cEOS adapter<br/>[ceos.py]"]
  node_readers["EOS readers<br/>[eos.py]"]
end

subgraph group_diagnosis["Agent workflow"]
  node_agents["Single-agent tools<br/>[single.py]"]
  node_toolbox["Tool allowlists<br/>[tools.py]"]
  node_evidence[("Evidence store<br/>[evidence.py]")]
  node_troubleshoot["Troubleshooting specialist<br/>[troubleshooting.py]"]
  node_config["Config specialist<br/>[config.py]"]
  node_coordinator["Team coordinator<br/>[coordinator.py]"]
  node_bus["Agent message bus<br/>[protocol.py]"]
end

subgraph group_change["Safe change"]
  node_validation["Change validation<br/>[validation.py]"]
  node_playbook["Playbook and command gate<br/>[playbook.py]"]
  node_approval["Approval gate<br/>[approval.py]"]
  node_executor["Change executor<br/>[executor.py]"]
end

subgraph group_support["Runtime and extensions"]
  node_orchestrator["Incident orchestrator<br/>[orchestrator.py]"]
  node_llm["LLM backends<br/>[llm.py]"]
  node_scoring["Trajectory scoring<br/>[scoring.py]"]
  node_mcp["Read-only MCP server<br/>[mcp_server.py]"]
  node_ports["Adapter ports<br/>[ports.py]"]
  node_audit["Audit emission<br/>[audit_emit.py]"]
end

node_student(("Student / operator"))
node_human(("Human approver"))

node_student -->|"starts incident"| node_orchestrator
node_orchestrator -->|"creates incident"| node_network
node_orchestrator -->|"runs single agent"| node_agents
node_orchestrator -->|"starts team"| node_coordinator
node_orchestrator -->|"claims outcomes"| node_scoring
node_network -->|"uses drivers"| node_device
node_network -->|"selects reader"| node_readers
node_sim -->|"implements driver"| node_device
node_ceos -->|"implements driver"| node_device
node_agents -->|"calls tools"| node_toolbox
node_toolbox -->|"reads or changes"| node_network
node_toolbox -->|"stores results"| node_evidence
node_coordinator -->|"dispatches messages"| node_bus
node_bus -->|"routes diagnosis"| node_troubleshoot
node_bus -->|"routes proposal"| node_config
node_bus -->|"routes validation"| node_validation
node_troubleshoot -->|"runs readbook"| node_toolbox
node_troubleshoot -->|"records findings"| node_evidence
node_troubleshoot -->|"ranks findings"| node_llm
node_config -->|"renders proposal"| node_playbook
node_validation -->|"checks proposal"| node_playbook
node_coordinator -->|"requests approval"| node_approval
node_approval -.->|"presents change"| node_human
node_human -.->|"approves or rejects"| node_approval
node_coordinator -->|"applies approved change"| node_executor
node_executor -->|"configures devices"| node_network
node_executor -->|"consumes token"| node_approval
node_coordinator -.->|"chooses root cause"| node_llm
node_mcp -.->|"serves read tools"| node_network
node_ports -.->|"defines adapters"| node_network
node_bus -->|"emits events"| node_audit
node_approval -->|"emits events"| node_audit
node_scoring -->|"scores trajectories"| node_agents

click node_orchestrator "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/orchestrator.py"
click node_network "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/network.py"
click node_device "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/device/driver.py"
click node_sim "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/device/fabric.py"
click node_ceos "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/device/ceos.py"
click node_readers "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/readers/eos.py"
click node_agents "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/single.py"
click node_toolbox "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/tools.py"
click node_evidence "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/evidence.py"
click node_troubleshoot "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/troubleshooting.py"
click node_config "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/config.py"
click node_validation "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/validation.py"
click node_coordinator "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/coordinator.py"
click node_bus "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/protocol.py"
click node_playbook "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/playbook.py"
click node_approval "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/approval.py"
click node_executor "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/executor.py"
click node_llm "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/llm.py"
click node_scoring "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/scoring.py"
click node_mcp "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/mcp_server.py"
click node_ports "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/ports.py"
click node_audit "https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/audit_emit.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_network,node_device,node_sim,node_ceos,node_readers toneBlue
class node_agents,node_toolbox,node_evidence,node_troubleshoot,node_config,node_coordinator,node_bus toneAmber
class node_validation,node_playbook,node_approval,node_executor toneMint
class node_orchestrator,node_llm,node_scoring,node_mcp,node_ports,node_audit toneRose
class node_student,node_human toneIndigo
```

## Components

### Network access

- [Network facade](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/network.py): `netops/network.py`
- [Device drivers](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/device/driver.py): `netops/device/driver.py`
- [Simulated fabric](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/device/fabric.py): `netops/device/fabric.py`
- [Real cEOS adapter](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/device/ceos.py): `netops/device/ceos.py`
- [EOS readers](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/readers/eos.py): `netops/readers/eos.py`

### Agent workflow

- [Single-agent tools](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/single.py): `netops/agents/single.py`
- [Tool allowlists](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/tools.py): `netops/agents/tools.py`
- [Evidence store](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/evidence.py): `netops/evidence.py`
- [Troubleshooting specialist](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/troubleshooting.py): `netops/agents/troubleshooting.py`
- [Config specialist](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/config.py): `netops/agents/config.py`
- [Team coordinator](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/coordinator.py): `netops/agents/coordinator.py`
- [Agent message bus](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/protocol.py): `netops/protocol.py`

### Safe change

- [Change validation](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/agents/validation.py): `netops/agents/validation.py`
- [Playbook and command gate](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/playbook.py): `netops/playbook.py`
- [Approval gate](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/approval.py): `netops/approval.py`
- [Change executor](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/executor.py): `netops/executor.py`

### Runtime and extensions

- [Incident orchestrator](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/orchestrator.py): `netops/orchestrator.py`
- [LLM backends](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/llm.py): `netops/llm.py`
- [Trajectory scoring](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/scoring.py): `netops/scoring.py`
- [Read-only MCP server](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/mcp_server.py): `netops/mcp_server.py`
- [Adapter ports](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/ports.py): `netops/ports.py`
- [Audit emission](https://github.com/eduardd76/multiagent-netops-kit/blob/main/netops/audit_emit.py): `netops/audit_emit.py`

### Other components

- **Student / operator**
- **Human approver**

## Connections

- Student / operator → Incident orchestrator: starts incident (evidence: `netops/orchestrator.py`)
- Incident orchestrator → Network facade: creates incident (evidence: `netops/orchestrator.py`)
- Incident orchestrator → Single-agent tools: runs single agent (evidence: `netops/orchestrator.py`)
- Incident orchestrator → Team coordinator: starts team (evidence: `netops/orchestrator.py`)
- Incident orchestrator → Trajectory scoring: claims outcomes (evidence: `netops/orchestrator.py`)
- Network facade → Device drivers: uses drivers (evidence: `netops/network.py`)
- Network facade → EOS readers: selects reader (evidence: `netops/network.py`)
- Simulated fabric → Device drivers: implements driver (evidence: `netops/device/simulator.py`)
- Real cEOS adapter → Device drivers: implements driver (evidence: `netops/device/ceos.py`)
- Single-agent tools → Tool allowlists: calls tools (evidence: `netops/agents/single.py`)
- Tool allowlists → Network facade: reads or changes (evidence: `netops/agents/tools.py`)
- Tool allowlists → Evidence store: stores results (evidence: `netops/agents/tools.py`)
- Team coordinator → Agent message bus: dispatches messages (evidence: `netops/agents/coordinator.py`)
- Agent message bus → Troubleshooting specialist: routes diagnosis (evidence: `netops/agents/coordinator.py`)
- Agent message bus → Config specialist: routes proposal (evidence: `netops/agents/coordinator.py`)
- Agent message bus → Change validation: routes validation (evidence: `netops/agents/coordinator.py`)
- Troubleshooting specialist → Tool allowlists: runs readbook (evidence: `netops/agents/troubleshooting.py`)
- Troubleshooting specialist → Evidence store: records findings (evidence: `netops/agents/troubleshooting.py`)
- Troubleshooting specialist → LLM backends: ranks findings (evidence: `netops/agents/troubleshooting.py`)
- Config specialist → Playbook and command gate: renders proposal (evidence: `netops/agents/config.py`)
- Change validation → Playbook and command gate: checks proposal (evidence: `netops/agents/validation.py`)
- Team coordinator → Approval gate: requests approval (evidence: `netops/agents/coordinator.py`)
- Approval gate → Human approver: presents change
- Human approver → Approval gate: approves or rejects (evidence: `netops/approval.py`)
- Team coordinator → Change executor: applies approved change (evidence: `netops/agents/coordinator.py`)
- Change executor → Network facade: configures devices (evidence: `netops/executor.py`)
- Change executor → Approval gate: consumes token (evidence: `netops/executor.py`)
- Team coordinator → LLM backends: chooses root cause (evidence: `netops/agents/coordinator.py`)
- Read-only MCP server → Network facade: serves read tools
- Adapter ports → Network facade: defines adapters
- Agent message bus → Audit emission: emits events (evidence: `netops/protocol.py`)
- Approval gate → Audit emission: emits events (evidence: `netops/approval.py`)
- Trajectory scoring → Single-agent tools: scores trajectories (evidence: `netops/scoring.py`)
