Record the version and content hash of each item a read returns
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- clickhouse, python
調査の方向性
Start with server/memory/app/exposure_ledger.py, then read server/core/hashing.py, server/memory/domain/trust.py, server/memory/api/models_search.py, and server/knowledge/api/models_knowledge.py. Trace the additive migration and namespace and user erasure paths for loom.memory_exposures and the proposed document read table. Done means the acceptance fixtures pass, old rows remain unrecorded, and search latency and per-item storage are measured.
索引モデルが issue の本文から書いたものです。
説明
Company
ClickHouse
Component
Memory and search
Use case
#1149 asks for a receipt that identifies the served revision or content hash of what a read returned, and says a past revision is never reconstructed from the artifact's latest value.
The read record cannot answer that today. loom.memory_exposures names each returned item by key, in returned_keys, with no version and no hash (server/memory/app/exposure_ledger.py). Once a second revision of a key is published, a run that read the first looks the same as a run that read the second. A document search writes no record of what it returned.
Describe the solution you'd like
Put the revision on the read record. This is a proposal; nothing is implemented or measured.
- Each
loom.memory_exposuresrow carries the version and the content hash of every item it returned, as two arrays aligned withreturned_keys. - The hash is the canonical content hash: the one
memory.getserves (served_content_sha256inserver/core/hashing.py) and an attestation binds to (server/memory/domain/trust.py). If a search hit gains a content hash through other work, the receipt records that same hash. - A row written before the change, or by an older build during a rolling upgrade, has empty arrays. It reads as "revision not recorded" and is never filled in from the latest value.
- A document search gets the same record in a new table, added by an additive migration: source URI, document revision, chunk index, request and run, with the identity fields and the token's actor the memory ledger carries. The
revisionis the oneknowledge.searchalready returns with each hit (server/knowledge/api/models_knowledge.py). The table is classified for namespace and user erasure in the same change. - The record stores no content, no prompt and no query text. A version and a hash leave as the keys do today: with namespace and user erasure and with the ledger's expiry.
- The write stays best-effort: a missing record is a state the reader reports, not an error.
Acceptance fixture, from the cases #1149 lists:
- Two revisions of one memory key: a run that read the first still names its version and hash after the second is published.
- A row with empty arrays reads as "revision not recorded".
- A document is replaced: the read record names the revision served before the replacement.
- Namespace erasure and user erasure remove the document read records.
- No record holds content or query text.
Evidence still needed before rollout:
memory.searchp95 with and without the two arrays, and whether the content hash is available on the read path without a point read per hit. A search hit carriesversionand no content hash today (server/memory/api/models_search.py).- Storage of the ledger with the arrays, per returned item.
Describe alternatives you've considered
- Join the read record to the version history by time. That infers the revision, and a write between the read and its record makes the answer wrong.
- Record revisions in
loom.search_trace_log. That log is off by default because it stores query text. - Let the client send hashes at
run.complete. That is client-reported reliance, not what Loom returned.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no read was recorded and no latency was measured.
This is the storage part only. How reliance is read over this record is a separate proposal under #1149 and does not block this one.
Related: Proposed as part of #1149. 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 日以内に返信