D47g — Contributors are listed in the dataset, and bundles are signed¶
- Status: Accepted — implements D47 (part 3); verifies D44's declared actor for signed bundles; a listed peer signs for the people it authenticated (D51d)
- Date: 2026-09-23
- Origin: slice 23 build
- Area: foundations
Decision¶
- A dataset's
contributors.yamlnames each contributor. For each person it gives: - a role,
maintainerorresearcher; - the ssh public keys they sign with;
- the agents that act for them, each with the scopes it may work in and a
pausedflag.
It also sets probation_rows. The file lives in the dataset repository and is
changed by pull request, like everything else there. kg contributor add and
kg contributor agent edit it with validation, and editing by hand is equally
valid.
- kg keys init makes a dedicated ed25519 signing key in ~/.kg/, kept apart
from anything used for git. It records the key in kg.yaml (signing_key:) and
prints the public half for contributors.yaml.
- With a key configured, export signs each new bundle's manifest using
ssh-keygen -Y sign, namespace kg-bundle. That signs the whole bundle:
- the manifest pins the rows by hash;
- the bundle id is a hash of the rows and the capture list;
- shared captures are stored under their own sha.
Verification uses allowed_signers generated from contributors.yaml.
- The signer is the exporting handle. A changeset bundle must belong to its
signer. An agent named on it must be listed under that person, not paused, and
working in one of its scopes.
- A dataset with no contributors.yaml is one person's. Nothing needs
signing, everyone is a maintainer, and slice 22 behaves as before.
Why¶
D44 records who decided, and D47b who staged, but both are declarations. On one machine that is all anyone can have. In a shared dataset, a name that anyone can type is no name at all.
Signing with ssh keys needs nothing new: git already uses the same format for
signed commits, and every contributor already has ssh-keygen. A dedicated key
keeps "who wrote this data" separate from "who may push to this repository".
Alternatives¶
- Relying on git commit authorship or GitHub accounts. Bundles move between clones and files; the identity has to travel with the bundle, not with a hosting account.
- Signing each row. That is thousands of signatures for no gain, because the manifest already pins every row.