# Readiness (/docs/concepts/readiness)

A **blocking dependency** says that one ticket must be Done before another is
considered Ready. Dependencies can cross projects.

```sh
ticketd add-dependency T-LG12 T-LG13
```

T-LG13 waits for T-LG12.

## Ready and Blocked

- A ticket is **Ready** when it is Todo, not in the trash, and has no unresolved
  blocking dependencies.
- A ticket is **Blocked** when it is Todo, not in the trash, and has at least one
  unresolved blocking dependency.

Tickets that are started, finished or trashed are neither Ready nor Blocked.
Their dependency lists still show any unresolved prerequisites.

## What resolves a blocker

Only **Done** satisfies a blocking dependency. The table assumes a Todo dependent with one prerequisite.

| Blocker's status | Dependent is                         |
| ---------------- | ------------------------------------ |
| Todo             | Blocked                              |
| In progress      | Blocked                              |
| In review        | Blocked                              |
| Done             | Ready                                |
| Canceled         | Blocked while the dependency remains |
| Duplicate        | Blocked while the dependency remains |

Reopening the prerequisite recalculates readiness. Trashing a prerequisite keeps its current effect on the dependent.

> **Starting a Blocked ticket**
>
> Readiness helps people and agents choose what to pick up next. It does not
> prevent anyone from starting a Blocked ticket.

## Asking for Ready work

```sh
ticketd list --availability ready
ticketd list --availability ready --plan PLAN_ID --limit 1
ticketd list --availability blocked
```

## Seeing the dependencies

```sh
ticketd graph T-LG12
```

In the desktop app, a Plan’s **Flow** view arranges its work into Now, Next and Later. Open the full graph to inspect relationships.

## Removing a dependency

```sh
ticketd remove-dependency T-LG12 T-LG13
```

## Links that do not block

Some relationships carry context without affecting readiness:

- **Related tickets** share context. The link is symmetric.
- A **discovery relationship** records that a ticket was found while working on
  another.

```sh
ticketd add-relationship T-LG12 T-LG10 related
ticketd add-relationship T-LG12 T-LG16 discovered
```

For `discovered`, the first ticket is the work during which the second was found.