Repository navigation
bench(systemone): measure local /_decide for discussion #1012 email labelling - #1026
Merged
xerj-org merged 1 commit intoSep 26, 2026
Merged
Conversation
…belling
discussions/1012 proposes an optional Jev-classification stage in `xerj
autoindex`, and asks (Q2) whether local-only classification from labelled
history is an acceptable alternative to a hosted call. That local path
already exists (POST /_decide, engine/crates/xerj-api/src/systemone_api.rs)
and needed no new code - this only measures it, per the discussion's own
stated next step ("a small measurement on a labelled dataset... before
writing any code").
Method: 260 originally-authored synthetic emails across the discussion's
own 4 example labels (invoice/newsletter/personal/needs-reply), 200 train
/ 60 held-out test, k=10 (matching the published Banking77/SMS-spam
decisions-as-retrieval numbers). A first run scored a suspicious 100% -
the templated generators give each label near-exclusive vocabulary - so a
second, hand-authored "hard" tier (8 emails) deliberately crosses that
vocabulary (a personal note with a dollar figure, an invoice with no word
"invoice" in it, etc).
Result (rc.76, local node, lexical embedder, no egress):
easy tier: 60/60 = 1.000 accuracy, mean confidence 1.000
hard tier: 5/8 = 0.625 accuracy, mean confidence 0.902
The hard-tier misses are wrong AND confident (0.836-1.000), not wrong and
hedging - the same shape of miscalibration the discussion's own text flags
for the hosted path (ECE 0.31 on FiQA). README.md answers the discussion's
four open questions from this and states plainly what a real autoindex
integration would still need to build; none of that is written here.
Written and measured by an AI agent (Claude Code), pushed from Vinz2168's
account at their request.
Vinz2168
force-pushed
the
feat/systemone-classify-email-proto
branch
from
September 23, 2026 06:09
5d972c3 to
df0ce65
Compare
Vinz2168
added a commit
to Vinz2168/xerj
that referenced
this pull request
Sep 23, 2026
…sion Agent field report, per AI_CONTRIBUTIONS.md's baseline ask of every agent that installs and runs XERJ. Filed alongside PR xerj-org#1026 and a comment on discussions/1012. Written by an AI agent (Claude Code), pushed from Vinz2168's account at their request.
Amakurai
pushed a commit
to Amakurai/xerj
that referenced
this pull request
Sep 27, 2026
…, rc.78 queue The 2026-09-21 review of this file was stale within hours: xerj-org#950 closed 19:33, xerj-org#941 19:38, xerj-org#1015 20:49 (all 2026-09-21), xerj-org#874 2026-09-22, and the stage-1 gating trio xerj-org#937/xerj-org#938/xerj-org#939 closed the same evening — every one recorded here as open or "under way". This pass re-checks every status claim against live tracker state and rolls the file forward: - Next release: the two "in flight" items (xerj-org#1015, xerj-org#950) are closed with fixes on main riding to rc.78 — the section now records what actually landed since the rc.77 tag (xerj-org#1009, xerj-org#1017, xerj-org#1018, xerj-org#1020, xerj-org#1021, xerj-org#1023, xerj-org#1025, xerj-org#1026, xerj-org#1033, xerj-org#1034) with PR links, including xerj-org#874's budget met at ~3x margin (206 -> 64 kB per idle index) and discussion xerj-org#1012's email-labelling measurement (1.000 templated tier / 0.625 at 0.902 confidence on the hard tier — wrong-and-confident). - Open defects: now xerj-org#1031 and xerj-org#1032 only; xerj-org#1015/xerj-org#950 removed (closed); trackers sentence corrected (xerj-org#941, xerj-org#874 closed — only xerj-org#298 remains by design). - GA gate: "Close the CHANGELOG gap" marked closed 2026-09-26 (the rc.19-rc.70 backfill, PR xerj-org#1035); the record-complete note replaces the gap warning under "Shipping today". - Zero-token: stage-1 gating trio recorded as fixed (xerj-org#991, xerj-org#995, xerj-org#979) with the old measured costs kept as the before-state; the xerj-org#940 hash-seed spread annotated as a pre-fix measurement; stage-2 object storage marked done (xerj-org#965 wired in rc.77 — the old bullet contradicted this file's own "Shipping today" section); mail ingest "unreleased" corrected to "shipped in rc.75"; three stale "In flight:" labels on landed stage-1 items relabelled "History:". - Mail-ingest memory line: xerj-org#948's runaway is fixed (xerj-org#1002) — the line now carries the fixed numbers and points at xerj-org#1032 for the residual. Review line updated to 2026-09-26 (machine-checked format), scoped honestly as a desk review. The milestones line is true again: rc.78 milestone created, all four open issues triaged (xerj-org#1030/xerj-org#1031/xerj-org#1032 -> rc.78, xerj-org#298 -> GA).
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.
Summary
#1012 proposes an optional Jev-classification stage in
xerj autoindexand asks whether local-only classification from labelled history is an acceptable alternative to a hosted call. That local mechanism already ships —POST /_decide(engine/crates/xerj-api/src/systemone_api.rs), a weighted k-NN vote over a labelled-history index, zero egress — so this adds a benchmark that measures it, per the discussion's own stated next step ("a small measurement on a labelled dataset... before writing any code"). No engine code changed; noxerj-autoindexwiring yet.invoice/newsletter/personal/needs-reply. 200 train / 60 held-out test, k=10 (same k as the published Banking77/SMS-spamdecisions-as-retrievalnumbers).Result (verified, rc.76, local node, lexical embedder, no egress)
The hard-tier misses are wrong and confident (0.836–1.000), not wrong-and-hedging — the same shape of miscalibration the discussion's own text flags for the hosted path (ECE 0.31 on FiQA), just measured on the local path instead.
README.mdanswers the discussion's four open questions from this measurement and states plainly what a realautoindexintegration would still need (a CLI flag, an abstain-tolerant pipeline step, a decision on how the labelled-history index gets built) — none of that is written here.What I verified vs. assumed
Verified: built
xerj-serverfrom this branch'smain(rc.76), ran a throwaway local node, executedgen_corpus.pyandrun.pyend to end against it, numbers above are fromresults/run.jsonproduced by that run.Assumed / not tested: anything about real mailboxes (corpus is synthetic by design — see README's "What this is not" section); anything about the hosted Jev path (out of scope — its client would need extending first, per the discussion's own text); and the right
decisions.min_confidencethreshold for production use (n=8 on the hard tier is too small to tune it).Test plan
python3 gen_corpus.pyregeneratescorpus.jsondeterministically (seed 7)XERJ_URL=... python3 run.pyreproduces the table above against a locally built nodeengine//xerj-autoindexcode touched — nothing to build or gateAn agent (Claude Code) wrote this PR and ran the measurement above.
🤖 Generated with Claude Code