Stop serving a triage recommendation when its proposal or evidence changes

Đang mở
#1,763 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start with server/memory/api/models_proposals.py to see how proposal content hashes are exposed and acceptance binds approved_sha256; then trace the triage read and Apply paths associated with #1144. Define which evidence revisions count as read and whether invalidated recommendations are retained as history before implementing the hash and access checks. Done means the five acceptance cases pass, including unchanged-input reuse without a model call.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Company

ClickHouse

Component

Memory and search

Use case

In #1144 the assistant drafts accept, reject or request-evidence recommendations for selected proposal revisions, and a reviewer confirms a batch later. The issue rechecks revisions at Apply, where an edited item stays undecided.

Between triage and Apply nothing ties a recommendation to the content it was written for. A proposal edited in that window still shows the recommendation drafted for its earlier text, and the reviewer reads it until Apply refuses the item.

Describe the solution you'd like

Bind each recommendation to what it read. This is a proposal; nothing is implemented or measured.

  • A recommendation is keyed by the proposal's content hash and the revisions of the evidence it read.
  • On every read Loom compares that key with the current hash and revisions. When either differs, the recommendation is not served, and the item shows as needing triage again with a reason: proposal_changed or evidence_changed.
  • The comparison is a hash check on read. It adds no model call.
  • With unchanged inputs a repeated triage request returns the stored recommendation without a second model pass.
  • A stored recommendation is served only to a caller who can read the proposal and every evidence revision it read. For any other caller the item shows as needing triage, with no reason that names the evidence.

What Loom has that this builds on: memory.proposals returns content_sha256 for each proposal, and acceptance binds approved_sha256 per key (server/memory/api/models_proposals.py).

Acceptance fixture, added to #1144's labeled proposal set:

  1. Editing a proposal removes its recommendation from the triage read, with proposal_changed.
  2. Replacing a document revision the recommendation read removes it, with evidence_changed.
  3. A repeated request on unchanged inputs returns the same recommendation and makes no model call.
  4. A batch prepared before the edit leaves that item undecided at Apply, as #1144 already requires.
  5. A reviewer who cannot read one evidence item of a stored recommendation is not served it.

Evidence still needed before rollout:

  • A read-only count, on a deployment with a proposal queue, of proposals whose content changed while they were pending. It sizes how often a recommendation would outlive its content.

Two decisions are open:

  • Whether a recommendation that is no longer served is deleted or kept as history. It is derived text, and it leaves with its proposal under erasure in both cases.
  • Which evidence counts as read. A grade that arrives after triage changes the evidence without changing any revision the recommendation cited.
Describe alternatives you've considered
  • Rely on the recheck at Apply. The reviewer then reads a recommendation for other content until the batch is refused.
  • Expire recommendations by age. Age says nothing about whether the content changed.
Where the need comes from

An AI tool suggested this feature

Additional context

Found by source review; no triage was run.

Related: Proposed as part of #1144. Roadmap: #1232.

Ngôn ngữ chính
Python
Star
263
Fork
47
Merge trung bình
14 giờ 21 phút
Pull request đã merge (30 ngày)
873

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ClickHouse/loom

Tất cả issue của ClickHouse/loom

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.