Provenance / verification: an additive layer for OKF bundles
Thanks for OKF - the format is clean, and the "producers MAY include any additional keys" rule makes it easy to build on.
One gap shows up the moment agents act on shared bundles: a consumer has no way to verify that a bundle came from who it claims and hasn't been altered. The metadata stops at timestamp - there's no signature or integrity check. (Karpathy's original LLM-wiki gist has comments raising the same worry: stale synthesis pages that still look authoritative.)
I put together a small, additive layer that stays inside the spec:
optional provenance frontmatter keys (source, source_url, licence, measured_at) - additional keys the spec already permits a root okf.manifest.json (not a reserved filename) that lists a SHA-256 of every file plus a provenance envelope, Ed25519-signed over its canonical form a standalone verifier that re-hashes the files and checks the signature against the issuer's published key Drop the manifest and it's a plain OKF bundle again - no fork, no required SDK. Repo (Apache-2.0): https://github.com/dynamicfeed/signed-okf
Sharing in case it's useful to the ecosystem, or as a reference if OKF ever wants to address provenance natively. Happy to align naming and conventions with the spec. Either way, thanks for shipping this.
This nails the integrity / authenticity axis — "is this bundle from who it claims, and unaltered." I opened #151 for the complementary reliability axis: even a perfectly signed, unaltered bundle can carry claims of very different trust (verified-against-the-live-system vs. restating vendor docs vs. inferred). A signature proves who said it; it doesn't grade how much to believe it.
It's a different sense of "provenance" than the cryptographic one here — happy to align naming so the word doesn't end up carrying two meanings across the spec.
Agreed, these are two distinct axes worth separating cleanly.
Integrity / authenticity (this issue): is the bundle from who it claims, and unaltered. A signature settles that, and only that. It proves who said it.
Reliability (#151): how much a consumer should believe a given claim, even when the signature is perfect. A claim verified against the live system, one restating vendor docs, and one that is inferred are all equally signable and very differently trustworthy.
On naming, I would keep "provenance" for the cryptographic axis here and use "reliability" or "assurance" for #151, so the word does not carry two meanings across the spec.
A shape that has worked for us in a live verifiable-data layer is a per-claim block that keeps the axes separate:
"verification": {
"confidence": 0.8,
"sources": 1,
"verified": false,
"signals": { "signed": true, "fresh": true, "corroborated": false },
"basis": "live-system | vendor-doc | inferred"
}
The rule we hold: signed is not verified. The signature is the integrity axis; "verified" is reserved for independent corroboration (2+ sources, fresh), so a single-source claim is honestly verified:false even when perfectly signed. The "basis" field captures the verified-against-live-system vs vendor-docs vs inferred distinction directly.
Happy to draft a schema for the reliability axis on #151 if useful.