Plaintext Records, Organized and Verifiable. CLI + Library for managing plaintext information
prov docs provenance.md


part_of: 'prov' #

Provenance — who wrote this, and who has confirmed it since #

The keeper's own ledger. How a document says how it came to exist, and how the person keeping the workspace records that they read it and found it right — precisely enough that a reader with cat can tell a note an agent wrote last night from one a person checked, and can tell when that check stopped describing the document in front of them. Complements DESIGN §2 (the three tiers), spec §3 (fields), and the fixity row of DESIGN's status table.

1. Two families #

generated:
  by: agent:claude-opus-5
  at: 2026-09-11T09:15:22.481093Z
  how: transcribed
confirmed:
- by: amh
  at: 2026-09-11T09:20:00.000000Z

generated records how the document came to exist. It is written once, by whatever created the document, and never maintained afterward — the mapping is a fact about an event. prov reads it only to say what kind of actor wrote the document, and never writes it into a document of yours.

by is the actor and at the instant. how is the act — what the actor was doing when the document came to be. "A model drafted this from a prompt", "a model transcribed this from a scan", "a program imported this from another tool's export", and "a person wrote this" are four different answers to how did this come to exist, and by alone collapses them to the actor. The distinction is the one that decides how much of the content is the actor's — and so how much a confirmation is vouching for: a transcription is checked against its scan, a draft against nothing but itself. The key is optional (every document written before it existed lacks one) and, like the identifier after an actor's prefix, is carried and never reasoned about. prov ships no terms for it. A workspace that wants a fixed set declares the key under fields:, by dotted path, exactly as status is closed under Tasks:

fields:
  generated.how:
    values: closed
    vocabulary: '[Generating acts](/vocab/acts.yaml)'
# vocab/acts.yaml
title: Generating acts
vocabulary:
  field: generated.how
  values: closed
terms:
  drafted:     { means: "composed by the actor, from a prompt or from nothing" }
  transcribed: { means: "carried across from a scan or a recording; the words are the source's" }
  imported:    { means: "carried across from another tool's export, unchanged" }
  converted:   { means: "the same document in another format" }

and from then on an unknown act is an unknown_term finding on the document, naming generated.how, with the same two repairs any closed field offers.

In PROV-O's terms — entity, agent, activity — by is prov:wasAttributedTo, at is prov:generatedAtTime, and how names the activity that a prov:wasGeneratedBy would point at, so an exporter maps all three without the workspace glossing them first, as it maps replaces and derived_from (spec §2). The word is how rather than PROV-O's activity for the reason by and at are not wasAttributedTo and generatedAtTime: it reads in the line beside them, a stranger with cat needs no ontology to guess it, and it is the word a confirmation could take unchanged if an entry ever recorded its own act — read, proofread, checked against the source. That is not done here: a confirmation stays a dated, attributed statement, and the key is chosen so an entry could take it later without renaming.

confirmed is an append-only list of dated, attributed statements that someone read the document and found it correct. prov confirm <doc> appends one. Nothing else writes the list, and nothing rewrites or drops an entry beyond naming a declared person by their link (§2): a second confirmation by the same person is a second fact, and an entry the document has since moved out from under is history.

An entry may carry keys of another tool's beside by, at and of: a signature over the entry, a reference to the evidence checked against. They are written with the entry, when it is made (confirm_with in the library), because nothing rewrites an entry afterwards; prov keeps them and never reads them. They decide nothing about whether the entry is well formed, whether it stands or the document's tier, and they sit inside the list the content digest leaves out (§3), so adding one moves nothing. A workspace that wants them held to a shape declares them like any key in a list, as confirmed[].signature. prov's own three keys cannot be added this way.

confirmed:
- by: amh
  at: 2026-09-11T09:20:00.000000Z
  of: sha256:9f86d0…
  signature: { key: RWTd8LRC…, minisig: … }

Both are ordinary frontmatter. A workspace that never runs confirm has no entries, no findings, and nothing to configure. The one axis there is, confirmations, chooses what an entry is measured against (§3), and its default is the one described first.

2. Actors #

A bare actor is a person. A non-human carries one of two prefixes:

Written Means
amh, Adam Harris a person
agent:claude-opus-5 a model, acting with judgment
process:nightly-build a program, acting without it

The burden sits with the party that can bear it mechanically. A workspace full of one person's own work writes no boilerplate, and a tool is code that does not forget a prefix once told. What that accepts is that a tool which omits its prefix is counted as a person — a bug in one tool, fixed once, against a human: on every line forever.

Where a person's name comes from. Who is at the keyboard is a fact about a device, not about the archive — the same reasoning that keeps the peer map out of prov.yaml. prov confirm takes --by <ACTOR>, then PROV_ACTOR, then a one-line actor file beside the device-local peer map (prov peer list prints where that is). With none of those it refuses rather than writing an unattributed entry, because an unattributed assurance is exactly what this family exists to replace.

Declared people #

A bare string ties an act to nobody in particular: amh and Adam Harris read as two people, and a workspace several people write cannot say which amh it meant. A workspace that needs to say sets

# prov.yaml
actors: declared        # free (the default) | declared

and names every person by a link to a person document: one that lists, in handles:, the strings that have stood for that person.

# people/adam.md
title: Adam Harris
handles: [amh, Adam Harris]
confirmed:
- by: '[Adam Harris](id:4kq20b1)'
  at: 2026-10-07T02:00:00.000000Z

A prefixed actor is never a person and is left as it is. Under declared, every bare person string in generated.by or confirmed[].by is a bare_actor finding (§5), and where exactly one person document lists it, prov check --fix rewrites it to that document's link. That is the one edit prov makes to a confirmation entry, and it moves nothing: the content digest leaves out the confirmed list (§3), and the entry names the same person. An entry carrying another tool's keys is the exception — a signature over the entry may cover by as written — and is reported and never rewritten.

3. What a confirmation is bound to #

A confirmation is stale when the document changed after it was made. The record of a change is the workspace's own updated stamp (updated: modified in config, the field edit, set, and stamp write): an entry whose at is older than the document's updated instant describes a document that no longer exists. Both are the same clock in the same fixed-width RFC 3339 spelling, so the comparison is one a reader makes by eye — confirmed at 09:20, changed at 10:00, or not.

A workspace whose edit stamp is declared type: date records only the day of an edit, and the comparison is made at that resolution: an entry is stale once the stamp names a later day than the one it was confirmed on. An edit made the same day as the confirmation cannot be told from one made before it, so it does not make the entry stale — the digest, where there is one, still does.

Where the document records a content_hash — an attachment sidecar, a separated node, a manifest node — the entry also names the digest on record:

content: photo.jpg
content_hash: sha256:9f86d0…
confirmed:
- by: amh
  at: 2026-09-11T09:20:00.000000Z
  of: sha256:9f86d0…

and is stale too once that digest moves. For those three shapes the guarantee is about bytes, and an outsider checks it with sha256sum; for everything else it is about the stamp, and an outsider checks it by reading two dates.

What this accepts, stated plainly. An edit made outside prov that never bumps the stamp is invisible here. That is the hole updated already has, and a confirmation inherits it rather than adding to it. A workspace that keeps no updated field gets staleness on the digest-bearing shapes only, which is fair: it has already said it does not track edits.

Binding to content instead #

A workspace can close that hole by measuring confirmations against the bytes:

# prov.yaml
confirmations: content        # stamp (the default) | content

There, prov confirm writes of: on every document, not only the three shapes above. On a document that records no content_hash, of: is the document's content digest:

updated: 2026-09-11T09:00:00.000000Z
confirmed:
- by: amh
  at: 2026-09-11T09:20:00.000000Z
  of: sha256:5f3c1a…

and the entry stands exactly while its of: is still the content digest. The stamp is not compared for it: the content digest covers the stamp along with every other byte, so an edit that bumps it unseats the entry anyway, and an edit that forgets to bump it unseats the entry too. A document that records a content_hash still names that, and is judged as above. An entry with no of: — one written before the workspace opted in — keeps the stamp rule.

The content digest is the sha256:<hex> digest of the document's text as it would be with the confirmed key removed from its metadata. It leaves out the list because a digest of the whole file would move with every entry appended to it: no confirmation could ever name the thing it confirms. Which bytes are bookkeeping is prov's to say, so the rule is prov's, and stated here so that anything else can apply it:

  • The key is removed with the same comment-preserving edit confirm writes with, in whatever format the metadata is in — --- YAML, +++ TOML, ---json JSON, ---figl figl, or a whole-file .yaml/.json/.toml document. Everything else — comments, key order, the body, updated — is digested as the file says it.
  • A document whose metadata has no confirmed key digests as its text, unchanged.
  • A fenced block left holding nothing once the key is gone is left out with it, since confirming a document that had no metadata block is what created one.

So appending a confirmation never moves the content digest, and every other edit does. It is a function of a path and a text alone (prov::provenance::content_digest; Workspace::content_digest for a document in the workspace), so a tool holding the bytes a document had at a past revision can compute what its content digest was then, and check that an entry's of: named the content it was written over.

What this does not do is make the line more than a claim: whoever can edit the document can write any of: they like. Checking that it was honest is a question about history, and belongs to whatever keeps the history.

prov confirm never stamps updated. Appending an entry is bookkeeping about the document, not an edit of it, and a verb that bumped the stamp it is measured against would make every confirmation fresh by construction.

A drifted document is refused. If the checksum on record no longer matches the bytes, that is already a fixity mismatch, and a confirmation cannot vouch its way past one. prov stamp <doc> restates the checksum; then confirm what is actually there.

4. The tier, derived and never stored #

Tier Condition
unconfirmed no entry still stands
machine-confirmed entries stand, every actor prefixed
human-confirmed at least one standing entry by a person

An entry stands when the document has not changed since it. Storing the tier would be storing a conclusion, and a conclusion goes stale the moment an entry is appended or the document edited — so it is computed from what is present, the way trust is derived everywhere else in prov, and prov confirm <doc> --show prints it along with each entry and whether it stands.

5. What check says #

bare_actor — under actors: declared (§2), an actor field names a person by a bare string. Where one person document's handles: lists it the fix is determined and applied by check --fix; where several do, it is a choice between them; where none does, the repair is to declare the person.

confirmation_stale — the document's newest confirmation was made against a version that no longer exists, and nothing has confirmed it since. Someone confirmed this, and then it changed.

Not an error: an edit after a review is the ordinary course of events. It is a demotion, and the finding is how a reader learns that the assurance in the frontmatter is describing a document that is not there any more. The remedies are the two real ones — confirm again, or leave it and accept being unconfirmed — and there is no autofix, for the reason the orphan finding has none: the repair is a judgment. A document confirmed again after the edit keeps its older entries as history and is not reported for them.

6. The distinction that keeps this honest #

check is the attester; confirmed is the record. Every finding check produces is a claim about state — the bytes hash to the digest, the links resolve, the closed field's values are known terms — computed now and thrown away. A confirmation is a stored claim about meaning, made once by a person or a named process and kept. Three rules follow:

  • prov never writes a confirmation from a passing check. A green check says nothing about whether the content is right, and auto-stamping would launder a mechanical pass into a person's word. A confirmation is written when someone asks for one, never on prov's initiative.
  • A stored confirmation never suppresses a finding. No finding kind consults confirmed when deciding whether to fire. You cannot confirm your way out of a fixity mismatch.
  • A confirmation is a claim, not proof. It is a line in the document, written by whoever can edit the document, and exactly as trustworthy as the author field beside it. A signed record that the document's keeper cannot edit — a reviewer vouching for a revision, in their own history — is a different tool's subject, and the verb here is named so as not to be mistaken for it. That tool may keep its signature in the entry (§1), and checking it is still that tool's: prov reads neither the signature nor whose key it is.

7. Which documents #

Any content document — a note, an attachment sidecar, a separated node, a manifest node, a reified vocabulary term. Not machinery: a registry, a deletion log, or a flat vocabulary is a whole-file store prov re-lays-out, and a confirmation on one would be a claim about a file prov itself rewrites. about.md is likewise refused — it is rewritten whole from configuration, and its generated_by byline is its generated in prov's own spelling. The byline carries no how: the act is known from the file's kind — regenerated from configuration, by prov, every time — and a line every workspace carries is not reshaped to say what its footer already does.