# harry-agentic-factory/harry-sdlc-local architecture

> Architecture diagram of the GitHub repository harry-agentic-factory/harry-sdlc-local, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/harry-agentic-factory/harry-sdlc-local
- Repository: https://github.com/harry-agentic-factory/harry-sdlc-local

## Overview

Harry SDLC Local is a project-agnostic SDLC engine: it manages ticket documents and lifecycle state in a separate project data repository, supports interactive specification and human-signed gates, then coordinates isolated agents through implementation, review, deployment, recette, and promotion. The graph keeps the documented workflow distinct from the local run-workspace and brain-memory subsystems. Several capabilities are documented but their implementation was not sampled; those relationships cite the README, and uncertain internal links are omitted.

Main entry points: [`tooling/sdlc/service.py`](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/service.py) (SDLC service), [`tooling/sdlc/gates.py`](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/gates.py) (Lifecycle gates), [`tooling/sdlc/brain/cli.py`](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/cli.py) (Brain commands), [`claude/workflows/run-ticket.js`](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/claude/workflows/run-ticket.js) (Ticket workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_spec["Specification and gates"]
  node_interactive["Interactive specification"]
  node_gates["Lifecycle gates<br/>[gates.py]"]
  node_maquette["Project design system<br/>[maquette.py]"]
end

subgraph group_state["Ticket state and services"]
  node_workspace[("Ticket workspace<br/>[workspace.py]")]
  node_service["SDLC service<br/>[service.py]"]
  node_board["Board mirror<br/>[board.py]"]
  node_status["State machine<br/>[status.py]"]
  node_graph["Dependency graph<br/>[graph.py]"]
  node_postmortem["Post-mortem records<br/>[post_mortem.py]"]
end

subgraph group_execution["Agent execution"]
  node_workflow["Ticket workflow<br/>[run-ticket.js]"]
  node_auto_workflow["Full-auto workflow"]
  node_agents["Phase agents"]
  node_run_lifecycle["Run lifecycle<br/>[lifecycle.py]"]
  node_run_backend[("Data repository backend<br/>[datarepo.py]")]
  node_run_code["Code run workspace<br/>[code.py]"]
  node_run_controls["Run controls<br/>[controls.py]"]
  node_run_model["Run schemas<br/>[model.py]"]
end

subgraph group_memory["Brain memory"]
  node_brain_cli["Brain commands<br/>[cli.py]"]
  node_brain_git["Brain Git access<br/>[gitio.py]"]
  node_brain_links["Note links<br/>[links.py]"]
  node_brain_mapping["Note classification<br/>[mapping.py]"]
  node_brain_notes["Note collection<br/>[notes.py]"]
  node_brain_normalize["Brain normalization<br/>[normalize.py]"]
end

subgraph group_integrations["Interfaces and integrations"]
  node_cli["SDLC CLI<br/>[cli.py]"]
  node_config["Project configuration<br/>[config.py]"]
  node_cockpit["Cockpit API<br/>[server.py]"]
  node_cockpit_data["Cockpit board data<br/>[data.py]"]
end

node_human(("Human operator"))
node_code_repos[("Project code repositories")]
node_deploy["Development deployment target"]
node_recette["Recette checks"]

node_human -->|"specifies"| node_interactive
node_interactive -->|"requests validation"| node_gates
node_human -->|"signs verdict"| node_gates
node_interactive -->|"invokes commands"| node_cli
node_cli -->|"dispatches"| node_gates
node_cli -->|"dispatches"| node_service
node_cli -->|"resolves project"| node_config
node_service -->|"reads and writes"| node_workspace
node_service -->|"updates mirror"| node_board
node_service -->|"validates transitions"| node_status
node_service -->|"queries actions"| node_graph
node_gates -->|"checks transitions"| node_status
node_gates -->|"checks design"| node_maquette
node_gates -->|"records outcomes"| node_postmortem
node_human -->|"starts ticket run"| node_workflow
node_workflow -->|"coordinates phases"| node_agents
node_workflow -.->|"supports automation"| node_auto_workflow
node_agents -->|"prepares workspace"| node_run_lifecycle
node_run_lifecycle -->|"reads and publishes"| node_run_backend
node_run_lifecycle -->|"clones scoped repos"| node_run_code
node_run_lifecycle -->|"applies controls"| node_run_controls
node_run_backend -->|"uses schemas"| node_run_model
node_run_code -->|"clones repositories"| node_code_repos
node_human -->|"manually verifies"| node_recette
node_agents -->|"deploys for dev"| node_deploy
node_agents -->|"runs recette"| node_recette
node_brain_cli -->|"reads and writes Git"| node_brain_git
node_brain_cli -->|"classifies notes"| node_brain_mapping
node_brain_cli -->|"checks links"| node_brain_links
node_brain_cli -->|"collects notes"| node_brain_notes
node_brain_normalize -->|"uses Git plumbing"| node_brain_git
node_brain_normalize -->|"deduces categories"| node_brain_mapping
node_brain_normalize -->|"reports broken links"| node_brain_links
node_cockpit -->|"builds board view"| node_cockpit_data
node_cockpit -->|"serves ticket data"| node_service
node_cockpit_data -->|"reads status"| node_service
node_workflow -->|"promotes changes"| node_code_repos

click node_cli "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/cli.py"
click node_config "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/config.py"
click node_interactive "https://github.com/harry-agentic-factory/harry-sdlc-local/tree/main/claude/skills"
click node_gates "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/gates.py"
click node_workflow "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/claude/workflows/run-ticket.js"
click node_auto_workflow "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/claude/workflows/run-ticket-full-auto.js"
click node_agents "https://github.com/harry-agentic-factory/harry-sdlc-local/tree/main/claude/workflows"
click node_workspace "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/workspace.py"
click node_service "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/service.py"
click node_board "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/board.py"
click node_status "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/status.py"
click node_graph "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/graph.py"
click node_maquette "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/maquette.py"
click node_postmortem "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/post_mortem.py"
click node_run_lifecycle "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/lifecycle.py"
click node_run_backend "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/datarepo.py"
click node_run_code "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/code.py"
click node_run_controls "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/controls.py"
click node_run_model "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/model.py"
click node_brain_cli "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/cli.py"
click node_brain_git "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/gitio.py"
click node_brain_links "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/links.py"
click node_brain_mapping "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/mapping.py"
click node_brain_notes "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/notes.py"
click node_brain_normalize "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/normalize.py"
click node_cockpit "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/cockpit/server.py"
click node_cockpit_data "https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/cockpit/data.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_interactive,node_gates,node_maquette toneBlue
class node_workspace,node_service,node_board,node_status,node_graph,node_postmortem,node_code_repos toneAmber
class node_workflow,node_auto_workflow,node_agents,node_run_lifecycle,node_run_backend,node_run_code,node_run_controls,node_run_model toneMint
class node_brain_cli,node_brain_git,node_brain_links,node_brain_mapping,node_brain_notes,node_brain_normalize toneRose
class node_cli,node_config,node_cockpit,node_cockpit_data,node_human,node_deploy,node_recette toneIndigo
```

## Components

### Specification and gates

- [Interactive specification](https://github.com/harry-agentic-factory/harry-sdlc-local/tree/main/claude/skills): `claude/skills`
- [Lifecycle gates](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/gates.py): `tooling/sdlc/gates.py`
- [Project design system](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/maquette.py): `tooling/sdlc/maquette.py`

### Ticket state and services

- [Ticket workspace](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/workspace.py): `tooling/sdlc/workspace.py`
- [SDLC service](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/service.py): `tooling/sdlc/service.py`
- [Board mirror](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/board.py): `tooling/sdlc/board.py`
- [State machine](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/status.py): `tooling/sdlc/status.py`
- [Dependency graph](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/graph.py): `tooling/sdlc/graph.py`
- [Post-mortem records](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/post_mortem.py): `tooling/sdlc/post_mortem.py`

### Agent execution

- [Ticket workflow](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/claude/workflows/run-ticket.js): `claude/workflows/run-ticket.js`
- [Full-auto workflow](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/claude/workflows/run-ticket-full-auto.js): `claude/workflows/run-ticket-full-auto.js`
- [Phase agents](https://github.com/harry-agentic-factory/harry-sdlc-local/tree/main/claude/workflows): `claude/workflows`
- [Run lifecycle](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/lifecycle.py): `tooling/sdlc/runws/lifecycle.py`
- [Data repository backend](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/datarepo.py): `tooling/sdlc/runws/datarepo.py`
- [Code run workspace](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/code.py): `tooling/sdlc/runws/code.py`
- [Run controls](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/controls.py): `tooling/sdlc/runws/controls.py`
- [Run schemas](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/runws/model.py): `tooling/sdlc/runws/model.py`

### Brain memory

- [Brain commands](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/cli.py): `tooling/sdlc/brain/cli.py`
- [Brain Git access](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/gitio.py): `tooling/sdlc/brain/gitio.py`
- [Note links](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/links.py): `tooling/sdlc/brain/links.py`
- [Note classification](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/mapping.py): `tooling/sdlc/brain/mapping.py`
- [Note collection](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/notes.py): `tooling/sdlc/brain/notes.py`
- [Brain normalization](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/brain/normalize.py): `tooling/sdlc/brain/normalize.py`

### Interfaces and integrations

- [SDLC CLI](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/cli.py): `tooling/sdlc/cli.py`
- [Project configuration](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/sdlc/config.py): `tooling/sdlc/config.py`
- [Cockpit API](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/cockpit/server.py): `tooling/cockpit/server.py`
- [Cockpit board data](https://github.com/harry-agentic-factory/harry-sdlc-local/blob/main/tooling/cockpit/data.py): `tooling/cockpit/data.py`

### Other components

- **Human operator**
- **Project code repositories**
- **Development deployment target**
- **Recette checks**

## Connections

- Human operator → Interactive specification: specifies (evidence: `README.md`)
- Interactive specification → Lifecycle gates: requests validation (evidence: `README.md`)
- Human operator → Lifecycle gates: signs verdict (evidence: `README.md`)
- Interactive specification → SDLC CLI: invokes commands (evidence: `README.md`)
- SDLC CLI → Lifecycle gates: dispatches (evidence: `tooling/sdlc/cli.py`)
- SDLC CLI → SDLC service: dispatches (evidence: `tooling/sdlc/cli.py`)
- SDLC CLI → Project configuration: resolves project (evidence: `tooling/sdlc/cli.py`)
- SDLC service → Ticket workspace: reads and writes (evidence: `tooling/sdlc/service.py`)
- SDLC service → Board mirror: updates mirror (evidence: `tooling/sdlc/service.py`)
- SDLC service → State machine: validates transitions (evidence: `tooling/sdlc/service.py`)
- SDLC service → Dependency graph: queries actions (evidence: `tooling/sdlc/service.py`)
- Lifecycle gates → State machine: checks transitions (evidence: `tooling/sdlc/gates.py`)
- Lifecycle gates → Project design system: checks design (evidence: `tooling/sdlc/gates.py`)
- Lifecycle gates → Post-mortem records: records outcomes (evidence: `tooling/sdlc/gates.py`)
- Human operator → Ticket workflow: starts ticket run (evidence: `README.md`)
- Ticket workflow → Phase agents: coordinates phases (evidence: `README.md`)
- Ticket workflow → Full-auto workflow: supports automation
- Phase agents → Run lifecycle: prepares workspace (evidence: `README.md`)
- Run lifecycle → Data repository backend: reads and publishes (evidence: `tooling/sdlc/runws/lifecycle.py`)
- Run lifecycle → Code run workspace: clones scoped repos (evidence: `tooling/sdlc/runws/lifecycle.py`)
- Run lifecycle → Run controls: applies controls (evidence: `tooling/sdlc/runws/lifecycle.py`)
- Data repository backend → Run schemas: uses schemas (evidence: `tooling/sdlc/runws/datarepo.py`)
- Code run workspace → Project code repositories: clones repositories (evidence: `tooling/sdlc/runws/code.py`)
- Human operator → Recette checks: manually verifies (evidence: `README.md`)
- Phase agents → Development deployment target: deploys for dev (evidence: `README.md`)
- Phase agents → Recette checks: runs recette (evidence: `README.md`)
- Brain commands → Brain Git access: reads and writes Git (evidence: `tooling/sdlc/brain/cli.py`)
- Brain commands → Note classification: classifies notes (evidence: `tooling/sdlc/brain/cli.py`)
- Brain commands → Note links: checks links (evidence: `tooling/sdlc/brain/cli.py`)
- Brain commands → Note collection: collects notes
- Brain normalization → Brain Git access: uses Git plumbing (evidence: `tooling/sdlc/brain/normalize.py`)
- Brain normalization → Note classification: deduces categories (evidence: `tooling/sdlc/brain/normalize.py`)
- Brain normalization → Note links: reports broken links (evidence: `tooling/sdlc/brain/normalize.py`)
- Cockpit API → Cockpit board data: builds board view (evidence: `tooling/cockpit/server.py`)
- Cockpit API → SDLC service: serves ticket data (evidence: `tooling/cockpit/server.py`)
- Cockpit board data → SDLC service: reads status (evidence: `tooling/cockpit/data.py`)
- Ticket workflow → Project code repositories: promotes changes (evidence: `README.md`)
