mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-06 03:47:35 +01:00
scripts/eval-cat.mjs runs the 8 canonical entity-type probes (PR #375) against the production /api/cat/chat streaming path and scores right-type / why-line / duplicate-drafts, exiting non-zero below 7/8 on either axis. Hygiene learned from the ad-hoc PR #375 harness: per-probe throwaway conversations (shared history made the model answer the PREVIOUS unanswered probe), run-window cat_memories purge (recall is per-user), full cleanup of cat_conversations/cat_messages after, and daily platform_api_usage reset before+after so the rail and the cap stay clean. Transient free-tier 429s get backoff retries; the eval pins the platform default model so the gate measures the judgment pipeline, not free-model roulette. Box side: scripts/systemd/orangecat-cat-eval.{service,timer} (04:30 UTC, Persistent) — repo is the SSOT; deploy-selfhost.sh now ships the script to /opt/orangecat/scripts/ and (re)installs the units each deploy. On failure the script inserts an in-app notification for the founder via the notifications schema the NotificationDispatcher uses and logs to the unit journal. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>