HP

Blog · · 2 min read

My portfolio fails its own build if a number has no source

Every number on my portfolio needs a row in an evidence file. If it has none, the build stops. Here is how the check works and what it cannot prove.

ProcessTesting

Most portfolios say things like "improved performance by 40%". Nobody can check that. I wanted a portfolio where a reader can follow any number back to how it was measured.

So I made the build enforce it.

The evidence file

There is a file called metrics_evidence.md. Each row is one measurement:

ID Metric Value How it was measured
EVD-MP-001 dbt models built and passing 69 dbt build reported PASS=69
EVD-FB-001 Passing unit and integration tests 136 The test suite run after a build bypass was removed

Every project in content/projects.json lists its numbers as a label, a value and an evidence ID. The ID has to exist in the evidence file.

The check

A small script runs before the site builds. It does three things:

  1. It reads all the IDs from the evidence file.
  2. It looks at every metric in every project and fails if the ID is missing or unknown.
  3. It scans the text of one project for words I should never use about it, such as "founder" or "intern". My role there was a part-time software engineer role alongside studies, and the check keeps the wording honest.

If any check fails, npm run build stops and the site cannot be deployed.

Numbers I have not measured yet

Some projects are early. For those I keep the placeholder [ADD REAL NUMBER] in the data. The site hides placeholders, so a reader never sees an invented figure. The page says "Early stage, nothing measured yet" instead.

What this does not prove

The check proves a row exists. It does not prove the measurement is right. If I wrote a wrong value and a nice "how it was measured" sentence, the build would still pass. The check removes lazy claims, not mistakes.

That is why each project page also has a section called "What it does not show". For one of my projects it says the accuracy figure does not describe real people, because the data is synthetic. A number without its limit is half a fact.

Why bother

Recruiters and engineers read portfolios quickly. A claim they can trace is worth more than a bigger claim they cannot. And making the build fail is a better reminder than a promise to myself.

You can see the result on my portfolio, where each project lists its measurements with their evidence IDs.