# Single source of truth

> One agreed place where a fact is kept up to date, with every other document, report or chart reading or linking to it instead of keeping its own copy.

Source: https://plexiidesk.com/glossary/single-source-of-truth

A single source of truth is a decision about where a fact lives. The monthly revenue figure, the project's deadline, the current price list: each has one home, and everything else points to that home rather than holding a copy that can drift.

## Where the idea comes from

The phrase has no single coiner, but the principle behind it is well established in software. *The Pragmatic Programmer* by David Thomas and Andrew Hunt names it DRY, "Don't Repeat Yourself", and states it as: "Every piece of knowledge must have a single, unambiguous, authoritative representation within a system." That is tip 15 in the [book's list of tips](https://pragprog.com/tips/). A single source of truth applies the same rule to the facts a team works from.

## Two meanings that share the phrase

- **At work**, it is a habit and an agreement between people: "the budget lives in this sheet", "the launch date is whatever the project page says". It is about documents, decks and messages agreeing with each other.
- **In data engineering**, it describes system design: one authoritative store for each kind of data, with other systems reading from it or receiving copies from it in a controlled way, so that reports built on different systems give the same answer.

The two meanings share the same idea. This page is about the first, everyday one.

## The failures it prevents

A familiar failure is three documents that disagree. The investor deck says revenue was 41,200 for the month; the financial model says 40,950 because a refund was booked later; the written update says "about 41k". Nobody did anything wrong, but each number was copied at a different time, and now someone has to work out which is right. These figures are an illustration, not real data.

Other familiar versions:

- Two versions of a contact list, each with updates the other lacks.
- A project deadline that moved in the plan but not in the status report.
- A decision that was reversed in a meeting, while the old version lives on in a wiki page.

## How to set one up

1. **Name the source.** For each fact that matters, say where it lives, and tell the people who use it. "Revenue: the Finance table, monthly tab."
2. **Link, don't copy.** Wherever possible, point to the source or pull the figure from it automatically, rather than retyping it. A copy is a second source waiting to disagree.
3. **Date it.** Show when the source was last updated, so a reader can tell a current figure from a stale one.
4. **Give it an owner.** One person is responsible for keeping it right.
5. **Record changes to decisions.** When a decision changes, a [decision log](https://plexiidesk.com/glossary/decision-log) keeps the history in one place.

A [RAG status](https://plexiidesk.com/glossary/rag-status) is a good test: if the project's colour appears in three reports, does it come from one place?

### An example

A small company keeps its monthly figures in one table. The board deck, the investor update and the finance dashboard all read from that table. When a late refund changes the revenue figure, it is corrected once, and every document that reads from the table shows the new number.

## How PlexiiDesk relates

In PlexiiDesk, a [Chart](https://plexiidesk.com/help/widget-chart), [Metrics and a Stat card](https://plexiidesk.com/help/widgets-dashboard) read their numbers from the rows of a Table, and the chart redraws when the table changes, so the table is the single source and the dashboard follows it. [Duplicated work widgets can stay in sync](https://plexiidesk.com/help/widget-duplicate-sync), even on other desks, so the same note or list can appear in two places without becoming two versions.

For a worked example, see [Writing an investor update where every number agrees](https://plexiidesk.com/blog/investor-update) and the [monthly investor update desk template](https://plexiidesk.com/templates/monthly-investor-update).

## Sources

- [The Pragmatic Programmer, 20th Anniversary Edition: the tips (tip 15, DRY)](https://pragprog.com/tips/)
