Find current-source dispute candidates from shared names and applicability scope
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Read server/memory/app/conflicts.py, server/memory/domain/definitions.py, and server/memory/domain/definition_check.py, then review the current-source requirements in #25 and the conflict design in docs/features/memory/conflicts-and-refusal.md. The proposal identifies shared-name candidate detection, scope representation, cross-namespace ownership, visibility, and existing promotion behavior as unresolved decisions. Done means those decisions are settled and the six acceptance cases and read-only governed-name count are addressed.
索引モデルが issue の本文から書いたものです。
説明
Company
ClickHouse
Component
Memory and search
Use case
The current-source disputes section of #25 starts from two current guides that define one metric as activity within 30 days and within 90 days. Agents need the disagreement and its evidence, and "ingestion order, similarity and edit recency cannot decide which definition applies." The section also says to compare scope before declaring a conflict and to reuse the existing conflict detection and resolution.
The existing detection does not reach this case. It compares a write with rows of the same memory_type by embedding distance, and a definition row is judged against no row under another key (docs/features/memory/conflicts-and-refusal.md, server/memory/app/conflicts.py). Two definitions of one name under different keys, or in two namespaces a caller reads, never become a candidate.
Describe the solution you'd like
A model-free rule that proposes dispute candidates, for when the current-source part of #25 is picked up. This is a proposal; nothing is implemented or measured.
- Candidate rule. Within the selected sources, claims that share a name are compared. A name is a definition's term or an alias, folded as
fold_namedoes (server/memory/domain/definitions.py).- The same applicability scope (team, product, effective period) with different content is a suspected dispute. That covers the 30-day and 90-day case once both guides' definitions are held as
definitionrows. - Different declared scopes are alternatives, not a dispute.
- A scope declared on one side only is a suspected dispute, so a missing field cannot hide one.
- A proposed claim never opens a dispute.
- The same applicability scope (team, product, effective period) with different content is a suspected dispute. That covers the 30-day and 90-day case once both guides' definitions are held as
- What it compares. The rule reads
definitionrows. A document passage has no name field, so a guide joins a candidate only through adefinitionrow written from it or an explicit link that names its locator and revision. Finding names in passages is outside this proposal. - Visibility. A dispute is shown only to a caller who can read at least two of its claims. With fewer it reads as no dispute, and counts follow the same rule.
- Resolution. #25 already rechecks a resolution when its evidence changes. This binds a resolution to its claims' content hashes, so a changed hash reopens it.
- Storage. Candidates build on the existing conflict mark and
conflicts.resolve, not on a second table with its own states. The first two decisions below name where the existing mark does not fit as it is. - The scan is bounded to the selected sources and reports a partial scan, as #25 requires.
Decisions this needs:
- Which namespace owns a dispute whose claims sit in two namespaces.
conflicts.resolveacts on a memory in one namespace and leaves a peer in another namespace as it is. - How a candidate is marked before review. The existing mark is the row status
conflicted, and a definition whose source row isconflictedstops being governed (liveness_lapseinserver/memory/domain/definition_check.py), so the term leg stops serving it. #25 asks for both alternatives to stay visible while a dispute is unresolved. - Where applicability scope is declared. A definition's value has no scope field today: the name rules read its
termandaliases. - What happens to the rule inside one namespace. A promotion is refused under a name another live shared definition holds, and where two governed definitions still share a name the latest promotion wins (
lost_namesinserver/memory/domain/definition_check.py). #25 says recency must not decide. The change either replaces that rule or covers only names held across namespaces.
Acceptance fixture, the one in #25 plus one case:
- Two definitions with the same scope and different windows are a suspected dispute.
- A team-specific difference with declared scopes reads as alternatives, both visible.
- With an inaccessible competing source, the dispute and its counts read as absent.
- Ingesting the same source twice yields one dispute.
- A source edit reopens a resolution.
- A scope declared on one side only is a suspected dispute.
Evidence still needed before rollout:
- A read-only count of governed names held by more than one namespace a caller can read, to size the work.
Describe alternatives you've considered
- Extend the embedding comparison across memory types on every write. The curation design left that out because it adds a candidate read to every write (
docs/development/curation-loop-design.md). - Model-assisted detection first. #25 allows it under a provider budget; a shared name with the same scope needs no model to become a candidate.
- Let the latest edit win. #25 rules that out.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no dispute was detected and nothing was counted.
This relates to the current-source portion of #25 and asks for no change to that issue's status.
Related: Proposed as part of #25. Roadmap: #1232.
- 主要言語
- Python
- スター
- 221
- フォーク
- 35
- 平均マージ
- 14時間 21分
- マージ済み PR(30日)
- 873
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ClickHouse/loom のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/loom#2014 ·
メンテナーはふだん 1 日以内に返信
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help text対応中かも @VanshajPoonia が今日担当しました。 オープンbug good first issue help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/loom#1988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A compiler-tier checkout fetch from a shallow mirror never records its head対応中かも @KaloyanNaumov が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
ClickHouse/loom#2016 ·
メンテナーはふだん 1 日以内に返信
-
Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limit対応中かも @KaloyanNaumov が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
ClickHouse/loom#2012 ·
メンテナーはふだん 1 日以内に返信
-
loom participant retire cannot retire an orphaned participant after container replacement or host reboot対応中かも @l0K1ngg が今日担当しました。 オープンbug help wanted up-for-grabs
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ClickHouse/loom#2007 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
ClickHouse/loom の issue をすべて見る
似ている issue
-
DMB documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ubuntu/ubuntu-project-docs#921 ·
メンテナーはふだん 1 日以内に返信
-
⏳ Pending feedback 🐛 Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jumpserver/jumpserver#18282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
future-agi/future-agi#5274 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GenericMappingTools/pygmt#5014 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信