Add entity resolution to deduplicate and merge cross-source observations
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- go, kafka
調査の方向性
Read docs/_drafts/06-roadmap.md and inspect the existing Upsert behavior first, focusing on the Tier 1 exact-URN scope. Done means observations merge idempotently into an existing entity, provenance is tracked, and the merge behavior is defined; Tier 2 and Tier 3 are follow-ups.
索引モデルが issue の本文から書いたものです。
説明
Context
Compass stores entities from multiple sources as separate records. A Kafka topic ingested from two different systems creates two unrelated entities with different URNs. The graph is fragmented — context assembly, impact analysis, and search all operate on disconnected duplicates.
Entity resolution is the mechanism that matches incoming observations against existing entities, merges properties, and maintains unified identity. This is the prerequisite for a coherent knowledge graph.
Scope
Tier 1: Exact URN Match
- When an observation arrives with a URN that already exists, merge properties into the existing entity
- Track provenance: which source contributed which properties
- Idempotent — re-sending the same observation must not create duplicates or mutate state unexpectedly
- This is what
Upsertpartially does today, but without provenance tracking or merge strategy
Tier 2: Heuristic Matching
- Match observations where URN differs but type + name + source pattern suggests the same logical entity
- Configurable matching rules (e.g., "bigquery table names map to dbt model names via this pattern")
- Candidate scoring with a confidence threshold
Tier 3: Semantic Similarity (follow-up)
- Use embedding similarity to catch non-obvious matches
- Only viable after the embedding pipeline has indexed sufficient entities
- Should be a signal fed into Tier 2 scoring, not a standalone matcher
Merge Strategy
- When a match is found, merge properties from the new observation into the existing entity
- Default: last-write-wins per field
- Track which source contributed which properties (provenance)
- Resolution audit log: record what was matched, merged, and why
Design Considerations
- Resolution must be idempotent
- Meteor sends raw observations, Compass resolves — keep the interface simple
- Start with Tier 1 (exact URN match with provenance). Ship it. Tier 2 and 3 are follow-ups.
- Graph-aware ranking (#237) depends on a coherent, deduplicated graph — this should ship first
References
- 主要言語
- Go
- スター
- 72
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
raystack/compass のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
raystack/compass の issue をすべて見る
似ている issue
-
bug github_actions
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#1393 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JakeChampion/lang#10213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
oasisprotocol/oasis-sdk#2523 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100