# From polls to inauguration: the whole US election

> A process map exported from forks.world (https://forks.world). Author: Brian. Source: https://forks.world/p/cmv0kq6ya003bjv06lps0i424
> It describes who does what, in what order, and with which technology. Read the plain-language sections first; the JSON at the end is the exact, complete data.

## Summary

- 8 steps across 1 layer
- Persona: Voters, States, Congress, The president-elect

## How to read this file

- A process is made of **layers**. The main layer is the top level; any step of kind `subprocess` opens a detail layer with its own lanes and steps.
- **Lanes** are either persona (people/roles) or technology (systems). Each step belongs to one lane; `using` lists tools a person uses for that step.
- Step kinds: `start`, `task`, `decision` (its arrows carry the answer as a label), `subprocess`, `end`.

## From polls to inauguration: the whole US election

Lanes:
- Voters: person / role (id `voters`)
- States: person / role (id `state`)
- Congress: person / role (id `congress`)
- The president-elect: person / role (id `pres`)

Steps, in the order they run:

1. **Polls tell a story before the vote** [subprocess; Voters; id `e0`], links to the published process "How an election poll is made (and why it is sometimes wrong)" (https://forks.world/p/cmv0kpolx0039jn06iexv9x87; full text at https://forks.world/api/public/cmv0kpolx0039jn06iexv9x87/export)
   - then Election day
2. **Election day** [subprocess; Voters; id `e1`], links to the published process "How a US election is run, counted and certified" (https://forks.world/p/cmv0kpjer001vjn06qv1dm5t3; full text at https://forks.world/api/public/cmv0kpjer001vjn06qv1dm5t3/export)
   - then Results certified and electors named
3. **Results certified and electors named** [task; States; id `e2`]
   - then The electors vote and Congress counts
4. **The electors vote and Congress counts** [subprocess; States; id `e3`], links to the published process "How the Electoral College picks a president" (https://forks.world/p/cmv0kpiv8001qjn06a5zbenar; full text at https://forks.world/api/public/cmv0kpiv8001qjn06a5zbenar/export)
   - then Does one candidate have 270?
5. **Does one candidate have 270?** [decision; Congress; id `e4`]
   - if "Yes" go to January 20: the inauguration; if "No" go to The House decides
6. **January 20: the inauguration** [end; The president-elect; id `e5`]
7. **The House decides** [task; Congress; id `e6`]
   - then The House's choice is sworn in
8. **The House's choice is sworn in** [end; The president-elect; id `e7`]

```mermaid
flowchart LR
  subgraph l_voters["Voters"]
    n_e0[["Polls tell a story before the vote"]]
    n_e1[["Election day"]]
  end
  subgraph l_state["States"]
    n_e2["Results certified and electors named"]
    n_e3[["The electors vote and Congress counts"]]
  end
  subgraph l_congress["Congress"]
    n_e4{"Does one candidate have 270?"}
    n_e6["The House decides"]
  end
  subgraph l_pres["The president-elect"]
    n_e5(["January 20: the inauguration"])
    n_e7(["The House's choice is sworn in"])
  end
  n_e0 --> n_e1
  n_e1 --> n_e2
  n_e2 --> n_e3
  n_e3 --> n_e4
  n_e4 -->|"Yes"| n_e5
  n_e4 -->|"No"| n_e6
  n_e6 --> n_e7
```

## Full data (JSON)

```json
{
  "title": "From polls to inauguration: the whole US election",
  "maps": {
    "m_root": {
      "id": "m_root",
      "lanes": [
        {
          "id": "voters",
          "name": "Voters",
          "type": "person"
        },
        {
          "id": "state",
          "name": "States",
          "type": "person"
        },
        {
          "id": "congress",
          "name": "Congress",
          "type": "person"
        },
        {
          "id": "pres",
          "name": "The president-elect",
          "type": "person"
        }
      ],
      "steps": [
        {
          "id": "e0",
          "kind": "subprocess",
          "lane": "voters",
          "link": {
            "id": "cmv0kpolx0039jn06iexv9x87",
            "scope": "public",
            "title": "How an election poll is made (and why it is sometimes wrong)"
          },
          "next": [
            {
              "to": "e1"
            }
          ],
          "uses": [],
          "label": "Polls tell a story before the vote"
        },
        {
          "id": "e1",
          "kind": "subprocess",
          "lane": "voters",
          "link": {
            "id": "cmv0kpjer001vjn06qv1dm5t3",
            "scope": "public",
            "title": "How a US election is run, counted and certified"
          },
          "next": [
            {
              "to": "e2"
            }
          ],
          "uses": [],
          "label": "Election day"
        },
        {
          "id": "e2",
          "kind": "task",
          "lane": "state",
          "next": [
            {
              "to": "e3"
            }
          ],
          "uses": [],
          "label": "Results certified and electors named"
        },
        {
          "id": "e3",
          "kind": "subprocess",
          "lane": "state",
          "link": {
            "id": "cmv0kpiv8001qjn06a5zbenar",
            "scope": "public",
            "title": "How the Electoral College picks a president"
          },
          "next": [
            {
              "to": "e4"
            }
          ],
          "uses": [],
          "label": "The electors vote and Congress counts"
        },
        {
          "id": "e4",
          "kind": "decision",
          "lane": "congress",
          "next": [
            {
              "to": "e5",
              "label": "Yes"
            },
            {
              "to": "e6",
              "label": "No"
            }
          ],
          "uses": [],
          "label": "Does one candidate have 270?"
        },
        {
          "id": "e6",
          "kind": "task",
          "lane": "congress",
          "next": [
            {
              "to": "e7"
            }
          ],
          "uses": [],
          "label": "The House decides"
        },
        {
          "id": "e5",
          "kind": "end",
          "lane": "pres",
          "next": [],
          "uses": [],
          "label": "January 20: the inauguration"
        },
        {
          "id": "e7",
          "kind": "end",
          "lane": "pres",
          "next": [],
          "uses": [],
          "label": "The House's choice is sworn in"
        }
      ],
      "title": "From polls to inauguration: the whole US election",
      "parent": null
    }
  }
}
```
