Report reliance as returned, reported, reported and served, or not recorded
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
- 24/100
Línea de trabajo
Start with the related proposal in #1149 and the named files server/memory/app/exposure_ledger.py, server/tasks/api/models_run.py, and server/memory/api/models_search.py; the issue says the required read-record version and hash storage is proposed separately in #1149. This issue also calls for a shared server-side state derivation, a changed memories_used wire shape, comparison output changes, and rollout evidence. Done means the four acceptance cases pass and the requested read-only deployment count and rolling-upgrade behavior are addressed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Company
ClickHouse
Component
Conversations, sessions and runs
Use case
#1149 keeps two kinds of evidence apart: content Loom returned, and content a client says it relied on, which stays labeled client-reported. It also requires that unknown revisions and unavailable usage data remain explicit.
A report that joins the two has to say what it shows when the read record is missing, and a missing record is ordinary:
- the ledger write is best-effort, and a failed write is logged and dropped (
server/memory/app/exposure_ledger.py); - the ledger can be turned off (
memory_exposure_ledger_enabled) and its rows expire; - a read that returned nothing writes no row;
- a read made over MCP is filed under the connection's implicit run, not the run the client later completes (
recalled_keysinserver/tasks/api/models_run.py).
If the join reads "reported, no record" as a mismatch, it flags honest reports.
Describe the solution you'd like
Derive the reliance state on read, in one server-side function every surface uses. This is a proposal; nothing is implemented or measured.
| State | Meaning |
|---|---|
returned |
The run's read record shows the item at that version or hash. |
reported |
The client names the item as relied on. Labeled client-reported. |
reported_and_served |
Reported, and the reported version or hash is in that run's read record. |
not_recorded |
The run has no read record for the item. |
not_recordedis never a mismatch. This proposal defines no mismatch state: one needs proof that a run's read records are complete, which the ledger does not give.- A read record written before revisions were recorded matches by key, and the state carries "revision not recorded".
memories_usedentries gain the version the client relied on, and the content hash where the read returned one. Amemory.searchhit carriesversionand no content hash today (server/memory/api/models_search.py). An entry with a key alone stays valid and readsreported.- A second list beside
memories_usedwould give two fields for one fact, so the entry changes shape. That changes a wire field, and the change names the break. - For tasks that ran under both compared revisions, the comparison in #1149 also names the tasks that improved and the tasks that regressed, and prints the excluded and ungraded counts beside the totals. Ungraded runs get a count and no pass share. The sample counts, configuration differences, uncertainty and the bar on causal claims stay as #1149 states them.
Acceptance fixture, added to the cases #1149 lists:
- A run that retrieves an item and does not report it reads
returned. - A report whose version or hash is in the run's read record reads
reported_and_served. - A report for a run with no read record reads
not_recorded, also with the ledger turned off. - A comparison with ungraded runs shows their count and no pass share for them.
Evidence still needed before rollout:
- A read-only count, on a deployment with closed runs, of the share of runs naming
memories_usedthat have a read record under the same run id. It sizes how oftennot_recordedappears and whether MCP reads need a join key. - How a replica of the previous build answers the new entry shape while two builds serve side by side during a rolling upgrade.
Describe alternatives you've considered
- Flag every reported item without a read record as unmatched. The four cases above make that a false flag.
- Keep reliance as keys. Two revisions of one key then stay indistinguishable.
- Call the joined state "confirmed". Loom confirms that the revision was served, not that the agent used it.
Where the need comes from
An AI tool suggested this feature
Additional context
Found by source review; no report was computed.
The states read the version and hash a read record carries, which is a separate storage proposal under #1149. Without it a read record matches by key only, and no state can name a revision.
Related: Proposed as part of #1149. Roadmap: #1232.
- Lenguaje dominante
- Python
- Estrellas
- 263
- Forks
- 47
- Merge medio
- 14 h 21 min
- PR fusionados (30 d)
- 873
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ClickHouse/loom
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/loom#2014 ·
Los mantenedores suelen responder en 1 día
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help textPosiblemente ocupada @VanshajPoonia la tomó hoy. Abiertobug good first issue help wanted up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ClickHouse/loom#1988 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
A compiler-tier checkout fetch from a shallow mirror never records its headPosiblemente ocupada @KaloyanNaumov la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
ClickHouse/loom#2016 ·
Los mantenedores suelen responder en 1 día
-
Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limitPosiblemente ocupada @KaloyanNaumov la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
ClickHouse/loom#2012 ·
Los mantenedores suelen responder en 1 día
-
loom participant retire cannot retire an orphaned participant after container replacement or host rebootPosiblemente ocupada @l0K1ngg la tomó hoy. Abiertobug help wanted up-for-grabs
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ClickHouse/loom#2007 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de ClickHouse/loom
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
TigreGotico/orthography2ipa#2950 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Unstructured-IO/unstructured#4876 ·
Los mantenedores suelen responder en 6 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openfoodfacts/openfoodfacts-python#579 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
fairagro/m4.2_sql_to_arc#388 ·
Los mantenedores suelen responder en 1 día