Renumber spec 001 decision placeholders to D-040–D-051; record the Danish publication

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas WintherandClaude Opus 5.5 committed 2026-10-30 01:47:27 +01:00
1 parent 30969e86b7
commit 0632f7843b
71 files changed
+244 -236

No files matched your search

+5 -5
View File
@@ -3,7 +3,7 @@ import { existsSync, readFileSync } from "node:fs";
import { join } from "node:path";
/**
* Tripwires for the patched, pinned Transformers.js runtime (D-WS1a).
* Tripwires for the patched, pinned Transformers.js runtime (D-040).
* `@huggingface/transformers` carries a `bun patch` (D-027/D-028) keyed by
* its exact version; a bump that forgets to regenerate the patch would leave
* the app working but silently bring back the mobile OOM. These checks fail
@@ -48,22 +48,22 @@ describe("@huggingface/transformers runtime", () => {
expect(body).toContain("for (const name of Object.keys(names))");
});
test("Whisper generate still takes the seek loop when max_new_tokens is unset (D-021, D-WS1b)", () => {
test("Whisper generate still takes the seek loop when max_new_tokens is unset (D-021, D-042)", () => {
// The worker's `max_new_tokens: 440` exists only to dodge this branch.
// If upstream changes the condition, re-measure D-021 before touching it.
const source = read(join(PKG_DIR, "src/models/whisper/modeling_whisper.js"));
expect(source).toContain("if (generation_config.return_timestamps && !kwargs.max_new_tokens)");
});
test("onnxruntime-web is the build D-WS1c re-tested 8-bit decoders on at the default optimization level", () => {
test("onnxruntime-web is the build D-043 re-tested 8-bit decoders on at the default optimization level", () => {
// D-014's "basic" cap was dropped because this build loads the q8 merged
// decoders at every graphOptimizationLevel. A different build needs the
// D-WS1c session-creation check re-run before it ships.
// D-043 session-creation check re-run before it ships.
const ortWeb = JSON.parse(read(join(ROOT, "node_modules/onnxruntime-web/package.json"))).version;
expect(ortWeb).toBe("1.31.0-dev.20260914-8d85527a0");
});
test("worker leaves WASM sessions at the default graph optimization level (D-WS1c)", () => {
test("worker leaves WASM sessions at the default graph optimization level (D-043)", () => {
const worker = read(join(ROOT, "src/worker/inference.worker.ts"));
expect(worker).not.toContain("graphOptimizationLevel");
});