Attach the empty search's request and verdict to a missing-knowledge report
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- clickhouse, python
調査の方向性
Start with #1147 and read the search reply models in server/memory/api/models_search.py and server/knowledge/api/models_knowledge.py, the request ID handling in server/transport/http.py, and the exposure ledger in server/memory/app/exposure_ledger.py. The issue leaves decisions open about server-side verdict confirmation and MCP request IDs, and depends on receipt work in #1149. Done means the acceptance fixture passes, including access filtering and caller-scoped request matching, while storing no query text or digest.
索引モデルが issue の本文から書いたものです。
説明
Company
ClickHouse
Component
Knowledge (documents)
Use case
#1147 allows a missing-knowledge report without an existing target. Such a report has no artifact and no revision to bind to, so a maintainer reads free text and cannot tell whether the search abstained, served low-confidence hits or ran degraded.
The same issue says "search-gap detection retains its existing consent, scope and privacy rules; submitting a report does not turn on query logging." So the report cannot carry the query.
Describe the solution you'd like
Let a report with no target reference the search that found nothing usable. This is a proposal; nothing is implemented or measured.
- The report holds the request id of that search, the op, and the reply's machine verdict:
abstain_code,term_leg,retrieval_risk, thedegradedentries, and the key andversionof each hit the reply still carried. - It stores no query text and no query digest.
- The verdict is labeled client-reported. Loom's read record holds the returned keys and no verdict field, so it can confirm the hits of a request and not its verdict.
- A request id is matched to a read record only under the reporter's own org, namespace and actor, because a caller can choose its own
X-Request-Id. - Reading the report applies the reader's access to each referenced hit, as #1147 requires for every reference.
What Loom has that this builds on:
abstain_code,term_leg,retrieval_risk,degradedand the per-hitversionon amemory.searchreply (server/memory/api/models_search.py).- The
X-Request-Idan HTTP response carries (server/transport/http.py).loom.memory_exposuresstores the same id beside the returned keys. - A
knowledge.searchreply has no abstain code (server/knowledge/api/models_knowledge.py), so a report after a document search holds the request id and the revisions of the hits returned.
Acceptance fixture:
- A report filed after an abstained search holds the request id and the verdict fields and no query text.
- With gap recording off, filing the report writes no miss row.
- The verdict fields are labeled client-reported, with or without a read record for the request.
- A reader without access to a referenced hit does not see its key.
- A request id that belongs to another caller's read matches no read record.
Evidence still needed before rollout: none measured. Two decisions are open:
- Whether the server should confirm a verdict from its own read record. The exposure ledger writes no row for a read that returned nothing and stores no verdict field (
server/memory/app/exposure_ledger.py), so confirming one needs the read record to hold it. That is a decision for the receipt work in #1149. - Whether an MCP tool result shows the agent the request id of its call. This was not checked.
Describe alternatives you've considered
- Store the query on the report. That turns on query logging by another route, which #1147 rules out.
- Link the knowledge-gap row. Miss rows exist only where recording is on and consented, and gaps are read by admins only (
docs/architecture/knowledge-gaps.md). - Free text only. The maintainer then repeats the search to learn what the agent saw, against content that may have changed.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no report was filed.
Related: Proposed as part of #1147. 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 日以内に返信