Facts#

AI Generated, Human Reviewed at: 2026-12-02T13:12:40Z

A fact is a claim together with where it came from, written so that it can be checked again. It is one span of text, in any Markdown document of any format, and nothing else is needed: a person and an agent write the same thing.

[fact.file]{id: 3, by: ann}(../deploy.sh#L10-14) rollback runs the previous tag [fact.end]

That says (on a page one folder below deploy.sh): this claim rests on lines 10 to 14 of deploy.sh, and it is fact number 3 of this page. Later, factcheck reads those lines and says whether they still hold the words. When they do not, the fact has drifted, and every review of the page made before it stops holding.

The cited form#

From 2.3.4 a fact has two parts that share a number: the claim, in the prose, and its citation, a record in a yaml fact fence. The page keeps only the words and a number, so editing the prose cannot rewrite where a claim came from.

Rollback is safe: [rollback runs the previous tag](#fact.3).

## Works cited

~~~yaml fact
- id: 3
  kind: file
  source: ../deploy.sh#L10-14
  by: ann
  confidence: high
~~~
  • The claim is the words between [ and ](#fact.3). A check compares them with the source. Edit them and the fact is unchecked until it is checked again.
  • The citation is one record in a list. id, kind and source are required; every other key is metadata (by, at, as_of, confidence, note, tags, stale_after, last_checked). A source is written as it is, so a ) needs no escape.
  • The fence is yaml fact (or yml fact). GitHub colours it as YAML. A page may hold several, usually one under Works cited. A fence shown as an example inside a longer fence is not a citation.
  • Lint names a claim with no record, a record with no claim, an unclosed [, a stray ](#fact.3) and a number used twice.
  • Shown (in serve and the built docs): the claim with its badge, and the records as the Facts list below the page.
  • fact writes both parts. fix moves every old block to this form; what was checked follows the fact, and the page's review goes stale (the words changed shape).

The form below is the one before 2.3.4. It still reads.

The older block#

[fact.KIND]{metadata}(source) the claim [fact.end]
Part What it is
[fact.KIND] Opens the block. The kind says what the source is: url, file, mcp and so on (the table below).
{metadata} Optional. A JSON or YAML mapping directly after the tag: a number, who wrote it, how sure.
(source) The source, in the kind's own words: an address, a path with lines, a server and a key. It ends at the first ), so write a ) inside it as %29.
the claim The words the source says, up to [fact.end]. Paste them; a check compares them with the source. One line or many.
[fact.end] Closes the block.

A block with no metadata is the form of 2.2.0 and is still valid. A page may hold any number of blocks. A block inside a code fence or a code span is an example, not a fact. In a Markdown renderer that knows nothing of facts, a url block shows as a link to its source.

For an agent, both the metadata and the source may be JSON, so a block can be written exactly: {"id": 3, "by": "claude", "tags": ["db"]} and (["jira", "INFRA-1"]), which reads as the words jira INFRA-1. A } inside a quoted string of the metadata is safe. A ) in the source is always written %29.

Its number#

id is the fact's number: a whole number, first in the mapping, unique in the page. factcheck file=deploy.md id=3 checks it. The claim can be edited without losing the number, and a fact whose words or source changed since its last check shows as unchecked until it is checked again. A fact with no id is known by a fingerprint of its kind, source and words (what 2.2.0 did); fix numbers those, moving what was checked under the fingerprint to the number, and fact takes the next free number when it writes one.

The rest of the metadata#

Key Meaning
id The fact's number (above).
by Who wrote it: a person's name, or the exact <tool>/<model> of an agent. Never invented.
at The day it was written.
as_of The day the claim was true as of.
confidence 0 to 1, or low, medium, high.
note One line for the reader.
tags A list of words.
stale_after Days since the last check after which the fact is due (an unchecked fact is due), or a date. factcheck lists what is due.
last_checked The day of the last check. Written by a check, not by hand.

Any other key is kept and shown. lint warns of a wrong value in a key that has a meaning.

The kinds#

Nine kinds. The first four are in bowerbird-mcp; the other five are the fact pack, an add-on that ships in the same package (pip install 'bowerbird-mcp[fact-pack]' stays valid; it adds tomli on Python below 3.11).

Kind Source Holds while An agent may check it
url https://example.com/page the page still holds the words (with semantic: true, or still means them) yes
mcp jira INFRA-1 (a server, a key) the call, declared in bower.yaml, still returns the value it did yes (only a call declared in bower.yaml)
file src/app.py#L10-20 the lines still hold the words (the whole file without #L) yes
internal docs/tools.md#Links the page, or that heading's section, still holds the words yes
key pyproject.toml project.version the value at that path in a JSON, YAML or TOML file is what it was yes
git tag v2.3.0 or file main docs/x.md (an alias first for another repo: infra tag v1.2) the tag, or the file at that revision, is what it was yes
until 2026-12-31 today is on or before the date yes
manual ops standup a person says it still holds no: it asks a person, so an agent's run skips it
script uvver or latest v2 the command's output is what it was yes (only a command declared in the root bower.yaml)

The first check of a mcp, key, git or script fact records the value; later ones compare. A source is read as words: jira INFRA-1 is a server and a key, and deploy.sh#L10-14 a path and lines.

The four in core#

  • url: a page, fetched when a check runs (http and https only, 2 MB at most). Whitespace, case, backticks and emphasis are ignored: the content is compared, not the shape. A claim of several paragraphs holds when each one is on the page. With semantic: true and the semantic extra, a page that no longer says it word for word but still means it counts too, scored against min_similarity (as in semantic search), and the check says similar meaning instead of same words. A page built by script in the browser has no text here, and a page that redirects to another host or has almost no words (a login, a captcha, a block) is reported as an error, not a drift: a drift would end the reviews of the page. Semantic mode matches by meaning, which a paraphrase passes and a contradiction can too (it misses negation and swapped nouns): do not rely on it alone, and quote the words that matter.
  • file: a file, read here with no network. The path is absolute, ~/, or relative to the page's folder, and may lie outside the collection. #L10-20 (or #L10) names the lines the claim rests on; leave it off for the whole file. A file that shifted by a line drifts, and you re-point the fact by editing the range. A missing file, or a range past the end, is a drift.
  • internal: another page of this collection: a path from the collection root, then optionally #Heading (matched by its anchor, so #Part Two and #part-two are the same). The claim must still be on the page, or under that heading down to the next heading of the same or a higher level. A missing page or heading is a drift. The page's seal is not consulted: this checks the words, not who reviewed them.
  • mcp: a call to a tool of an MCP server the collection already has (.mcp.json). Which tool, with what argument, and which part of the result to watch is declared once in the root bower.yaml (see Settings); the page gives only the server and the key. The first check records the watched value, and a later one must return it. A server not declared there is skipped.

A kind can also be declared for one tool, under facts: types:: [fact.ticket](INFRA-1) then has just the key as its source. Only the root bower.yaml declares one, a page cannot add a kind or choose what runs, and the names of the nine kinds are taken.

Writing a fact#

By hand, as above. Or with fact, which writes the block and numbers it:

bowerbird-mcp fact notes/deploy.md kind=file source='../deploy.sh#L10-14' claim='rollback runs the previous tag' after='Rollback'
bowerbird-mcp fact notes/db.md kind=mcp source='jira INFRA-1' claim='is open' meta='{"by": "ann", "confidence": "high"}' result=@issue.json

after is a heading's text (the block goes at the end of its section) or a line number; the default is the end of the file. meta is the metadata (at is added; id is the next free number, and one already used is refused). A kind that only reads files here (file, internal, key, git, until) is checked first, and fact refuses a claim the source does not hold, so a quotation that is not there never reaches the page (check=false writes it anyway). What fact checked is recorded, and its day is written as last_checked. For mcp, result is what the call returned, and its watched value becomes the baseline. At a terminal, result=- reads standard input and result=@file a file, and harvest=true with kind=url fetches the page, shows its paragraphs and asks which to quote. An agent cannot harvest or read - and @file.

Checking#

factcheck with no arguments lists every block and its state, and the facts that are due. It runs nothing. In serve each fact's card has a Check button, and a page's gear menu has "Check facts".

State Meaning
unchecked never checked, or the words or the source were edited since
checked the source still holds the words (or the value is the one recorded)
drifted it does not
bowerbird-mcp factcheck notes/deploy.md              # the facts on the page and their state
bowerbird-mcp factcheck notes/deploy.md id=3         # check fact 3 now, whatever its kind (a person at a terminal is shown a fetch, call or command first and asked)
bowerbird-mcp factcheck --fetch                      # a person: show every fetch, call and command, ask, then check them all

id= checks one fact, and --fetch checks every block, each against a fresh result. For a person at a terminal, --fetch first lists what it will fetch, call or run (an address, a call, a command), asks Run these? [y/N], then checks each block; an agent, or a script, is not asked, and the list comes back with the result as ran. A page is fetched, an mcp call is made (only one declared under facts in bower.yaml), a manual fact asks a person Still true? (skipped when no one is there), and a script runs (only one declared in the root bower.yaml). A check ends as checked, drifted, skipped (not declared, the command failed, or a manual fact had no person to ask: nothing is recorded) or error (the source could not be read: nothing is recorded). The command exits 1 if anything drifted.

Where the result goes. Each check is recorded in a .facts.yaml beside the page (commit it, as you do .waxseals.yaml), and the day is written into the block as last_checked (for a checked or drifted result, not a skipped one). The file also holds the value a mcp, key, git or script fact is compared with, so a command that prints a secret puts it in a committed file.

Drift and seals#

A fact that drifted ends every review of its page made before it: seal check reports a cited fact drifted after it was reviewed. Correct the claim, and have a person review the page again; a review made after the drift holds, and a later check that passes does not undo the drift.

A check writes last_checked, and fix and fact write id. Neither breaks a seal: a review is of the page without its facts' id and last_checked and without an empty {}, so numbering a fact or checking it leaves the review in place. Everything else in a block is part of what the person reviewed.

Showing facts#

The docs build (status badges) and serve show each block as its claim and a badge of its last check (not yet checked, checked on a date, or drifted). The badge links to an entry in the page's bibliography: at the bottom of a built page, and on the Facts tab of the right-hand pane in serve. Each entry has the kind, source, state, line, claim and metadata, and says when the fact is due for a check.

Settings#

In the root bower.yaml:

facts:
  mcp:                 # the only MCP calls a check may make
    jira: {tool: get_issue, arg: issue_key, watch: fields.status.name}
  types:               # a kind of fact for one tool: the source is just the key
    ticket: {server: jira, tool: get_issue, arg: issue_key, watch: fields.status.name}
  scripts:             # the fact pack's `script` kind: an argument list, run with no shell
    uvver: {cmd: [uv, --version]}
  repos:               # the pack's `git` kind in another repository: an alias for a local checkout
    infra: ~/src/infra
  manual_days: 90      # the pack's `manual` kind: skip the question for this many days after a yes

A page never names a command or a tool, only a key; only the root bower.yaml declares them. bowerbird-mcp create --facts writes a commented block to start from.

What lint says#

Finding Meaning
unclosed_fact, stray_fact_end an opening tag with no [fact.end], or an end with no start
unknown_fact_kind a kind nobody registered (for a pack kind, it says to install the pack)
bad_fact a source the kind cannot read, no words to check, or metadata that never closes
bad_fact_meta a wrong value in a key that has a meaning (a warning)
duplicate_fact_id two facts on one page with the same number
undeclared_fact_source an mcp fact whose server is not declared under facts.mcp (a warning)

The older forms#

  • A block with no metadata, as in 2.2.0, still reads and checks.
  • In an OKF concept, fact with a resource and no claim records a frontmatter sources entry and prints a footnote marker. okf export and okf import move those checks to and from .facts.yaml (and the reviews to and from .waxseals.yaml).

Report a problem#

A fact that checked wrong, a drift that should not be, or a block that would not read: open an issue or write to dfoulks@voltpop.com. Give the kind, the version (bowerbird-mcp --version) and the smallest page that shows it, never a private one. More on reporting a problem.