Check without a model that cited text is in the cited revision
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Start with canonical_document_text in server/core/hashing.py and the revision and locator fields in server/knowledge/api/models_knowledge.py; trace how those relate to source revisions and access. The issue also requires citation storage, erasure and reader permissions, plus integration with change plans and triage recommendations that do not exist yet. Done means the five acceptance fixtures pass and the false-miss rate is measured before rollout.
索引モデルが issue の本文から書いたものです。
説明
Company
ClickHouse
Component
Knowledge (documents)
Use case
A change plan in #1148 shows "the existing and proposed content, source citations, conflicting evidence, intended readers and affected artifact revisions." A triage recommendation in #1144 shows its reasons and evidence, and that issue checks the workflow "on a labeled proposal set for grounding."
Both texts are written by a model, and a model can quote a passage the cited revision does not contain. The reviewer finds out only by opening every source. Loom can answer the narrower question without a model: is the quoted text in the revision the citation names?
Describe the solution you'd like
One presence check, used wherever a citation is shown. This is a proposal; nothing is implemented or measured.
- Citation. Each one names the artifact, its revision or content hash, a locator and the quoted span. On submission Loom finds the span in that revision under the submitter's token and keeps the locator, the span length and a span hash.
- No stored excerpt. A citation holds no copy of the source text, so erasing the source leaves none of it in the citation. A reviewer reads the passage with their own token, and a reader who cannot read the source is not shown the span hash. The citation row is still classified for namespace and user erasure with the record that holds it.
- Verdict.
found,not_in_cited_revision, oruncheckedwith a reason (superseded,erased,unreadable). The check runs on submission and again at apply. - Presence is not support. The reply says so. The reviewer decides whether the passage supports the claim.
- Report only. A
not_in_cited_revisionverdict blocks, hides and reorders nothing until the false-miss rate is measured. - Two readers. A change plan (#1148) lists each citation with its verdict. A triage recommendation (#1144) shows the count per verdict beside the recommendation.
What Loom has that this builds on:
canonical_document_textinserver/core/hashing.pygives the form a span and a revision are compared in.knowledge.searchreturnsrevisionandlocatorwith each hit (server/knowledge/api/models_knowledge.py).- Neither a change-plan record nor a triage recommendation exists yet. The check is a pure function, so it can be built and measured before either.
Acceptance fixture:
- A plan with one true and one altered citation marks the second
not_in_cited_revision. - A source edited after submission gives
uncheckedwithsuperseded, and the plan is stale as #1148 requires. - A reviewer without access to the source sees
uncheckedand no source text. - A recommendation that cites text absent from the cited revision shows it in its verdict counts.
- After the source is erased, no stored citation holds its text.
Evidence still needed before rollout:
- The false-miss rate. Sample spans from stored chunks and confirm the check finds each in its own revision. Whitespace and extraction differences are the expected cause of a miss.
Describe alternatives you've considered
- Store the excerpt in the plan. That copies source text into another table, which then needs its own erase-with-source path and per-reader redaction.
- Ask a model whether the source supports the claim. That adds a model call per citation and answers a question the reviewer owns.
- No check. The reviewer opens every cited source to find a misquote.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no citation was checked and no rate was measured.
Related: Proposed as part of #1148 and #1144. Roadmap: #1232.
- 主要言語
- Python
- スター
- 263
- フォーク
- 47
- 平均マージ
- 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
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TigreGotico/orthography2ipa#2950 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Unstructured-IO/unstructured#4876 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openfoodfacts/openfoodfacts-python#579 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
fairagro/m4.2_sql_to_arc#388 ·
メンテナーはふだん 1 日以内に返信