Skip to content

Trust evaluation

A note can pass validate and lint --strict and still be wrong. okfctl has no way to tell you a claim is true. It doesn’t pretend to. It checks that a reader has something to go on, meaning a grade saying how sure the author was and a source to hold the claim up against. After that it writes out the list of claims for a person to check. The work takes two commands. okfctl eval transparency works by itself and belongs in CI. okfctl eval sample writes a worksheet for a person (or for a model you run yourself) to fill in.

The OKF spec supplies two of the pieces. Each note can list its sources. It can also record who checked it and when, in verified. From those dates a tool works out a trust tier. There’s no key in the spec for how sure the author is. Tools are told never to reject a note that lists no sources or was never checked. The grade checks and the uncited check are okfctl’s, as is the worksheet. Any bundle that fails eval transparency is still valid OKF.

If bundles and nodes are new to you, read Concepts first.

The examples use one bundle of coffee notes, brew, with five nodes:

$ cat brew/roast.md
---
type: Concept
title: Roast level
description: How roast level changes acidity
epistemic: verified
sources:
- resource: "https://en.wikipedia.org/wiki/Coffee_roasting"
generated: { by: "human:casey", at: "2026-11-01T09:00:00Z" }
verified: { by: "human:casey", at: "2026-11-02T09:00:00Z" }
---
# Roast level
**Darker roasts taste less acidic than light ones.** A light roast keeps
more of the bean's own flavor.
## Why dark roasts lose acidity
Longer roasting breaks down the acids.
$ cat brew/grind.md
---
type: Concept
title: Grind size
epistemic: verified
sources:
- resource: kettles.md
verified: { by: "process:nightly-check", at: "2026-11-20T02:00:00Z" }
---
# Grind size
A finer grind extracts faster.
$ okfctl validate brew
OK: bundle conforms to the OKF spec floor

Roast has everything this page looks for. Grind cites kettles.md, but the bundle has no note by that name. The other three are short:

  • bloom.md has no grade and no sources, but its body links to the roast note.
  • water.md has epistemic: likely and cites nothing.
  • ratio.md has authority: team-standard and one web source.

All five pass validate. As you’ll see near the end, they pass lint too.

eval transparency: can a reader see where it came from?

Section titled “eval transparency: can a reader see where it came from?”
$ okfctl eval transparency brew
grade-missing: bloom.md carries no epistemic or authority grade (provenance is invisible)
citation-unresolved: grind.md cites kettles.md which resolves to no node in the bundle
grade-vocabulary: ratio.md has authority: "team-standard", an off-vocabulary value carried by only 1 node(s) (likely a typo/drift)
grade-vocabulary: water.md has epistemic: "likely", an off-vocabulary value carried by only 1 node(s) (likely a typo/drift)
uncited: water.md carries no citations (no sources, no # Citations, no internal reference)
5 transparency finding(s)

The findings come sorted by file, then by check name. The command exits 0 and never changes a file. Roast isn’t on the list.

grade-missing is the bloom note. okfctl reads two header keys as a grade, epistemic and authority. Any value in either one will do. Notes with no grade at all are left out of the vocabulary check below.

uncited is the water note. To count as cited a note needs a sources entry, an old # Citations list in the body (from bundles written for OKF 0.1), or any body link to another note. Bloom links to roast. It isn’t on the list here for that reason. Links from a note to itself don’t count.

citation-unresolved is the grind note. okfctl looks only at sources entries that name a .md file in the bundle. It reports one that points at no note, reading the path the way it reads a link: kettles.md with no leading / means a file in grind’s own folder. (Bundles that declare OKF 0.2 or older also accept a path that only works from the bundle root. The OKF versions guide explains why.) It never opens a web link. The command works offline. Any resource that describes a scope and names no file, like all queries in project X, is skipped too.

grade-vocabulary caught likely and team-standard. OKF has no list of grades. okfctl builds one from your bundle out of any value at least two notes use, for each of the two keys. Roast and grind each say epistemic: verified. With two notes using it, verified passes. Values only one note uses are probably typos, like verifed. In a bundle with five notes a legitimate grade that one note happens to use looks just the same. --grade-vocabulary-floor sets the count (the default is 2). Set it to 1 and the check never fires: any value in use has at least one note. With the floor at 1 the two one-off grades pass and three findings are left:

$ okfctl eval transparency --grade-vocabulary-floor 1 brew
grade-missing: bloom.md carries no epistemic or authority grade (provenance is invisible)
citation-unresolved: grind.md cites kettles.md which resolves to no node in the bundle
uncited: water.md carries no citations (no sources, no # Citations, no internal reference)
3 transparency finding(s)

Fail the build, or read the findings as JSON

Section titled “Fail the build, or read the findings as JSON”

--strict prints the same lines and exits 1 if there are any. With no findings the command prints OK: no transparency findings and exits 0 either way:

$ okfctl eval transparency --strict brew > /dev/null; echo "exit status: $?"
okfctl: 5 transparency finding(s)
exit status: 1

--json prints an array, sorted the same way, for a script to read. It still honors --strict:

$ okfctl eval transparency --json brew | head -6
[
{
"check": "grade-missing",
"path": "bloom.md",
"message": "grade-missing: bloom.md carries no epistemic or authority grade (provenance is invisible)"
},

Of all the signals on this page, the spec defines just the trust tier. okfctl follows its rule. Checks count only if they happened at or after the note’s last content change. On a note with no generated entry, all its checks count. With no check that counts, the note is unverified. Checks by a program, like process:nightly-check, make it machine-confirmed. It takes a human: actor to make it human-reviewed.

Roast is human-reviewed because Casey checked it a day after he wrote it. Grind is machine-confirmed. With no generated date recorded, its one check counts. The other three were never checked and are unverified.

eval transparency doesn’t report the tier. An unverified note is no finding. You’ll see the tier in the worksheet below. The OKF versions guide shows a tier dropping when someone edits a note after the check.

eval sample: a worksheet for what okfctl can’t check

Section titled “eval sample: a worksheet for what okfctl can’t check”

There are four questions okfctl uses to sort trust, called TACA after their first letters:

  • Transparency: can a reader see where the facts came from?
  • Accuracy: does the source back up each claim?
  • Calibration: does the grade hold up when someone checks again?
  • Alignment: does the note answer the question it set out to?

eval transparency takes care of the first. To answer the other three you have to read the sources. okfctl doesn’t fetch them or run a model. eval sample picks some notes and writes down what okfctl can read from each one, with a blank for each answer. This is the roast note’s part of a five-note worksheet:

$ okfctl eval sample --sample 5 --format md brew | sed -n '/^## roast.md/,/^---$/p'
## roast.md
- **Title:** Roast level
- **Description:** How roast level changes acidity
- **Grade:** epistemic=verified authority=— trust-tier=human-reviewed
- **Sources:** https://en.wikipedia.org/wiki/Coffee_roasting
### Accuracy — is each claim supported by a cited source?
- Claim: Darker roasts taste less acidic than light ones.
- Grounding (fill in):
- Claim: Why dark roasts lose acidity
- Grounding (fill in):
### Alignment — does the node answer the question it set out to?
- Question: Roast level — How roast level changes acidity
- Answered (fill in):
### Calibration — does the grade hold up on re-check?
- Current grade: verified
- Holds on re-check (fill in):
---

Each section is one job for whoever fills it in.

The claims under Accuracy are guesses. okfctl takes each bold phrase and each heading in the body that’s at least four words long (up to eight per note) and skips anything in code. The # Roast level heading is too short to make the list. Go to the source and write down if it backs each claim. When okfctl finds nothing to pull, the section says _No candidate claims extracted._ That’s your cue to read the body yourself.

The Alignment question is the title, with the description added when the note has one. Write down yes, no, or partly, with why.

The Calibration grade is the epistemic value. Notes with no epistemic show their authority in its place. With the claims checked, say if that grade still fits. Do this over many worksheets and the answers show how many verified grades hold up.

The top of the worksheet adds a title and a line saying okfctl doesn’t judge truth.

--sample N picks N notes at random. The pick repeats: run the same command tomorrow and you get the same notes. --seed picks a different set. If you name more notes than the bundle has, you get all of them:

$ okfctl eval sample --sample 2 brew | grep '"path"'
"path": "grind.md",
"path": "water.md",
$ okfctl eval sample --sample 2 --seed 3 brew | grep '"path"'
"path": "ratio.md",
"path": "roast.md",

In a pull request, --changed-since takes the notes git reports as changed since a ref. It ignores --sample. Changes you haven’t committed count. Here the bundle goes into git, then one line is added to the grind note:

$ git -C brew init -q
$ git -C brew add -A
$ git -C brew commit -q -m "Add the brewing notes"
$ echo 'Grind just before you brew.' >> brew/grind.md
$ okfctl eval sample --changed-since HEAD brew | grep '"path"'
"path": "grind.md",

Only notes count. An edit to index.md or log.md adds nothing. Refs that start with - are refused. With neither --sample nor --changed-since, the sample is empty:

$ okfctl eval sample brew
[]

Leave off --format md and you get JSON. In it the three blanks are empty strings: expected_grounding on each claim, answered under alignment, and holds_on_recheck under calibration. Fill them in with your own tools. okfctl never reads a worksheet back. Where the answers end up is your call.

eval sample exits 1 only when it can’t run, like with a --format other than json or md or a ref git doesn’t know. What’s in the worksheet never fails a build.

Each command reads the same bundle and asks a different question. On brew they disagree in two places.

lint passed the grind note, missing source and all:

$ okfctl lint brew
OK: no lint findings

lint calls a link broken only if the bundle has a note with that file name in some other folder, the trace of a move or of a typo. Links to notes no one has written are things to write later. eval transparency reports each sources path that resolves to nothing. If you can’t open a source, it’s no source at all. analyze lists it too, among its dangling links.

analyze is pickier about citations than eval:

$ okfctl analyze brew | sed -n '/uncited nodes/,/^$/p'
## Coverage gaps — uncited nodes (need sourcing)
- bloom.md
- water.md

Bloom is on this list because analyze counts only sources entries and the old # Citations list. eval transparency lets a link to another note stand in for a source. eval wants any trail at all to follow. analyze is hunting for the notes that need more sourcing. Its report goes on to list notes with one source each. It counts the epistemic values in use too. Like eval sample, it never fails a build.

In CI, run eval transparency --strict next to validate --strict and lint --strict. The curation health guide has all the lines. To get a worksheet for each pull request, run eval sample --changed-since origin/main --format md in the same job and save the output.

Made by Casey West.