Elffuss BraidHub

kikocis/utopia public

dev · 7.0 KiBSourceRawPermalink

0003 · The ontology grows out of the corpus

The problem

The extractor reads "《星球大战:零号连队》可在 GeForce NOW 上玩", the ontology has no "playable on", and the fact lands as related_to, which says nothing. On real corpora 40.5% of edges were like that, and every new KB began with ten seed relations nobody had chosen. The extraction side (0001 P3b) removed the escape hatch and kept the original phrasing on fact_evidence.proposed_predicate. This record is the other half: turning kept phrasings back into relations, with a person somewhere in the loop.

That world is gone: an unmapped fact now has a null predicate and shows its phrasing through fact_surface_predicate(), and a new KB has no relations until a pack is installed. 0012 measured 25.6% null predicates on ai-timeline-ends × schema.org, all 41 relations from the pack and none grown by this loop. The loop itself is unchanged and still on by default.

Decisions

  1. Adoption rewrites the facts waiting for it. Add used to create the relation type and leave the facts saying "related to". Now it also rewrites every fact whose phrasings all fall inside the adopted set (a fact with several phrasings across chunks is left alone; under 1% of cases), and the proposal says "will reclassify N" with the phrasings merged. The rewrite is an append (new row with supersedes, old row invalidated), the same path as human correction, so entity history reads "recorded as related to, refined to available on, by whom". predicate_match runs first: an equivalent relation already in the ontology (including _by inverses) absorbs the group with subject and object swapped (#109). The canonical key is the group's most frequent real phrasing.
  2. Undo is per batch. fact_adoptions records batch, predicate, old fact, new fact, and whether the new row superseded or merged into an existing assertion. Undo invalidates the new rows and revives the old; the relation type stays (facts pointed at it, and both the adoption and the undo happened). Light confirmation, no typed unlock.
  3. Three tiers: Add one (a person, picking), Add all (a person, one decision), automatic (the switch).
  4. The switch governs adoption, never attention. Off, unmatched phrasings still accumulate in the Unmatched panel as proposals, and the copy must say so, since "stop extending" reads as "stop noticing". Default-on is justified because every automatic action is visible and reversible: the Ontology page banner (last_auto_extension) shows what was added, how many facts changed, and undo. The audit ledger is for later verification, never a notification.
  5. No axiom is set automatically, functional first and now all of them (Axioms::default() on the cold-start path). Criterion: a reversible action may be automatic; one that triggers cascading writes may not. functional drives auto-closing and conflicts, and undoing that means unpicking supersede chains; part_of mislabelled once produced 59 false conflicts from 28 press releases.
  6. Dismissal remembers an attitude, and counts go on. ontology_misses.dismissed_at; record_miss keeps counting; suppression happens on read, with dismissed entries listed separately with current counts, revocable (0007).
  7. Automatic adoption needs a phrasing in at least two documents, MIN_SIGNALS = 3 counted over predicate and type signals together (counting predicates alone skipped a corpus that lacked only entity types). The reason is quality: the ontology feeds back into the extraction prompt, so one document's accidental wording would become a standing instruction.

Dead ends

Revisions

Open questions