Status badges#
AI Generated, Human Reviewed at: 2026-12-02T13:37:06Z
A status badge says, at a glance, whether a person has reviewed something and whether it still holds. Bowerbird already keeps the
facts a badge needs: .waxseals.yaml (who reviewed which version of a file) and .facts.yaml (the last check of each
fact block). Nothing here needs a service. A badge is drawn from those two
files, at the time you build or run a command.
On the pages of a MkDocs site#
This site does it with hooks/seal_banner.py. Put one line in a page:
<!-- seal-banner: what is true of how this page was made -->
and the build swaps it for a badge, from the ledger, comparing the page's current sha256 with the one that was reviewed:
| Badge | When |
|---|---|
| reviewed, with the date | a person sealed this exact version |
| edited since its last review | it was sealed, then changed |
| locked (bold, with a gold lock), with the date | the seal is a locking seal and still holds |
| locked, but changed since its last review | a locked file was edited (seal check fails it as locked_file_changed) |
| intentionally unreviewed (violet) | no person sealed it and seal.exempt leaves it out: a person chose that |
| not yet reviewed | no person has sealed it |
| derived from the code | a generator recorded these exact bytes in the ledger (derived: <generator>) |
The badge is a <p class="seal-badge" data-state="reviewed|locked|edited|unreviewed|exempt|derived">. Colour comes from the CSS in
docs-src/css/custom.css (.seal-badge[data-state="reviewed"] { --seal: var(--bs-success); } and so on), and the wording from the
hook, so both are yours to change. The hook is listed under hooks: in mkdocs.yml. It reads .waxseals.yaml, so commit that file (and, for the intentionally unreviewed badge, the seal.exempt globs in bower.yaml); a
page the generator has not recorded, or that was edited since, is not badged as derived.
Fact blocks are drawn by the same hook as a quotation with a fact-badge (data-state="unchecked|checked|drifted") that says
when it was last checked and how. It reads the .facts.yaml beside the page, so commit that file. The badge is a link: it goes to the page's bibliography, a
<section class="fact-bib"> the hook adds at the bottom of the page, with an entry (id="fact-1", fact-2, ...) for each block: its kind, source, state, line and claim. A page with no fact blocks gets none.
A page sealed by several people says so: AI Generated, Human Reviewed at: <date> by ann, bo.
bowerbird_facts.render(markdown, folder, name) returns the page with its badges and the entries as data, and bowerbird_facts.bibliography(entries) the HTML. They are what the hook and
serve both call, so a script for another site generator can use them too.
Badges for any site or README#
bowerbird-mcp badge FILE draws one badge now, from the ledger and the facts file, and prints it. It is never saved: the ledger (.waxseals.yaml) is the record and a badge is a view of it, so there is no badge file to go stale. A site build, a template or a script asks at build time.
bowerbird-mcp badge docs/limits.md > limits-review.svg # an SVG: for a README, a wiki, any <img>
bowerbird-mcp badge docs/limits.md -O html # text for a page: <span class="seal-badge" data-state="reviewed">human reviewed 2026-12-02</span>
bowerbird-mcp badge docs/limits.md --kind facts --style wax # the facts badge, as a wax seal
bowerbird-mcp badge docs/limits.md -O json # the state, the words and the sha256, for your own template
The HTML is the markup the MkDocs hook and serve already use (seal-badge and fact-badge, data-state), so a site's own CSS styles it. The SVG is a self-contained picture (no script, no font file, no link) that carries the sha256 of the file it describes (data-sha256), so it can be compared with the ledger. A picture you save yourself (a committed README badge) is the one that can go stale: draw it again when the file changes.
Kinds. seal (the default) says what a review is worth; reviewers says who (ann, bo, or 4 people); facts says whether the facts a page rests on still hold. A file with no facts or no reviewers has no such badge. It works on every format Bowerbird reads: Markdown, AsciiDoc and SKOS.
seal says |
When |
|---|---|
| human reviewed, with the date (green) | a person sealed this exact version |
| machine checked, with the date (blue) | a tool or process sealed it: it is never called a human review |
| 2 of 3 reviewed (amber) | a quorum wants more people |
| edited since review (amber) | it was sealed, then changed |
| locked, with the date (gold) | a locking seal holds |
| unreviewed by choice (violet) | seal.exempt leaves it out: a person chose that |
| not yet reviewed (grey) | nobody sealed it |
| derived from code (blue) | a generator recorded these bytes |
facts says 3 checked (green), 1 of 3 unchecked (amber) or 2 of 3 drifted (red); a drift wins.
Styles (SVG): flat (the default, a two-part label like a shields.io badge), pill (rounded) and wax (a round wax seal with a check, lock, bang or dash, and the words on a tail).
badge is a command, not an MCP tool: an agent has no use for a picture, and the tool list stays small. A live badge URL, answered from the current ledger for many people, is a job for a central service.
In another site generator#
Ask Bowerbird for each file's state and draw whatever you like. For Markdown, ADR and OKF files, list gives one record per file:
bowerbird-mcp list -O json limit=0
# {"file": "docs/limits.md", "tier": "human-reviewed", "stale": false, ...}
tier: human-reviewed with stale: false is reviewed; stale: true is edited since its last review; tier: unverified is not
yet reviewed. For every fact block, factcheck lists its state with no side effects:
bowerbird-mcp factcheck -O json
# {"blocks": [{"file": "notes.md", "line": 3, "status": "checked", "at": "2026-11-20T13:32:56Z", "method": "same words"}, ...]}
If you would rather read the ledger yourself (seal-only files have no other source): .waxseals.yaml is a YAML list with one line per
file, {file, sha256, by, at, bowerbird}, and where seal.extensions is on a line holds seals: [{by, at, comment}, ...]. Hash the
file as sha256 of its text with CRLF turned into LF and any BOM removed; a seal whose by starts with human: and whose sha256
equals that hash is reviewed, and a human seal with a different hash is edited. (An OKF concept keeps its review in its own
frontmatter, as verified, so use list for those.)
In a README#
A badge for the repository can be a number: how many files a person has reviewed. seal check already knows, and exits 1 when
something lacks a review. This script turns its JSON into a shields.io endpoint file:
#!/usr/bin/env python3
"""badge.py: write badge.json, a shields.io endpoint badge, from `seal check`."""
import json
import subprocess
run = subprocess.run(["bowerbird-mcp", "seal", "check=true", "-O", "json"], capture_output=True, text=True, check=False)
r = json.loads(run.stdout)
total = r["files_checked"]
lacking = len({f["file"] for f in r["findings"] if f["severity"] == "error"})
colour = "brightgreen" if lacking == 0 else "yellow" if lacking < total / 2 else "orange"
json.dump({"schemaVersion": 1, "label": "human reviewed", "message": f"{total - lacking}/{total}", "color": colour}, open("badge.json", "w"))
Run it in CI after the checkout, publish badge.json (to GitHub Pages, a gist, or a branch), and embed it:

For facts, count the status values in factcheck -O json the same way, for a badge such as facts: 4 checked, 1 drifted.
What a badge does not say#
- A badge shows the state when it was made. A fact's state changes only when someone runs a check (
factcheck --fetch, orfactcheck id=), so a badge is as fresh as the last run. - Reviewed means a person reviewed that exact version, not that it is correct. Checked means the source still says what the block says, not that the source is right.
- A page's badge only counts reviews in the committed ledger. An uncommitted
.waxseals.yamlor.facts.yamlis invisible to a build from a clean checkout.