Report reliance as returned, reported, reported and served, or not recorded
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 24/100
調査の方向性
Start with the related proposal in #1149 and the named files server/memory/app/exposure_ledger.py, server/tasks/api/models_run.py, and server/memory/api/models_search.py; the issue says the required read-record version and hash storage is proposed separately in #1149. This issue also calls for a shared server-side state derivation, a changed memories_used wire shape, comparison output changes, and rollout evidence. Done means the four acceptance cases pass and the requested read-only deployment count and rolling-upgrade behavior are addressed.
索引モデルが issue の本文から書いたものです。
説明
Company
ClickHouse
Component
Conversations, sessions and runs
Use case
#1149 keeps two kinds of evidence apart: content Loom returned, and content a client says it relied on, which stays labeled client-reported. It also requires that unknown revisions and unavailable usage data remain explicit.
A report that joins the two has to say what it shows when the read record is missing, and a missing record is ordinary:
- the ledger write is best-effort, and a failed write is logged and dropped (
server/memory/app/exposure_ledger.py); - the ledger can be turned off (
memory_exposure_ledger_enabled) and its rows expire; - a read that returned nothing writes no row;
- a read made over MCP is filed under the connection's implicit run, not the run the client later completes (
recalled_keysinserver/tasks/api/models_run.py).
If the join reads "reported, no record" as a mismatch, it flags honest reports.
Describe the solution you'd like
Derive the reliance state on read, in one server-side function every surface uses. This is a proposal; nothing is implemented or measured.
| State | Meaning |
|---|---|
returned |
The run's read record shows the item at that version or hash. |
reported |
The client names the item as relied on. Labeled client-reported. |
reported_and_served |
Reported, and the reported version or hash is in that run's read record. |
not_recorded |
The run has no read record for the item. |
not_recordedis never a mismatch. This proposal defines no mismatch state: one needs proof that a run's read records are complete, which the ledger does not give.- A read record written before revisions were recorded matches by key, and the state carries "revision not recorded".
memories_usedentries gain the version the client relied on, and the content hash where the read returned one. Amemory.searchhit carriesversionand no content hash today (server/memory/api/models_search.py). An entry with a key alone stays valid and readsreported.- A second list beside
memories_usedwould give two fields for one fact, so the entry changes shape. That changes a wire field, and the change names the break. - For tasks that ran under both compared revisions, the comparison in #1149 also names the tasks that improved and the tasks that regressed, and prints the excluded and ungraded counts beside the totals. Ungraded runs get a count and no pass share. The sample counts, configuration differences, uncertainty and the bar on causal claims stay as #1149 states them.
Acceptance fixture, added to the cases #1149 lists:
- A run that retrieves an item and does not report it reads
returned. - A report whose version or hash is in the run's read record reads
reported_and_served. - A report for a run with no read record reads
not_recorded, also with the ledger turned off. - A comparison with ungraded runs shows their count and no pass share for them.
Evidence still needed before rollout:
- A read-only count, on a deployment with closed runs, of the share of runs naming
memories_usedthat have a read record under the same run id. It sizes how oftennot_recordedappears and whether MCP reads need a join key. - How a replica of the previous build answers the new entry shape while two builds serve side by side during a rolling upgrade.
Describe alternatives you've considered
- Flag every reported item without a read record as unmatched. The four cases above make that a false flag.
- Keep reliance as keys. Two revisions of one key then stay indistinguishable.
- Call the joined state "confirmed". Loom confirms that the revision was served, not that the agent used it.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no report was computed.
The states read the version and hash a read record carries, which is a separate storage proposal under #1149. Without it a read record matches by key only, and no state can name a revision.
Related: Proposed as part of #1149. 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 日以内に返信