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

Đang mở Phù hợp với người mới
#2,936 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
90/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
ai, tooling

Hướng nghiên cứu

Mở skills/Calibrate/Tools/Calibrate.ts tại dòng 624, bên trong judgeText, và tìm Promise.all trên judged truyền { level: 'low' } làm đối số thứ ba cho judge. So sánh với mặc định trong skills/Assay/Tools/Judge.ts (opts.level ?? 'high') để xác nhận override là thứ duy nhất làm giảm level. Bỏ đối số đó, rồi chạy lại phép thử stub bun -e từ issue: xong khi nó in ra judge opts: undefined và thoát với mã 0.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
19.9k
Fork
2.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của danielmiessler/LifeOS

Tất cả issue của danielmiessler/LifeOS

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.