Skip to content

refactor(cat): the grounding harness is imported, not mirrored - #846

Merged
github-actions[bot] merged 1 commit into
mainfrom
refactor/import-grounding-from-ai-kit
Aug 29, 2026
Merged

refactor(cat): the grounding harness is imported, not mirrored#846
github-actions[bot] merged 1 commit into
mainfrom
refactor/import-grounding-from-ai-kit

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

OrangeCat half of the mirror retirement (fleet AI-engine plan, Phase 2). src/services/agent-core deleted; both apps now import ai-kit/grounding (v0.6.2). Jest needs ZERO config: the package ships a CommonJS twin behind an exports require condition — the fix lives in the package per ai-kit's own v0.4 lesson, not in this repo's jest config.

  • First ai-kit install here; the registry-holdout reason is being resolved engine-side (ai-kit/registry), per SHARED.md's parked human decision
  • Mirror-integrity test half removed (nothing left to check; it also self-skipped in CI); Cat-policy half unchanged, 12/12 green on the package import
  • type-check clean locally; CI runs the full verify bundle

FleetCrown twin PR follows — its copy dies the same way.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Phase 2 of the fleet AI-engine plan, OrangeCat half. src/services/agent-core
was a byte-identical mirror of FleetCrown's agent/core — "deliberate and
temporary" by its own README, which named extraction to a package as the
exit. ai-kit v0.6.2 is that exit: both apps import ai-kit/grounding, and the
mirror plus everything that existed only to police it is deleted.

What made this repo the hard consumer: jest. This config's own NOTE says it —
the ts-jest transform compiles only .ts/.tsx, so an ESM-only .js dependency
cannot be whitelisted via transformIgnorePatterns. Fixed in the package, not
here (ai-kit's v0.4 lesson): v0.6.2 ships a CommonJS twin of the grounding
and registry subpaths behind an exports `require` condition, so jest resolves
it with ZERO config in this repo. The grounding suites pass unmodified.

agent-core-grounding.test.ts loses its mirror-integrity half: there is no
mirror left to check. (That half also self-skipped in CI, which clones one
repo at a time — it only ever ran on a laptop with both checkouts side by
side. A gate that runs where nobody is looking and skips where everybody is
was part of why the extraction won.) The Cat-policy half — invented
attributes about the user's own records are caught, general economic
knowledge is left alone — is unchanged and keeps running.

First ai-kit install in this repo. The original holdout reason (this repo's
model registry is richer than ai-kit's chain) is being resolved in the
direction SHARED.md asked a human to pick: the engine gained a registry
(ai-kit/registry, with the paid/free boundary as a validated field) rather
than this repo keeping a second source of model truth. Migrating
config/ai-models.ts onto it is the next phase, not this commit.

type-check clean; grounding suites 12/12 on the package import.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
@github-actions
github-actions Bot merged commit f3fd2a5 into main Aug 29, 2026
6 checks passed
@github-actions
github-actions Bot deleted the refactor/import-grounding-from-ai-kit branch August 29, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant