8000 bench: measure rc.80 decide gates — #1057/#1064 quality+latency, #1061 flywheel replay by xerj-org · Pull Request #1088 · xerj-org/xerj · GitHub
[go: up one dir, main page]

Skip to content

bench: measure rc.80 decide gates — #1057/#1064 quality+latency, #1061 flywheel replay - #1088

Merged
xerj-org merged 3 commits into
mainfrom
measure/decide-quality-1057
Oct 1, 2026
Merged

xerj-org merged 3 commits into
mainfrom
measure/decide-quality-1057

Conversation

@xerj-org
Copy link
Copy Markdown
Owner

Method

Nodes booted from commit a179e1ef3 (main at cut time), version string xerj 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 are eval.py's: accuracy, 10-bin ECE over (winner-confidence, correct), conf>=0.8 share, acc@>=0.8. Latency: node under taskset -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-local cargo feature (release.yml:191 builds -p xerj-server bare), so --decide-mode local on it logs WARN ... built without the decide-local feature and tier 2 stays off — /v1/models does not list the head, /_decide without an index still refuses. Evidence committed as stock-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."

  • SMS (1,574 held-out, noul via /_decide): accuracy 0.9193, ECE 0.287 → FAIL both bars (spam P/R/F1 0.643/0.982/0.778)
  • AG News (7,600 test rows, 4-way choice): accuracy 0.2599 vs 0.85 → FAIL (chance = 0.25; the dataset was never in training — the genuinely zero-shot case)
  • Banking77 (3,080 test rows, 77-way choice): 0.1185, ECE 0.0717, 0% at conf>=0.8 → reported, not gated; reproduces the DECIDE_MODEL.md card exactly (0.1185/0.072)
  • Note: there is no downloaded pretrained model — the tier has no download path; the only artifact is the trained xerj-decide-v1 scored in zero-shot mode. "Ships behind a flag" is doubly true: the flag is the cargo feature, which release builds do not enable.

#1057 latency AC: "p50 <= 50 ms for 30 questions on 8 CPU cores; quantized weights, download <= 300 MB"

#1064 artifact comparison (same rows, both tiers re-derived through live nodes; card numbers cited beside, not substituted):

  • Banking77 3,080: tier-1 BM25 vote (10,003 docs) 0.8289 / ECE 0.0808 / 51.4% @0.8 → 0.9855 vs tier-2 0.1185 / 0.0717 / 0%
  • SMS 1,574: tier-1 0.9848 / 0.0129 / 96.4% @0.8 → 0.9914 vs tier-2 0.9193 / 0.287 / 18.1% @0.8 → 0.8035
  • AG News: tier-1 0.9182 (cited 2026-09-20 run) vs tier-2 0.2599
  • "Zero-shot head vs trained xerj-decide-v1" collapses to one set of weights on this binary — no second model exists; the honest comparison is tier 1 vs tier 2 on identical rows.

#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

  • As shipped (the node's own tier-2 answers cached by the flywheel): only 12 answers get cached in 2,000 requests — once any cached doc gives BM25 support the history vote answers (and history answers are never written back), so the 2,000-cached premise is unreachable through the ladder. Later traffic (1,080 rows): 4.91% at conf>=0.8 (bar 80) at accuracy 0.0377 (bar 0.97); overall 0.033.
  • Gate premise instantiated (2,000 gold answers cached in the write-back's doc shape, 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

gate verdict
#1057 quality FAIL (all bars; publish behind flag — and the flag is off in release builds)
#1057 latency p50 / download PASS / size PASS, quantized NO
#1064 comparison measured (table in results/run-2026-09-30.md)
#1061 flywheel replay FAIL

Caveats

  • Tier-2 numbers are from the decide-local feature build of a179e1ef3; the stock release binary cannot run tier 2 at all.
  • Wall-clock on a shared 32-core box (loadavg 2-11); latency node pinned to cores 0-7, client unpinned.
  • Arm b substitutes gold labels for hosted answers (tier 3 not built); p is not a vote input, so the substitution is exact for what the vote reads.
  • The SMS noul node number (0.9193) sits above the card's in-harness 0.8850 on the same rows — different decision convention at the margin (node: argmax over the renormalised pair); both published, B77 choice path matches the card exactly.

… 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.
@cla-bot cla-bot Bot added the cla-signed label Sep 30, 2026
@xerj-org
xerj-org merged commit 201c88f into main Oct 1, 2026
22 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0