Configure namespace curation rules with previews and team sharing

Open
#1,142 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
python

Research direction

This is a product proposal, so start by reading docs/features/namespaces-and-sharing.md (the cross-agent sharing section) and the copy workflow at server/operations/dashboard.py lines 210-213 to see how memory.copy_to is authorized. A first step is a design discussion on the issue, not a code change. Done means maintainers agree on the rule model, the execution identity and the preview contract.

Written by the indexing model from the issue text.

Description

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

ClickHouse

Component

Memory and search

Use case

People accumulate useful memories in personal or agent namespaces and want selected knowledge available to their team without manually copying every fact. They need a visible place to define what qualifies, preview the effect and inspect what ran.

This fits Loom as governed memory curation. It should use existing memory operations and permissions, rather than becoming a general job automation engine. “Worth sharing” needs explicit criteria; an agent's confidence score alone does not establish truth or permission to share.

Describe the solution you'd like

Add a Curation → Rules workspace reachable from Memories. Each rule records its owner, source scope, destination, matching conditions, action, execution identity, mode and revision. Distinguish these action rules from existing operation guardrail policies; a match does not grant permission.

Start with “Share a copy with the team.” Reuse memory.copy_to or memory.cross_promote under their existing authorization and lineage contracts. Retain the private original by default. memory.move renames a key and is not a cross-namespace transfer; do not label a copy as a destructive move. A true transfer or deletion of the original needs a separately designed and reviewed action.

Offer Preview, Suggest for review and explicitly enabled Automatic modes. Deterministic rules can run automatically once the owner authorizes the exact scope and criteria and the underlying policy permits the action. Semantic suggestions can rank candidates but must expose their uncertainty. Existing pending-review restrictions still apply.

Acceptance criteria
  • A person can create, preview, enable, pause and revise a rule in the UI. Preview shows matching revisions, reasons, destination visibility, collisions and exclusions before anything is shared.
  • Conditions use observable metadata such as trusted approval/verification, pins, tags, source freshness and usage evidence. Define what each signal means; graded success or a self-applied tag alone must not become approval or a disclosure grant.
  • Rules run through ordinary APIs. Recheck source access, destination write permission, grants, current content hashes, pending review, erasure/consent and applicable sensitivity restrictions at execution. A rule never grants access to an underlying private document or repository.
  • Automatic execution is opt-in and bounded by scope, batch size and frequency. It uses an explicit execution identity, supports pause and reports partial failures. No arbitrary script execution or model call is required for deterministic matching.
  • Repeated runs do not create duplicate copies. A changed source revision or rule revision is reevaluated. Destination conflicts are reported rather than overwritten. Preserve the existing copy lineage, later-redaction and erasure behavior; copying does not promise automatic synchronization with future source edits.
  • Provide run history showing the rule revision, actor, matched/skipped/applied outcomes and destination receipts, without exposing unauthorized records through counts. Document supported reversal; removing a copy cannot undo prior disclosure.
  • Rules are authoritative server data available across replicas and through API/CLI. The workflow works on a ClickHouse-only installation without another required service.
Describe alternatives you've considered

Manual Copy to… already supports one memory at a time. A personal script can automate calls but lacks a shared rule editor, preview, execution history and lifecycle. Existing policy checks govern whether an operation is allowed; they do not by themselves provide this curation workflow.

Where the need comes from

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

Additional context

User-requested product proposal; no live curation rule or data move was executed.

Suggested delivery order: preview and reviewed sharing first, then opt-in deterministic scheduling. Link the review-navigation issue so suggestions are discoverable.

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.