Tell agents how retrieved knowledge may be used

オープン
#1,230 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@krishnadobhal がすでに取り組んでいます。

2026年11月26日 から。

  • #1510 @krishnadobhal による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api, backend

調査の方向性

Read server/memory/domain/trust.py first to see how origin, verification, lifecycle and freshness are already modelled, then server/memory/api/models_search.py and server/memory/app/for_file.py to see how those facts reach responses. Trace the other read paths named (unified search, context assembly, file/code lessons) and the HTTP, MCP, SDK and dashboard surfaces before designing anything. Done means a documented, model-free projection of existing metadata that is identical across every read path, with unknown states explicit and no policy silently tightened; treat #745, #25 and #1149 as prior context.

索引モデルが issue の本文から書いたものです。

説明

enhancement help wanted up-for-grabs
Component

Memory and search

Use case

An agent retrieves an authored instruction, an unreviewed learning and an instruction whose reviewed content has since changed. All three can be relevant to its question, but relevance alone does not tell it which guidance it can follow or which claims need checking.

Loom already records provenance, verification, lifecycle and freshness information. Give clients one documented interpretation of those facts so each integration does not invent its own trust rules.

Describe the solution you'd like

Return consistent, machine-readable use guidance alongside retrieved knowledge. Derive it from existing metadata and explicit policy. Preserve the underlying facts rather than replacing them with one unexplained score.

Acceptance criteria:

  • Keep origin, lifecycle, review evidence, source or code freshness, and unresolved disputes separately inspectable. A source-authored claim is not automatically factually correct; process verification is not human review.
  • Explain the permitted next step and its reasons. Examples include following applicable approved guidance under the caller's policy, validating an unconfirmed lead, clarifying a dispute, or rechecking a stale source. Missing evidence is unknown.
  • When the current-source dispute contract in #25 is available, attach the applicable qualifiers and authorized competing evidence to a disputed hit even if only one claim ranks in the result window. Label incomplete evidence when the response budget or source availability limits coverage. Apply access checks to the evidence and its counts.
  • Bind review evidence to the content it covers. Editing reviewed content changes the guidance until the applicable review requirement is met again. Popularity, similarity, pinning and client-reported use must not substitute for review.
  • Project the same interpretation through memory search, unified search, context assembly and file or code lessons where those paths return maintained knowledge. Carry the relevant fields through HTTP, MCP, both SDKs and the dashboard. Clients may present them differently but must not independently reinterpret the evidence.
  • Preserve existing review and publication policies. The first delivery adds a shared read contract; it does not silently require human review for every existing memory or replace procedure lifecycle rules.
  • Respect ordinary retrieval exclusions for rejected or withdrawn content. Diagnostic access remains explicit and authorized. A report alleging an error starts investigation; it does not by itself establish that a claim is false.
  • Apply source authorization before returning reasons or evidence. Cached guidance must reflect content changes, revoked access and erasure. If current evidence cannot be checked, disclose that limit rather than presenting a stronger state.
  • Compute the projection without a model call on each read. Document its rules, unknown states and how hosts should use them when answering. Loom can return and filter by these facts; external hosts remain responsible for their agents' behavior.

Acceptance should cover authored but unreviewed content, process verification, content-bound human review, an edited reviewed item, an unresolved dispute and a fresh unchanged item. The same authorized revision must carry the same interpretation across the supported read paths.

Describe alternatives you've considered

Returning separate flags leaves each integration to decide whether verified, source_class, lifecycle and freshness mean the same thing. A single confidence score hides those distinctions. Existing badges remain useful, but need a common server contract beneath them.

Where the need comes from

An AI tool suggested this feature

Additional context

Feature proposal from source review at 583b59b36366b4a0d5e59b44eea752a656f41f21. No client failure or live evaluation was reproduced.

  • Content-bound verification states.
  • Search response metadata and file-specific retrieval.
  • #745 tracks independent review policy; merged #1103 supplies independent human proposal acceptance. This request builds on those controls.
  • #25 tracks competing claims and scoped resolution, including the current-source dispute workflow. This issue defines how that state affects the guidance returned to agents.
  • #1149 records revision-specific usage and outcomes. #1181 covers audience selection; use guidance does not replace audience authorization.
主要言語
Python
スター
263
フォーク
47
平均マージ
14時間 21分
マージ済み PR(30日)
873

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ClickHouse/loom のほかの issue

ClickHouse/loom の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。