Concepts are equal, contexts are hierarchical
- A concept has no parent and no children. It sits in exactly one context (
Concept.context). - A context has a
parent. Contexts form a tree. - Links between concepts are typed relations from the ontology. They are never tree edges.
Containment is a relation
If concept A includes concept B, the ontology holdsCONTAINS(A, B), in one direction only so a fact is stored once. It follows the same rules as any relation: evidence is required, and search follows it in both directions.
Layers are depth
A node’s level is its depth from the root, not its height above the leaves. Height changes when another branch grows. Depth is fixed once a context exists.Placing a concept
The extractor places a word one level at a time:- The candidates are the children of the chosen parent. The scope is the only hard filter.
- The candidates are ranked by vector similarity, plus a boost when the document’s metadata matches and a larger one when the section matches.
- The top 3 of each level are kept, so a near miss can still win further down.
- A model chooses one, or proposes a new draft context.
- The choice is pinned, so a rebuild repeats it.
Vectors
Vectors are derived. They are never exported, they are recomputed when the model changes, and search ignores one that comes from another model. Cosines of different node kinds are not comparable, so cosine is used only to choose entry points within one depth.
A context is never a search answer. Only concepts carry evidence, so a context hit always resolves to the concepts below it.
Context summaries
One part of this design is described but not built yet.