Triage memory proposals with the assistant and prepare batch decisions

Open
#1,144 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
clickhouse, typescript

Research direction

Start with the Proposals tab in frontend/src/views/admin/ReviewQueue.tsx and the proposal decision contract in docs/features/memory/writing.md#proposals, including memory.proposal_decide and its content-hash and independent-reviewer checks. Read the existing assistant direction in #160 before designing anything. Done means a reviewer can start triage from Review with scope preserved, inspect a recommended batch with hashes and proposed decisions, and confirm it once, with per-item refusals for stale or ineligible items and no assistant-driven acceptance.

Written by the indexing model from the issue text.

Description

enhancement help wanted up-for-grabs
Company or project name

ClickHouse

Component

Dashboard

Use case

A growing proposal queue is not useful if every administrator must reconstruct the evidence and review each item through a separate interaction. Users want the assistant to help settle the work, with automation where Loom's policy permits it.

This is a focused Review queue workflow under the existing assistant direction in #160. It adds proposal triage and batch decision preparation; it does not replace that issue's general inspection, tuning or assistant implementation.

Describe the solution you'd like

Add “Help review” to the Proposals tab. Pass the current authorized scope and selected proposal revisions to the existing assistant workflow. The assistant groups related proposals, identifies possible duplicates or contradictions, gathers visible source and run evidence, and drafts accept/reject/request-evidence recommendations with reasons and uncertainty.

A reviewer can inspect a group and its exact selected claim revisions, adjust the selection and confirm a bounded batch once. Reuse ordinary proposal decision operations and audit records. This reduces evidence gathering and repeated confirmations without turning model confidence into a new approval authority.

Current memory.proposal_decide requires an administrator, and acceptance requires an independent authenticated human with the displayed content hashes. Preserve that contract. The assistant retains process attribution; it must not run a background acceptance job with a person's credentials or bypass proposal state through copying, moving, rewriting or importing.

Acceptance criteria
  • Start triage from Review with scope and selected rows preserved. Show queue age, why an item needs review, recommendation reasons, relevant evidence, contradictions and missing/unavailable sources. The assistant cannot read or enumerate a broader scope than the caller.
  • Run success, popularity and model confidence are labeled as evidence with limits, not proof of factual truth. Uncertain or conflicting items can be left undecided or sent back for evidence.
  • Show the exact batch before confirmation, including the selected keys, content hashes and proposed decisions. Reauthorize and recheck revisions at Apply. Edited, erased, ambiguous or otherwise ineligible items remain undecided with a per-item reason; retries do not replay successful decisions.
  • Final acceptance uses the deliberate human review action and existing independent-review checks. Self-acceptance, service-account approval and stale-hash acceptance remain refused. A recommendation is never displayed as an already applied decision.
  • Expose and explain existing owner-set proposal_policy automation, including rejection after graded failures. Automatic acceptance remains refused. Any future change to that admission contract is a separate policy decision, not a hidden assistant shortcut.
  • Provide bulk rejection/deferral only where the current API and authorized policy support it. Do not manufacture a decision operation for an unsupported state.
  • The manual queue works when the assistant is disabled. Assistant work is on demand, bounded and cancellable, with its model cost visible; it adds no model call to memory writes or recall.
  • Check the workflow on a labeled proposal set for grounding, unauthorized-source refusal, stale plans, independent reviewer identity, partial batches and decision corrections. Report human review effort and errors rather than claiming that fewer clicks prove better memory quality.
Describe alternatives you've considered

Automatic acceptance based on LLM confidence defeats the current independent-human contract and can promote unsupported claims. Manual review of every item leaves the reported scaling problem. Existing automatic rejection can reduce some work, but it does not assemble evidence or prepare a reviewed batch.

Where the need comes from

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

Additional context

User-requested feature, not a report of a reproduced assistant failure. No model evaluation or mutation of live proposals was run.

Parent direction: https://github.com/ClickHouse/loom/issues/160
Related: https://github.com/ClickHouse/loom/issues/745
Related implementation: https://github.com/ClickHouse/loom/pull/995

This deliverable can reuse the current assistant foundation; it does not depend on completing every feature in #160 and must work on ClickHouse-only deployments.

Related product work: https://github.com/ClickHouse/loom/issues/1141

Dominant language
Python
Stars
221
Forks
35
Avg merge
14h 21m
Merged PRs (30d)
873

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/loom

All issues in ClickHouse/loom

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.