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

Proposal: graded confidence — an epistemic-reliability axis, distinct from integrity (#140) and citation (#92/#94)

Open K4uP opened this issue 5 months ago • 12 comments

Following up on my comment in #95, after reading how the trust surface developed this week (#140 cryptographic provenance, #92/#94 SOURCES + inline citation, the new SPEC §12 trust-and-safety in #58). Those cover three distinct senses of "trust" — and there's a fourth still open, which is the one we've had to solve in production.

Four axes, so we don't talk past each other:

Axis "Trust that…" Where it lives now
Authenticity / integrity the bundle is from who it claims, unaltered #140 (signing, SHA-256 manifest)
Safety content is data, not instructions (prompt-injection) #58 §12
Groundedness / citation a claim is linked to evidence #92 SOURCES, #94 inline citation
Reliability (this proposal) how much to believe the claim itself — open —

A bundle can be perfectly signed (#140), injection-safe (#58), and have every claim cited (#94) — and an agent still can't tell a claim verified against the live system from one that merely restates vendor documentation (often stale or aspirational) from one that's inferred and unverified. A citation proves a claim is grounded; it doesn't grade the ground. For a retrieval agent that's tolerable. For an agent that acts on a real system, it's where damage happens. (This is the dimension #95 explicitly scoped out.)

What we run in production — single-domain agent KB, enterprise IT service management, ~250 atomic notes over ~140 build cycles, agents acting on live customer systems:

  • a graded confidence value per concept in frontmatter — HIGH | MEDIUM | LOW | UNVERIFIED — orthogonal to "is it cited";
  • a small evidence-kind vocabulary on claims (observed-on-system / documentation / partner-confirmed / inferred) — this types the kind of evidence, not just its URL, so it's a different sense of "provenance" than #140's origin provenance;
  • an explicit trust ordering when two cited sources disagree (observed > partner-confirmed > observed+doc > doc > inferred) and a conflict rule: document both sides, never silently pick.

The taxonomy is domain-specific; the axis is not. Every producer whose agents act reinvents some version of "how sure are we", and without a shared optional slot none of it survives the cross-org hop OKF exists for.

The ask — minimal, optional, already spec-permitted ("producers MAY include additional keys"):

  • an optional confidence: frontmatter key with a small recommended enum, and
  • an optional convention for typing evidence-kind on inline citations (riding on #94, complementary to #140 — different sense of "provenance").

Not a mandate; minimal producers ignore it. I'm not attached to the names — happy to align with #140/#92 so we don't end up with three meanings of "provenance".

Questions:

  1. Is graded epistemic confidence in scope as an optional OKF convention, or deliberately producer-side forever?
  2. If in scope — its own key, or folded into the #92 SOURCES / #140 provenance work?
  3. Would a worked example bundle (an OKF-shaped slice of our corpus with the confidence layer applied) help the discussion?

Thanks for the pace and openness here — the trust model is clearly being built right now, which is why I wanted to get this axis on the table before it settles.

K4uP avatar Jun 27 '26 17:06 K4uP

Strong framing. Mapping to where I have a running implementation: integrity (#140) answers "who produced this, unaltered" (a signature, C2PA). Citation (#92/#94) answers "what the claim's source is." This axis (#151) answers the orthogonal question: how much should a consumer believe the claim, even when it is perfectly signed and correctly cited.

A perfectly signed, correctly cited claim can still be measured from the live system, restated from vendor docs, or inferred, and those are very differently trustworthy. That is the gap this axis fills.

Here is a concrete strawman for a per-claim reliability object, grounded in a shape we run live today (fact/v1), so it is battle-tested rather than theoretical:

"reliability": {
  "confidence": 0.8,
  "basis": "live-source",
  "sources": 1,
  "verified": false,
  "freshness": { "as_of": "2026-06-28T03:00:00Z", "expires": "2026-06-28T04:00:00Z", "state": "live" },
  "signals": { "signed": true, "corroborated": false, "fresh": true }
}

Field intent:

  • confidence (0..1): a transparent composite of the signals below, never decorative. A consumer should be able to recompute it.
  • basis: how the claim was obtained: live-source (measured or reported by an authoritative source), vendor-doc (restating a vendor's published value), inferred (model or heuristic), computed (derived). The measured vs restated vs inferred distinction, made explicit and machine-readable.
  • sources: count of independent sources behind the claim (complements the citation axis, which names them).
  • verified: true ONLY when corroborated by 2+ independent sources AND fresh. Crucially, signed is not verified: a single-source claim is verified: false even when perfectly signed. Integrity is axis #140, not this one.
  • freshness: as_of / expires / state, so a stale claim is visible rather than silently trusted.
  • signals: the booleans confidence is composed from, exposed for auditability.

Two rules that keep it honest:

  1. verified never piggybacks on the signature. Signing proves integrity (#140); graded reliability requires independent corroboration.
  2. confidence is a function of the exposed signals, so a reviewer can recompute it. No opaque scores.

We run exactly this on every datapoint today (verification block: confidence / sources / verified / basis / signals). Happy to contribute a JSON Schema file plus conformance examples for this object, and to keep the naming clean so #140 owns integrity, #92/#94 own citation, and #151 owns graded reliability.

Dynamicfeedai avatar Jun 28 '26 05:06 Dynamicfeedai

This is exactly the convergence I hoped for — you're running in production what we arrived at independently, which is the best signal the axis is real. Strong +1 on the reliability object and on both honesty rules (signed ≠ verified; confidence recomputable from exposed signals). The shape, the basis enum, and handling an ordinal vs. a computed score sensibly all line up with us — so rather than re-litigate those, three refinements that come specifically from a human-authored, multi-version corpus and that a live-data layer doesn't surface:

1. The state the strawman is missing: conflict, not just absence of corroboration. You capture sources and corroborated, and reserve verified for 2+ agreeing — good. But that assumes sources either corroborate or stay silent. In a real corpus they sometimes disagree (the vendor doc says X, the live system does Y). Collapsing that into corroborated:false loses the most important signal. We carry an explicit conflict state — rule: "document both sides, never silently pick" — plus a trust ordering to act under it (live > partner > live+doc > doc > inferred). The object needs a disputed signal distinct from "merely uncorroborated"; an acting agent should behave very differently in each.

2. Two different clocks: freshness ≠ validity. Your freshness (as_of/expires, your example a ~1h TTL) is measurement recency — right for a live metric. A versioned-knowledge corpus has a second, unrelated time axis: applicability — a fact holds for product release range X–Y, independent of when it was measured (the valid_from/valid_until thread on #87 / KCP). And validity is often keyed on version, not wall-clock, so a timestamp expires can't express it. I'd keep freshness (recency/TTL) and a separate validity (applicability window, version- or time-keyed) as two fields — conflating them breaks one use case or the other.

3. confidence is a lifecycle, not a write-once value. The thing our import pipeline made unavoidable: a claim's reliability changes over its life. New information enters provisional and low, then earns its grade through verification — we run an explicit promotion ladder (IMPORT-RAW (LOW) → IMPORT-VERIFIED (MEDIUM) → live-confirmed (HIGH)), and it runs in reverse too: a HIGH fact silently goes stale when the platform version moves, gets flagged, and is demoted until re-verified. Note this is the opposite direction from your freshness decay — yours handles trust expiring, this handles trust being earned; the axis needs both. Two implications: (a) a "last graded at" timestamp distinct from freshness.as_of — when measured and when last assessed are different events; (b) basis and confidence co-evolve (often inferred/LOW on intake → live-source/HIGH once verified), so they update together, ideally with a small audit trail of transitions. This extends your auditability rule from "recomputable at a point in time" to "recomputable across its lifetime."

Strong yes to the naming split (provenance = integrity/#140, reliability/assurance = #151) — that kills the three-meanings-of-"provenance" problem directly. And yes please to the JSON Schema + conformance examples — happy to co-author, and to contribute a worked example bundle from our multi-version corpus so the schema gets tested against both a live-data shape (yours) and a human-authored, version-scoped one (ours).

K4uP avatar Jun 28 '26 10:06 K4uP

I took your strawman plus the three refinements above and sketched a concrete reliability object — sharing it here for critique before anyone touches a PR. It keeps your shape and both rules (signed != verified; recomputable, not opaque) and folds in the conflict / validity / lifecycle points.

A worked instance — the conflict case, which the strawman couldn't yet express:

reliability:
  confidence: MEDIUM          # ordinal band = the interoperable surface
  basis: live-source          # (+ partner-attested added to your enum)
  sources: 2
  verified: false             # sources disagree -> not corroborated
  conflict:
    disputed: true
    positions:                # both retained, never silently pick
      - { statement: "Max attachment 100 MB", basis: vendor-doc,  source: "Admin Guide 5.0 p.142" }
      - { statement: "Max attachment ~50 MB", basis: live-source, source: "Observed on a 5.0 instance; 60 MB rejected" }
    resolution: "live-source prevails under the trust ordering; both positions kept"
  validity:  { keyed_by: version, valid_from: "5.0", valid_until: null }   # version-keyed, not wall-clock
  freshness: { as_of: "2026-06-18T00:00:00Z", state: fresh }               # a separate clock
  signals:   { signed: true, corroborated: false, fresh: true }

And the lifecycle, showing a grade is earned, not stamped once:

  assessed_at: "2026-06-20T09:30:00Z"   # when graded -- distinct from freshness.as_of (when measured)
  lifecycle:
    stage: live-confirmed
    history:
      - { at: "2026-05-02", confidence: LOW,    basis: inferred,    note: "import intake, unverified" }
      - { at: "2026-05-09", confidence: MEDIUM, basis: vendor-doc,  note: "matched vendor docs" }
      - { at: "2026-06-20", confidence: HIGH,   basis: live-source, note: "observed live + corroborated" }

Deltas from your strawman, all additive:

  • confidence is an ordinal band; score is optional. A 0..1 float is honest only when computed — human-authored grades can't distinguish 0.7 from 0.8 and get thresholded back into bands anyway. So the band is the field everyone filters on; score (+ your signals) rides along only when actually computed. Your "no opaque scores" rule holds: an absent score means "not computed", not "hidden".
  • conflict object. corroborated: false can't distinguish "no second source yet" from "two sources contradict". This makes disagreement first-class — both positions retained, resolution records what the trust ordering picked (live > partner > vendor-doc > inferred) without discarding the loser.
  • freshness vs validity are two fields. Yours (as_of/expires) is measurement recency. validity is the applicability window — often version-keyed (5.0..null), which a timestamp expires can't express. This is also where #87's valid_until lands.
  • basis += partner-attested (an independent integrator/partner; above vendor-doc, below live).

I've written this up as a full JSON Schema (draft 2020-12) plus a small, fully synthetic example bundle (two concept notes — the conflict and lifecycle cases). Happy to share both however's most useful: a gist, a follow-up comment here, or a PR if you'd rather have them in-repo.

Two things I'd especially value your read on:

  1. does the conflict object belong on this axis, or is "document both sides" a separate concern?
  2. OK to make ordinal confidence the required field and score the optional companion?

K4uP avatar Jun 28 '26 11:06 K4uP

@K4uP — this is a better developed version of a pillar I just posted in #158, and your four-axis split (authenticity / safety / groundedness / reliability) is cleaner framing. I've repositioned #158 to defer confidence to this thread rather than run a parallel proposal.

One distinction worth drawing so the surface is fully covered: your conflict signal reads as intra-concept — competing claims about the same thing, graded by reliability. The piece I'd like to add is cross-concept: a typed link where concept A supersedes / contradicts concept B (for example an "HQ moved to Austin" concept obsoleting an "HQ in Denver" concept). Different question — not "how much do I believe this claim" but "this whole concept is now wrong because that one replaced it." It's the structural-rot signal a living KB needs, complementary to reliability, and it sits closer to #148's typed relationships. Happy to keep that scoped to #158/#148 so it doesn't muddy the reliability here.

For evidence alongside your production case: I've run a multi-domain, human-authored KB on these signals for ~months, and Throughline (an OKF producer/consumer — https://github.com/inkxel/throughline) implements freshness + confidence + contradiction end-to-end. Glad to be a second worked instance if it helps move the reliability axis forward.

inkxel avatar Jun 28 '26 23:06 inkxel

@inkxel — thank you, and genuinely generous to fold #158's confidence piece in here rather than run it parallel; that's the opposite of how these usually go. Your #158 reframing — freshness + confidence + contradiction as one maintenance surface — is the right altitude, and a strong yes to coordinating them rather than letting them land piecemeal. The repo already has "provenance" meaning ~three things; a small EXTENSIONS.md-style registry ("reliability → #151, freshness → #97/#120, cross-concept contradiction → #158/#148") would spare the maintenance surface the same fate.

On intra- vs cross-concept — strong agree, and I think there's a clean seam so they never overlap:

  • #151 conflict is intra-concept: competing claims about the same fact, graded by reliability ("the doc says 100 MB, the live system says 50 MB"). The question is how much do I believe this claim.
  • #158/#148 supersession is cross-concept: concept A obsoletes concept B ("HQ moved to Austin" kills "HQ in Denver"). The question is is this whole concept still current.

The seam worth naming: #151 already carries validity.valid_until — a fact that stops holding as of version/date X with no named successor (an anonymous expiry). Your supersedes is the named case: it stopped holding because that concept replaced it. Same underlying "no longer current", two mechanisms — and a producer often knows only one: a live probe sees a value vanish (anonymous → valid_until); an editor knows the replacement (named → supersedes). So I'd keep valid_until in the reliability object and the typed supersedes/contradicts edge in #158/#148, with that boundary documented. They compose; neither subsumes the other.

And yes please to Throughline as a second worked instance. We now have three production shapes converging on the same object — your multi-domain human-authored KB, @Dynamicfeedai's live-data layer (signed-okf), and our multi-version ESM corpus. That's the strongest argument the axis is real rather than designed in a vacuum. I'd suggest the three of us cross-check the object against all three shapes before it firms up — a field that survives live-data and multi-domain and multi-version is a field worth standardizing. I've got a JSON Schema + a synthetic example bundle drafted (above) and am happy to fold in whatever Throughline and signed-okf need.

Last thing, and it's really just OKF's own posture applied here: I'd frame this as a maturity ladder, not a mandate. The floor is two optional fields — confidence + basis — and most of the value lives there. sources/verified/freshness, then conflict/validity/lifecycle/score, are opt-in tiers a producer grows into as the KB matures or a use-case demands — not a gate you must clear to be conformant. type stays the only thing OKF requires. A reliability object you grow into keeps the on-ramp gentle while still giving people a direction to level up, which is the opposite of a heavyweight schema.

K4uP avatar Jun 29 '26 06:06 K4uP

Ran signed-okf against the concrete object. It already emits most of it, which is unsurprising since the strawman was this layer's live output. Reporting the three-shape cross-check from the live-data side.

Matches as-is: verified, sources, signals (signed/corroborated/fresh, plus a conflict flag), and freshness as its own envelope (observed_at/state). basis exists with live-data values (live-source / forecast / computed) rather than the corpus values (vendor-doc / inferred / partner-attested), so the shared enum is the union of both vocabularies, which is the right outcome for an axis spanning live and authored sources.

Answering your two questions directly:

  1. Does conflict belong on this axis? Yes. signed-okf already carries it as a signal: confidence is penalised and verified is forced false when independent sources disagree on the same reading, with a note saying so. The {positions, resolution} structure is the natural next step on the live side, populated from the per-source readings that triggered it. So "document both sides" is not a separate concern, it is the same axis at a higher tier of your ladder.

  2. Ordinal confidence required, score optional? Yes. signed-okf is the computed case: it derives a 0..1 value from the exposed signals. The clean alignment is the band as confidence (the interoperable filter), the float as score, the band derived from the float. An absent score then means "graded by a human, not computed", and a present one stays recomputable from signals, which keeps the no-opaque-scores rule intact in both directions.

On lifecycle: the live side legitimately omits the stored history. It re-derives the grade on every read from the signals rather than persisting a ladder, so its honesty guarantee is "recomputable at read time" rather than a logged trail. Worth letting the object permit assessed_at without requiring lifecycle.history, so the recompute case and the stored-ladder case both fit.

Strong yes to the maturity ladder framing, the valid_until (anonymous) vs supersedes (named) seam, and the EXTENSIONS.md registry. I will contribute a signed-okf worked example bundle (a real live fact in the reliability shape) to sit beside the version-scoped and multi-domain ones, so the schema gets tested against all three before it firms up.

Dynamicfeedai avatar Jun 29 '26 06:06 Dynamicfeedai

Opened #159 with this as a proposal doc (okf/proposals/reliability.md), written in SPEC voice as a §4.1 optional-key extension so the core spec stays untouched while we settle the axis. It folds in the maturity-ladder framing, the conflict / validity / lifecycle refinements, and the four honesty rules, and it references the hosted JSON Schema rather than adding a file, consistent with OKF referencing schemas rather than subsuming them.

The schema validates green against all three shapes now in play, including the conflict-and-lifecycle object posted above, so it is ready for the cross-check:

  • Schema: https://dynamicfeed.ai/schemas/okf-reliability-v1.json
  • Worked examples: https://dynamicfeed.ai/schemas/okf-reliability-examples.json

Happy to relocate the doc (into SPEC §4.1, or an EXTENSIONS.md registry per #158) wherever maintainers prefer. @K4uP @inkxel, would value your review.

Dynamicfeedai avatar Jun 29 '26 06:06 Dynamicfeedai

Adopter data point + variant on the enum granularity.

Production use

828 concept files in a single-author OKF bundle for personal engineering workflows: chirag127/workspace/knowledge/ — decisions, rules, runbooks, services, glossary. Public bundle at knowledge.oriz.in, also served over MCP at knowledge-mcp.oriz.in.

We adopted an optional confidence frontmatter field 2026-07-03. Reasoning aligns with the "reliability axis" framing here — the bundle backs an agent that acts on live systems, so an unverified rule needs different downstream handling than a verified one.

Variant chosen: 3-level, lowercase

confidence: high | medium | low

Rationale for a coarser scale than your HIGH | MEDIUM | LOW | UNVERIFIED:

  • Fewer bikeshedding decisions per file. With 828 files authored across several months, four buckets fragmented; three converged.
  • UNVERIFIED collapses into "omit the field entirely." Absent field = no assertion made; explicit low = the author considered the claim and rated it low. Cleaner semantics than a fourth bucket that means "not evaluated."
  • Lowercase matches the surrounding OKF frontmatter style in our bundle (type, tags, status).

Not arguing yours is wrong — reporting the choice we shipped and why. Happy to align with whichever enum lands in the spec.

Cross-ref

  • Related decision: okf-v0.2-upstream-to-google-2026-07-03
  • Separate field we also shipped: durability: durable | volatile — orthogonal to reliability (it's about GC eligibility, not epistemic grade). Filing separately to avoid confusion with #160's lifecycle proposal.

Thanks for the great work on OKF!

chirag127 avatar Jul 03 '26 02:07 chirag127

@chirag127 — thank you; this is exactly the adopter evidence the axis needed: 828 concepts in production, adopted after (and citing) the proposal rather than converging on it independently. That makes four shapes.

On the variant — one part is cosmetic, one is semantic, worth pulling apart:

Lowercase, and three buckets as authoring ergonomics — sound, no argument. Casing can be normalized at consumption, and "fewer bikeshedding decisions per file" is a real cost across 828 files.

"UNVERIFIED collapses into omitting the field" — this one loses a distinction an acting agent needs:

  • absent field = no assertion made — nobody assessed the claim; treat per policy default;
  • explicit UNVERIFIED = assessed, and could not be verified — the producer looked and is explicitly warning you.

In a single-author bundle the difference is nearly invisible: you've seen every file, so absence de facto means "didn't grade it". It becomes load-bearing the moment content enters that no human graded — our import pipeline stamps machine-imported material UNVERIFIED at intake precisely so it can't masquerade as merely-unrated; it then earns its band through verification. So I'd frame your three-band variant as a legitimate profile of the same convention — the floor tier of the maturity ladder, right for a curated single-author bundle — with the fourth value earning its keep in multi-source or partially-automated corpora. A profile, not a competing enum.

durability (#172) reads cleanly orthogonal to this axis — GC eligibility is neither epistemic grade nor lifecycle — good call filing it separately.

And your "happy to align with whichever enum lands" is itself the strongest argument for landing the enum soon — nudged on #159 accordingly.

K4uP avatar Jul 04 '26 17:07 K4uP

Full disclosure: I maintain Data Olympus, which is an OKF-readable governance profile plus MCP server for coding-agent knowledge bases.

This reliability axis maps closely to a problem we hit in practice, but I would keep one distinction very explicit: epistemic confidence and lifecycle status are related, but not interchangeable.

For an agent that acts on a codebase, a retired rule is not merely "lower confidence." It must usually be excluded from in-force retrieval, while still being preserved for history. The small set of fields that paid for itself in our system was:

  • stable concept id, independent from prose title
  • status, with in-force vs retired states
  • supersedes / superseded_by chains for decisions
  • query mode that can hard-filter to in-force guidance
  • reviewed write path, so candidate knowledge does not silently become authority

One benchmark result changed how we describe the value: status-aware BM25 avoids stale rules about as well as our engine does. That means the important win is not a clever ranker, it is having lifecycle metadata that retrieval can obey.

So my bias for OKF would be: yes to an optional reliability/confidence convention, but keep lifecycle/validity as a first-class sibling axis rather than folding it into confidence. Acting agents need to ask both questions separately: "how much do we believe this claim?" and "is this claim currently allowed to govern behavior?"

Data point if useful: https://github.com/knaisoma/data-olympus

ajdelaguila avatar Jul 07 '26 19:07 ajdelaguila

@ajdelaguila — the in-force/retired distinction you're making is close to the point I've been trying to land on #158 (deferred to #151 for confidence itself, since K4uP's axis is the further-along version): "how much do I believe this claim" and "is this claim still allowed to govern behavior" are different questions, and folding lifecycle into confidence loses the second one. Data Olympus's status (in-force/retired) plus supersedes/superseded_by chain is close to what #148 is proposing for that second question, and the status-aware BM25 result is good evidence that the win is having the lifecycle metadata at all, not a smarter ranker on top of stale data.

K4uP already drew it out on #151: a fact can quietly stop holding with no named successor (validity.valid_until), or get explicitly replaced by a named concept. Sounds like Data Olympus is another production shape landing on that second half, alongside Throughline's contradiction handling. Would value your read on #158/#148 if you're up for it — feels like the lifecycle axis is converging the same way reliability did here.

inkxel avatar Jul 07 '26 22:07 inkxel

@inkxel thanks, that split makes sense to me: #151 owns reliability for a claim, while #148 owns the lifecycle edge where one concept explicitly replaces or conflicts with another concept.

I added the Data Olympus field note on #148 here: https://github.com/GoogleCloudPlatform/knowledge-catalog/issues/148#issuecomment-4911103627

The short version: in our implementation supersedes is not just graph/navigation metadata. Combined with status, it becomes retrieval policy. Default search can show history, but in_force=true hard-excludes superseded/deprecated guidance before ranking, so an agent cannot accidentally treat retired guidance as current. That is the lifecycle axis I would keep separate from confidence/reliability.

Your Throughline framing looks very close on the repo-memory side. The main implementation detail I would compare is whether the edge targets stable concept ids in addition to paths, because file moves become painful once agents start storing/replaying references across sessions.

ajdelaguila avatar Jul 08 '26 03:07 ajdelaguila