Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit c4332c83170a81226cc8457303eed73ea0637c73
parent 49721fb3b62aecd3548700c9b07c42b313ca39d8
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 17 Oct 2026 01:26:11 -0400

editor: the bench and verdict-proposal tests answer in v3's shape (parts, checkable, reason) after the bench-v3 merge; the bench-verdicts body takes dedupe (a boolean, never with itemsFrom)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/app/api/ops/_benchVerdicts.test.ts | 12++++++++----
Meditor/app/api/ops/_verdicts.test.ts | 2+-
Meditor/app/api/ops/bench-verdicts/route.ts | 5+++--
3 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/editor/app/api/ops/_benchVerdicts.test.ts b/editor/app/api/ops/_benchVerdicts.test.ts @@ -79,11 +79,15 @@ test("the body: models required, the run id and reports checked, numbers as numb assert.deepEqual(parseBenchVerdictsBody({ models: ["q"], itemsFrom: "vb-r28" }), { models: ["q"], itemsFrom: "vb-r28" }); assert.throws(() => parseBenchVerdictsBody({ models: ["q"], itemsFrom: "../x" }), /"itemsFrom" is a run id/); assert.throws(() => parseBenchVerdictsBody({ models: ["q"], itemsFrom: "vb-r28", window: 30 }), /drop the window/); + // Release 32 R8: dedupe is a boolean, off unless asked, never with items-from. + assert.deepEqual(parseBenchVerdictsBody({ models: ["q"], dedupe: true }), { models: ["q"], dedupe: true }); + assert.throws(() => parseBenchVerdictsBody({ models: ["q"], dedupe: "yes" }), /"dedupe" is true or false/); + assert.throws(() => parseBenchVerdictsBody({ models: ["q"], itemsFrom: "vb-r28", dedupe: true }), /drop the dedupe/); }); test("an API and a local model: a bench-verdicts job on draft:local, every answer on disk, the API spend in the ledger, ollama unloaded", async () => { - for (let i = 0; i < 7; i++) api.push(toolTurn("answer", { verdict: "CORROBORATED", reason: "she says so" })); - for (let i = 0; i < 7; i++) ol.push(jsonReply({ verdict: "NOT_FOUND", reason: "not in the window" })); + for (let i = 0; i < 7; i++) api.push(toolTurn("answer", { parts: [{ part: "she said it", finding: "shown" }], checkable: true, reason: "she says so" })); + for (let i = 0; i < 7; i++) ol.push(jsonReply({ parts: [{ part: "she said it", finding: "not shown" }], checkable: true, reason: "not in the window" })); const out = await enqueueVerdictBench({ models: ["claude-sonnet-5-5", "qwen3:8b"], run: "vb-editor" }, deps()); assert.ok(out.result.ok && "run" in out, (out.result as { error?: string }).error); assert.equal(out.run, "vb-editor"); @@ -110,7 +114,7 @@ test("an API and a local model: a bench-verdicts job on draft:local, every answe }); test("API models only run on draft:api; past the day's cap an API run is refused, a local one is not", async () => { - api.push(toolTurn("answer", { verdict: "CORROBORATED", reason: "ok" })); + api.push(toolTurn("answer", { parts: [{ part: "it", finding: "shown" }], checkable: true, reason: "ok" })); const one = await enqueueVerdictBench({ models: ["claude-haiku-4-5"], run: "vb-api", limit: 1 }, deps()); assert.ok(one.result.ok && "run" in one); assert.equal(getRegistry().get(one.result.jobId)!.queueKey, "draft:api"); @@ -122,7 +126,7 @@ test("API models only run on draft:api; past the day's cap an API run is refused const refused = await enqueueVerdictBench({ models: ["claude-sonnet-5-5"], run: "vb-late" }, deps()); assert.equal(refused.result.ok, false); assert.match((refused.result as { error: string }).error, /daily cap/); - ol.push(jsonReply({ verdict: "CORROBORATED", reason: "ok" })); + ol.push(jsonReply({ parts: [{ part: "it", finding: "shown" }], checkable: true, reason: "ok" })); const local = await enqueueVerdictBench({ models: ["qwen3:8b"], run: "vb-local", limit: 1 }, deps()); assert.ok(local.result.ok && "run" in local); void local.result.stream.cancel(); diff --git a/editor/app/api/ops/_verdicts.test.ts b/editor/app/api/ops/_verdicts.test.ts @@ -80,7 +80,7 @@ test("refused until a model clears the bar; then a report-draft job on draft:loc assert.match((unlisted.result as { error: string }).error, /has not cleared the verdict bench's bar/); const before = await readFile(articleFile(paths, id), "utf8"); - for (let i = 0; i < 3; i++) ol.push(jsonReply({ reason: "the window shows the opposite", verdict: "CONTRADICTED" })); + for (let i = 0; i < 3; i++) ol.push(jsonReply({ parts: [{ part: "what she said", finding: "shown wrong" }], checkable: true, reason: "the window shows the opposite" })); const out = await enqueueReportDraft({ task: "verdicts", article: id }, deps({ verdicts: { ...gen.verdicts, models: ["qwen3:8b"], window: { mode: "turn", seconds: 30 } } })); assert.ok(out.result.ok, (out.result as { error?: string }).error); assert.equal("iteration" in out ? out.iteration : null, 0); diff --git a/editor/app/api/ops/bench-verdicts/route.ts b/editor/app/api/ops/bench-verdicts/route.ts @@ -5,7 +5,7 @@ import { jobResponse, ops } from "../_lib"; export const dynamic = "force-dynamic"; -// POST { models, run?, reports?, window?, windowMode?, maxUsd?, limit?, itemsFrom? } +// POST { models, run?, reports?, window?, windowMode?, maxUsd?, limit?, itemsFrom?, dedupe? } // -> { ok: true, jobId, run } // // The verdict bench (release 28 M7), as a `bench-verdicts` job: every ruled @@ -17,7 +17,8 @@ export const dynamic = "force-dynamic"; // names a run to continue (its answered pairs are skipped). The results are // local-only: `.generation/bench/verdicts/<run>/` (umtool's /bench reads // them). Release 29 V1: `windowMode` ("turn": the cited speaker's turn), -// a stratified `limit`, `itemsFrom` (an earlier run's exact items). +// a stratified `limit`, `itemsFrom` (an earlier run's exact items). Release 32 +// R8: `dedupe: true` asks a repeated claim once (off by default). // `job cancel` stops it; the log ends `@@bench-verdicts {json}`. // // AN ADAPTER: the refusals are the controller's (controller/benchVerdicts.ts).