# open-gsd/gsd-path architecture

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

- Interactive diagram: https://gitdiagram.com/open-gsd/gsd-path
- Repository: https://github.com/open-gsd/gsd-path

## Overview

GSD Path is a disk-backed pipeline for AI coding agents, taking a project from inspection and definition through research, planning, build, and shipping, with resumable state in `.project/`. Its Python runtime validates and checkpoints that state and coordinates task isolation, multi-repository work, and milestone integration. The README also documents a desktop project monitor and skill manager. The source excerpts and index expose only some runtime relationships; documented workflow links are identified as such, and unsampled subsystem links are omitted.

Main entry points: [`scripts/pipeline_state.py`](https://github.com/open-gsd/gsd-path/blob/main/scripts/pipeline_state.py) (State orchestration), [`scripts/dispatch_driver.py`](https://github.com/open-gsd/gsd-path/blob/main/scripts/dispatch_driver.py) (Phase router), [`scripts/roadmap.py`](https://github.com/open-gsd/gsd-path/blob/main/scripts/roadmap.py) (Roadmap phase), [`skills/gsd-path-build`](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-build) (Build phase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Project workflow"]
  node_dispatcher["Phase router<br/>[dispatch_driver.py]"]
  node_inspect["Inspect phase"]
  node_define["Define phase"]
  node_research["Research phase"]
  node_decide["Decide phase"]
  node_roadmap["Roadmap phase<br/>[roadmap.py]"]
  node_plan["Plan phase"]
end

subgraph group_runtime["Pipeline runtime"]
  node_state["State orchestration<br/>[pipeline_state.py]"]
  node_common["Shared runtime helpers<br/>[_common.py]"]
  node_handoffs["Handoff validation<br/>[check_handoffs.py]"]
  node_discussions["Discussion records"]
  node_checkpoint["Approval checkpoints"]
  node_promote["Lookahead promotion<br/>[state_promote.py]"]
  node_recovery["Build recovery<br/>[build_recovery.py]"]
  node_projectfiles[("Project state files")]
end

subgraph group_delivery["Build and shipping"]
  node_build["Build phase"]
  node_ship["Ship phase"]
  node_isolation["Task isolation<br/>[isolation.py]"]
  node_members["Member repositories<br/>[members.py]"]
  node_integration["Milestone integration<br/>[integration.py]"]
  node_pipelinegit["Branch and commit rules<br/>[pipeline_git.py]"]
end

subgraph group_desktop["Desktop monitor"]
  node_desktopui["Desktop interface<br/>[App.tsx]"]
  node_monitorapi["Monitor daemon"]
end

node_agent(("Agent or user"))
node_agenthost{{"Coding-agent hosts"}}

node_agent -->|"starts or resumes"| node_dispatcher
node_dispatcher -->|"routes phase"| node_inspect
node_inspect -->|"advances to"| node_define
node_define -->|"advances to"| node_research
node_research -->|"advances to"| node_decide
node_decide -->|"advances to"| node_roadmap
node_roadmap -->|"advances to"| node_plan
node_plan -->|"advances to"| node_build
node_build -->|"advances to"| node_ship
node_dispatcher -->|"invoked within"| node_agenthost
node_state -->|"uses helpers"| node_common
node_state -->|"delegates approvals"| node_checkpoint
node_state -->|"delegates promotion"| node_promote
node_state -->|"uses validation"| node_handoffs
node_state -->|"uses records"| node_discussions
node_state -->|"uses recovery"| node_recovery
node_state -->|"uses isolation"| node_isolation
node_state -->|"uses member data"| node_members
node_state -->|"uses integration"| node_integration
node_state -.->|"reads and writes"| node_projectfiles
node_roadmap -.->|"selects milestones"| node_projectfiles
node_checkpoint -->|"records approvals"| node_projectfiles
node_promote -->|"updates lookahead"| node_projectfiles
node_build -.->|"isolates tasks"| node_isolation
node_ship -.->|"integrates milestone"| node_integration
node_integration -.->|"uses branch rules"| node_pipelinegit
node_desktopui -.->|"manages projects"| node_monitorapi
node_monitorapi -.->|"manages skills"| node_agenthost

click node_dispatcher "https://github.com/open-gsd/gsd-path/blob/main/scripts/dispatch_driver.py"
click node_inspect "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-inspect"
click node_define "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-define"
click node_research "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-research"
click node_decide "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-decide"
click node_roadmap "https://github.com/open-gsd/gsd-path/blob/main/scripts/roadmap.py"
click node_plan "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-plan"
click node_build "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-build"
click node_ship "https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-ship"
click node_state "https://github.com/open-gsd/gsd-path/blob/main/scripts/pipeline_state.py"
click node_common "https://github.com/open-gsd/gsd-path/blob/main/scripts/_common.py"
click node_handoffs "https://github.com/open-gsd/gsd-path/blob/main/scripts/check_handoffs.py"
click node_discussions "https://github.com/open-gsd/gsd-path/blob/main/scripts/discussion_records.py"
click node_checkpoint "https://github.com/open-gsd/gsd-path/blob/main/scripts/state_checkpoint.py"
click node_promote "https://github.com/open-gsd/gsd-path/blob/main/scripts/state_promote.py"
click node_recovery "https://github.com/open-gsd/gsd-path/blob/main/scripts/build_recovery.py"
click node_isolation "https://github.com/open-gsd/gsd-path/blob/main/scripts/isolation.py"
click node_members "https://github.com/open-gsd/gsd-path/blob/main/scripts/members.py"
click node_integration "https://github.com/open-gsd/gsd-path/blob/main/scripts/integration.py"
click node_pipelinegit "https://github.com/open-gsd/gsd-path/blob/main/scripts/pipeline_git.py"
click node_desktopui "https://github.com/open-gsd/gsd-path/blob/main/daemon/app/src/App.tsx"
click node_monitorapi "https://github.com/open-gsd/gsd-path/tree/main/daemon/gsd_daemon"

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_dispatcher,node_inspect,node_define,node_research,node_decide,node_roadmap,node_plan,node_agent toneBlue
class node_state,node_common,node_handoffs,node_discussions,node_checkpoint,node_promote,node_recovery,node_projectfiles toneAmber
class node_build,node_ship,node_isolation,node_members,node_integration,node_pipelinegit toneMint
class node_desktopui,node_monitorapi toneRose
class node_agenthost toneIndigo
```

## Components

### Project workflow

- [Phase router](https://github.com/open-gsd/gsd-path/blob/main/scripts/dispatch_driver.py): `scripts/dispatch_driver.py`
- [Inspect phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-inspect): `skills/gsd-path-inspect`
- [Define phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-define): `skills/gsd-path-define`
- [Research phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-research): `skills/gsd-path-research`
- [Decide phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-decide): `skills/gsd-path-decide`
- [Roadmap phase](https://github.com/open-gsd/gsd-path/blob/main/scripts/roadmap.py): `scripts/roadmap.py`
- [Plan phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-plan): `skills/gsd-path-plan`

### Pipeline runtime

- [State orchestration](https://github.com/open-gsd/gsd-path/blob/main/scripts/pipeline_state.py): `scripts/pipeline_state.py`
- [Shared runtime helpers](https://github.com/open-gsd/gsd-path/blob/main/scripts/_common.py): `scripts/_common.py`
- [Handoff validation](https://github.com/open-gsd/gsd-path/blob/main/scripts/check_handoffs.py): `scripts/check_handoffs.py`
- [Discussion records](https://github.com/open-gsd/gsd-path/blob/main/scripts/discussion_records.py): `scripts/discussion_records.py`
- [Approval checkpoints](https://github.com/open-gsd/gsd-path/blob/main/scripts/state_checkpoint.py): `scripts/state_checkpoint.py`
- [Lookahead promotion](https://github.com/open-gsd/gsd-path/blob/main/scripts/state_promote.py): `scripts/state_promote.py`
- [Build recovery](https://github.com/open-gsd/gsd-path/blob/main/scripts/build_recovery.py): `scripts/build_recovery.py`
- **Project state files**

### Build and shipping

- [Build phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-build): `skills/gsd-path-build`
- [Ship phase](https://github.com/open-gsd/gsd-path/tree/main/skills/gsd-path-ship): `skills/gsd-path-ship`
- [Task isolation](https://github.com/open-gsd/gsd-path/blob/main/scripts/isolation.py): `scripts/isolation.py`
- [Member repositories](https://github.com/open-gsd/gsd-path/blob/main/scripts/members.py): `scripts/members.py`
- [Milestone integration](https://github.com/open-gsd/gsd-path/blob/main/scripts/integration.py): `scripts/integration.py`
- [Branch and commit rules](https://github.com/open-gsd/gsd-path/blob/main/scripts/pipeline_git.py): `scripts/pipeline_git.py`

### Desktop monitor

- [Desktop interface](https://github.com/open-gsd/gsd-path/blob/main/daemon/app/src/App.tsx): `daemon/app/src/App.tsx`
- [Monitor daemon](https://github.com/open-gsd/gsd-path/tree/main/daemon/gsd_daemon): `daemon/gsd_daemon`

### Other components

- **Agent or user**
- **Coding-agent hosts**

## Connections

- Agent or user → Phase router: starts or resumes (evidence: `README.md`)
- Phase router → Inspect phase: routes phase (evidence: `README.md`)
- Inspect phase → Define phase: advances to (evidence: `README.md`)
- Define phase → Research phase: advances to (evidence: `README.md`)
- Research phase → Decide phase: advances to (evidence: `README.md`)
- Decide phase → Roadmap phase: advances to (evidence: `README.md`)
- Roadmap phase → Plan phase: advances to (evidence: `README.md`)
- Plan phase → Build phase: advances to (evidence: `README.md`)
- Build phase → Ship phase: advances to (evidence: `README.md`)
- Phase router → Coding-agent hosts: invoked within (evidence: `README.md`)
- State orchestration → Shared runtime helpers: uses helpers (evidence: `scripts/pipeline_state.py`)
- State orchestration → Approval checkpoints: delegates approvals (evidence: `scripts/pipeline_state.py`)
- State orchestration → Lookahead promotion: delegates promotion (evidence: `scripts/pipeline_state.py`)
- State orchestration → Handoff validation: uses validation (evidence: `scripts/pipeline_state.py`)
- State orchestration → Discussion records: uses records (evidence: `scripts/pipeline_state.py`)
- State orchestration → Build recovery: uses recovery (evidence: `scripts/pipeline_state.py`)
- State orchestration → Task isolation: uses isolation (evidence: `scripts/pipeline_state.py`)
- State orchestration → Member repositories: uses member data (evidence: `scripts/pipeline_state.py`)
- State orchestration → Milestone integration: uses integration (evidence: `scripts/pipeline_state.py`)
- State orchestration → Project state files: reads and writes
- Roadmap phase → Project state files: selects milestones
- Approval checkpoints → Project state files: records approvals (evidence: `scripts/state_checkpoint.py`)
- Lookahead promotion → Project state files: updates lookahead (evidence: `scripts/state_promote.py`)
- Build phase → Task isolation: isolates tasks (evidence: `skills/gsd-path-build/scripts/pipeline_state.py`)
- Ship phase → Milestone integration: integrates milestone (evidence: `skills/gsd-path-ship/scripts/pipeline_state.py`)
- Milestone integration → Branch and commit rules: uses branch rules (evidence: `scripts/integration.py`)
- Desktop interface → Monitor daemon: manages projects
- Monitor daemon → Coding-agent hosts: manages skills
