Prepare reviewed knowledge revisions from reports and run evidence

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

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

まだ誰も着手していません。

評価

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

調査の方向性

This is a broad design proposal, so start by reading the two linked docs: docs/features/memory/procedures-and-learnings.md for the reflection, learning and procedure-revision paths, and docs/architecture/definition-drafts.md for the definition-drafting workflow. Note that the issue depends on #1147 and reuses pieces from #160 and #1144. Done means an agreed scope for the first delivery, with the first acceptance scenario defined, not a patch.

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

説明

enhancement help wanted up-for-grabs
Component

Knowledge (documents)

Use case

A team has repeated knowledge gaps, reports of outdated instructions, and run reflections that point to the same underlying mistake. Someone still has to investigate the sources, decide which maintained knowledge needs changing, and prepare a reviewable correction.

Loom already produces reflections and definition drafts. The missing workflow is a bounded curation pass that joins the relevant evidence and prepares a concrete revision, with a visible link back to the problem it is meant to resolve.

Describe the solution you'd like

Support a curator running in an existing agent runtime. Loom supplies authorized inputs, a durable record of the pass and a reviewed change plan. The first delivery should work when invoked on demand or by an external scheduler; it does not require another general-purpose agent runtime inside Loom.

Start with one report or knowledge gap and a small selected set of related reflections or runs. The curator inspects authorized source revisions and returns either an evidence request, a reason no change is warranted, or a proposed correction to maintained knowledge or a procedure.

Acceptance criteria:

  • Each pass records its input IDs, execution identity, target scope, evidence revisions, limits and result. Resume and retry do not publish duplicate changes. Interrupted work remains visible and can be cancelled.
  • Record each stage's outcome and reason, the input revisions it inspected, output references and measured cost. Distinguish no correction needed, unavailable evidence, exhausted budget and a proposal awaiting review. Checkpoint the completed inputs so a retry can resume and a later pass can see edits made after the stage read its inputs.
  • Evidence comes through ordinary authorized Loom operations or an explicitly configured connector under its own credentials. A source available in a chat client is not assumed to be available to a server worker. Missing access or an unavailable source leaves an explicit gap in the result.
  • A change plan shows the existing and proposed content, source citations, conflicting evidence, intended readers and affected artifact revisions. A run failure or model-generated reflection is a hypothesis to investigate, not independent proof that a fact is wrong.
  • A correction expressed by a person in a selected interaction can support a draft. A one-off instruction is not automatically generalized into a team rule. Keep evidence references and provenance through the draft and publication.
  • Reuse existing definition, learning, memory-proposal and procedure-revision paths where they fit. Apply their actual permissions and review contracts. A curator cannot accept a memory proposal that requires an independent human, or bypass that restriction by rewriting or copying it.
  • Recheck source access, target revision and applicable policy at apply time. A stale plan needs another review. A report is resolved only when the corresponding correction is published; partial application is reported per item.
  • Model-backed investigation is opt-in with bounded work and spend. It adds no model call to ordinary writes or recall. Relevant run evidence is optional; collecting every prompt or replacing an observability system is outside scope.
  • Expose pass status, evidence, plans and permitted review actions through HTTP, CLI, both supported SDKs, appropriate MCP tools and the dashboard. Keep the workflow usable on ClickHouse-only installations.

The first acceptance scenario should show an outdated instruction being reported, investigated against an authorized source, corrected through its required review path, and retrieved as the corrected revision by a later agent.

Describe alternatives you've considered

reflection_distill produces lessons from contrasting sessions, but leaves them as reflections outside ordinary recall. knowledge.gaps.draft prepares definition candidates. procedure.evolve uses recorded runs to refine an existing procedure. These are useful inputs and apply paths, not an investigation workflow across reported problems and their sources.

Where the need comes from

The need is mine, an AI tool helped shape the proposal

Additional context

Feature proposal based on source review at 985c92cf988cfa9668cdcaa6aa5bcb219647563f. No curator was run and no live knowledge was changed.

  • Reflections, learnings and procedure revisions
  • Existing definition-drafting workflow
  • Related: #160 provides assistant investigation; #1144 prepares memory-proposal decisions. Reuse those components where applicable.
  • #1142 covers rules for sharing selected memories. This task prepares corrections from evidence rather than adding another sharing-rule engine.
  • #1143 covers skill artifacts and their distribution. Rich skill-package editing can use that contract when available; it is not required for the first memory, definition or procedure correction.

Depends on https://github.com/ClickHouse/loom/issues/1147 for explicit problem reports; an existing knowledge gap can supply the first input independently.

主要言語
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 を短くまとめたダイジェスト。