# First Head of Data: a first-year plan

A hypothetical first-year plan for a company's first Head of Data, written for a CEO deciding whether and how to hire
one, and for the leader themselves.

Open [index.html](index.html). The page leads with the answer for a CEO: what year one costs, what the first 90 days
deliver and the one decision to make first (no new hire before the day-90 memo). It then explains the problem in plain
words with a short glossary and gives the plan itself: three 90-day phases,
a 12-month roadmap with each quarter's cost and decision, the first-year budget, the four hires after the Head of Data
in order with the evidence that triggers each, and the monthly recurring revenue bridge Finance signs. After that come
where the plan can go wrong, the tool choices, how the team runs it (owners, cadence, bad news, what to stop), what it
is worth on stated assumptions, and where AI fits.

The company is invented: a growing subscription software business with a warehouse, a BI tool, one analyst and a
little engineering time. Every cost is a US dollar assumption written for this page (`data/plan-assumptions.json`),
not a quote, salary-survey figure or vendor price. The value estimate uses only the assumptions it states. No page
describes a job I have held.

## Run and check

The page needs no build step, server, package installation or external runtime resources. Open the HTML file directly
in a modern browser. JavaScript enables the self-check under "Method and checks" and the theme control; the full plan
remains readable without it. No answers are saved or transmitted. The only stored value is the reader's theme choice,
kept by the design-system theme control.

The standalone checks use Python 3.12 and Node.js 24 with standard libraries only:

```sh
python3 -B check.py
```

They check the page structure and the design-system page parts, keep every runtime resource local, confirm the
vendored design-system files match their recorded hashes, compare the inline MRR bridge with
`assets/metrics-tree.svg`, and run three test files. `tests/route-reference.test.cjs` compares every one of the 243
self-check answer sets with a reference decision table written separately from `selfcheck.js`.
`tests/plan-numbers.test.cjs` recomputes every budget and roadmap figure month by month from
`data/plan-assumptions.json` and checks it against the page, including every value in the first-year figure.

For a local preview, run this from the project directory, then open http://127.0.0.1:8056/index.html:

```sh
python3 -B -m http.server 8056 --bind 127.0.0.1
```

The suggested priorities in the self-check are fixed discussion rules, not a validated score or a hiring
authorization.

## Operating standards

[operating-standards.html](operating-standards.html) asks how this team decides what to work on and how much it checks
work before a decision uses it. It compares four intake rules and four review standards, plus a readiness gate, in a
simulated first year for the same invented company, and gives the standards as copyable text. Every input is an
assumption in `data/operating-assumptions.json`; the predictions were written before the first run.

```sh
python3 -B operating/simulate.py --check   # re-run the simulation and compare data/operating-results.json byte for byte
python3 -B tests/test_operating.py         # replay, invariants, and every number on the page against the results
```

`operating/simulate.py` writes `data/operating-results.json` (standard library only, seeded). `data/operating-page-numbers.json`
lists every number the page prints with the rule that recomputes it (`operating/page_numbers.py`). `check.py` runs these
tests too.

## Data governance

[data-governance.html](data-governance.html) writes seven year-one governance standards (ownership, classification,
masking, freshness promises, one certified number per dashboard tile, the catalog and data product charters) as checks a
machine runs on the company's metadata, runs them on the same invented company's day-one state, and sizes the year-one
work to make them pass in two orders. `data/governance-inventory.json` is the declared day-one metadata,
`governance/protocol.json` the rules, remediation, orders, framework mapping, expected failures per check, planted faults and
predictions, and `data/governance-assumptions.json` the effort and hours; all three were written before the check code.
[governance/protocol.json](governance/protocol.json) holds the rules, expected failures and predictions, frozen before the check code.

```sh
python3 -B governance/checks.py --check     # re-run the checks and compare data/governance-results.json byte for byte
python3 -B governance/checks.py --example   # one change to a published table through the gate
python3 -B tests/test_governance.py         # replay, planted faults, controls, schedule, and every number on the page
```

`data/governance-page-numbers.json` lists every number the page prints with the rule that recomputes it
(`governance/page_numbers.py`). `check.py` runs these tests too.

## Architecture decisions

[architecture-decisions.html](architecture-decisions.html) writes five year-one architecture decisions for the same invented
company (where the data lives, how billing data comes in, how fast sales hears about an active trial, when the semantic
layer comes, and getting account scores into the CRM) as decision records in one template, each decided by a rule fixed
before any cost was computed. Every option is costed over three years from `data/architecture-assumptions.json`, every
input is moved alone to its low and high value, the two main drivers are swept together, and a check confirms the five
picks fit the engineer's spare hours. [architecture/protocol.json](architecture/protocol.json) holds the decisions, rules,
sweep and predictions, frozen before the cost code; [DESIGN-architecture.md](DESIGN-architecture.md) holds the design. The
five filled records are in [architecture/records/](architecture/records/decision-1-warehouse.md).

```sh
python3 -B architecture/costs.py --check     # re-run the costs and compare data/architecture-results.json byte for byte
python3 -B architecture/records.py --check   # the five records in architecture/records/ against a fresh render
python3 -B architecture/costs.py --record 2  # print one decision record
python3 -B tests/test_architecture.py        # replay, the rule check, tied inputs, capacity and every number on the page
```

`data/architecture-page-numbers.json` lists every number the page prints with the rule that recomputes it
(`architecture/page_numbers.py`). `check.py` runs these tests too.

## Team operating model

[team-operating-model.html](team-operating-model.html) asks when a four-analyst team at the same invented company should give
a domain an owner as the company adds a second product and a new region, and what keeps owners one team. It compares four
ways to name owners (one pool, owners from day one, owners on a trigger of sustained volume and repeated disputes, owners
on volume alone), each with and without four shared practices (one set of models and definitions, a review that rotates
across domains, an analysis template and a weekly knowledge session), in a simulated year, and gives the triage rule, the
owner rule, the template and the session as copyable text. [team/protocol.json](team/protocol.json) holds the arms, rules,
leaver scenario, metrics, sweep and predictions, frozen before any arm ran; `data/team-assumptions.json` holds every input.
`data/team-request-log.csv` is one simulated year's
request log (invented).

```sh
python3 -B team/simulate.py --check   # re-run the simulation and compare the results and the log byte for byte
python3 -B team/simulate.py --load    # the demand load from the request generator alone
python3 -B tests/test_team.py         # replay, invariants, and every number on the page against the results
```

The full replay runs 8 arms over 200 seeded years with each of four leavers, plus the sweeps.
`data/team-page-numbers.json` lists every number the page prints with the rule that
recomputes it (`team/page_numbers.py`) and the page section it appears in. `check.py` runs these tests too.

## Design system

The page uses viz-design-system release 2.1.0 (Newsreader, Public Sans and IBM Plex Mono, light and dark themes, the
page kit and its number formatter), copied unedited into `vendor/viz-design-system/`.
`vendor/viz-design-system-adoption.json` records the release manifest hash and every copied file's hash. Font licences
are in `vendor/viz-design-system/assets/fonts/`. `style.css` adds the page's own layout and a metric-matched local
fallback for Public Sans; the vendored files are unchanged.

## Assumptions and provenance

The company, its existing analyst, engineering support, starting budget, revenue and every cost are hypothetical
assumptions. No employer data or outside dataset is used. The MRR bridge is an illustrative shape with no values.
No employer endorsement is implied.

Some files are packed in first-head-of-data-data-1.zip; unzip it here to restore the full export, which the manifest lists file by file.
