Elffuss BraidHub

kikocis/utopia public

dev · 7.6 KiBSourceRawPermalink

0016 · Close the open seams before cutting new ones

The problem

v0.1.0 shipped with twelve capability rows in the README while three of fifteen records had status lines behind the code in the same PR. Before the next big line, align "said" with "done". The half-built pieces still open:

Half-builtSourceSymptom
disjointWith is stored; resolution still uses the hard-coded CONFUSABLE_TYPE_KEYS0009 / 0001 P5merge candidates cross declared disjointness
type resolution runs only by hand0001 P3arefining new entities depends on someone clicking
a Chinese base gets an English ontology; zh.ts lags, so the interface defaults to English0008 / 0004Chinese users get English at both ends
merge_key does not fold _by; narrative verbs enter the ontology0007one relation in two directions
the 24,000 budget and 40 / 30 / 30 per-chunk counts are untested; the answer key is hand-filled; mixed packs unmeasured0006 / 0008no "better" can be told from variance
mappings carry no evidence; with several sources every same-name concept goes to the model0011the calculation is a black box
the mapping probe depends on the metric / dimension keys0009a blank base found nothing until the builtin classes of #231; the pack is D2
no "new phrasings" reminder once auto-extension is off0003the index is there, the reminder is not
document.no_text_layer unwired, no OCR endpoint0005scanned documents show all green

Criteria

  1. Said and done agree. README line, status line, code comment: when they disagree, fix that before adding features. 0015 is the assistant to the user; this is us to the reader.
  2. What writes the graph comes before what reads it. A half-built thing that silently changes the graph is worse than nothing; a half-built read is a missing feature. So pending_facts came before the proof tree.
  3. Measurable first. scripts/bench/ and the corpora exist; the external answer key does not, and without it tuning tightens overfitting (0006).
  4. Simulation and execution gates wait for the ground. The README roadmap's first two items are proposals overlaid on the ledger; pending_facts (A1), the proof chain (B1) and the contradiction signal (B2) are what they stack on.

The lines: A → B ∥ C → D → E

A · Close the seams, no new concepts. A1 wire 0015 (done). A2 a tokens page and delete the three placeholder crates (done; a placeholder is a promise to the reader, and cargo new takes minutes). A3 dead code and stale comments (done, #188 and chore/comments-catch-up). A4 README against code, both languages: promise only what has landed.

B · Finish the reasoning engine, after A, parallel with C. B1 the R2 proof chain (done, #227; a chain, not a tree — see 0002). B2 the derived-vs-asserted contradiction signal, axiom_violations kind derived_contradiction (done: B2a engine and queue #238, B2b visibility on graph and panel #243 — 0017). B3 resolution reads entity_type_disjoint ahead of the hard-coded list (done: a declared disjointness, inherited, wins over kinship and the list; nothing declared → today's behavior; class kinship from the hierarchy landed first, #226). B4 R3 incremental maintenance, deferred until a full re-derivation of ai-timeline-ends exceeds a threshold (proposal: 10 seconds).

C · Ontology and extraction quality: build the ruler, then tune. C1 an external answer key, Wikidata P31 as the type answer for Wikipedia articles, generated by script; only then can the 0008 mixed-pack comparison (run.mjs --packs) and the 0006 budget curve run. C2 type resolution queued after extraction, auto-applying only the "within the original subtree" tier; after C1, or it scales noise. C3 with ontology_lang = zh, generate Chinese description rows by LLM (the line the model reads follows the corpus, 0004), IRIs and label untouched; catch zh.ts up and put navigator.language back into detect(). C4 fold _by in merge_key and let the synonym-merging LLM call review narrative verbs, reversibly. C5 "N new phrasings since last time" from ontology_misses where dismissed_at IS NULL.

D · Semantic layer and data questions, after C1. D1 concept_mappings gains evidence (the schema-doc chunk ids read during probing). D2 a "Utopia semantic layer" pack with IRIs, optional and replaceable; mappings.rs finds types by IRI. D3 one mounted source → only its mappings, several → all, in mappings::confirmed. D4 the MySQL wire protocol (TiDB / OceanBase / Doris / StarRocks, sqlparser dialect switch); the lakehouse engines came first.

E · Enterprise delivery, the v0.2 bar, can interleave. Credentials encrypted at rest (SECURITY.md promises it before 1.0) — small, do it early. OIDC SSO; backup and restore; a hundred-thousand-document benchmark (numbers beat design). document.no_text_layer together with an OCR endpoint (docling-serve sidecar). instant precision only when the trigger in 0013 fires.

Deferred: simulation engine and execution gate (criterion 4); a separate record once A and B are done.

A new convention

The PR that implements a record updates its status line. 0011, 0014 and 0015 fell behind the code in the same PR by the same author, so the PR template asks which record the change implements or overturns and whether the status line moved. Written into the README.

Open questions