LearnNewsExamplesServices
Frontmatter
id10049
titleConcept Schema Enrichment: Aliases, Analogous Edges & Rich Descriptions
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtApr 17, 2026, 3:39 PM
updatedAtApr 18, 2026, 5:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/10049
authortobiu
commentsCount0
parentIssue10030
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[ ] 10050 Concept Description Enrichment: Source-Grounded Semantic Anchors
blocking[x] 10037 ChromaDB Concept Embedding & Hybrid Search
closedAtApr 17, 2026, 4:31 PM

Concept Schema Enrichment: Aliases, Analogous Edges & Rich Descriptions

Closed v13.0.0/archive-v13-0-0-chunk-4 enhancementaiarchitecture
tobiu
tobiu commented on Apr 17, 2026, 3:39 PM

Objective

Enrich the concept ontology schema with deterministic aliases and cross-framework ANALOGOUS_TO edges. Depends on #10050 for source-grounded descriptions.

Context

Phase 2 prerequisite for #10037 (ChromaDB Concept Embedding). Brainstorming challenge revealed that most proposed "alternative names" (ViewModel ↔ State Provider, Multi-Threading ↔ Multi-Core) are NOT true synonyms — they're related concepts from different frameworks or different abstraction levels. This ticket formalizes a 2-layer approach to avoid collapsing architecturally distinct concepts into false equivalences.

Deliverables

1. Schema Extension: aliases Field

Add an optional aliases array to nodes.jsonl for genuinely equivalent terms only:

{"id": "reactive-configs", "aliases": ["trailing underscore", "trailing underscore convention"]}
{"id": "off-main-thread", "aliases": ["off the main thread"]}

Strict inclusion rule: A term qualifies as an alias ONLY if it refers to the exact same architectural concept within Neo.mjs. Cross-framework terms (ViewModel, JSX, etc.) belong in ANALOGOUS_TO edges.

2. New Edge Type: ANALOGOUS_TO

Add typed edges mapping Neo.mjs concepts to their nearest equivalents in other frameworks:

{"source": "state-provider", "target": "ext:react-context", "type": "ANALOGOUS_TO", "note": "Similar hierarchical state, but Neo.mjs providers use bind:{} on reactive configs — no subtree re-rendering"}
{"source": "push-reactivity", "target": "ext:vue-reactivity", "type": "ANALOGOUS_TO", "note": "Both push-based, but Neo.mjs uses explicit trailing-underscore opt-in vs Vue's Proxy-based auto-tracking"}

External concept IDs use the ext: prefix to prevent collision with internal concept IDs.

3. ConceptService API Updates

  • resolveAlias(term) — deterministic O(1) alias → concept ID lookup
  • getAnalogousConcepts(conceptId) — returns ANALOGOUS_TO edges for cross-framework context
  • Update loadGraph() to index aliases into a reverse-lookup Map

4. Update ConceptOntology.md Guide

Document the new schema fields, the alias inclusion rule, and the ANALOGOUS_TO edge pattern.

Acceptance Criteria

  • aliases field added to nodes.jsonl schema and populated for applicable concepts
  • ANALOGOUS_TO edges seeded for top-10 most commonly confused cross-framework concepts
  • resolveAlias() and getAnalogousConcepts() APIs implemented with unit tests
  • ConceptOntology.md guide updated

Dependencies

  • Blocked by #10050 (Concept Description Enrichment)
  • Blocks #10037 (ChromaDB Concept Embedding)

Architectural Note

This ticket deliberately does NOT touch ChromaDB or embeddings — that's #10037's scope. Description enrichment is handled by #10050.

Origin Session ID: c9bf0d61-a58d-42ba-a030-6426dc5fe270

tobiu added the enhancement label on Apr 17, 2026, 3:39 PM
tobiu added the ai label on Apr 17, 2026, 3:39 PM
tobiu added the architecture label on Apr 17, 2026, 3:39 PM
tobiu added parent issue #10030 on Apr 17, 2026, 3:39 PM
tobiu marked this issue as blocking #10037 on Apr 17, 2026, 3:39 PM
tobiu cross-referenced by #10050 on Apr 17, 2026, 3:44 PM
tobiu marked this issue as being blocked by #10050 on Apr 17, 2026, 3:44 PM
tobiu referenced in commit 8bb441c - "feat(ai): add aliases and ANALOGOUS_TO edges to concept schema (#10049) on Apr 17, 2026, 4:24 PM
tobiu cross-referenced by PR #10052 on Apr 17, 2026, 4:25 PM
tobiu referenced in commit d9004ea - "feat(ai): add aliases and ANALOGOUS_TO edges to concept schema (#10049) (#10052) on Apr 17, 2026, 4:31 PM
tobiu closed this issue on Apr 17, 2026, 4:31 PM
tobiu assigned to @tobiu on Apr 18, 2026, 5:19 PM
tobiu cross-referenced by PR #10078 on Apr 19, 2026, 10:28 AM
tobiu cross-referenced by #10080 on Apr 19, 2026, 11:16 AM
tobiu cross-referenced by PR #10084 on Apr 19, 2026, 12:20 PM
tobiu cross-referenced by #10030 on Apr 19, 2026, 12:33 PM