TL;DR: Your Test Receipts, in your terminal: faf taf receipts shows them, taf setup writes the recipe for JavaScript (Jest, Vitest, Bun), Python and Go, and every test run on your default branch gets one, red ones too.

In Plain English

Old state. Your CI ran the tests and said green or red. Then the logs expired. Six months later, "was main green before that release?" has no answer anyone can check.

Fix. Every run writes one line of proof into git: when, the result, passed out of total. It's a receipt, and receipts are kept.

New state. faf taf setup writes the workflow that prints them. faf taf receipts reads them back, in your terminal.

1 Anatomy of a receipt

This is a real one, from faf-cli's own release run. It is a few lines of YAML appended to a file called .taf:

- timestamp: 2026-10-31T23:34:07.345Z result: PASSED tests: total: 2333 passed: 2332 failed: 0 skipped: 1 trigger: github-actions

Nothing else. No score, no grade, no opinion. A receipt says what the test runner said, at the moment it said it. It's small on purpose: faf-cli has 420 of them, one per run.

2 Where receipts live

Not on main. Receipts go to their own branch, taf-receipts, which holds one file: .taf. Your code history and your test history stay apart, and neither clutters the other.

The receipts branch is append-only. Each run adds one commit with one receipt. Nothing is rewritten and nothing is force-pushed, so the history can be checked the same way you check any git history.

3 A red run still gets one

The obvious workflow records only green runs: the tests fail, the job stops, and the receipt step never runs. That's a record of the good days only. taf setup writes it the other way round:

  1. Checkout and install

    Your toolchain, your lockfile.

  2. Run tests

    continue-on-error: true. A failure is noted, and the job keeps going.

  3. Print the receipt

    Runs either way: PASSED or FAILED. Default branch only.

  4. Fail the job if the tests failed

    The last step. Your CI is still red when it should be.

So the receipt is written before the job fails. The red day is on the record, and the red X is still on the commit. Pull requests run the tests too, but print no receipt: the record is for what landed.

4 Two runs, one push

Two pushes to main a minute apart start two runs. Both finish close together. Both add a receipt on top of the same branch tip, and both push. Git takes the first and rejects the second. Before faf-taf-git 2.4.3, that second receipt was lost, with a warning nobody reads.

Now the run that lost the race fetches, adds its receipt on top of the winner's, and pushes again, up to 5 tries. With runs racing on purpose, 4 at once kept 4 receipts every time. Only at 6 at once did one run lose out, and it says so in the log.

Why not just queue the runs? GitHub's concurrency group looks like the answer, and our first recipe used one. But GitHub keeps only one run waiting: when a third arrives, the waiting one is cancelled. No tests, no receipt. The retry keeps every run; the queue quietly drops one. So the recipe has no concurrency group.

5 How taf setup picks the recipe

faf-taf-git reads Jest, Vitest, Bun and WJTTC output, and JUnit XML. So faf taf setup asks a few questions of your repo, in order, and writes a step whose output can actually be read:

  1. A package.json, and its test script runs Jest or Vitest?

    Your test script, via npm, pnpm, yarn or bun, from the lockfile.

  2. bun test with a Bun lockfile?

    bun run test.

  3. Python: pyproject.toml, setup.py, setup.cfg, requirements.txt or pytest.ini?

    pytest --junitxml=report.xml.

  4. Go: go.mod?

    gotestsum --junitfile report.xml.

  5. Anything else, or another JavaScript runner?

    A TODO placeholder to fill in.

The test script decides, not your dependencies. A repo with Jest installed whose test script runs mocha gets the placeholder, because mocha's output isn't one faf-taf-git reads. npm run test:unit is followed to the script it hands over to. The rule: never write a step that would go red on every run.

The small things that would have bitten. Go's setup pins the toolchain in go.mod, and gotestsum needs Go 1.24, so the install uses GOTOOLCHAIN=auto: a go 1.22 repo still gets it. pnpm's setup step needs a version unless package.json pins pnpm, so taf setup adds one only when it isn't pinned. Both would otherwise fail at install, on every run.

6 Which branch gets receipts

Receipts are for your default branch. taf setup works it out without touching the network, in this order:

  1. Does git know origin's default (origin/HEAD)?

    Use it.

  2. Does origin have main, or master?

    Use that.

  3. Does origin have just one branch?

    Use it.

  4. Otherwise

    Your current branch, and faf says it's a guess: check branches: before you commit.

A clone can be missing origin/HEAD, and the current branch might be a feature branch. Asking origin's branches first means a guess is rare, and when it happens you're told.

7 Reading them back

Fetch the branch, then ask:

$ git fetch origin taf-receipts $ faf taf receipts --limit 4 TAF receipts — faf-cli · 420 on origin/taf-receipts · times in UTC 2026-10-31 23:34 PASSED 2332/2333 1 skipped 2026-10-31 23:23 PASSED 2332/2333 1 skipped 2026-10-31 22:11 PASSED 2315/2316 1 skipped 2026-10-31 08:51 PASSED 2301/2302 1 skipped last 4: 4 PASSED as of your last fetch (git fetch origin taf-receipts)
  • Reads, never writes, never fetches. It reads origin/taf-receipts, then a local taf-receipts, then a .taf in the folder. Fetch when you want the latest.
  • --json gives the same receipts to a script: source, project, total and the list.
  • --ref reads any point in the past, such as origin/taf-receipts~20. A ref that looks like an option is refused.
  • Times are UTC and sorted as times, whatever zone a receipt was written in.
  • Plain text when piped. Colour shows only in a terminal; piped output, CI logs and agent tools get none. NO_COLOR and FORCE_COLOR are respected.

8 How we got it right

A release about proof should be able to show its own. Before 8.7.0 shipped, its code went to two independent reviews, each told to run things, not read them, and to report only.

ReviewVerdictWhat it foundThen
Full reviewShip after fixes1 blocker: the Go recipe failed at install on any go.mod below 1.24. 7 more: unreadable runner output, the pnpm version, the queue that drops runs, a --ref that git read as an option, the branch, skipped Go tests counted as passed, and a headline that claimed too much.All fixed, in faf-cli and in faf-taf-git 2.4.3
Targeted re-checkShip after fixes7 cases still wrong at the edges: a clone with no origin/HEAD, a branch named release/v1+x, a mocha script with Jest installed, an npm packageManager beside a pnpm lockfile, a time with no zone, a partial clone, and 4 changelog lines.All fixed, each with a test

Every finding was reproduced before it was fixed, and every code fix came with a test. The headline changed too: "every run" became "every test run on your default branch", because that's what's true.

Try it

npx --yes faf-cli@8.7.0 --version cd your-project npx --yes faf-cli@8.7.0 taf setup npx --yes faf-cli@8.7.0 taf setup --write git fetch origin taf-receipts npx --yes faf-cli@8.7.0 taf receipts

taf setup prints the workflow; --write saves it to .github/workflows/taf.yml and never replaces one that's there. Commit and push, and the next run on your default branch prints the first receipt. Or install it: npm i -g faf@8.7.0. Homebrew has 8.7.0 too.

What gets no receipt

  • Pull request runs, by design.
  • A run that fails before its tests start: the install or the toolchain.
  • A run whose output faf-taf-git can't read. The placeholder is there to stop you writing one.
  • The odd run when 6 or more finish at once: one can lose the push race, and says so.

Technical details

  • Version: faf-cli 8.7.0 (October 31, 2026) · pins faf-taf-git 2.4.3
  • Packages: faf-cli and faf on npm (same build) · Homebrew
  • Tests: 2333 passing (faf-taf-git: 100)
  • Docs: docs.faf.one/taf
  • Notes: v8.7.0 · faf-taf-git v2.4.3