Skip to content

feat(plugins): Add conversation classification analytics#1025

Draft
dcramer wants to merge 4 commits into
mainfrom
codex/conversation-classification-913
Draft

feat(plugins): Add conversation classification analytics#1025
dcramer wants to merge 4 commits into
mainfrom
codex/conversation-classification-913

Conversation

@dcramer

@dcramer dcramer commented Jul 23, 2026

Copy link
Copy Markdown
Member

Adds an optional conversation-classification plugin that categorizes every completed Junior turn after reply delivery. Each background task writes one idempotent analytics row with a configurable job taxonomy, confidence, model provenance, owner/visibility scope, and bounded retention. Reporting can select the earliest row per conversation for initial-intent analytics or use all rows to study how requests change over time.

The classifier only sends authoritative user instructions and tool success/error status to the structured model. Ambient thread context, assistant text, and tool-result bodies are excluded, and common credential formats are redacted. This also adds the packaged migration, example-app registration, public setup guide, release/CI wiring, deterministic persistence and privacy coverage, and an eight-case real-model taxonomy eval.

Fixes #913

Classify each completed Junior turn asynchronously with a configurable taxonomy, bounded prompt projection, retention cleanup, and per-task idempotency.

Add package, migration, example registration, docs, CI coverage, deterministic tests, and semantic evals.

Fixes #913
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 23, 2026 11:16pm

Request Review

Comment thread .github/workflows/ci.yml
Comment thread packages/junior-conversation-classification/package.json Outdated
Trigger plugin CI for classifier-only changes and align the new package with the current lockstep release version.
Comment thread packages/junior-conversation-classification/src/classify.ts
Redact GitHub, AWS, Google, and JWT credential formats before conversation instructions reach the classification model.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1e3d1c6. Configure here.

Comment thread packages/junior/src/chat/plugins/task-runner.ts Outdated
Resolve ambiguous private-origin Slack turns against the stored destination visibility so scheduled public posts retain public analytics scope.
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.

Classify conversations for analytics

1 participant