Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help text

Abierto Apto para principiantes
#1,988 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@VanshajPoonia ya está trabajando en esto.

Desde el 2/12/2026.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
88/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
cli

Línea de trabajo

Lee las cuatro definiciones de comandos en server/cli/maintenance.py y compara sus cadenas help= actuales con las opciones enumeradas en el issue. Añade descripciones que indiquen el propósito de cada opción y el valor predeterminado pertinente. Vuelve a generar tests/unit/snapshots/cli_tree.json y cli_help.json con Python 3.12 y, después, ejecuta la prueba de snapshots de CLI y python scripts/codegen/docs_reference.py --check; el trabajo estará terminado cuando ambas comprobaciones pasen y los cambios en los snapshots solo contengan texto de ayuda.

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

Descripción

bug good first issue help wanted up-for-grabs
Company

ClickHouse

Component

CLI

Describe what's wrong

Four memory maintenance commands have options that print no description in --help. Each command's other options already have one:

Command Options with no help text
loom demote-activity-narration --org, --namespace, --action
loom reextract --org, --base-url, --concurrency
loom reconcile-status --org, --limit
loom period-digest --org, --namespace, --max-identities, --max-periods

All of them are defined in server/cli/maintenance.py.

Does it reproduce on the latest release or main?

Yes

How to reproduce
loom period-digest --help
loom reextract --help
Expected behavior

Every option in the table has a short help= string in the lower-case style of the options beside it (--days on demote-activity-narration: "read-by-name protection window"), naming the default where it matters. What each option does, and where to confirm it:

  • --org on all four, and --namespace on demote-activity-narration and period-digest: the org and the namespace the command reads and writes. On reextract, --namespace is already "Source namespace (read only)", so --org there is the org of both the source and --into.
  • demote-activity-narration --action: demote lowers each matched fact's confidence to a quarter, label tags it instead (default demote; the command's own help and apply in server/memory/app/activity_trivia_cleanup.py).
  • reextract --base-url: the running server the sessions are posted to (default LOOM_BASE_URL, else http://127.0.0.1:7777). --concurrency: sessions posted at once (default 2; replay in server/memory/app/reextract.py).
  • reconcile-status --limit: the most diverged identity rows read per namespace (default 5000). Rows held back for the Postgres authority count against it (reconcile_embedding_status in server/memory/store/embeddings.py).
  • period-digest --max-identities: the most identities planned in one run, those with the most session digests first (default 50; _fetch_namespaces in server/memory/app/period_digest.py). --max-periods: the most periods written per identity (default 50).

Only the help strings change, not the options' names, defaults or behaviour.

How to make the change:

  1. Add the help= strings in server/cli/maintenance.py.
  2. Regenerate the CLI snapshots under Python 3.12, the version CI runs (argparse output differs between versions): LOOM_UPDATE_CLI_SNAPSHOT=1 python -m pytest tests/unit/test_cli_surface_snapshot.py. This rewrites tests/unit/snapshots/cli_tree.json and cli_help.json; commit both, and check that every changed line is a help string.
  3. Run python -m pytest tests/unit/test_cli_surface_snapshot.py and python scripts/codegen/docs_reference.py --check. Both should pass.
Error message and logs
$ loom period-digest --help
...
  --org ORG
  --namespace NAMESPACE
  --sessions SESSIONS   digests per period (K)
  --max-identities MAX_IDENTITIES
  --max-periods MAX_PERIODS
Environment
main at d850bba919, Python 3.12
Related issues and pull requests

Related: https://github.com/ClickHouse/loom/issues/1941
Related: https://github.com/ClickHouse/loom/issues/1945

How this was found

An AI tool helped find it, and I reproduced it myself

Redaction
  • I removed tokens, keys, passwords and personal or customer data from everything above.
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.