From 37b43c41fc97a3649d729ca68e084dd9639f41b0 Mon Sep 17 00:00:00 2001 From: Omkar Tripathi <38633467+triggeredcode@users.noreply.github.com> Date: Tue, 20 Oct 2026 21:42:51 +0530 Subject: [PATCH] docs(site): publish eval results --- apps/desktop/electron/site.test.ts | 22 +++++++ site/index.html | 90 +++++++++++++++++++++++++ site/style.css | 102 +++++++++++++++++++++++++++++ 3 files changed, 214 insertions(+) diff --git a/apps/desktop/electron/site.test.ts b/apps/desktop/electron/site.test.ts index a32718f..060194c 100644 --- a/apps/desktop/electron/site.test.ts +++ b/apps/desktop/electron/site.test.ts @@ -85,6 +85,28 @@ describe("site/index.html", () => { expect(tag).toContain('href="https://github.com/triggeredcode/lucid/releases/latest"'); }); + it("publishes the routing experiment with its decision and measurement context", () => { + const evidence = html.match(/([\s\S]*?)<\/section>/)?.[1] ?? ""; + expect(evidence).toContain("Measured before it ships."); + expect(evidence).toContain("Routing experiment, dataset v2"); + expect(evidence).toContain("Current explicit-state heuristic"); + expect(evidence).toContain("Nomic Embed Text"); + expect(evidence).toContain("Qwen3 Embedding 0.6B"); + expect(evidence).toContain("Gemma 3 1B"); + expect(evidence).toContain("Apple M4 Pro"); + expect(evidence).toContain("synthetic fixtures"); + expect(evidence).toContain("not every computer or model"); + expect(evidence).toContain( + 'href="https://github.com/triggeredcode/lucid/blob/main/docs/evals.md"', + ); + + const headings = evidence.match(//g) ?? []; + const rows = [...evidence.matchAll(/([\s\S]*?)<\/tr>/g)].slice(1); + expect(headings).toHaveLength(7); + expect(rows).toHaveLength(3); + for (const row of rows) expect(row[1]?.match(//g)).toHaveLength(7); + }); + it("keeps every command and its Copy button side by side, with the command written exactly as shown", () => { // The commands are in
: any space or line break the formatter adds inside shows on the page, and a Copy button placed over
     // the text hides it. So each box is a 
 that starts at its first character, then the button, never over it.
diff --git a/site/index.html b/site/index.html
index 7c747ce..2aaa682 100644
--- a/site/index.html
+++ b/site/index.html
@@ -46,6 +46,7 @@