V1]individual] auto label suggestion#1279
Open
clintjeff2 wants to merge 2 commits into
Open
Conversation
…-suggestion Add auto label suggestion core engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
tools/v1/individual/auto-label-suggestion/includingservices.ts,types.ts, and anindex.tsexport surface that exposessuggestAutoLabelsandvalidateAutoLabelEmail.AUTO_LABEL_TAXONOMY) and rule-based matching using local regex patterns, evidence extraction, scoring,priority-based ranking, and aMAX_SUGGESTIONScap of three.label,confidence(high|medium|low),reason, andevidence, and preserved existing user labels separately from suggestions.services.test.ts) and avitestconfig plus README and review notes that document the API, inputs/outputs, and privacy/no-network guarantees.Testing
fixtures/email-label-cases.jsonandservices.test.ts(tests are present but not executed to completion in this environment).npm exec vitest run -- --config tools/v1/individual/auto-label-suggestion/vitest.config.ts, but the run failed due to registry access returning403 Forbiddenwhen fetchingvitest(dependencies are not installed here).npx tsc --noEmit --pretty false, but type checking failed in this environment because local dependency type definitions (e.g.,vite/client) are not installed.Closes #325