---
title: Dependencies — Reference
---

# Dependencies — Reference

The Dependencies page shows the directed dependency graph between open
workplans — which workplans are waiting on others to reach a satisfactory
state before they can fully proceed.

---

## What is a dependency edge?

A dependency edge **A → B** means workplan A cannot fully proceed until
workplan B is in a satisfactory state (typically `finished` or `archived`).

Edges are used to model real sequencing constraints: for example, a shared
library must reach a stable release before downstream domains can build on it.
The Custodian's dependency order is:

```
Railiance → Markitect → Coulomb.social → Personhood / Foerster → Custodian
```

---

## Edge table

Each row shows:

| Column | Meaning |
|--------|---------|
| **Depends-on domain** | Domain of the dependent workplan (the one waiting) |
| **Depends-on workplan** | Title of the workplan that has the dependency |
| **→** | Direction arrow |
| **Blocked-by domain** | Domain of the prerequisite workplan |
| **Blocked-by workplan** | Title of the workplan that must complete first |
| **Status** | Current status of the prerequisite (green = active, grey = finished/archived) |

---

## KPI sidebar card

Shows the total number of edges and the number of distinct workplans involved
in at least one dependency relationship.

---

## Registering a dependency

Via MCP:

```
create_dependency(
  from_workstream_id = "<uuid of dependent>",
  to_workstream_id   = "<uuid of prerequisite>",
  description        = "Cannot build auth layer until shared-library API is stable"
)
```

Via REST:

```bash
curl -X POST http://127.0.0.1:8000/workplans/<from_id>/dependencies/ \
  -H "Content-Type: application/json" \
  -d '{"to_workstream_id": "<to_id>", "description": "..."}'
```

To list dependencies for a workplan:

```
list_dependencies(workstream_id="<uuid>")
```

---

## Cycle detection

The Workplan Health Index (WHI) includes a **Cycle Penalty Index (CPI)**
metric that detects circular dependencies using depth-first search. If CPI = 1,
a cycle exists and the WHI is penalised by 50%. The WHI KPI card on the
[Workplans](/workstreams) page will display a cycle alert.

---

## Data source

Dependency edges are derived from the `depends_on` arrays on `open_workplans`
in `GET /state/summary`. Polls every **15 seconds**.
