Files
ai-kit/test
4c7ededd8d feat: the model registry and the grounding harness move into the engine (#19)
Phases 1–2 of the fleet AI-engine plan: ai-kit stops being only the
transport layer and gains the two modules every adopter re-invented.

ai-kit/registry — one SSOT for every callable model id. Two incidents, two
invariants: a checker that does not enumerate its subjects cannot report the
id it never knew about (eight days of model_not_found, 2026-08-18), so
require() throws for anything unregistered and idsForVendor() IS the
enumeration a catalog check walks; and three apps silently billed on
fallback because a `:free` suffix was the whole paid/free boundary, so paid
is a required FIELD and the validator refuses an entry whose flag
contradicts its own price or id. freeOnly() is the platform-key guard
(unregistered ids are dropped too — an unknown price spends someone's money
only when a person decides it does); toolCapable() carries the probe
verdicts (native / text / none / unprobed — five of nine probed free models
only speak the text protocol).

ai-kit/grounding — facts, contract, and the deterministic fabrication check,
lifted from fleetcrown/src/lib/agent/core (the canonical copy of the
FleetCrown↔OrangeCat mirror). The mirror's README called the duplication
"deliberate and temporary" and named this extraction as the exit. Two
mechanical deltas from verbatim: `.js` extensions on relative imports (pure
ESM) and two null-guards under this package's noUncheckedIndexedAccess.
Adopting apps delete their copies and the SHA-256 drift check with them.

Both are subpath exports, not root re-exports — the v0.4.0 lesson (one
import path per concern) and zero collision with the root export surface.

verify green: lint, typecheck, build, 75/75 tests.


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-29 10:45:13 +02:00
..