Add a `must_not_state` case and an unavailable outcome to regression suites

Abierto
#1,767 0 comentarios 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
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Read #1177 and the procedure revision gate in server/memory/app/procedure_evolve.py first; the issue does not name the regression suite runner or its files. Trace how cases are evaluated and how candidate comparisons record unavailable checks, then add the proposed case and outcome behavior with the listed acceptance fixture. Done when all three fixture outcomes hold and unavailable evidence keeps the candidate unpublished.

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

Descripción

enhancement
Company

ClickHouse

Component

Knowledge (documents)

Use case

In #1177 a suite "records representative questions or tasks, expected behavior and cases where the agent should decline to answer", and results "include per-case failures and unavailable checks."

Two points are left open there:

  • A correction withdraws or replaces a definition. An expected-answer case passes when the answer states the new meaning, also when it states the old one beside it. A decline case checks that the agent refuses, not that an old claim is gone.
  • The runner cannot execute a case, for example because a source is down. #1177 already reports unavailable checks and leaves a candidate unpublished on missing evidence. It does not say how such a case counts when a reviewer compares the candidate with the published revision: counted as failed, an outage reads as a regression of the candidate.
Describe the solution you'd like

One case kind and one outcome rule. This is a proposal; nothing is implemented or measured.

  • must_not_state case. For a withdrawn or replaced definition, the case passes only when the answer does not state the withdrawn meaning. It sits beside the decline cases.
  • unavailable outcome. A case the runner could not execute gets the per-case outcome unavailable. It satisfies no requirement, and it is not a failure and not a regression in the comparison with the published revision. The candidate stays unpublished for missing evidence, as #1177 requires.

What Loom has that this builds on: the procedure revision gate in server/memory/app/procedure_evolve.py returns undecided when its ledger is unavailable: no evidence, no verdict. The same rule applies to a case that could not run.

Acceptance fixture, added to #1177's candidate that fixes one case and breaks another:

  1. A candidate that still states the withdrawn definition fails its must_not_state case.
  2. A suite with one unavailable case leaves the candidate unpublished, reports no failure and lists no regression for that case.
  3. The same suite run again with the case available passes, and publication then waits only for the required reviewer.

Evidence still needed before rollout: none measured. The rubric that decides "states the withdrawn meaning" belongs to the external runner and needs its own calibration there, including an answer that names the old meaning as withdrawn.

Describe alternatives you've considered
  • Use a decline case. It checks refusal, and the agent should still answer with the current definition.
  • Use only an expected-answer case for the new definition. It passes when the answer states both meanings.
  • Count an unavailable case as failed. A runner outage then blocks the candidate with a failure it did not cause, and the per-case history shows a regression that never happened.
Where the need comes from

An AI tool suggested this feature

Additional context

Found by source review; no suite was run.

Related: Proposed as part of #1177. Roadmap: #1232.

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.