HenniOKF
Documentation

Concept

Trust and provenance

What the provenance, trust and lifecycle fields of OKF mean, who sets them in HenniOKF, the actor identifier of your account, how accepted changes are written back to Git, and what a reader sees.

What it is about

This page describes planned behaviour. None of it is in the application yet; phase 1, the foundation, is done. The parts arrive like this:

PhaseWhat arrives
2, reading bundlesthe fields are read and shown: tier badges, status and deprecated banner, "due for review" notices, the sources panel with footnote citations, the provenance panel with the history, the contract card of Attested Computations
3, search, tags and foldersfilters by type, status, tier and staleness, the switch "Current only", small markers in every list, the panel "Linked from"
4, jobs and MCPthe agent's and the editor's entries in a job, your actor identifier, the write-back of accepted changes to Git, the lifecycle action, the fields over MCP
5, knowledge bases and stylesknowledge bases with sources and footnotes, the look of the markers per style variant

The Open Knowledge Format (OKF), version 0.3, lets a bundle say three things about each page in its front matter: where it came from (provenance), who checked it (trust) and whether it is still current (lifecycle). All of it is optional. A page without these fields is a perfectly good page; HenniOKF never hides or refuses it. The signals are advice for you as a reader, not access control.

The fields

Sources and footnote citations

sources lists what a page is based on. Every entry needs a resource: an address on the web, a path to another file of the bundle, or a plain description of a scope such as "all queries in project X". An id lets the text cite the source with a footnote whose label is that id.

---
type: Metric
title: Revenue
sources:
  - id: revenue-policy
    resource: /policies/revenue-recognition.md
    title: Revenue Recognition Policy
    author: "team:finance"
    last_modified: "2026-06-15T00:00:00Z"
  - id: exec-dashboard
    resource: https://<subdomain>.<domain>/dashboards/revenue
    title: Executive revenue dashboard
    usage_count: 5000
usage_window: { from: "2026-06-01T00:00:00Z", to: "2026-06-30T00:00:00Z" }
---

Revenue counts delivered orders after the return window.[^revenue-policy]

[^revenue-policy]: Revenue Recognition Policy
  • The footnote [^revenue-policy] is joined to the source with the same id. Hover over it and you see the title of the source; the footnote at the bottom links to the row of the source.
  • author names who made the source, last_modified when the source itself last changed, usage_count how often it was used in the usage_window. The count is a sign of life, not a score: HenniOKF never ranks sources by it.
  • A source that is a page of the same bundle is a link to it; a web address opens outside; a scope description stays text.
  • A footnote whose label matches no source is an ordinary footnote.

Generated and verified

generated says who or what made the current content and when that content last changed in a meaningful way. verified lists who confirmed it and when. The two are kept apart on purpose: whoever wrote a page did not necessarily check it.

generated: { by: "henniagent/1.2.0", at: "2026-11-30T14:00:00Z" }
verified:
  - { by: "process:textcheck", at: "2026-11-30T14:01:00Z" }
  - { by: "human:k-meier", at: "2026-11-30T16:20:00Z" }

The names in by are actors:

ActorMeansExample
human:<id>a personhuman:k-meier
team:<id>a group of peopleteam:docs
process:<id>an automated processprocess:textcheck
<producer>/<version>an agent or toolhenniagent/1.2.0

Times are written as 2026-11-30T14:00:00Z (date and time with a zone) or as 2026-11-30 (the start of that day in UTC).

Trust tiers

From these two fields HenniOKF works out a trust tier for each page. Only verifications made at or after generated.at count, because a check of an earlier version says nothing about the text you read now.

TierWhenBadge
Unverifiedno verification after the last change"Unverified"
Machine-confirmedonly processes, tools or teams verified after the last change"Machine-confirmed"
Human-reviewedat least one person (human:) verified after the last change"Human-reviewed"

A team counts as machine-confirmed: a team name does not say which person checked. When an agent rewrites a page after a person reviewed it, the page falls back to unverified until someone reviews it again. Older verifications stay in the history as "before the last change".

The badge appears only in bundles that use these fields at all; in a bundle without any, "Unverified" on every page would say nothing.

Status and replacement

status: deprecated
superseded_by: /metrics/gross-margin.md
statusYou see
none, or stablenothing: the page is current
drafta badge "Draft": not yet reviewed, possibly incomplete
deprecateda banner at the top: kept for links and history, not current; with superseded_by a link "Replaced by …"
anything elsea badge with the value as written; the page does not count as current

superseded_by points to the page that replaces a deprecated one. It counts only together with status: deprecated.

Stale after

stale_after: "2026-12-31T00:00:00Z"

From that moment the page is due for review. You see the notice "Due for review since 31 December 2026". It means that someone should check the content again, not that it is wrong. A value HenniOKF cannot read is shown as "Review date malformed" and never counts as fresh.

Attested Computations

A page with type: Attested Computation describes a sanctioned way to compute a value, for example an SQL query with parameters. HenniOKF shows its contract in a card: the runtime, the parameters, where the computation is, the executor and the attester, and whether it is attestable. HenniOKF never runs anything; "attestable" only means that a program with access to the data could check a run.

Who sets what in HenniOKF

HenniOKF reads bundles from anyone. For pages that pass through its own jobs, the rules are fixed:

WhoWhatWhen
the agentgenerated: { by: "henniagent/<version>", at: <its write time> } on every page it changesin a job
the agent, optionally{ by: "process:textcheck", at: … } in verifiedwhen its text checker ran on the page without errors
the agentstatus, superseded_by, stale_after, sourcesonly when the instruction of the job asks for it
HenniOKF for the editor{ by: "human:<your identifier>", at: <time of acceptance> } appended to verifiedwhen you accept the job
the editorstatus, superseded_by, stale_after of a single pagewith the action "Lifecycle" on the page

The agent never writes a human: entry. HenniOKF refuses an upload that tries, an upload whose generated.by is not henniagent/…, and times without a zone. Because the agent's generated.at is earlier than your acceptance, your verification is current, and the page becomes human-reviewed in the commit. The preview of a job shows the tier before, as the agent leaves it, and after your acceptance.

The preview also warns when the agent dropped a key of the front matter or rewrote a value it did not change, and when it changed the computation of an Attested Computation; accepting then asks you to confirm.

Your actor identifier

Every account chooses an actor identifier on /account, in the section "Name in bundles". HenniOKF writes it as human:<identifier> into the pages you verify and into the commits. It is public: everyone who reads the bundle or the repository sees it.

  • 2 to 40 characters: lowercase letters, digits, dot, hyphen and underscore, beginning and ending with a letter or a digit, such as k-meier or docs.team-lead.
  • Unique on the instance. An identifier that was ever used stays taken, so that an old verification never points to someone else.
  • The field suggests one from your username. Keep it only if you are happy for your sign-in name to be public; otherwise choose another. HenniOKF never writes your username, your name or an e-mail address into a bundle or a commit.
  • You can change it at any time. Entries written with the old identifier stay as they are; only new ones use the new identifier.
  • Without an identifier you cannot accept a job whose changes are written to Git; the button leads you to /account.

From job to commit

The admin marks a Git package source as writable and gives it a token with read and write access (see Tokens for package sources). For a bundle of such a source, HenniOKF commits accepted changes itself, directly on the branch of the source. There is no pull request.

  1. The editor creates a job on the bundle page: pages, an instruction. HenniOKF notes the fingerprint of every page and the commit of the source.

  2. The agent claims it over MCP, changes the pages, sets generated and uploads them into the job folder. HenniOKF checks every upload.

  3. The agent submits; you read the report, the replies and the preview.

  4. You accept. The job is accepted, and its write-back starts.

  5. HenniOKF fetches the newest state of the branch.

  6. It checks for conflicts. If a page of the job changed in the repository since the job was created, nothing is overwritten: the job shows "Conflict" with the files. You reopen the job, so the agent works on the current version, or you take the files over by hand.

  7. It writes the files with your verification appended and changes nothing else in their front matter.

  8. It makes one commit for the job, as the instance (name HenniOKF unless the admin sets another), with a message like:

    HenniOKF job 12: Clarify the mounting steps
    
    Accepted by human:k-meier at 2026-11-30T16:20:00Z.
    
    Pages:
    - setup/mounting.md
    
    HenniOKF-Job: 12
    Accepted-by: human:k-meier
    Generated-by: henniagent/1.2.0
    
  9. It pushes without force. If someone pushed in between, it fetches and checks again. It never force-pushes and never writes another branch.

  10. It syncs, and the bundle shows the new version.

Every step stands in the history of the job, with the commit. If the push fails because of the network, HenniOKF retries after 1, 5 and 15 minutes; after that, or when the token is refused, the job shows "Failed" and the button "Retry". While a write-back is open, its pages cannot go into another job.

For a bundle from the directory source, or a Git source that is not writable, nothing is written: you download the accepted files, one by one or as ZIP, and put them into the bundle yourself.

The lifecycle action. On a page of a writable source, the button "Lifecycle" lets you set status, the replacement and the review date without a job. HenniOKF writes them back the same way, as one commit, and does not touch generated or verified, because the content did not change.

What you see as a reader

On a page, from the top:

  • the head line with type, description, resource, tags and "Last changed",
  • the tier badge, a "Draft" or status badge, and the "Due for review" notice where they apply; on a deprecated page the banner with the replacement,
  • the text, with footnotes that lead to their sources,
  • the sources panel, the provenance panel with the history of generated and verified, and for an Attested Computation the contract card,
  • from phase 3 the panel "Linked from",
  • a closed disclosure "All front matter" with the front matter as it stands in the file, also keys that only one producer understands.

In search results, tag pages and the outline you see small markers for the tier, draft, deprecated and due for review. Badges always have text and an icon, never only a colour.

Try it with the examples

The example repository HenniOKFBundles holds, next to its own bundles getting-started and showcase, the four example bundles of the Open Knowledge Format project, unchanged under the Apache License 2.0: okf-acme-retail, okf-ga4, okf-stackoverflow and okf-crypto-bitcoin. okf-acme-retail uses every field on this page: human-reviewed metrics, a deprecated metric with its replacement, review dates, sources with footnote citations and two Attested Computations with an attester. Add the repository as a Git source from phase 2 and open that bundle.

Next: Setup.