Proposal: Typed relationships between concepts
Summary OKF currently expresses all concept-to-concept relationships as plain markdown links. This works well for navigation, but loses the semantic meaning of the relationship, for example, an agent reading a link has no way to know whether it represents a dependency, a replacement, an implementation, or a classification without parsing the surrounding text/content.
The problem in practice
I'm building a GraphRAG knowledge engine on top of a large enterprise SaaS documentation corpus (~46,000 markdown files). When extracting entities and relationships for the knowledge graph, I'm working with relationship types like implements, depends_on, replaces, part_of, triggers, and validates. These distinctions matter for how an agent traverses and reasons over the graph — a depends_on edge should be followed differently from a replaces edge. These ontologies will also vary depending on the proposed role of the consuming agent.
With OKF's current link syntax, all of that collapses to:
See [customers](/tables/customers.md).
The relationship type has to be inferred from context, which is lossy for agents and impossible to query structurally, especially when the consuming model has limited context or smaller parameters, for example in local processing scenarios. I understand a balance is required between verbosity and allowing for inference.
Precedent in the broader ecosystem
The Google Cloud Knowledge Catalog platform already has this concept at the service level: entry link types support synonym, related, definition, and schema-join, with explicit directionality (symmetric vs asymmetric) defined at the link type level. OKF is positioned as the portable, file-based counterpart to the managed catalog — but currently has no way to express the same relationship semantics that the platform already supports. Surfacing this in the format spec would close that gap and make OKF bundles portable carriers of the same semantic graph that Knowledge Catalog models internally.
A minimal proposal
Add an optional rel attribute convention to OKF cross-links — either as an extended markdown link attribute or as a structured links frontmatter field:
Option 1 — Frontmatter links block:
links:
- target: /tables/customers.md
rel: depends_on
- target: /metrics/weekly_active_users.md
rel: implements
Option 2 — Inline extended syntax (e.g. title-field convention):
[customers](/tables/customers.md "rel:depends_on")
Option 1 is more queryable and agent-friendly. Option 2 stays in the markdown body and preserves the current link model (my recommendation for now is 2 as it's just simpler).
Why this matters OKF's stated goal is to turn a directory into "a graph of relationships richer than parent/child hierarchy." Typed relationships are what make a graph semantically navigable rather than just structurally navigable. Without them, OKF bundles are trees with shortcuts — not graphs in the knowledge-engineering sense.
This is a backward-compatible addition: bundles without rel annotations remain valid OKF. Consumers that don't understand rel ignore it. Consumers that do can use it for routing, traversal weighting, and structured querying.
Questions for maintainers
- Is typed relationship support in scope for a future OKF version?
- Is there a preferred extension mechanism for producers who need this today — additional frontmatter, a
linksblock, or something else? - Should the spec recommend a standard vocabulary of relationship types, or leave that to producers? I'm imagining how relationship 'packs' or 'families' could provide some standards for common vectors (implementation guidance, technical content, legal wikis)
- Are others hitting this in practice, particularly outside the BigQuery/data-catalog use case?
Thanks for considering!
Fantastic proposal. Provides functionality without weighing down with ceremony.
Bringing this over from #158, where @K4uP suggested it should live here.
The piece I keep coming back to is a typed link where one concept supersedes or contradicts another — the HQ-in-Denver case from #158, where a whole concept goes stale because another replaced it. That's distinct from the intra-concept conflict in #151 (competing claims about the same fact): this is whole-concept-replaces-whole-concept, which is the rot a living KB has to surface — not "how sure am I about this claim" but "this one's stale now."
I've built it into Throughline as a typed frontmatter link resolved to the target concept's path, kept off the reliability object (per #159). Minimal shape I'm running:
supersedes:
- ./concepts/hq-in-denver.md
contradicts:
- ./concepts/old-pricing.md
(@Sliky1's #160 is circling this from the maturity-model side — an edge moving draft → published → deprecated. supersedes/contradicts is the deprecation half of that, so the two line up.)
Relationship as the key, concept ids as values — sits on top of the untyped link model in §5.3. Glad to write it up as a supersedes/contradicts typed-relationship proposal here if there's appetite.
Following up from the lifecycle/status thread in #151, where @inkxel pointed me here. Full disclosure: I maintain Data Olympus, an OKF-readable governance profile plus MCP server for coding agents: https://github.com/knaisoma/data-olympus
Data Olympus has landed on a shape very close to the supersedes side of this proposal, and the operational lesson is that the typed relationship needs to be more than navigational metadata. It should be executable retrieval policy.
Current shape:
id: STD-U-004
status: active
supersedes:
- STD-U-003
and on the retired concept:
id: STD-U-003
status: superseded
superseded_by: STD-U-004
A few field notes from serving this to agents:
- Stable concept identity matters. The edge should target a stable concept id, not only a path, otherwise moving a file changes the relationship surface for machine consumers.
supersedesandsuperseded_byare lifecycle edges, not just graph edges. They decide whether a concept is allowed to govern future behavior.- Default search can still return history, but in-force retrieval should hard-exclude superseded/deprecated guidance before ranking. Reranking stale guidance lower is weaker than removing it from the governing result set.
supersedesis distinct fromcontradicts. A supersession edge says there is a named successor and the old concept should no longer govern. A contradiction edge may be evidence of conflict, but it does not necessarily determine which concept is current unless paired with status or review outcome.- It is useful to keep both directions materialized.
supersedesis natural when writing the new concept;superseded_bymakes the old concept self-describing when fetched directly.
The most useful benchmark result for us was not that BM25 became smarter. It was that once lifecycle metadata existed, even a simple serving layer could avoid stale-rule retrieval by treating status plus supersedes as policy. That is the part I would want OKF to preserve if typed relationships are added: relationship type should be available to retrievers before they rank or hydrate context.
One possible minimal convention:
relationships:
supersedes:
- id: STD-U-003
reason: Replaced by conventional commit format with explicit scope guidance.
contradicts:
- id: ADR-OLD-PRICING
reason: Conflicts with current billing model; unresolved until reviewed.
or, if keeping frontmatter flat is preferred:
supersedes:
- STD-U-003
contradicts:
- ADR-OLD-PRICING
The important bit is not the spelling. It is that consumers can tell the difference between a historical/navigation link and a lifecycle edge that affects whether a concept is currently allowed to guide an agent.
@ajdelaguila — following up here since #158 moved a lot since your comment and the synthesis is scattered across that thread right now, but per @K4uP's suggestion this is where it should end up consolidated.
Short version of where it landed: supersedes composes with an already-accepted/active record as an append, not an edit — the successor carries the supersedes pointer, and affirming the successor is what appends a resolution event to the original (who displaced it, when, why). The original's own status field only changes as a side effect of that affirmation, never by a flag pointed at it directly — so your "executable retrieval policy" point holds without needing the original to be in any particular state first. I've built this into a decision-record system running on 600+ real records: status: proposed | accepted | superseded | deprecated, an automated writer that can only ever emit proposed, and every disposition (accept / supersede / dismiss-not-a-decision) as one more entry in an append-only per-record log rather than a bare field edit.
Matches your point almost exactly: supersedes is a lifecycle edge that should hard-exclude the superseded record from in-force retrieval, distinct from contradicts/contested_by which surfaces both and defers. The naming that's converged (yours, @andrewcrenshaw's, mine) is close enough across all three that #148 registering it as two edges with the query-time semantics attached — exclude vs. surface-both — seems like the real deliverable here, more than picking exact field names.
+1 to the deliverable as @inkxel framed it: two registered edges with the query-time semantics attached, rather than a winner among the spellings. The semantics are the part consumers cannot reconstruct from a field name - exclude from in-force retrieval for the lifecycle edge, surface-both-and-defer for the conflict edge - and all three production shapes here already agree on them (our side of that agreement is on #158, so I won't restate it).
Two details from running both edges that the registration text should keep: the edge targets a stable concept id rather than a path (per #120, and @ajdelaguila's note above), and resolution of either edge lands as an appended, attributed event rather than a field edit, so @inkxel's writer cap survives composition.
If it helps move this from thread consensus to a reviewable artifact, we're glad to put up a first cut of the registration text for the three shapes to converge on - or to review someone else's; either way works from our side. PR #159's proposal-doc pattern seems like the right container unless the registry lands first.
The two-edge framing with query-time semantics attached is the right deliverable, and I would rather see it land that way than as a decision about spellings. Both of those semantics are ones we run: the lifecycle edge resolves to an in-force retrieval that drops the retired concept, and the contested case resolves to an abstain mode that surfaces both and defers. So the split @inkxel and @andrewcrenshaw drew, exclude for the lifecycle edge and surface-both for the conflict edge, is the same boundary we serve from.
One rule I would ask the registration text to make explicit, because it is exactly where the two details you both listed meet, is that the exclude behavior should be gated on the affirmation event, not on the presence of the supersedes pointer alone. A supersedes edge that an automated writer has proposed but no one has affirmed should not remove the incumbent from in-force retrieval. The incumbent keeps governing until the resolution event is appended. That is what preserves @inkxel's proposed-only writer cap under composition: an unaffirmed successor cannot silently displace a live rule, and it keeps the appended, attributed resolution event load-bearing rather than optional. As retrieval policy it reads as exclude on status: superseded, where status only reaches superseded through the appended affirmation, never through a flag written onto the incumbent directly.
The stable-concept-id point from #120 matters most for this same reason. If the edge and its affirmation event key off a path rather than a stable id, a file move can make an affirmed supersession read as unaffirmed, or reattach it to the wrong incumbent, and the retrieval policy above quietly does the wrong thing.
On authoring, @andrewcrenshaw putting up a first cut sounds right given you are both running the two edges, and I am glad to review it against our shape and flag anything that would not round-trip. PR #159's proposal-doc pattern looks like the correct container unless the registry format lands first.
As offered - the first cut of the registration text for both edges, in PR #159's proposal-doc form: key definitions, query-time semantics, the resolution model, and composition with @inkxel's status axis.
@ajdelaguila, your gating rule is in as a named invariant: exclusion follows affirmation. A supersedes edge an automated writer proposed does not remove the incumbent; the incumbent keeps governing until the resolution event is appended. Where a status axis exists, that reads as exclude on status: superseded, reached only through the appended event; where none exists, the incumbent's appended invalid_at carries the same affirmation. Both the edge and its resolution event key off stable concept ids per #120, so a path move cannot un-affirm a supersession or reattach it to the wrong incumbent.
One naming note stands: we ship contested_by; @inkxel ships contradicts. Identical semantics - flagged so the registry picks one name rather than blessing two.
Glad to take a round of convergence edits here, then open the PR against okf/proposals/ unless the registry format lands first.
Full registration text below; after one round of convergence edits here, the same text goes up as the PR against okf/proposals/.
Proposal: Typed Relationship Edges - supersedes and contested_by
| Status | Proposed |
| Pinned to | okf_version: "0.1" |
| Contributor | Andrew Crenshaw / Lexenne |
| Reference implementation | Lexenne remember exporter - ships both keys in production; sample bundle available built from public docs |
Summary
Two optional keys for cross-concept typed relationships, each with its query-time semantics written in. They differ on the one axis that drives consumer behaviour at retrieval time: directionality.
supersedes- asymmetric. The carrying item replaces the referenced one. Query-time: exclude the superseded concept from in-force retrieval once the supersession is affirmed (see the invariant below); retain it in the bundle for lineage.contested_by- symmetric. The carrying item is aware of a disputing item and keeps both. Query-time: surface-both disputing concepts; defer adjudication to the consumer or a human. Alias:contradicts(same semantics; either name is conformant).
Both keys reference their targets by stable concept id per #120 - a filename-derived identifier that survives path refactoring and bundle re-organisation. Resolution events key off the same stable ids: a path move MUST NOT un-affirm a supersession or reattach it to a different incumbent.
supersedes
| Field | Value |
|---|---|
| Type | string - a stable concept id, or bundle-relative filename for intra-bundle references |
| Symmetry | Asymmetric. Directional: the carrying item asserts that it replaces the referenced concept. |
| Direction | Backward in time - points to the item being replaced. |
| Inverse | superseded_by (derivable; producers MAY emit it, but the forward supersedes is sufficient for resolution). |
| Query-time | Exclude, once affirmed. A consumer resolving in-force state follows affirmed supersedes chains and drops superseded items from the live set. An unaffirmed edge (see the invariant below) leaves the incumbent in force. Superseded items remain in the bundle; they are historical, not erased. |
| Encodes a verdict? | Once affirmed, yes. Until the resolution event is appended, the edge is a proposal awaiting affirmation, and the incumbent keeps governing. |
| Dangling reference | Not an error. If the superseded item is absent from the bundle, the carrying item is current. |
supersedes: remember://lesson/lesson-corpus-est-000
Load-bearing invariant - exclusion follows affirmation. An automated writer may propose a supersession; only the appended, attributed resolution event puts it in force. Where a status axis exists, the retrieval policy reads as exclude on status: superseded, and status reaches superseded only through that event - never through a flag written onto the incumbent directly. Where no status axis exists, the incumbent's appended invalid_at carries the same affirmation. A bare supersedes pointer MUST NOT remove the incumbent from in-force retrieval: an unaffirmed successor cannot silently displace a live rule, and the appended resolution event stays load-bearing rather than optional.
contested_by
| Field | Value |
|---|---|
| Type | string (single id) or string[] (list of ids) - stable concept id(s) per #120 |
| Symmetry | Symmetric. If A is contested_by B, B is contested_by A. Both sides carry the edge. |
| Direction | Lateral - points to a co-present item that disputes this one. |
| Inverse | None - the relation is its own inverse. |
| Query-time | Surface-both. A consumer MUST surface every concept in the contest set. It MUST NOT resolve the edge as a verdict, collapse "contested" into "false," or drop either side without human or higher-signal input. |
| Encodes a verdict? | No. Records the existence of a dispute, never who is right. |
| Alias | contradicts - same semantics; exporters using either name are conformant. |
# scalar
contested_by: remember://lesson/lesson-042
# list
contested_by:
- remember://lesson/lesson-042
- remember://lesson/lesson-108
Load-bearing invariant: contested_by only earns its place if the disputed concept stays in the bundle. Drop it and a reader returning weeks later cannot tell a question that was settled from one that was never asked. That distinction is the whole point of the edge.
Resolution semantics - three states, append-only
A consumer reads a concept's dispute state from the edges alone, without an adjudication engine shipped. There are exactly three states, distinguished by what is present in the bundle. No record is ever edited; every resolution is a new append.
State 1 - never questioned. No contested_by; not referenced by any supersedes. Settled by default: current, uncontested, stable. Absence of an edge means "no dispute asserted," not "proven undisputed."
State 2 - contested and open. A contested_by edge exists, both records are present and carry no invalid_at, and no supersedes has been appended resolving the contest. A consumer surface-both with the contest visible; it MUST NOT call a winner from the edge alone.
Pending supersession (a proposal, not a settled state). A supersedes edge whose resolution event has not been appended marks a proposed displacement: both items surface, the incumbent remains in force, and the successor reads as lineage-in-waiting. The exclude semantics attach at affirmation, per the invariant above.
State 3 - contested and settled. A resolution has been appended, not edited into either record. The contested_by edge is retained regardless of disposition so a settled contest stays distinguishable from one never raised.
Two settlement dispositions:
- Supersession. The winning concept gains a
supersedesedge to the losing concept; the losing concept gainsinvalid_at. Query-time: exclude the loser from the live set. Attribution of the settlement is thesupersedesedge itself - named, dated by the loser'sinvalid_at. - Dismissal. The contest is judged without supersession - one side is dismissed as not a genuine dispute. No
supersedesedge; the dismissed concept's window is closed withinvalid_at; a resolution receipt inlog.mdcarries attribution. Thecontested_byedge remains on both records.
Composition with the status axis
The affirmation-status axis (proposed | accepted | superseded | deprecated, per @inkxel's #148 spelling; automated writers mechanically capped at proposed) composes with both edges cleanly, and the invariant above is the joint. Superseding an already-accepted concept is an append: the successor enters as proposed carrying the supersedes edge, and affirming the successor is what appends the resolution event to the incumbent - whose status reaches superseded only as a side effect of that affirmation. The incumbent is never edited directly, so the writer cap survives composition. The dismissal disposition is a resolution event, not a status value. Resolution state and status are orthogonal axes; a concept has a value on each.
Sample bundle
Exercises all three resolution states. Concept ids are stable per #120.
State 1 - never questioned:
# okf-is-the-paper-a1b2c3d4.md
type: Reference
resource: remember://lesson/lesson-a1b2c3d4
# no contested_by, not superseded → State 1
State 2 - contested and open:
# curation-in-the-producer-b2c3d4e5.md
type: Method
resource: remember://lesson/lesson-b2c3d4e5
contested_by: remember://lesson/lesson-c3d4e5f6
# curation-in-the-format-c3d4e5f6.md
type: Method
resource: remember://lesson/lesson-c3d4e5f6
contested_by: remember://lesson/lesson-b2c3d4e5
# both live, no invalid_at, no supersedes → surface-both
State 3 - contested and settled (supersession):
# measured-corpus-utilization-d4e5f6a7.md (winner)
type: Claim
resource: remember://lesson/lesson-d4e5f6a7
supersedes: remember://lesson/lesson-e5f6a7b8
# one-percent-corpus-est-e5f6a7b8.md (superseded)
type: Claim
resource: remember://lesson/lesson-e5f6a7b8
invalid_at: 2026-06-25T00:00:00Z
contested_by: remember://lesson/lesson-d4e5f6a7
# contested_by retained append-only; exclude from live set
Contributed under Apache 2.0, from the team building remember at Lexenne.
This is close to ready — two things worth settling before it goes up as a PR.
invalid_at vs #159's validity.valid_until. Looking at the sample bundles, invalid_at only ever shows up as a byproduct of a resolution event (supersession or dismissal). Is there a case where it fires from pure temporal decay, with no dispute or supersession involved — a claim just timing out? If not, this reads like the resolution event's timestamp, which could live in validity.valid_until (already built for "when did this stop holding," already in production per @K4uP's multi-version corpus) rather than a new field. If there is a pure-decay case I'm not seeing, they're genuinely orthogonal and both earn their name. Genuine question, not a "you have a duplicate" claim — you two have more visibility into the reliability object's real usage than I do.
contested_by / contradicts. I'd rather defer to contested_by as canonical than let both ride as aliases — it's the shipped, production term (Lexenne), mine's the less-adopted one. Same move you just made withdrawing epistemic_origin for basis: pick the one with more independent adoption, don't fork. Happy to update Throughline to match once it's settled.
Everything else — the three-state model, exclusion-follows-affirmation, the composition section — reads exactly right, including how it describes the status axis. Good to open the PR once those two land wherever they land.
Nice. Both land, and both improve it.
On contested_by / contradicts: agreed, contested_by is canonical. Thank you for the concession and the offer to migrate Throughline. The doc will carry contradicts only as a back-compat note so existing Throughline bundles stay readable, not as a co-equal alias.
On invalid_at vs #159's validity.valid_until: genuine question, and the answer is that there is a pure-decay case, so they are not the same mechanism, but you are still right that this proposal should not mint a second field. remember runs a bi-temporal valid-time model: a fact carries a validity window, and its closing bound can fire from natural expiry — a freshness horizon elapsing — with no dispute or supersession anywhere near it. So invalid_at is not only a resolution byproduct; the sample bundles just happen to show it in its resolution role.
But that closing bound is exactly what #159's validity.valid_until already models: when a claim stops holding in the world, whatever the trigger. Same field, two triggers — natural decay writes it, and a resolution act writes it as the closing move. It was routed there in our own #182 producer report, and folding it in here is the same "one concept, one field" call as epistemic_origin. So the edit is: this proposal references validity.valid_until (#159) as the affirmation carrier where no status axis exists, and drops the standalone invalid_at spelling. The reliability object owns the window; these two edges own the relationship; they compose at the closing bound.
I'll fold both into the registration text, then it's ready for the PR. Everything else stays as written.
The convergence reads right, and folding the closing bound into validity.valid_until (#159) is the correct one-concept-one-field call. There is one seam worth nailing down before it goes up, because it sits directly on the exclusion-follows-affirmation invariant.
Once valid_until is the carrier in the no-status-axis case, that field carries the two triggers you just named: natural decay, and the closing move of an affirmed supersession. After the fact those two are indistinguishable from the field alone. A consumer resolving in-force state sees an incumbent whose window has closed and a successor carrying supersedes pointed at it, and valid_until by itself does not say whether the supersession was affirmed, in which case the successor should take over, or whether the incumbent simply decayed while the successor is still sitting at proposed, in which case nothing was affirmed and the successor must not inherit in-force status for free. Reading the closed window as the affirmation signal collapses those two cases, and the second one is the silent displacement the invariant exists to forbid.
So I would keep the split explicit in the registration text. validity.valid_until records when the window closed; the attributed, append-only resolution event still records that it closed by an affirmed supersession and binds that affirmation to the successor's stable concept id per #120. The field becomes the closing-bound carrier, the resolution event stays the affirmation carrier, and they meet at the timestamp. Folding invalid_at into valid_until is right for the timestamp, but the resolution event should not be folded away with it, or exclusion-follows-affirmation stops being enforceable in exactly the no-status-axis case it was written for.
With that seam stated, the rest reads ready to me, and contested_by as canonical with contradicts kept only as a back-compat note is the right call.
@ajdelaguila your fix is right, and I think it exposes one thing the text doesn't nail down yet: where does the resolution event actually live in the no-status-axis case?
Dismissal names a location explicitly — "a resolution receipt in log.md carries attribution." Supersession doesn't get the same treatment — it's just "the appended event," with no stated home. If a consumer can't locate and check that event, exclusion-follows-affirmation isn't enforceable in exactly the case it exists for — same collapse risk, one layer down.
We have two good options: log.md (directory-level, already precedented by Dismissal), or on the concept itself (an append-only block on the affected record — closer to how the status-axis case already works, since accepting or superseding a record puts the event on that record directly, one file gives you the full history without a second lookup). Both are legitimate. Worth the registration text picking one rather than leaving it implicit, especially now that it's the thing standing between "affirmed" and "just decayed."
Everything else here — contested_by canonical, the valid_until fold, the three-state model — reads right to me. This has converged into something real in two days; nice to watch happen!
Caught, and correct. valid_until is the timestamp, and a timestamp cannot carry an affirmation - my "affirmation carrier" phrasing folded the wrong thing away. Consolidating invalid_at into valid_until is right for when the window closed; it must not swallow whether it closed by an affirmed supersession or by decay, because those two are the exact pair the invariant exists to keep apart.
So the registration text will state the seam plainly:
validity.valid_until(#159) is the closing-bound carrier: when the item stopped holding in the world, whatever the trigger.- The append-only, attributed resolution event stays the affirmation carrier: that the close was an affirmed supersession, who affirmed it, and a binding to the successor's stable concept id per #120.
- They meet at the timestamp and are never interchangeable. A consumer excludes the incumbent and lets the successor take over only on the resolution event. A closed window with no such event is decay: the incumbent drops by temporal validity, and a
proposedsuccessor stays proposed and inherits nothing.
That keeps exclusion-follows-affirmation enforceable in the no-status-axis case, which is the one place it was at risk. Folding that in now; with it stated, the text is ready for the PR.
The carrier split reads exactly right — that closes the collapse risk cleanly.
One thing still open though, from a couple comments back: where does the resolution event actually live? You've now specified what it carries (affirmation, who, the binding to the successor's id) but not where a consumer finds it in the no-status-axis case. Dismissal names log.md explicitly; Supersession still doesn't say. Worth pinning down before this goes up — otherwise "check for a resolution event" has no concrete instruction behind it, and the enforceability the last fix bought back is theoretical again.
Fair hold - you're right that "check for a resolution event" needs an address, and Supersession didn't have one. Pinning it: log.md.
That's where our exporter already writes it. remember keeps resolution history internally as an append-only per-record audit, and on OKF export it projects those receipts into the bundle's log.md - the reserved, append-only history file the spec already defines in §7. So the per-record view and the log.md view are the same history at two altitudes: per-record inside the producer, log.md in the bundle a consumer actually reads. The convention should name the one a consumer can check, which is log.md.
It also suits the event's shape. A supersession is cross-concept - it binds a winner and a loser - so a bundle-level entry keyed to both stable ids (per #120) has a home that doesn't privilege one record's file over the other, and it survives a path move on either side. Dismissal already lives there in the current text; I've given Supersession the same treatment, plus a short definition making log.md the stated home for both dispositions. So "check for a resolution event" now reads concretely: look in log.md for an entry bound to the successor's id, dated by the incumbent's closed valid_until.
That was the last implicit thing between "affirmed" and "just decayed." With it named, the enforceability is real, not theoretical. Ready for the PR on my side.
nice, go for it.
Opened it as #195, in #159's proposal-doc form: okf/proposals/typed-relationship-edges.md. It's the thread's conclusion written up, nothing new over what we converged on here - the two edges with their query-time semantics, exclusion-follows-affirmation as a named invariant, valid_until (#159) as the closing bound with the resolution event living in log.md, contested_by canonical with contradicts as a back-compat alias, and a sample bundle exercising the three states. Review and convergence edits welcome, and glad to reshape to an EXTENSIONS.md registry entry if that's the direction the maintainers prefer.
Production evidence for this proposal, from a different domain — civic public records.
We maintain an OKF v0.1 bundle of local-government records for a large county in the US Northeast (currently ~230 concept documents across towns, school districts, libraries, and special districts). Two findings from evaluating it that bear directly on this thread:
1. Prose-only links let a direction error ship. Our hand-written index said water flowed "district A → district B"; the real supply direction is the reverse. It got through review because §5.3 puts all relationship meaning in prose, where direction is easy to invert and nothing can check it. After we adopted a typed-edge convention (frontmatter relations: list, essentially the shape proposed here and in #183), that class of defect became mechanically lintable — each verb in our vocabulary declares one canonical direction, so a validator can flag a reversed or contradictory edge.
2. Untyped links added no measurable value; typed edges later did. In a 60-run retrieval eval on the single-town version of the bundle, the untyped link graph never differentiated from a plain curated corpus — an untyped edge tells an agent little it can't infer from the prose. After scaling to multiple jurisdictions with typed, directed edges (serves, supplies, funds, …), the picture changed: cross-entity questions that a navigation-only arm missed were answered through the typed edges, and — the part we consider the strongest signal — the graph produced zero fabricated cross-entity edges on negative-control questions designed to bait them. The edges acted as a safety net for entity disambiguation (e.g., which of two school districts serves a given town).
Two design notes from that experience, offered for the convention discussion:
- A small, closed, profile-defined vocabulary beats an open one. We run 9 asymmetric verbs plus one symmetric escape hatch (
related_to). Every verb that earns its place did so by catching or answering something real; an open vocabulary would have reintroduced the prose-ambiguity problem one level up. - One canonical direction per verb, no inverse aliases (at least to start). Allowing both
suppliesandsupplied_byinvites the same inversion bug the typing exists to catch. We normalize to canonical direction and lint the rest.
The frontmatter-list shape in #183 matches what we converged on independently, which seems like mild evidence the shape is right. Happy to share more detail on the vocabulary or the lint rules if useful.
@jpavley This is the first measured evidence in the thread, and the negative-control result is worth underlining: typed edges producing zero fabricated cross-entity edges re-frames them as an anti-fabrication mechanism, not just a navigation aid. Nobody here had made that argument, and it is stronger than the retrieval numbers alone.
Your inverse-alias point lands on my registration text, so let me concede it rather than defend it. The current draft allows superseded_by as a derivable MAY. Your water-direction bug is exactly the failure that permits: an inverse alias gives a producer two ways to say one thing and a consumer two places to look, which is how a reversed edge survives review. Tightening it to match what you run - resolution keys on the forward supersedes only, and the inverse is not emitted to start - removes the ambiguity the typing exists to eliminate. I'll fold that into the PR.
The structure you converged on also matches the split in that text, which I take as the same mild evidence you do: asymmetric verbs need one canonical direction (supersedes), and the symmetric case is its own inverse and needs no direction at all (contested_by, your related_to). Nine-plus-one and two-plus-nothing are the same shape at different scales.
On closed versus open vocabulary: agreed, and it is the reason the lifecycle edges here are deliberately a two-verb closed set while arbitrary producer-defined typing (writes_to, imports_from, per #183) is scoped as a separate, broader problem. Your experience that an open vocabulary reintroduces prose-ambiguity one level up is a good argument for keeping those two conversations apart rather than merging them.
Yes to the lint rules - the direction-canonicalisation check especially. If a validator can flag a reversed or contradictory edge from the vocabulary definition alone, that is worth more to this convention than another field.
Glad the negative-control result is useful. That finding is what convinced us the typing does real work rather than just decorating the data.
Your split is exactly how our vocabulary file is structured. Every verb declares its directionality, and that single declaration is what the linter runs on. Each entry is roughly:
supplies:
directionality: asymmetric # subject → object, one canonical direction
domain: [entity]
range: [entity]
related_to:
directionality: symmetric # no direction; normalized to sorted order
You are right that the direction-canonicalization check needs no extra field. The declaration alone gives the linter three rules:
- Unknown verb: warn. The closed vocabulary is what makes the other rules possible.
- Contradiction: if
A supplies BandB supplies Aare both present, flag the pair. The linter cannot know which one is true, but it can force a human or another agent to review. That is the check that catches our water-direction bug's class of error. - Symmetric dedup: symmetric edges are normalized by sorting their endpoints, so
A related_to BandB related_to Acollapse to one edge instead of masquerading as two.
One check cannot come from the declaration: semantic direction. The linter cannot tell whether a specific supplies edge points the right way. That stays a review step for a human or another agent. The lint just guarantees each edge has exactly one place to be wrong.
Agreed on keeping the lifecycle set separate from #183's open producer-typing. Merging them would put an open vocabulary back inside the closed one.
Happy to post the full vocabulary definition and the lint pseudocode in this thread if it is useful for the PR.
Yes please, post them - the three rules are directly applicable, and I would rather the registration text point at a real linter's semantics than invent its own.
One of them lands hard - symmetric dedup applies to contested_by: the registration text has both records carry the edge so either one reads standalone without a second lookup, but that means a consumer counting disputes sees two edges where there is one contest - exactly the masquerading-as-two case you describe. Normalizing a symmetric pair to a single logical edge by sorted endpoints is the fix, and I will state it rather than leave each consumer to work it out.
Your contradiction rule maps cleanly onto the asymmetric side: A supersedes B together with B supersedes A is flaggable without the linter knowing which is right, and the same check extends to a cycle in a longer supersession chain. That is the value of it - it does not adjudicate, it just refuses to let the pair pass silently.
The semantic-direction limit is worth writing into the convention too, and your phrasing is good: the lint guarantees each edge has exactly one place to be wrong. A well-formed edge pointing the wrong way is still a review problem, and a convention that implied otherwise would oversell what typing buys.
On scope: the three lint rules belong beside the edge definitions to be cited there. The full civic vocabulary probably wants to be its own contribution rather than an appendix to a two-verb lifecycle PR - it is a considerably better worked example of the closed-vocabulary argument than my two edges are, and it would get buried folded in.