Repository navigation
bench: measure rc.80 decide gates — #1057/#1064 quality+latency, #1061 flywheel replay - #1088
Merged
Merged
Conversation
… flywheel Motivation: the rc.80 cut gates the System One decide ladder on measured numbers. #1057 (tier-2 zero-shot head, rc.79) and #1064 (the trained xerj-decide-v1 artifact) carry quality/latency bars; #1061 (the decision cache flywheel) carries a Banking77 replay bar. None had been measured through a release-path node. This adds the measurement run to benchmarks/decisions-as-retrieval, the harness the issues name. Method: nodes booted from commit a179e1e ("xerj v1.0.0-rc.78") on private ports 9600-9609 with throwaway data dirs, --embed-mode lexical, --decide-mode local --decide-model-dir <staged xerj-decide-v1>. 8000 The tier-2 runs use a build of that commit with the decide-local cargo feature, because the stock release binary does not include the feature: --decide-mode local on it logs a warning and tier 2 stays off (evidence committed as stock-binary-noop.txt) — itself a release-cut finding. Datasets: the harness's own splits (SMS seed-7 held-out 1,574; Banking77 full 3,080-row test; AG News full 7,600-row test fetched this run, URL + sha256 + licence in PROVENANCE.md). Metrics are eval.py's (acc, 10-bin ECE, conf>=0.8 share, acc@>=0.8). Latency: node under taskset -c 0-7, 30 distinct questions per shape, wall-clock, loadavg recorded. Replay: 2,000-answer cache fill then the remaining 1,080 shuffled (seed 11) test rows; a first label-sorted-split run is preserved and marked as the design error it was. Numbers (all through live nodes): - #1057 FAIL: SMS acc 0.9193 / ECE 0.287 (bars 0.95 / 0.05); AG News 0.2599 vs 0.85 (chance 0.25); Banking77 reported 0.1185, ECE 0.0717, 0% at conf>=0.8 — the choice path reproduces the model card exactly. - #1057 latency PASS: p50 8.4 ms for 30 /_decide noul questions on 8 pinned cores (5-way choice 20.0 ms; 77-way 282.6 ms). Download 0 MB — no download path exists; artifact 28.5 MiB F32, not quantized. - #1064: tier 1 vs tier 2 on identical rows — B77 0.8289 vs 0.1185, SMS 0.9848 vs 0.9193, AG News 0.9182 (cited 2026-09-20 run) vs 0.2599. "Zero-shot head vs trained artifact" collapses to one set of weights: there is no second model and no download path. - #1061 FAIL: as shipped the flywheel caches only 12 answers in 2,000 requests (history answers everything else once any cached doc gives BM25 support, and history answers are never written back), then answers 99.7% of later traffic from that cache at 0.033 accuracy — 4.91% of later traffic at conf>=0.8 (bar 80) at 0.0377 accuracy (bar 0.97). With the gate premise instantiated (2,000 gold answers cached): 19.72% at conf>=0.8 (bar 80, 4x under) at 0.9953 accuracy (bar met). Files: benchmarks/decisions-as-retrieval/README.md (gate table row); results/2026-09-30-rc80gates/ — run-2026-09-30.md (full tables + method), raw per-row outputs (rows.jsonl, rows_history.jsonl, replay_rows.jsonl, summaries, latency30.json), the three runner scripts, PROVENANCE.md, stock-binary-noop.txt.
Records the measured verdicts under [Unreleased]: #1057 quality FAIL (SMS 0.9193/ECE 0.287, AG News 0.2599, Banking77 reported 0.1185), #1057 latency PASS (p50 8.4 ms on 8 pinned cores, 0 MB download, F32 not quantized), #1061 flywheel replay FAIL (cache freezes at 12 docs; 4.91% at >=0.8 conf / 0.0377 acc as shipped; 19.72% at 0.9953 acc with the gate premise's 2,000 gold answers), plus the release-build fact that the stock binary lacks the decide-local feature. Raw outputs and method in benchmarks/decisions-as-retrieval/results/2026-09-30-rc80gates/.
…dropped The verifier flagged PR #1088's body citing results/2026-09-30-rc80gates/run-2026-09-30.md and PROVENANCE.md while neither was in the tree: the root .gitignore's '*.md' rule excluded them from the agent's 'git add' with no warning. Every number the PR cites recomputes from the tracked rows.jsonl/latency30.json/replay_rows.jsonl either way; these two files carry the run narrative and the AG News URL+sha256+licence record.
This was referenced Oct 1, 2026
neoneye
pushed a commit
to agent-memory-atlas-archive/xerj-org--xerj
that referenced
this pull request
Oct 1, 2026
The rc.80 gate measurement (PR xerj-org#1088) caught the stock release binary arming nothing for --decide-mode local: release.yml builds xerj-server with default features, and the decide-local feature was off, so tier 2 of the decide ladder existed only in from-source builds that enabled it by hand. Anyone following the published rc.80 eval card got a silent fallback to the history vote. Root cause: feature gating drifted from the batteries-included rule the binary already follows for neural. Fix: add decide-local to xerj-server's default feature set. - No new dependency: the candle/tokenizers crates it names are already in the default build via neural; xerj-ai is already a direct dep of xerj-server (Cargo.toml:22). - No egress change: decide-local pulls no hf-hub; the published network inventory is unchanged (PR xerj-org#1083's label tests stay green). - Runtime stays OPT-IN: --decide-mode local --decide-model-dir <path> (or XERJ_DECIDE_MODE/XERJ_DECIDE_MODEL_DIR). Without it a node boots on the history vote exactly as before. --no-default-features still drops the tier, same as neural. Verified: cargo build --release -p xerj-server (12m55s, clean) and cargo test --release -p xerj-api decide — 3 passed, 0 failed. Refs xerj-org#1057, gate evidence in PR xerj-org#1088.
neoneye
pushed a commit
to agent-memory-atlas-archive/xerj-org--xerj
that referenced
this pull request
Oct 1, 2026
The packaging half of the ten-item program's rule (discussion xerj-org#1054): a benchmarks/<name> directory with raw results plus a blog post with the losses left in. The gate directories landed through xerj-org#1079, xerj-org#1085, xerj-org#1086, xerj-org#1087, xerj-org#1088 and xerj-org#1090; this is the post. Structure follows the Jev posts (verdict first, wins then losses with readings, then what the next window does about each loss). Every number is verbatim from the committed gate artifacts: - PASS: /_ask macro-F1 0.9975 over 230 pairs, 0 invalid DSL, 3-run determinism, wall-clock p50 1.129 ms vs the 300 ms bar (xerj-org#1076, xerj-org#1079); xerj_map unknown-field 400s 20/30 guessed -> 0/30 map-informed, 100% vs the >=80% bar (xerj-org#1074, xerj-org#1086); calibration FiQA pair-level ECE 0.3109 raw -> 0.0088 held-out vs the <=0.10 bar, temperature 0.3163 published as the failing comparison arm, $0.2125 of provider calls over 648 queries (xerj-org#1080, xerj-org#1087). - FAIL, published as such: the lexical judge loses to its own first stage everywhere measured (0.7045->0.5967, 0.3419->0.2924, 0.2382->0.1650 vs the 0.30 FiQA bar) and stays opt-in with no quality claim per its own rule (xerj-org#1077, xerj-org#1090); the flywheel freezes as shipped (12 of 2,000 cached, xerj-org#1094) and forces 19.72% coverage at 0.9953 accuracy vs the 80%/0.97 bars (xerj-org#1075, xerj-org#1088); the tier-2 decide head misses SMS 0.9193/0.287 vs 0.95/0.05 and AG News 0.2599 vs 0.85, latency 8.4 ms PASS, ships behind the flag with the numbers published (xerj-org#1072/xerj-org#1073, xerj-org#1088). - SPLIT: stemming +0.0160/+0.0179 BM25 nDCG@10 PASS, zero-hit 25->15 vs <=10 FAIL — the 15 have no stem anywhere in the corpus (xerj-org#1070, xerj-org#1085). - The gate that caught the stock release binary built without the decide-local cargo feature (flag a no-op, stock-binary-noop.txt) is told with the fix queued ahead of the cut, not claimed as done. - Honest gaps stated, not smoothed: the /_ask token arm designed not run, the _watcher detection gate not yet measured, no HF URL for xerj-decide-v1. Four issues filed from the measurements: xerj-org#1091-xerj-org#1094. Mechanics: hand-written page at landing/blog/the-rc80-gates.html, registered in scripts/seo/pagedata.py (published/updated 2026-09-30), card prepended to the blog hub (hub dateModified bumped), head and footer owned by fix_heads/fix_links, og falls back to the site card.
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.
Method
Nodes booted from commit
a179e1ef3(main at cut time), version stringxerj v1.0.0-rc.78, private ports 9600-9609, throwaway data dirs under /tmp,--insecure --embed-mode lexical --decide-mode local --decide-model-dir /tmp/xerj-rc80gates-artifact/xerj-decide-v1(staged artifact, manifest sha256-verified).Datasets: the harness's own sources and splits — SMS seed-7 held-out (1,574 rows), Banking77 full 3,080-row test split (+ 10,003 train for the tier-1 arm), AG News full 7,600-row test set fetched this run (URL + sha256 + licence recorded in
results/2026-09-30-rc80gates/PROVENANCE.md). Metrics areeval.py's: accuracy, 10-bin ECE over (winner-confidence, correct), conf>=0.8 share, acc@>=0.8. Latency: node undertaskset -c 0-7(affinity verified), 30 distinct questions per shape, single sequential client, wall-clock, loadavg recorded (2-3, co-tenant agents). Cores: 32-core sandbox shared with other measurement agents.Release-cut finding before any quality number: the stock release binary is built without the
decide-localcargo feature (release.yml:191 builds-p xerj-serverbare), so--decide-mode localon it logsWARN ... built without the decide-local featureand tier 2 stays off —/v1/modelsdoes not list the head,/_decidewithout an index still refuses. Evidence committed asstock-binary-noop.txt. All tier-2 numbers below are from a build of the same commit with--features decide-local(the AC's own documented arming path, printed by the binary's--help). Quality on the stock artifact is BLOCKED, not merely failed — the tier is absent there.Gate lines (verbatim) and measured numbers
#1057: "zero-shot SMS accuracy >=0.95 and ECE <=0.05, AG News >=0.85, Banking77 reported not gated; below the bar it ships behind a flag with the numbers published."
/_decide): accuracy 0.9193, ECE 0.287 → FAIL both bars (spam P/R/F1 0.643/0.982/0.778)#1057 latency AC: "p50 <= 50 ms for 30 questions on 8 CPU cores; quantized weights, download <= 300 MB"
8000 /_decidenoul questions (5-option choice 20.0 ms; 77-option 282.6 ms — context) → PASS--decide-model-diris local-only); artifact 28.5 MiB, F32 not quantized (candle 0.9 constraint, documented in systemone: local zero-shot decision head (tier 2) via candle (#1057) #1072) → size PASS, "quantized" NO#1064 artifact comparison (same rows, both tiers re-derived through live nodes; card numbers cited beside, not substituted):
#1061: "Banking77 replay, after 2,000 cached hosted answers, >=80% of later traffic answered by history at >=0.8 confidence with accuracy >=0.97." → FAIL
source="hosted"): 19.72% of later traffic at conf>=0.8 (bar 80 — 4x under) at accuracy 0.9953 (bar 0.97 — met). A 2,000-doc history simply does not cover 80% of traffic at k=10.Verdicts
Caveats
decide-localfeature build ofa179e1ef3; the stock release binary cannot run tier 2 at all.pis not a vote input, so the substitution is exact for what the vote reads.