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

オープン
#1,767 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
263
フォーク
47
平均マージ
14時間 21分
マージ済み PR(30日)
873

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ClickHouse/loom のほかの issue

ClickHouse/loom の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。