jmclark-lab rips out the AI engine and bolts on an audit trail

A permanent, no-going-back switch to a new AI model - paired with a record of exactly what wrote every answer.

infrastructurecompliance

jmclark-lab retired the fork's old AI model and moved wholesale to Sakana AI's Fugu, a newer large language model. No toggle, no phased rollout - a clean, permanent swap, routed through a single internal layer so the rest of the system no longer cares which model sits underneath.

Three things landed together:

  • A hard model swap. Every answer now comes from Fugu; the old engine is gone entirely.
  • A provenance stamp. Each assistant message is tagged with the exact model that produced it - success, cancellation, or error alike - so any past answer can be traced to its source long after the fact.
  • A boot-time guardrail. The system now refuses to start without the model's access key, turning a silent misconfiguration into an obvious, immediate failure.
So what Anyone who has to answer "which model wrote this?" months later - GCs, compliance leads, litigation teams - should note the provenance work as much as the engine swap.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

10 commits from jmclark-lab/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
108d290d feat: types.ts - Provider=sakana, UserApiKeys.sakana Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
f18e6ea6 Add Fugu models and update model provider function Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
1ace046e Update index.ts Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
303b65d0 Update index.ts Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
89735836 Update .env.example Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
3e3b6946 Create README.md Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
fe2ca9ed Create sakana.ts Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
f9ddb40a Add tests for streamSakana and completeSakanaText Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
45e56f21 feat(chat): persist Sakana Fugu provider_metadata on assistant messages Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
882fb97e feat(db): add provider_metadata column to chat_messages Julio G. Martinez-Clark 2026-06-23 ↗ GitHub
This migration adds a new column 'provider_metadata' to the 'chat_messages' table to store information about the LLM provider and model used for each assistant response.

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-700.md from inside the repo you want the changes in.

⬇ Download capture-thread-700.md