Keep a person's rejection of a rule-made copy and never remove a copy by rule
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
調査の方向性
Start with server/memory/app/copy_ops.py and read how memory.copy_to and memory.cross_promote record copy lineage. Then trace the existing memory and rule-related entry points; the issue says no rule record exists yet and leaves the rejection record, erasure, and rule-revision behavior undecided. Done means the four acceptance cases are covered and the required read-only count is available.
索引モデルが issue の本文から書いたものです。
説明
Company
ClickHouse
Component
Memory and search
Use case
#1142 adds curation rules that share a copy of a matching memory with a team. Its criteria say "repeated runs do not create duplicate copies. A changed source revision or rule revision is reevaluated" and "document supported reversal; removing a copy cannot undo prior disclosure."
Two cases follow from those and are not decided there:
- A person removes a copy a rule made. On the next run the source still matches and the destination holds no copy, so the rule shares it again and overrides the person.
- A source stops matching its rule. A rule that then removes the shared copy deletes a row no writer asked to delete, and the copy may already have been read.
Describe the solution you'd like
Three behaviours for a rule-made copy. This is a proposal; nothing is implemented or measured.
- Origin on the copy. A copy a rule made records the rule id and the rule revision beside the existing copy lineage.
- A person's rejection holds. When a person removes or rejects a rule-made copy, Loom remembers it for that rule and that source content hash. The next run skips the item with that reason. A changed source revision is evaluated again.
- No automatic removal. A rule never removes a shared copy. A source that no longer matches is reported in the run history as "no longer matches".
- A rule reads source metadata only, never another rule's output, so the order rules run in does not change the result.
What Loom has that this builds on: memory.copy_to and memory.cross_promote write cross_promoted_from_memory_id and cross_promoted_from_namespace on the copy (server/memory/app/copy_ops.py). No rule record exists yet.
Acceptance fixture:
- A person removes a rule-made copy; the next run skips the item and records the reason.
- The source is edited; the next run evaluates it again.
- A source stops matching; its copy stays, and the run history has a "no longer matches" entry.
- Two rules run in either order produce the same copies.
Evidence still needed before rollout:
- A read-only count, on a deployment that uses
memory.copy_toormemory.cross_promote, of copies a person later removed. It sizes how often a rule would share an item again.
Three decisions are open:
- Where the rejection record lives.
- How it is erased with its source, since it holds a source content hash.
- Whether a new rule revision clears it.
Describe alternatives you've considered
- Share again on every run. The person's removal lasts until the next run.
- Remove the copy when the source stops matching. That is a deletion by rule, and #1142 already says removal cannot undo disclosure.
- Remember the rejection by key alone. A corrected source revision would then stay blocked.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no rule was run and no copy was made.
Related: Proposed as part of #1142. 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 日以内に返信