Files
CatoandClaude Opus 5.5 d73ac3c391 refactor(speech): the engine is @bitbaum/speechkit now — and grammar stops presenting a guess as the answer (#125)
* refactor(speech): the engine is @bitbaum/speechkit now — and grammar stops presenting a guess as the answer

Heidi's speech engine — signal measurement, the evidence rule, fluency,
hesitations, dialect markers, grammar mapping, the LanguageTool client — moved
into github:bitbaum/speechkit#v1.0.0 (dist committed, no build step; npm once
bootstrapped). 20 files leave this repo; 82 of their tests moved with them and
run there (90 in the package). Heidi keeps what is Heidi's: which measures it
CLAIMS (capability.ts), the Zurich pack's marker tests, and the product.

The package reads no environment, so the route now passes
LANGUAGETOOL_URL itself.

THE WIRED GUARD, REBUILT. It checked that a measure's FILE was reachable from
app/; once the engine is a package nothing imports its internal files. Each
measure now names its entry function and the test requires something reachable
to import it. Mutation-proven: dropping checkGrammar from the route fails it by
name. The source-link test also now checks the file EXISTS — the old one checked
only that a string looked like a path, which is how /technology linked readers
to a gate.ts that never existed. The links are real links now.

GRAMMAR SHOWED A WRONG CORRECTION. Measured on the live site after #123:
LanguageTool offers "dem Buch" FIRST and "das Buch" second for "Er hat den Buch
gelesen", and the page showed only the first — a wrong fix presented as the
answer. All alternatives now, and a line saying which one fits depends on what
the speaker meant (seven languages).

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

* fix(investors): count the tests that moved, instead of overstating them

The data room claimed 111 test files; the speech engine's 11 moved into
@bitbaum/speechkit, leaving 103 here. The ratchet caught it. The figure is
now 842 across 103, plus its own row for the open-source engine (94 tests,
checkable at github.com/bitbaum/speechkit) — moved, not dropped.

Also: ADVERTISED_TEST_FILES was declared below METRICS, so the string could
not reference it and carried its own literal 111 — 'said once' was false. It
is declared above and used now.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 02:53:58 -07:00
..