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

Open
#1,767 0 comments 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
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

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.