knowledge-catalog icon indicating copy to clipboard operation
knowledge-catalog copied to clipboard

Producer report: six lifecycle keys in a live OKF exporter, and where each one should land

Open andrewcrenshaw opened this issue 4 months ago • 7 comments

Thanks for publishing OKF openly, and for the maintenance-signal threads (#158, #151, #148, and PR #159). Reading them changed what this issue is. We set out to propose a lifecycle vocabulary, found that most of it already has a home, and would rather file a producer report: what six optional frontmatter keys look like in an exporter that ships them today, and where we think each one belongs among the threads already open.

For context, we build remember at Lexenne. Our wiki compiler emits conformant OKF v0.1 bundles, and six optional keys ride along under the existing §4.1 extension allowance ("Producers MAY include any additional keys. Consumers SHOULD preserve unknown keys when round-tripping..."). All six ship with test coverage, and we can bring a sample bundle built from our own public docs.

Key What the producer promises by writing it Where we think it belongs
provenance how the item came to exist: observed / asserted / inferred no home yet, and it needs a new name
trust_tier the producer's own vetting level, as an ordered vocabulary #151 / #159, as the reliability object's confidence band
valid_from opening bound of the window over which the item is asserted to hold #159, beside validity.valid_until
invalid_at closing bound of the same window #159, same object
supersedes the prior concept this one replaces #148, per @K4uP's split and @inkxel carrying it there
contested_by a concept that disputes this one, kept rather than silently dropped #148, same typed edge

Taking the routing one at a time.

The cross-concept edge (#148 / #158). @K4uP drew the line on #158: #151 owns the intra-concept question (competing claims about the same fact, graded by reliability), and #158/#148 own the cross-concept one (a typed supersedes / contradicts edge where one whole concept obsoletes another). @inkxel then carried the edge to #148. That split holds against our data, and our two edge keys are that edge. One thing from running it: the edge only pays for itself if the contested concept stays in the bundle. Drop it and a reader coming back weeks later cannot tell a question that was settled from one that was never asked. @ajdelaguila's supersedes: shape (Data Olympus, on #148) is close enough to ours that converging on one spelling is clearly better than shipping two.

Reliability (#151 / #159). trust_tier is our version of the graded axis. #159 already names it confidence, inside a reliability object with a maturity ladder and four honesty rules, which is further along than what we have. We would drop trust_tier and adopt that name.

Validity (#159 / #97). #159's object carries validity.valid_until. We carry both bounds. The opening bound earns its place when a fact is written before it takes effect: a policy dated forward, a price filed in advance. A consumer reading the bundle today needs to know the item is not live yet. Note the two clocks, because they are easy to collapse. #97's timestamp records when the record was written (transaction time). A validity window describes the interval over which the item is asserted to hold in the world (valid time). They are complementary, so deferring freshness to #97 does not crowd out a validity window living on the reliability object.

Provenance (#140). This is the key with no home, and it should not keep this name. @K4uP has already noted that "provenance" carries about three meanings across these threads. #140 uses it in the cryptographic sense: a signed manifest, SHA-256 per file, an Ed25519 envelope - proof that a bundle came from who it claims and has not been altered. Ours answers a different question: how a given item came to exist as an epistemic class. observed (a system saw it), asserted (a person or agent stated it), inferred (derived from other items). Integrity and epistemic origin compose without conflict, and a bundle can carry both. We would take epistemic_origin, or whatever a registry lands on, and leave provenance to #140.

That leaves the routing question itself. #158 proposes an EXTENSIONS.md registry for exactly this collision problem. PR #159 has already demonstrated the other pattern: a self-contained proposal doc (okf/proposals/reliability.md) written in SPEC voice, core spec untouched. Both look reasonable from where we sit and we have no preference between them. Whether the maintainers do is the thing we would like to know, because we would rather fold six definitions into whichever surface holds the integration view than open a seventh.

Concretely, what we are offering:

  1. The epistemic-origin definition as the one new key, wherever it should live.
  2. supersedes / contested_by folded into #148's typed-link convention, under whatever names #148 settles on.
  3. valid_from and the transaction-time / valid-time note contributed to #159.
  4. A fourth production instance to cross-check the surface against, alongside Throughline, signed-okf, and @K4uP's multi-version corpus.

Say where, and we will write it up.

Contributed under Apache 2.0, from the team building remember at Lexenne.

andrewcrenshaw avatar Jul 10 '26 18:07 andrewcrenshaw

Hit a version of this from a different angle and figured it's worth sharing while it's fresh, since it bears directly on provenance/epistemic_origin.

Your asserted value — "a person or agent stated it" — is the exact line I tripped over. Earlier this week an extraction agent in my personal knowledge system wrote two decision records straight from meeting transcripts: an IP position, a competitive-positioning stance. Both were just me thinking out loud on a call with one other person agreeing. No review. Both read as ratified policy the moment they hit the file — because nothing in the record said who had asserted it, only that someone had. observed / asserted / inferred would sort both of those into asserted and stop there, same bucket as if I'd actually decided something.

Working hypothesis: that axis needs a fourth distinction, or a second one entirely — who asserted, separate from how the claim was obtained. I'm keeping basis (per #159 — still glad authored landed) for claim provenance, and adding an orthogonal status for record affirmation: proposed | accepted | superseded | deprecated, straight ADR semantics. The move that actually matters: an automated writer may only ever emit proposed — mechanically capped, not by convention, since a self-asserted field an agent can type isn't a gate (C2PA's own AI-disclosure field has this exact problem — self-asserted by the signer, never independently verified). A human raises it, and only by appending an event — who, when, why — rather than editing the field in place. Closer to your contested_by instinct than to a status flip: the record shouldn't get to silently promote itself any more than a contested concept should silently disappear.

Still testing, not shipped, so I want to be honest about where this actually stands rather than claim more than I have:

  • Mechanical enforcement (does the cap hold) — a same-day test, straightforward once built.
  • A regression check against the exact two records that slipped through — re-run the corrected pipeline against the same source transcripts, confirm they land as proposals now.
  • The real number — affirmation rate over a real window, once it's live. That's the thing worth bringing back here, not the design.

I'll report back with my findings rather than speculate but wanted it on the radar.

inkxel avatar Jul 10 '26 21:07 inkxel

Your two transcript records state the problem more clearly than the provenance row in the table above did. We'd been treating asserted as one bucket ("a person or agent stated it"), and you're right that it's too coarse: the value records that a statement was made, but not who stands behind it now. A meeting-transcript extraction landing as ratified policy is the same family of failure contested_by exists for - a record that reads as decided when no decision happened.

We run a version of your mechanical cap in production, so the working hypothesis holds against at least one more implementation. In our pipeline the automated side (an LLM judge that proposes supersession and contradiction candidates between concepts) can only ever emit review candidates - it has no write path to the lifecycle fields at all. A human resolves the candidate, and the resolution is recorded with attribution: who resolved it, when, and why. We arrived there for the reason you name. Two caveats: our detection side went live recently and runs in shadow, and we don't yet have enough history to contribute an answer your affirmation-rate question (how often a human accepts what the machine proposed). We'll post a number once there's a meaningful window behind it.

On the axis split, agreed - and it re-routes the key we'd called un-homed. Looking again at #159's basis values, our observed is roughly its live-source/computed, our inferred is its inferred, and our asserted is the authored value the proposal already flags as an open question. So rather than keep epistemic_origin as a separate producer key, we'd fold it into basis and register a +1 for authored landing there. That leaves your second axis - affirmation status - as the unclaimed ground, and proposed | accepted | superseded | deprecated with ADR semantics reads correct to us.

One composition note from running the lifecycle side: status and edges answer different questions, and both need to survive. A superseded status says where a record stands; the typed edge (#148) says what displaced it. If you keep only the status the history stops being readable in the same way a deleted contested concept does - you can tell a record was replaced, but not by what.

Glad this landed where it did. We'll watch for your regression numbers, and we'll post our acceptance-rate data from the proposal loop once it has a few weeks of live history behind it.

andrewcrenshaw avatar Jul 10 '26 23:07 andrewcrenshaw

@andrewcrenshaw — thank you for this report. Routing production keys to the homes that already exist, instead of opening a seventh surface, is exactly what this stage of the ecosystem needs — and the transaction-time vs valid-time note is a genuinely useful clarification for #159's validity field. The offer of a further production instance to cross-check against is very welcome.

One mapping that I think dissolves most of the "key with no home": your provenance triple sits almost 1:1 on #159's basis field —

yours #159 basis
observed ("a system saw it") ≈ live-source
inferred ("derived from other items") = inferred
asserted ("a person or agent stated it") = authored — agreed in late June, not yet landed in the hosted schema

That last cell is presumably why the home was invisible when you looked: the value exists as thread consensus but not yet as an enum entry. To close that gap from the supply side, I've just posted the ready-to-apply schema delta plus ajv-validated conformance vectors on #159 (https://github.com/GoogleCloudPlatform/knowledge-catalog/pull/159#issuecomment-4945882118) — one of the vectors is literally basis: asserted, documenting the intended mapping from your spelling.

On the name: full agreement that provenance should be left to #140 — that word already means three different things across these threads, and you've drawn the integrity-vs-epistemic-origin line exactly right. But may I gently argue against minting epistemic_origin as a new key beside basis: two fields carrying the same concept is the classic way a young standard forks — every future producer has to choose between them, every consumer has to read both, and the choice itself carries no information. One concept, one field. If basis is missing a value your corpus needs, the right fix is adding the value (which is exactly what the #159 delta does), not standing up a second field. Where a producer prefers your vocabulary internally, the mapping above is lossless in both directions.

@inkxel's refinement deserves to survive this consolidation, though: who asserted is a genuinely different question from how the claim came to exist, and your own pipeline practice — the LLM judge may only propose candidates, a human resolves with recorded attribution — is production evidence that attribution wants its own small surface rather than a fourth basis value. That feels adjacent to #148's typed edges and to the vantage field #159 recently grew, not to the enum.

If the maintainers stay quiet on the registry question, #159's pattern (a self-contained proposal doc in SPEC voice, core spec untouched) has at least proven workable in practice — your six keys minus the two basis-shaped ones would slot into #148 and #159 cleanly, which would leave nothing homeless. Happy to help with the folding wherever it's useful.

K4uP avatar Jul 11 '26 12:07 K4uP

@K4uP The mapping table settles it, and thank you for doing the supply-side work of the delta and vectors rather than leaving "agreed in June" as an open task.

epistemic_origin is withdrawn. It was only ever a rename offered in case the registry needed a distinct word; now that basis is visibly the home, a second field carrying the same concept would be exactly the fork you describe. One concept, one field. V2 rejecting basis: asserted is the correct behavior - the fix on our side is mapping, not minting.

Concretely, on our exporter: today it writes provenance: observed | asserted | inferred as a standalone §4.1 key. Once authored lands in the hosted schema, the intended path is to emit the #159 reliability object with basis (observed → live-source, asserted → authored, inferred → inferred) and retire the standalone key entirely. Until the enum lands we keep the internal spelling, clearly marked as pre-convention.

Agreed on the attribution axis. Who stands behind a record now is a different question from how the claim came to exist, that ground is @inkxel's, and it should live near #148's edges and #159's vantage rather than as a fourth basis value.

That revises our offer list from four items to three, with nothing homeless:

  1. supersedes / contested_by folded into #148's typed-link convention, under whatever names #148 settles on.
  2. valid_from and the transaction-time / valid-time note contributed to #159.
  3. The standing cross-check: a production exporter instance to validate the surface against, alongside Throughline, signed-okf, and your corpus.

andrewcrenshaw avatar Jul 11 '26 13:07 andrewcrenshaw

Production data point for the attribution ground (@K4uP marked it as distinct upthread, @inkxel opened it): we run a per-page authorship tier, and it earns its place as access control rather than metadata.

The key is unfortunately also spelled provenance in our corpus, in yet a third sense of that word (authorship). Values: human | llm-generated | llm-reviewed. Two rules hang off it:

  1. A write boundary. The automated writer has no edit path to human-tier pages at all. Machine contributions attach as new linked pages referencing the human one, never as edits to it. Same philosophy as the mechanical cap upthread (a self-asserted field an agent can type isn't a gate), applied at artifact granularity: the agent can't promote a record, and it can't touch the record its promotion would displace either.

  2. A release gate. llm-generated content that's outward-facing (client deliverables, here) can't leave the system until a human review flips it to llm-reviewed. The flip is the affirmation event, and unlike a bare status enum it changes what the content may do: leave.

Honest numbers: 28 pages since 19 June, all still llm-generated, zero review flips so far because nothing has needed to leave the system yet. The write boundary is contract-enforced on the agent; the immutable raw-source layer underneath it is hook-enforced. Different producer class from the exporters in this thread: interactive LLM agent writing under an operating contract, human as curator and affirmer.

One mapping question for #159 rather than a proposal: is assessed_at intended to cover human re-affirmation of an authored claim without re-measurement? We carry last_confirmed (a human re-checked that the claim still holds; a lint treats decay past a window as a defect) and would rather map to an existing field than mint one.

mindmatter-aia avatar Jul 14 '26 00:07 mindmatter-aia

@mindmatter-aia This is the affirmation-event pattern with real teeth, and your release gate states it more sharply than I did: the flip changes what the content may do, not just how it reads. That's the same shape as the invariant now in the typed-edge PR (#195) - affirmation is a load-bearing event, not a status an agent can self-assert. Your write boundary (machine work attaches as new linked pages, never edits a human-tier page) is the artifact-granularity version of the mechanical cap we landed on for supersession; nice to see it hold at a different altitude.

On assessed_at vs your last_confirmed: that one's really #159's to answer, so worth raising there. One lens from our side, since we run a bi-temporal model in remember: a human re-confirming a claim still holds, with no re-measurement, reads as a distinct act from assessing it - a transaction-time event ("checked, still true") rather than a new valuation. Whether #159 folds that into assessed_at or names it is @K4uP's call, but the two acts are worth keeping separable.

andrewcrenshaw avatar Jul 14 '26 02:07 andrewcrenshaw

The assessed_at vs last_confirmed question is answered over on #159 (https://github.com/GoogleCloudPlatform/knowledge-catalog/pull/159#issuecomment-5012357347) — short version: different clocks; proposed is a separate optional confirmed_at with a "recency marker only, never raises the grade" guardrail.

K4uP avatar Jul 18 '26 18:07 K4uP