mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 14:17:25 +01:00
* feat(record): a white paper, a roadmap and a changelog — on bip-kit's contract Three pages a project making this many claims has no business not having, and the fleet package that owns two of those shapes, finally adopted. BIP-KIT. The register lists it as "blog, roadmap, changelog on your product site" with nine adopters and Heidi absent. Reading the contract rather than the blurb: `RoadmapDoc`, `RoadmapBucket` and `ChangelogEntry` are the right shapes as they stand — and `ChangelogEntry`'s own comment says "not a git log", which is the distinction this page had to get right. Its heavy peers (shiki, mermaid, katex) are declared optional and none is pulled. What is NOT adopted is `bip-kit/react`: Heidi has its own tokens and type scale, and the package ships the contract separately for exactly that case. Not adopted for the ESSAYS, and the reason is worth recording so nobody re-runs it: bip-kit parses markdown into 21 block types and has no `contrast` block, which is the one Heidi-specific block — dialect forms set in the dialect face with `lang`. Retrofitting would lose it. THE WHITE PAPER answers the question the site does not: not "why these teaching choices" (`/method`), not "what can a machine do with this language" (`/technology`), but why the SOFTWARE is shaped like this. Six sections — the market a learner cannot inspect, the variety as data, the deterministic gate and the three guards beside it, the overclaim register, what the device keeps, and how to check the lot in an afternoon. Every section ends in a door: a page you can open rather than a paragraph asking to be trusted. §2's argument is Akerlof's, so `sources.ts` now cites Akerlof 1970 and the orphan check knows the paper is a citing surface. THE ROADMAP carries no dates. Heidi is twelve days old — first commit 2026-09-10 — and a date is a promise a twelve-day-old project has no standing to make; the ordering carries the argument instead. A blocked item names its blocker specifically enough that a reader could be the one who removes it (the listening lab: one commercially-cleared dialect voice, nothing else). And the standing refusals from §8 are on the same page as the plans, because a roadmap listing only what we want to build is a wish list. THE CHANGELOG is curation, not history: nine entries out of ninety-three merges. Fix rows carry the same weight as features and say what was wrong — `/about` promises this project publishes the parts that did not work, and a changelog with no embarrassing rows is proof that promise is decorative. Argument in German and English, chrome in all seven — the fourth time this repo has made that call, for the same reason. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(investors): the numbers were five days stale, and nothing said when The data room advertised "65 merged pull requests" and "400+ tests across 45 files". The true figures today are 92 and 814 across 91. The read-on date existed — in a source comment, where no reader could see it. Nobody was misled in the dangerous direction that time, and that is luck rather than design: the mechanism that let a figure go stale downward lets one go stale upward the first time a file is deleted. On a page whose entire argument is that every claim has a command or a URL beside it, an undated number is not merely old — it is unverifiable. So the page now prints "Counted 22 September 2026" under the grid, and `investors.test.ts` enforces the asymmetry that actually matters: the room may UNDERSTATE the repository and may never overstate it. Adding tests never fails it; deleting them does, which is the moment the sentence stops being true. Proven by mutation. It also reuses `FORBIDDEN_CLAIMS` from the sector page rather than keeping a second register of forbidden phrases — two lists drift, and the one that drifts is the one nobody is reading when they write the sentence. And two sections now point outward instead of restating: "what money would buy" links to the public roadmap, where the same ordering is argued with the standing refusals beside it — a private list that differs from the public one being exactly what an investor is right to check for. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * feat(technology): which model answers you, read from the chain itself `/technology` published what the FIELD can do with Swiss German, with the numbers, so a reader can check our claims against it. It never answered the question a reader asks next: and which model is answering me? A product that asks to be checked and then will not say what is behind the curtain has answered the easy half. READ FROM `@bitbaum/ai-kit` AT RENDER, not written into a dictionary. A list of model names in prose goes stale the first time the chain changes, and it goes stale silently — the page keeps naming a model retired months ago, which is the exact kind of confident falsehood this site exists to avoid. The package owns the chain; the page now reads the same object the request does. `engine.ts` is a projection in the sense `display.ts` means it, and `engine.test.ts` enforces the projection rather than trusting it: exactly three fields survive, no environment variable name appears anywhere in the output, the host is a hostname and not an API path wearing the costume of a privacy statement, and there is more than one provider — one provider is not a chain, it is a dependency. THE TWO SENTENCES UNDERNEATH ARE THE POINT. A reader shown an ordered list will read it as a ranking, and that would be us inventing a quality claim out of a rate limit: the chain is ordered by SCARCITY, and whoever has least capacity is drained last. And none of these models is the authority on Zurich German — the pack is, the gate is not itself a model, and with no key the route answers 503 rather than pretending. Deliberately absent: any claim about what a given model can DO. A capability is observed from real traffic, never declared. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
58 lines
2.4 KiB
TypeScript
58 lines
2.4 KiB
TypeScript
import { test, describe } from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { freeChain } from "@bitbaum/ai-kit";
|
|
import { engineChain } from "./engine.ts";
|
|
|
|
/**
|
|
* The projection keeps what a reader may see and drops the rest.
|
|
*
|
|
* Same discipline as `display.test.ts` one floor up, and for the same reason:
|
|
* a projection whose only guarantee is that somebody remembered to write it
|
|
* carefully will leak the first time a field is added upstream. `ai-kit` owns
|
|
* the chain and will grow fields; this asserts that growth cannot reach the
|
|
* page by accident.
|
|
*/
|
|
describe("the published model chain", () => {
|
|
test("nothing but provider, host and models survives", () => {
|
|
for (const link of engineChain()) {
|
|
assert.deepEqual(
|
|
Object.keys(link).sort(),
|
|
["host", "models", "provider"],
|
|
"a field reached the page that the projection does not name",
|
|
);
|
|
}
|
|
});
|
|
|
|
test("no environment variable name is published", () => {
|
|
/**
|
|
* `keyEnv` and `modelsEnv` are not secrets and printing them is still free
|
|
* reconnaissance for nothing a reader wants. An exhaustive key check above
|
|
* already covers this; asserting the VALUES too catches the other shape of
|
|
* the mistake — a host or a model id that happens to carry the name.
|
|
*/
|
|
const published = JSON.stringify(engineChain());
|
|
for (const link of freeChain()) {
|
|
for (const name of [link.keyEnv, link.modelsEnv, link.dailyTokensEnv]) {
|
|
if (!name) continue;
|
|
assert.ok(!published.includes(name), `the page publishes ${name}`);
|
|
}
|
|
}
|
|
});
|
|
|
|
test("the host is a hostname, not a URL with a path on it", () => {
|
|
// The point of printing the host is "this company receives your question".
|
|
// A full base URL with `/openai/v1` on the end is an API detail wearing the
|
|
// costume of a privacy statement.
|
|
for (const link of engineChain()) {
|
|
assert.ok(!link.host.includes("/"), `${link.provider} publishes a path: ${link.host}`);
|
|
assert.ok(!link.host.startsWith("http"), `${link.provider} publishes a scheme: ${link.host}`);
|
|
}
|
|
});
|
|
|
|
test("there is more than one provider, which is the point of a chain", () => {
|
|
// One provider is not a chain, it is a dependency — and the failure this
|
|
// whole shape exists to survive is a retired model taking the product down.
|
|
assert.ok(engineChain().length >= 2, "the free chain should have a fallback in it");
|
|
});
|
|
});
|