The decision
Every night Aisha refreshes the company's numbers. She pulls the latest data from the source systems, rebuilds the reports and publishes them. The rule is that the last step only happens if every check before it passed. If one fails, nothing is published. Yesterday's numbers stay where they are, labelled with how old they are, and a person is told.
We call it stale but correct. A number that is a day old and verified is better than a number that is current and unchecked.
The failure it prevents
The dangerous failure for a reporting system is not an outage. An outage is obvious. The dangerous one is a refresh that completes, shows today's date and contains a quiet error: a join that dropped a segment, a source that returned half its rows, a definition that changed underneath it. Nothing looks wrong. People read the number, plan a launch around it and act.
We want the system to prefer an honest gap to a confident mistake. A page that says "as of yesterday" is annoying for a few hours. A page that says it is current and is not can cost a week of decisions.
What the gate checks
The refresh runs in stages. It fetches from the source systems, regenerates the reports with the original scripts, rebuilds a database from the same inputs, verifies, and only then publishes.
The interesting stage is the rebuild. We have two independent implementations of the same calculation: the original scripts, and a second builder that produces a database. They share inputs and nothing else. The data gate cross-checks one against the other and requires them to agree, number for number. When two pieces of code written separately arrive at the same figure, the figure is much less likely to carry a bug that only one of them had.
On top of that sit structural checks, the kind a person doing arithmetic would run. The count of purchases credited to a newsletter in the summary has to equal the number of rows in that newsletter's file, and both have to equal the rows tagged that way in the master list. Totals reconcile or the run stops.
Nothing publishes unless all of it passes. A change to the pipeline that breaks a check is caught when the next refresh refuses to publish, not when someone notices a wrong chart.
Who publishes
Only one machine publishes: the server that holds the full history of source data. Laptops and teammates' workspaces receive a read-only copy. They can check it, and they cannot publish it. We learned why the hard way. A rebuild from a cold start on a laptop lacks part of the history, and it quietly weakens the data that depends on it, such as how long someone has been on a list. A number rebuilt from partial history is wrong in a way that looks fine.
So the rule is simple. Code reaches production through a pull request. Data reaches production from the one machine that has all of it.
Labelling what is old
When the gate holds back, the dashboard has to say so. Each database carries the time of its last good build, and a freshness check labels it fresh, aging or stale by how old that build is. Anyone asking Aisha for a number gets the as-of date with it. If the data is stale and the question is urgent, she says so and points to the live source instead of quoting a number she knows is old.
Fresh is also not the same as complete. A fresh database can still be the wrong place to answer a question. The purchases table here is a ledger of paid subscriptions: one row per subscription, with refunds netted out and free, comped and staff accounts left out. A count taken from it can be lower than the raw count of billing lines in the payment system, while the revenue matches to the dollar. Neither number is wrong. They answer different questions, so every answer states which definition it counted, and questions about right now go to the live product source.
Numbers that are not ready
Some numbers are in progress, and we say so every time. The cost and return-on-spend figures from our own email analysis are work in progress. Any answer that shows one opens with a line saying they are placeholders and not for decisions. We would rather have an annoying disclaimer than a number that gets quoted in a meeting as if it were settled.
Published findings
The same idea covers the articles she publishes. Each article's headline numbers sit in a claim list that names where each number comes from and what it should be. Every night the claim list is checked against freshly built data. A settled number must keep matching. A number from a sale that is still open can grow until its close date, and then it must match. If an article drifts, a manual publish is blocked, and the drift shows up in the daily update as an article to finalise. That is how a figure that was correct in June does not quietly become wrong in August.
What the gate does not do
A gate catches what we thought to check. It cannot prove a number is right in an absolute sense, because the source systems can be wrong themselves, and two calculations can agree on a shared mistake in the input. It also costs something: some mornings the numbers are a day old, and someone has to fix the failed check before they move again.
We accept both. The alternative is to publish whatever the pipeline produced and trust it. That is faster until the first time it is wrong, and the first time it is wrong is usually the day someone needed it. For how the same refresh feeds the nightly digests, see the action page, and for the people side of working from a read-only copy, read per-person workspaces.