Calibrate rescore forces the judge to level 'low', so calibration measures a cheaper judge than the suite runs

オープン 初心者向け
#2,936 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
ai, tooling

調査の方向性

skills/Calibrate/Tools/Calibrate.ts の 624 行目、judgeText 内で、Promise.all が judged を対象にし、{ level: 'low' } を judge の第 3 引数として渡している箇所を探してください。それを skills/Assay/Tools/Judge.ts のデフォルト(opts.level ?? 'high')と比較し、レベルを下げているのがこの override だけであることを確認してください。その引数を削除してから、issue の bun -e スタブプローブを再実行してください。judge opts: undefined を出力して 0 で終了したら完了です。

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

説明

Version

LifeOS 8.761.0 · attestation: 27 system file(s) differ from danielmiessler/[email protected] · 2 system file(s) missing:

  • hooks/VerificationGate.hook.ts
  • hooks/FormatGate.hook.ts
  • skills/LifeOSHooks/hooks/lib/build.ts
  • skills/LifeOS/SKILL.md
  • skills/Calibrate/Tools/Calibrate.ts
  • skills/Calibrate/Tools/Calibrate.help.md
  • skills/X/Tools/x-client.ts
  • LIFEOS/TOOLS/MemoryWriter.ts
  • LIFEOS/TOOLS/LearningPatternSynthesis.ts
  • LIFEOS/TOOLS/models.ts
  • LIFEOS/TOOLS/SessionTree.ts
  • LIFEOS/TOOLS/model-pricing.json
  • LIFEOS/DOCUMENTATION/Tex/TexSystem.md
  • LIFEOS/DOCUMENTATION/Setup/Finances.md
  • LIFEOS/DOCUMENTATION/ARCHITECTURE_SUMMARY.md
  • LIFEOS/DOCUMENTATION/Services/BackgroundServices.md
  • LIFEOS/ERRATA/Signals.ts
  • LIFEOS/RELAY/bridge/README.md
  • LIFEOS/RELAY/bridge/send.ts
  • LIFEOS/RELAY/bridge/index.ts
  • LIFEOS/RELAY/bridge/handler.ts
  • LIFEOS/RELAY/bridge/thread.ts
  • LIFEOS/STATUSLINE/State.ts
  • LIFEOS/STATUSLINE/sections/Codex.ts
  • LIFEOS/STATUSLINE/producers/UsageView.ts
  • LIFEOS/STATUSLINE/Time.ts
  • LIFEOS/VIGIL/Tick.ts
What is broken

Calibrate's text rescore (judgeText) passes { level: 'low' } to Assay's judgeAssertion, while Assay's own judge defaults to 'high' (skills/Assay/Tools/Judge.ts, opts.level ?? 'high'). So a calibration session measures a cheaper judge than the one the suite actually runs, and its agreement and kappa describe the wrong judge. On a real target (a blog-post rubric, 16 held-out labels) removing the override moved the mean gap between the principal's scores and the judge from -2.4 to -1.1, so the difference is large enough to change what a calibration round concludes.

Where (file:line)

skills/Calibrate/Tools/Calibrate.ts:624

Repro on a clean tree
1. From the config root, call `judgeText` with a stub judge that records the options it receives (the probe below). The stub replaces only the rubric judge; `judgeText` still makes its usual judgment-layer call first, which can fall back to null without changing the result.
2. On v8.761.0 the stub receives `{"level":"low"}` and the probe exits 1.
3. Expected: no level override, so the judge runs at Assay's default (`high`), the level the suite uses outside calibration.
Negative control

Probe: bun -e 'import { judgeText } from "./skills/Calibrate/Tools/Calibrate.ts"; let seen; await judgeText("A short post.", [{ type: "llm-rubric", value: "Is it clear?" }], null, async (_o, _a, opts) => { seen = opts; return { score: 1, passed: true }; }); console.log("judge opts:", JSON.stringify(seen)); process.exit(seen?.level === "low" ? 1 : 0)' · exit 1 · captured 2026-11-23T23:34:08.369Z

Red looks like: judge opts: {"level":"low"}

judge opts: {"level":"low"}
Suggested fix

Drop the { level: 'low' } argument so judgeAssertion uses its own default. One line in skills/Calibrate/Tools/Calibrate.ts. With the fix the probe exits 0 and the stub receives no level override.

diff --git a/skills/Calibrate/Tools/Calibrate.ts b/skills/Calibrate/Tools/Calibrate.ts
index 2bb649a..365ea82 100644
--- a/skills/Calibrate/Tools/Calibrate.ts
+++ b/skills/Calibrate/Tools/Calibrate.ts
@@ -621,7 +621,8 @@ export async function judgeText(output: string, asserts: Assertion[], taste: Tas
   const j = await judgeOrNull("calibrate-taste", state, TASTE_QUESTIONS);
   const judgedMeets = judgedValue(j, "meets");
   if (j?.meets?.verdict.act && judgedMeets && j.meets.answer.type === "noul" && !checkThisOne("calibrate-taste", state)) return { median: 10 * j.meets.answer.noul, verdict: judgedMeets === "yes" ? "pass" as const : "fail" as const, perVendor: {} };
-  const results = await Promise.all(judged.map(a => judge(output, { ...a, value: withTasteValue(a.value as string, taste) }, { level: 'low' }).catch(() => null)));
+  // No level override: calibration measures the judge the suite really runs (Assay's default), never a cheaper stand-in.
+  const results = await Promise.all(judged.map(a => judge(output, { ...a, value: withTasteValue(a.value as string, taste) }).catch(() => null)));
   const ok = results.filter((r): r is NonNullable<typeof r> => !!r && !r.unavailable && typeof r.score === 'number');
   if (ok.length < judged.length) return { median: null, verdict: 'unavailable' as const, perVendor: {} };
   const verdict = ok.every(r => r.passed) ? 'pass' as const : 'fail' as const;
Verified after fix

Probe: bun -e 'import { judgeText } from "./skills/Calibrate/Tools/Calibrate.ts"; let seen; await judgeText("A short post.", [{ type: "llm-rubric", value: "Is it clear?" }], null, async (_o, _a, opts) => { seen = opts; return { score: 1, passed: true }; }); console.log("judge opts:", JSON.stringify(seen)); process.exit(seen?.level === "low" ? 1 : 0)' · exit 0 · captured 2026-11-23T23:34:08.411Z

judge opts: undefined
Environment
  • OS: macOS 27.2.1 (arm64)
  • Harness: claude-code
  • bun: 1.4.5 · git: 2.54.0
  • Doctor broken: none
主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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