# ramprakash-munugapati/sdd-agent architecture

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

- Interactive diagram: https://gitdiagram.com/ramprakash-munugapati/sdd-agent
- Repository: https://github.com/ramprakash-munugapati/sdd-agent

## Overview

sdd-agent is local, review-first tooling for guiding and checking changes in a trusted target repository. Its principal workflow moves through specification, clarification, planning, task definition, approved implementation, and verification; the CLI is the documented entry point for approvals and verification. Separate capabilities include artifact validation, fingerprint-bound approvals, a loopback dashboard API and browser UI, and historical evidence. The README documents these relationships, but sdd_agent.py was not sampled, so internal calls and routing are not inferred.

Main entry points: [`sdd_agent.py`](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py) (CLI), [`SPEC.md`](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/SPEC.md) (Specification), [`.github/prompts/sdd-specify.prompt.md`](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-specify.prompt.md) (Specify), [`.github/prompts/sdd-clarify.prompt.md`](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-clarify.prompt.md) (Clarify)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["SDD workflow"]
  node_specify["Specify"]
  node_clarify["Clarify"]
  node_plan["Plan<br/>[sdd-plan.prompt.md]"]
  node_tasks["Tasks"]
  node_implement["Implement"]
  node_verify_prompt["Verify guidance"]
end

subgraph group_governance["Approval and validation"]
  node_spec["Specification<br/>[SPEC.md]"]
  node_plan_artifact["Plan artifact<br/>[PLAN.md]"]
  node_task_artifact["Task artifact<br/>[TASKS.json]"]
  node_validation["Artifact validation<br/>[sdd_agent.py]"]
  node_approval[("Approval records<br/>[approvals.json]")]
end

subgraph group_runtime["CLI and verification"]
  node_cli["CLI<br/>[sdd_agent.py]"]
  node_verification["Verification engine<br/>[sdd_agent.py]"]
end

subgraph group_dashboard["Dashboard"]
  node_dashboard_api["Dashboard API<br/>[sdd_agent.py]"]
  node_dashboard_ui["Dashboard UI<br/>[dashboard.html]"]
  node_evidence[("Historical evidence<br/>[.sdd]")]
end

node_developer(("Developer / reviewer"))
node_target["Trusted target"]

node_developer -->|"runs commands"| node_cli
node_developer -->|"provides requirements"| node_specify
node_specify -->|"creates or edits"| node_spec
node_developer -->|"answers questions"| node_clarify
node_clarify -->|"resolves ambiguity"| node_spec
node_developer -->|"plans work"| node_plan
node_plan -->|"produces"| node_plan_artifact
node_developer -->|"defines tasks"| node_tasks
node_tasks -->|"maintains"| node_task_artifact
node_developer -->|"requests changes"| node_implement
node_implement -->|"changes"| node_target
node_developer -->|"records approvals"| node_cli
node_cli -->|"records fingerprints"| node_approval
node_validation -->|"validates"| node_spec
node_validation -->|"validates"| node_plan_artifact
node_validation -->|"validates"| node_task_artifact
node_cli -->|"runs verify"| node_verification
node_verification -->|"checks"| node_target
node_verify_prompt -->|"guides"| node_verification
node_developer -->|"starts server"| node_cli
node_cli -->|"serves"| node_dashboard_api
node_dashboard_ui -->|"requests status"| node_dashboard_api
node_dashboard_api -->|"shows history"| node_evidence

click node_cli "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py"
click node_specify "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-specify.prompt.md"
click node_clarify "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-clarify.prompt.md"
click node_plan "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-plan.prompt.md"
click node_tasks "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-tasks.prompt.md"
click node_implement "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-implement.prompt.md"
click node_verify_prompt "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-verify.prompt.md"
click node_spec "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/SPEC.md"
click node_plan_artifact "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/PLAN.md"
click node_task_artifact "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/TASKS.json"
click node_validation "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py"
click node_approval "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.sdd/approvals.json"
click node_verification "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py"
click node_dashboard_api "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py"
click node_dashboard_ui "https://github.com/ramprakash-munugapati/sdd-agent/blob/main/dashboard.html"
click node_evidence "https://github.com/ramprakash-munugapati/sdd-agent/tree/main/.sdd"

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_specify,node_clarify,node_plan,node_tasks,node_implement,node_verify_prompt,node_developer toneBlue
class node_spec,node_plan_artifact,node_task_artifact,node_validation,node_approval toneAmber
class node_cli,node_verification toneMint
class node_dashboard_api,node_dashboard_ui,node_evidence toneRose
class node_target toneIndigo
```

## Components

### SDD workflow

- [Specify](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-specify.prompt.md): `.github/prompts/sdd-specify.prompt.md`
- [Clarify](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-clarify.prompt.md): `.github/prompts/sdd-clarify.prompt.md`
- [Plan](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-plan.prompt.md): `.github/prompts/sdd-plan.prompt.md`
- [Tasks](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-tasks.prompt.md): `.github/prompts/sdd-tasks.prompt.md`
- [Implement](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-implement.prompt.md): `.github/prompts/sdd-implement.prompt.md`
- [Verify guidance](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.github/prompts/sdd-verify.prompt.md): `.github/prompts/sdd-verify.prompt.md`

### Approval and validation

- [Specification](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/SPEC.md): `SPEC.md`
- [Plan artifact](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/PLAN.md): `PLAN.md`
- [Task artifact](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/TASKS.json): `TASKS.json`
- [Artifact validation](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py): `sdd_agent.py`
- [Approval records](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/.sdd/approvals.json): `.sdd/approvals.json`

### CLI and verification

- [CLI](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py): `sdd_agent.py`
- [Verification engine](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py): `sdd_agent.py`

### Dashboard

- [Dashboard API](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/sdd_agent.py): `sdd_agent.py`
- [Dashboard UI](https://github.com/ramprakash-munugapati/sdd-agent/blob/main/dashboard.html): `dashboard.html`
- [Historical evidence](https://github.com/ramprakash-munugapati/sdd-agent/tree/main/.sdd): `.sdd`

### Other components

- **Developer / reviewer**
- **Trusted target**

## Connections

- Developer / reviewer → CLI: runs commands (evidence: `README.md`)
- Developer / reviewer → Specify: provides requirements (evidence: `README.md`)
- Specify → Specification: creates or edits (evidence: `README.md`)
- Developer / reviewer → Clarify: answers questions (evidence: `README.md`)
- Clarify → Specification: resolves ambiguity (evidence: `README.md`)
- Developer / reviewer → Plan: plans work (evidence: `README.md`)
- Plan → Plan artifact: produces (evidence: `README.md`)
- Developer / reviewer → Tasks: defines tasks (evidence: `README.md`)
- Tasks → Task artifact: maintains (evidence: `README.md`)
- Developer / reviewer → Implement: requests changes (evidence: `README.md`)
- Implement → Trusted target: changes (evidence: `README.md`)
- Developer / reviewer → CLI: records approvals (evidence: `README.md`)
- CLI → Approval records: records fingerprints (evidence: `README.md`)
- Artifact validation → Specification: validates (evidence: `README.md`)
- Artifact validation → Plan artifact: validates (evidence: `README.md`)
- Artifact validation → Task artifact: validates (evidence: `README.md`)
- CLI → Verification engine: runs verify (evidence: `README.md`)
- Verification engine → Trusted target: checks (evidence: `README.md`)
- Verify guidance → Verification engine: guides (evidence: `README.md`)
- Developer / reviewer → CLI: starts server (evidence: `README.md`)
- CLI → Dashboard API: serves (evidence: `README.md`)
- Dashboard UI → Dashboard API: requests status (evidence: `README.md`)
- Dashboard API → Historical evidence: shows history (evidence: `README.md`)
