Skip to content

perf(slack): classify thread replies with Jev - #842

Draft
izadoesdev wants to merge 2 commits into
stagingfrom
codex/slack-jev-relevance
Draft

izadoesdev wants to merge 2 commits into
stagingfrom
codex/slack-jev-relevance

Conversation

@izadoesdev

@izadoesdev izadoesdev commented Sep 18, 2026

Copy link
Copy Markdown
Member

Unmentioned follow-ups in engaged Slack threads now use Jev's Boolean evaluation instead of generating a JSON routing decision with Gemini. The classifier uses structured speaker/history context, a compact prompt, a 0.5 decision threshold and a two-second deadline, retaining the existing silent fallback. Returned question IDs, answer types and probability bounds are validated before use.

The evaluator uses pinned @ai-sdk/gateway 4.0.85 with the existing Gateway credential. The application's chat models remain on AI SDK 6. The reply gate is a directly injected function; it reuses the shared Slack message type and the classifier's timeout default. Native AbortSignal.timeout replaces manual timer management. Existing mention, stop-command, Slack Connect and action-permission handling stays in place.

A fresh synthetic holdout of 36 conversations, each repeated twice, produced 68/72 correct Jev decisions versus 67/72 with Gemini. Median classifier latency was 475 ms versus 748 ms; mean cost per request with reported cost was 72% lower. Jev had two false replies, two missed replies and one timeout; Gemini had five false replies and no misses/timeouts. The timeout's cost is unknown. These are classifier measurements on a small synthetic set, not end-to-end Slack performance claims. Prompt and threshold were frozen using separate calibration cases before the holdout. The cleanup preserves that prompt, threshold and provider payload.

Validation:

  • bun run lint
  • bun run check-types — all 33 tasks passed
  • bun run test — all 29 tasks passed; AI suite 1034 passed, 33 skipped
  • Focused Jev classifier and Slack relevance/listener tests — 32 passed, including malformed answers, cancellation, history-read failures, silent fallback and listener injection
  • Independent review of the cleanup and all callers

Scope: reply classification only. Skill/tool/parameter routing is not integrated. No schema or Slack installation changes. No dependent PRs; the package manifest overlaps dependency-update PRs #707 and #807.

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dashboard Ready Ready Preview Sep 18, 2026 9:21pm UTC
databuddy-status Ready Ready Preview Sep 18, 2026 9:21pm UTC
documentation Ready Ready Preview Sep 18, 2026 9:21pm UTC

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 7fa5abbb-600b-4e0c-8f1b-ff74440af455

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@socket-security

socket-security Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​ai-sdk/​gateway@​4.0.85711008798100

View full report

@unkey-deploy

unkey-deploy Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Unkey Deploy

Name Status Preview Inspect Updated (UTC)
links (preview) Ready Visit Preview Inspect Sep 18, 2026 8:37pm

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