Configure namespace curation rules with previews and team sharing

Abierto
#1,142 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
263
Forks
47
Merge medio
14 h 21 min
PR fusionados (30 d)
873

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ClickHouse/loom

Todos los issues de ClickHouse/loom

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.