Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

Blog: the exploit hub, tested on three fresh CVEs (+ blogposts corpus to 8 records)

xerj-org812713b3de2e
diff --git a/landing/blog/index.html b/landing/blog/index.html
index f675ba879..8bc280c7e 100644
--- a/landing/blog/index.html
+++ b/landing/blog/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XERJ.ai — Blog: the engineering log</title>
-<meta name="description" content="Measured results with the losses left in: guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
+<meta name="description" content="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
@@ -16,7 +16,7 @@
<meta property="og:site_name" content="XERJ.ai">
<meta property="og:type" content="website">
<meta property="og:title" content="XERJ.ai — Blog: the engineering log">
-<meta property="og:description" content="Measured results with the losses left in: guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
+<meta property="og:description" content="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
<meta property="og:url" content="https://xerj.org/blog/">
<meta property="og:image" content="https://xerj.org/og/xerj-card.png">
<meta property="og:image:width" content="1200">
@@ -25,7 +25,7 @@
<meta property="og:locale" content="en_US">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="XERJ.ai — Blog: the engineering log">
-<meta name="twitter:description" content="Measured results with the losses left in: guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
+<meta name="twitter:description" content="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.">
<meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
<script type="application/ld+json">
{
@@ -59,7 +59,7 @@
"@context": "https://schema.org",
"@type": "CollectionPage",
"name": "XERJ.ai — Blog: the engineering log",
- "description": "Measured results with the losses left in: guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
+ "description": "Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
"url": "https://xerj.org/blog/",
"image": "https://xerj.org/og/xerj-card.png",
"inLanguage": "en",
@@ -126,6 +126,46 @@
<!-- Reverse-chronological by hand while there is one post; new posts PREPEND.
Move to a generator only past ~10 posts. -->
<ol class="blog-list">
+ <li>
+ <a class="bl-card" href="/blog/the-exploit-hub">
+ <!-- A/B eval, sealed ground truth: every figure from the run log
+ (/root/eval-holdout/EVAL-REPORT.md). Bars share one
+ denominator per row; the adds-~0 case is counted, not
+ dropped. -->
+ <div class="bl-preview" aria-hidden="true">
+ <div class="blp-kicker">CYBER-EXPLOITS CORPUS · A/B EVAL · SEALED TRUTH · 3 FRESH CVES</div>
+ <div class="blp-row">
+ <div class="blp-ds">NEEDLE POCS</div>
+ <div class="blp-pair">
+ <span class="blp-num">16 <i>needle docs, top 27</i></span><span class="blp-bar a" style="width:59.3%"></span>
+ <span class="blp-num">0 <i>shipped client, same query</i></span><span class="blp-bar b" style="width:1%"></span>
+ </div>
+ </div>
+ <div class="blp-row">
+ <div class="blp-ds">COST</div>
+ <div class="blp-pair">
+ <span class="blp-num">23 s <i>1.09M docs, cited</i></span><span class="blp-bar a" style="width:100%"></span>
+ <span class="blp-num">2.1 s <i>clone+grep, repos known</i></span><span class="blp-bar b" style="width:9.1%"></span>
+ </div>
+ </div>
+ <div class="blp-row">
+ <div class="blp-ds">TALLY</div>
+ <div class="blp-pair">
+ <span class="blp-num">2 of 3 attribution <span class="blp-chip">1 of 3 patch</span></span><span class="blp-bar a" style="width:66.7%"></span>
+ <span class="blp-num">1 adds ~0 <i>counted</i></span><span class="blp-bar b" style="width:33.3%"></span>
+ </div>
+ </div>
+ <p class="blp-foot">group 37.6 GB · exploit-pocs 1,093,749 docs · eval caught client defect #1238</p>
+ </div>
+ <div class="bl-meta">
+ <p class="bl-date"><time datetime="2026-10-08">2026-10-08</time> · CYBER-EXPLOITS CORPUS · EVAL</p>
+ <h2 class="bl-title">The exploit hub, tested on three fresh CVEs</h2>
+ <p class="bl-excerpt">One query over 1.09 million PoC documents named the exact route and field for CVE-2026-23744; an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for CVE-2026-105844; the third case proved the corpus adds nothing when its stratum is empty, and we count it. The vendor patch beat both arms on the needle, the eval caught a live client defect, and the losses are in the tables.</p>
+ <p class="bl-byline">AUTHOR · XERJ ENGINEERING · PUBLISHED · 2026-10-08</p>
+ <span class="bl-read">READ THE POST &rarr;</span>
+ </div>
+ </a>
+ </li>
<li>
<a class="bl-card" href="/blog/eval-scars-from-agent-memory">
<!-- Guest post: every figure is Chunxiao Wang's, from issues
diff --git a/landing/blog/the-exploit-hub.html b/landing/blog/the-exploit-hub.html
new file mode 100644
index 000000000..76b5573bd
--- /dev/null
+++ b/landing/blog/the-exploit-hub.html
@@ -0,0 +1,384 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>The exploit hub, tested on three fresh CVEs</title>
+<meta name="description" content="We ran the exploit corpus against three CVEs it had never seen: one query named the exact route and field for one, an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for another, and the third proved the corpus adds nothing when its stratum is empty. Losses included.">
+<link rel="preconnect" href="https://fonts.googleapis.com">
+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+<link rel="stylesheet" href="/style.css?v=if9">
+<link rel="stylesheet" href="/blog.css?v=1">
+<!-- seo:begin — generated by scripts/seo/fix_heads.py · do not hand-edit -->
+<link rel="canonical" href="https://xerj.org/blog/the-exploit-hub">
+<meta property="og:site_name" content="XERJ.ai">
+<meta property="og:type" content="article">
+<meta property="og:title" content="The exploit hub, tested on three fresh CVEs">
+<meta property="og:description" content="We ran the exploit corpus against three CVEs it had never seen: one query named the exact route and field for one, an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for another, and the third proved the corpus adds nothing when its stratum is empty. Losses included.">
+<meta property="og:url" content="https://xerj.org/blog/the-exploit-hub">
+<meta property="og:image" content="https://xerj.org/og/xerj-card.png">
+<meta property="og:image:width" content="1200">
+<meta property="og:image:height" content="630">
+<meta property="og:image:alt" content="XERJ.ai — the search engine built for AI agents">
+<meta property="og:locale" content="en_US">
+<meta name="twitter:card" content="summary_large_image">
+<meta name="twitter:title" content="The exploit hub, tested on three fresh CVEs">
+<meta name="twitter:description" content="We ran the exploit corpus against three CVEs it had never seen: one query named the exact route and field for one, an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for another, and the third proved the corpus adds nothing when its stratum is empty. Losses included.">
+<meta name="twitter:image" content="https://xerj.org/og/xerj-card.png">
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "Organization",
+ "@id": "https://xerj.org/#organization",
+ "name": "XERJ",
+ "alternateName": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "logo": "https://xerj.org/brandbook/xerj-mark.svg",
+ "sameAs": [
+ "https://github.com/xerj-org/xerj"
+ ]
+}
+</script>
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "WebSite",
+ "@id": "https://xerj.org/#website",
+ "name": "XERJ.ai",
+ "url": "https://xerj.org/",
+ "inLanguage": "en",
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ }
+}
+</script>
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "Article",
+ "headline": "The exploit hub, tested on three fresh CVEs",
+ "description": "We ran the exploit corpus against three CVEs it had never seen: one query named the exact route and field for one, an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for another, and the third proved the corpus adds nothing when its stratum is empty. Losses included.",
+ "url": "https://xerj.org/blog/the-exploit-hub",
+ "image": "https://xerj.org/og/xerj-card.png",
+ "inLanguage": "en",
+ "datePublished": "2026-10-08",
+ "dateModified": "2026-10-08",
+ "author": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "publisher": {
+ "@id": "https://xerj.org/#organization"
+ },
+ "isPartOf": {
+ "@id": "https://xerj.org/#website"
+ },
+ "mainEntityOfPage": {
+ "@type": "WebPage",
+ "@id": "https://xerj.org/blog/the-exploit-hub"
+ }
+}
+</script>
+<script type="application/ld+json">
+{
+ "@context": "https://schema.org",
+ "@type": "BreadcrumbList",
+ "itemListElement": [
+ {
+ "@type": "ListItem",
+ "position": 1,
+ "name": "Home",
+ "item": "https://xerj.org/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 2,
+ "name": "Blog",
+ "item": "https://xerj.org/blog/"
+ },
+ {
+ "@type": "ListItem",
+ "position": 3,
+ "name": "The exploit hub"
+ }
+ ]
+}
+</script>
+<!-- seo:end -->
+</head>
+<body>
+<nav class="nav" aria-label="Primary">
+ <a href="/" class="brand">XERJ</a>
+ <a href="/">HOME</a>
+ <a href="/product">PRODUCT</a>
+ <span class="nav-drop"><a href="/use-cases">USE CASES</a></span>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/blog/" class="active">BLOG</a>
+ <span class="spacer"></span>
+ <a href="/for-agents">FOR AGENTS</a>
+ <a href="/docs/">DOCS</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ <span class="theme"><button type="button" data-theme="day" class="active">DAY</button><span class="dash">·</span><button type="button" data-theme="night">NIGHT</button></span>
+</nav>
+
+<main>
+<div class="uc-hero">
+ <p class="blog-crumb"><a href="/blog/">&larr; ALL POSTS · /BLOG</a></p>
+ <div class="uc-eyebrow">CYBER-EXPLOITS CORPUS · A/B EVAL · SEALED GROUND TRUTH · RUN 2026-10-08</div>
+ <h1>THE EXPLOIT HUB, TESTED ON<br><span class="accent">THREE FRESH CVES</span></h1>
+ <p class="blog-byline">XERJ ENGINEERING · PUBLISHED 2026-10-08</p>
+
+ <p class="lede">Thirty-six proof-of-concept repositories for CVE-2026-23744 sit in our exploit
+ corpus. One query over 1.09 million PoC documents named the exact route, the operative field, and
+ the one-request trigger, with citations. The advisory alone could not name any of the three. Then
+ we unsealed the vendor patch, and both arms, with the corpus and without, had predicted the wrong
+ fix. That is the whole eval in one sentence: the corpus answered attribution questions nothing
+ else could, and did not magically answer the one nobody could. This post is the full run, losses
+ included.</p>
+</div>
+
+<section class="scene-section">
+ <div class="kicker">01 · THE DESIGN</div>
+ <h2 class="scene">Two arms, sealed ground truth, and a negative control we ran against ourselves</h2>
+
+ <p>We picked three CVEs published after the corpus pin date and ran each through two arms of the
+ same analyst session:</p>
+
+ <ul>
+ <li><strong>Arm A, advisory only.</strong> The CVE prose, nothing else. Written and frozen
+ before a single retrieval query ran in the session.</li>
+ <li><strong>Arm B, advisory + corpus.</strong> Same knowledge, plus retrieval over the
+ cyber-exploits group: <code class="inline">exploit-pocs-2026</code> at 1,093,749 documents
+ across 5,644 indices, <code class="inline">exploitdb-src</code> at 218,329, the
+ <code class="inline">cve-records</code> stratum, and <code class="inline">vuln-fix-commits</code>
+ (8,546 of 30,207 fix-commit payloads fetched at run time).</li>
+ </ul>
+
+ <p>Ground truth was sealed before Arm B wrote a word: vendor patches downloaded and diffed
+ unread, PoC repositories cloned but unopened, then unsealed only after both arms were frozen.
+ Every query Arm B ran is logged in the artifacts, including the ones that failed.</p>
+
+ <p>Three honesty rules shaped the scoring. First, this is a pilot: n=3, one analyst, so it is a
+ case study with measured arms, not statistics. Second, when retrieval adds nothing we count the
+ case as added-nothing rather than dropping it from the denominator. Third, we ran a negative
+ control against our own claim: cloning the three needle PoC repos and grepping them took
+ <strong>2.1&nbsp;seconds</strong> and found the same endpoint, with the repo names already in
+ hand. The corpus is not a fetch accelerator. It is the discovery layer: Arm A had no way to know
+ those repositories existed, which three to read, or that 33 others corroborate the same
+ route.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">02 · THE NEEDLE</div>
+ <h2 class="scene">CVE-2026-23744: one query, exact attribution, wrong patch</h2>
+
+ <p>The one case whose PoCs are in the corpus. The question a working analyst asks first is not
+ &ldquo;what class is this?&rdquo; but &ldquo;what exactly do I send, and where?&rdquo;</p>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>Question</th><th>Arm A (advisory)</th><th>Arm B (corpus)</th><th>Sealed truth</th></tr></thead>
+ <tbody>
+ <tr><td>technique class</td><td class="t">right, inferred from CWE-306 prose</td><td class="t w">right, cited from 3 independent PoCs</td><td class="t">unauth endpoint + stdio command launch</td></tr>
+ <tr><td>exact route + field</td><td class="t l">could not name</td><td class="t w"><code class="inline">POST /api/mcp/connect</code>, <code class="inline">serverConfig.command</code></td><td class="t">confirmed in all PoCs</td></tr>
+ <tr><td>trigger steps</td><td class="t l">ambiguous (install vs connect)</td><td class="t w">one POST, command launches in-request</td><td class="t">confirmed</td></tr>
+ <tr><td>patch mechanism</td><td class="t">3 candidates, argued auth+transport</td><td class="t l">same pair, argued more confidently</td><td class="t w">bind 127.0.0.1 only; both arms wrong</td></tr>
+ <tr><td>patch file</td><td class="t l">could not name</td><td class="t l">guessed the route file</td><td class="t w"><code class="inline">server/index.ts</code> (hostname constant)</td></tr>
+ </tbody>
+ </table>
+ </div>
+
+ <p>The retrieval cost was measured, not vibes: two shipped-client queries (14.2&nbsp;s and
+ 5.7&nbsp;s, both failed for reasons in section 05) plus three direct multi_match queries at about
+ a second each, roughly <strong>23&nbsp;seconds</strong> end to end over 1.09M documents. The
+ vendor patch, when unsealed, turned out to be one line: the stdio server hostname constant moved
+ from <code class="inline">0.0.0.0</code> to <code class="inline">127.0.0.1</code>. The
+ unauthenticated route is still there. Both arms dismissed that candidate as insufficient, and the
+ corpus evidence made Arm B <em>more</em> confident in the wrong pair. Attribution and fix
+ prediction are different questions, and the corpus answered only the one it had evidence
+ for.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">03 · THE ANALOGY</div>
+ <h2 class="scene">CVE-2026-105844: no PoC anywhere, so the corpus lent a neighbor</h2>
+
+ <p>No PoC for this CVE exists in the corpus or, at eval time, anywhere public. Arm B ran on
+ analogy retrieval instead: how do same-year prototype-pollution exploits in the corpus actually
+ work? The productive query returned an in-corpus 2026 writeup (exploitdb entry 52528, deephas
+ 1.0.7, CVE-2026-25047) that names both path shapes and the filter-bypass variants:</p>
+
+ <pre class="code">"1. constructor.prototype path + hasOwnProperty bypass
+ 2. __proto__ path + indexOf bypass"
+gadget family: process.env, require.extensions, child_process
+ or: hasOwnProperty / toString pollution for auth bypass</pre>
+
+ <p>That transformed the patch prediction from a shape into a spec. Arm B predicted a denylist of
+ prototype-sensitive path segments plus a null-prototype accumulator. The sealed 3.88.0 diff
+ shipped a new <code class="inline">fieldPath.ts</code> with
+ <code class="inline">Set(['__proto__','constructor','prototype'])</code> and an
+ <code class="inline">Object.create(null)</code> in the nested-assignment helper, plus a 400 on
+ bad paths. Both mechanisms named, the denylist contents named. The losses: neither arm could
+ name the vulnerable file (it was <code class="inline">setNestedValue.ts</code> and friends in
+ the import-export plugin), and Arm B narrowed the entry point to the import half when the truth
+ was the export preview. Arm A had hedged both halves and was right by hedging. Analogies sharpen
+ mechanisms and can over-narrow entry points.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">04 · THE EMPTY STRATUM</div>
+ <h2 class="scene">CVE-2026-97332: the case the corpus added nothing, counted</h2>
+
+ <p>A WordPress multisite plugin whose private uploads directory is served directly because the
+ root-level rewrite rule never matches the per-site path. The advisory title already states the
+ mechanism, so Arm A was concrete from prose alone. Arm B ran three queries against the
+ exploitdb stratum looking for a close precedent for the class and found none: that stratum is
+ weighted to older RCE/SQLi/upload classes, and WPScan-sourced CVEs rarely get GitHub PoCs at
+ all.</p>
+
+ <p>Retrieval cannot manufacture what is not indexed. The case is counted as
+ <strong>adds&nbsp;~0</strong> in the final tally rather than dropped, because a corpus eval that
+ only reports its hits is marketing. The sealed patch was a fourth shape nobody listed: a
+ folder-level <code class="inline">.htaccess</code> inside the uploads directory, generated at
+ activation, with a <code class="inline">Require all denied</code> fallback for hosts without
+ mod_rewrite.</p>
+
+ <p>The tally across the pilot: technique attribution 2 of 3 improved by the corpus (one from
+ nothing to exact, one from generic to same-year-cited), patch-mechanism prediction 1 of 3
+ improved, 1 of 3 cases added nothing. Two related measurements fell out of the run: zero of 128
+ post-pin CVEs checked had any public PoC at eval time, so fresh-CVE PoC evaluation needs either
+ pin-rolling or corpus-present CVEs as the eval set; and the raw group stands at about 37.6&nbsp;GB
+ against the 50&nbsp;GB build target, a number we report as it is because the gap is fetch
+ backlog, not padding.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">05 · THE DEFECT</div>
+ <h2 class="scene">The eval caught a live bug in our own client</h2>
+
+ <p>Arm B's first two queries used the shipped <code class="inline">xerj code</code> client and
+ surfaced <em>zero</em> of the 36 indexed needle PoCs on natural queries. That is not acceptable
+ in a product whose pitch is exactly this query, so we dug in instead of routing around it.</p>
+
+ <p>Mechanism, measured: the client builds its field list from the union of mappings across every
+ index in the corpus. One index family in the group maps an extra <code class="inline">text</code>
+ field, so the union grows to four fields, and the engine then zeroes every multi-token
+ multi_match for the roughly five thousand indices that do not map the fourth field. Drop the
+ poison field and the needle appears:</p>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>multi_match field set (same query, same corpus)</th><th>Hits</th><th>Needle PoCs in top results</th></tr></thead>
+ <tbody>
+ <tr><td><code class="inline">[body, defs, title, text]</code> (client union, shipped)</td><td class="n">39</td><td class="t l">absent; one 23,745-word wordlist index dominates</td></tr>
+ <tr><td><code class="inline">[body, defs, title]</code></td><td class="n w">27</td><td class="t w">16 distinct needle docs in the top 27</td></tr>
+ </tbody>
+ </table>
+ </div>
+
+ <p>Filed as
+ <a href="https://github.com/xerj-org/xerj/issues/1238" rel="external">issue #1238</a> with the
+ table above, the fix direction (unmapped fields should be skipped per index with a hint, the way
+ search engines with mappings already treat them, and the client should intersect mappings rather
+ than union them), and a two-index regression test proposal. We are stating the obvious
+ conclusion: an A/B harness run over a real corpus doubles as corpus QA, and the eval paid for
+ itself before the blog post existed.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">06 · WHAT IS IN THE GROUP</div>
+ <h2 class="scene">Four strata, one join, and a licence line we do not blur</h2>
+
+ <div class="vt-wrap">
+ <table class="vt">
+ <thead><tr><th>Stratum</th><th>Contents</th><th>Status at eval time</th></tr></thead>
+ <tbody>
+ <tr><td>exploit-pocs-2026</td><td class="t">PoC repository source, per-repo indices, full-text</td><td class="t w">1,093,749 docs / 5,644 indices, live</td></tr>
+ <tr><td>exploitdb-src</td><td class="t">Exploit-DB entries with source, full-text</td><td class="t w">218,329 docs, live</td></tr>
+ <tr><td>cve-records</td><td class="t">CVE/NVD records with CVSS, references, CNA prose</td><td class="t">partial, apply phase in progress</td></tr>
+ <tr><td>vuln-fix-commits</td><td class="t">the fix side: inventoried commits linking advisories to patches</td><td class="t">8,546 / 30,207 payloads fetched, backfill running</td></tr>
+ </tbody>
+ </table>
+ </div>
+
+ <p>The join the group exists for is the one nobody ships: advisory, working exploit source, and
+ the fix commit in one searchable place, so an agent can ask &ldquo;what does exploitation of this
+ class actually look like this year&rdquo; and cite the answer. Licence posture is deliberate and
+ one line: Exploit-DB is GPL and PoC repositories carry their own terms, so the whole group is
+ <strong>approach-only</strong>, indexed for retrieval, never copied into XERJ and never
+ redistributed as a pack. Query it, cite it, write your own code.</p>
+</section>
+
+<section class="scene-section">
+ <div class="kicker">07 · THE ADD-ON</div>
+ <h2 class="scene">A corpus of our own posts, because agents write too</h2>
+
+ <p>One more corpus shipped alongside this eval, and it is the smallest and strangest one on the
+ hub: <a href="https://hub.xerj.org/corpus/xerj-blogposts" rel="external">xerj-blogposts</a>,
+ seven posts (this one included at the next rebuild) as retrievable records with derived CVE and
+ release ids, 107,295&nbsp;bytes, built from the published pages by a generator whose
+ <code class="inline">--check</code> mode fails CI if the corpus drifts from the site. It exists
+ because the writing task is also a retrieval task: an agent asked to write the next XERJ post
+ needs the house voice as data, how these posts open (a number first), argue (every claim traced
+ to a run), and close (the losses left in). This post is the proof by construction; it was written
+ the way it argues, with the sealed patches, the failed queries, the 2.1-second negative control,
+ and the empty-stratum case all in the tables, and the corpus that taught it the shape is now on
+ the hub beside the exploit group it reports on.</p>
+</section>
+
+</main>
+<!-- seo:footer-begin — generated by scripts/seo/fix_links.py · do not hand-edit -->
+<nav class="footer-map" aria-label="Site map">
+ <div class="fm-col">
+ <span class="fm-h">PRODUCT</span>
+ <a href="/product">PRODUCT</a>
+ <a href="/architecture/">ARCHITECTURE</a>
+ <a href="/benchmarks/">BENCHMARKS</a>
+ <a href="/pricing/">PRICING</a>
+ <a href="/security/">SECURITY</a>
+ <a href="/playground">DASHBOARDS</a>
+ <a href="/demo/">REAL-DATA DEMO</a>
+ <a href="/aise-demo">PRODUCT TOUR</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">SOLUTIONS</span>
+ <a href="/solutions/">SOLUTIONS</a>
+ <a href="/use-cases">USE CASES</a>
+ <a href="/case-studies">CASE STUDIES</a>
+ <a href="/industries/">INDUSTRIES</a>
+ <a href="/industries/finserv">FINANCIAL SERVICES</a>
+ <a href="/industries/public-sector">PUBLIC SECTOR</a>
+ <a href="/industries/healthcare">HEALTHCARE</a>
+ <a href="/industries/retail">RETAIL</a>
+ <a href="/use-cases/code-security-audit">AI CODE-SECURITY AUDIT</a>
+ <a href="/use-cases/semantic-analytics">SEMANTIC ANALYTICS</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">DOCS</span>
+ <a href="/docs/">DOCUMENTATION</a>
+ <a href="/docs/quickstart">QUICKSTART</a>
+ <a href="/docs/install">INSTALL</a>
+ <a href="/docs/migration-from-es">MIGRATE FROM ELASTICSEARCH</a>
+ <a href="/docs/recipes/">RECIPES</a>
+ <a href="/docs/agents/">DOCS FOR AI</a>
+ <a href="/for-agents">FOR AI AGENTS</a>
+ <a href="/agent-search/">AGENTIC SEARCH DEMO</a>
+ <a href="/answers/">ANSWERS</a>
+ <a href="/compare/">COMPARISONS</a>
+ </div>
+ <div class="fm-col">
+ <span class="fm-h">RESOURCES</span>
+ <a href="/resources/">SALES KIT</a>
+ <a href="/blog/">BLOG</a>
+ <a href="/brand">BRAND</a>
+ <a href="/brandbook/">BRAND BOOK</a>
+ <a href="/llms.txt">LLMS.TXT</a>
+ <a href="https://github.com/xerj-org/xerj" rel="external">GITHUB</a>
+ </div>
+</nav>
+<!-- seo:footer-end -->
+</body>
+</html>
diff --git a/landing/sitemap.xml b/landing/sitemap.xml
index fd77d6725..f19b0b4e6 100644
--- a/landing/sitemap.xml
+++ b/landing/sitemap.xml
@@ -360,6 +360,10 @@
<loc>https://xerj.org/blog/the-corpus-hub</loc>
<lastmod>2026-10-06</lastmod>
</url>
+ <url>
+ <loc>https://xerj.org/blog/the-exploit-hub</loc>
+ <lastmod>2026-10-08</lastmod>
+ </url>
<url>
<loc>https://xerj.org/blog/the-rc80-gates</loc>
<lastmod>2026-10-07</lastmod>
diff --git a/scripts/seo/pagedata.py b/scripts/seo/pagedata.py
index 95eac0499..f4c7b19ed 100755
--- a/scripts/seo/pagedata.py
+++ b/scripts/seo/pagedata.py
@@ -169,11 +169,22 @@ PAGES: dict[str, dict[str, str]] = {
description="Guest recipes from Chunxiao Wang (Assay): topic slicing beat token windows on recall@1 by double digits, a 0.87 classifier nearly matched by a 0.78 always-yes baseline, and the mask bug that scored every query zero. Plus the corpus gap we checked and confirmed.",
published="2026-10-07", updated="2026-10-07",
),
+ # Exploit-hub A/B post, 2026-10-08. Every number traces to the
+ # sealed-truth eval (/root/eval-holdout/EVAL-REPORT.md): 23744 route/
+ # field from 36 in-corpus PoCs, 23 s retrieval vs 2.1 s negative
+ # control, the #1238 field-set table, 0/128 PoC lag, 37.6 GB honest
+ # group size, blogposts corpus 7 records / 107,295 B read-back 5/5.
+ "blog/the-exploit-hub.html": dict(
+ label="The exploit hub", kind="article",
+ title="The exploit hub, tested on three fresh CVEs",
+ description="We ran the exploit corpus against three CVEs it had never seen: one query named the exact route and field for one, an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for another, and the third proved the corpus adds nothing when its stratum is empty. Losses included.",
+ published="2026-10-08", updated="2026-10-08",
+ ),
"blog/index.html": dict(
label="Blog", kind="collection",
title="XERJ.ai — Blog: the engineering log",
- description="Measured results with the losses left in: guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
- updated="2026-10-07",
+ description="Measured results with the losses left in: the exploit hub tested on three fresh CVEs, guest eval scars from a production agent-memory system, the Corpus Hub launch, the rc.80 gates post, the Jev decisions study, the JEV rerank verdict, the storage formats that cut the index 28%, and the signed rust-vulns corpus pack.",
+ updated="2026-10-08",
),
"demo/index.html": dict(
label="Real-data demo", kind="software",
diff --git a/tools/packs/xerj-blogposts/README.md b/tools/packs/xerj-blogposts/README.md
new file mode 100644
index 000000000..a254c4e4d
--- /dev/null
+++ b/tools/packs/xerj-blogposts/README.md
@@ -0,0 +1,39 @@
+# xerj-blogposts — the house-writing corpus
+
+Every post XERJ has published, as records, so an agent writing the next one
+can retrieve how the last ones were argued instead of guessing at the voice.
+
+## What is in it
+
+One record per published post at `landing/blog/*.html` (excluding the index):
+`id`, `title`, `description`, `published`, `url`, and the readable prose of
+the post body, plus derived `cve_ids` / `release_ids` fields for posts that
+cite them. 7 records at first build (2026-10-08), pinned to
+`fce97e180e558df407af8d453bd52d5a7968b091` of this repository; the exploit-hub
+post lands the same day with its record, 8 records total, and the hub manifest's
+pin moves with it.
+
+## Rebuild
+
+```sh
+python3 tools/packs/xerj-blogposts/gen_posts.py # regenerate posts/*.json
+python3 tools/packs/xerj-blogposts/gen_posts.py --check # CI: fail on drift
+cd engine && cargo run --release -p xerj-server -- corpus build xerj-blogposts \
+ --recipe ../tools/packs/xerj-blogposts/recipe.toml
+```
+
+The `--check` mode is the staleness gate: the corpus is derived from the
+site, and the two must not diverge. A new post lands with its record in the
+same PR.
+
+## Why it exists
+
+The corpus program has a rule against indexing this repository (rule 3 of the
+`xerj-code` skill: a reference corpus returns other people's work as
+precedent; ours would return our own mistakes). This corpus is the scoped
+exception the rule allows: it indexes only the published prose, never engine
+code, and it exists because the posts ARE a work product an agent needs to
+retrieve — the house voice, the arguments, the numbers, the habit of
+publishing losses.
+
+Licence: our own Apache-2.0 prose. No third-party content.
diff --git a/tools/packs/xerj-blogposts/gen_posts.py b/tools/packs/xerj-blogposts/gen_posts.py
new file mode 100644
index 000000000..4c14d9b9d
--- /dev/null
+++ b/tools/packs/xerj-blogposts/gen_posts.py
@@ -0,0 +1,150 @@
+#!/usr/bin/env python3
+"""Regenerate the xerj-blogposts corpus records from landing/blog/*.html.
+
+The corpus source of truth is the PUBLISHED post (the HTML that xerj.org
+serves). This script derives one JSON record per post — id, title,
+description, published date, and the readable prose of <main> — into
+posts/<slug>.json beside this script, in a deterministic order so the pack
+build is reproducible and `--check` can gate CI on drift between the site
+and the corpus.
+
+Stdlib only (html.parser): the extraction is deliberately naive — headings
+and paragraphs as plain lines. The corpus exists so an agent writing a new
+post can retrieve how the house voice says things, not to re-render HTML.
+
+Usage:
+ gen_posts.py regenerate posts/*.json
+ gen_posts.py --check exit 1 with a diff if in-tree records are stale
+"""
+
+import sys
+import json
+import re
+from html.parser import HTMLParser
+from pathlib import Path
+
+HERE = Path(__file__).resolve().parent
+REPO = HERE.parent.parent.parent # tools/packs/xerj-blogposts -> repo root
+BLOG = REPO / "landing" / "blog"
+POSTS = HERE / "posts"
+
+DROP_INTO = {"script", "style", "nav", "footer", "noscript", "svg"}
+BLOCK = {"p", "h1", "h2", "h3", "h4", "li", "pre", "blockquote", "tr", "td", "th", "figcaption"}
+SKIP_TEXT = {"a", "span", "strong", "em", "b", "i", "code", "small", "sup", "sub", "time", "button"}
+
+
+class Prose(HTMLParser):
+ """Accumulate the readable text of <main>, dropping chrome."""
+
+ def __init__(self):
+ super().__init__(convert_charrefs=True)
+ self.parts: list[str] = []
+ self.drop_depth = 0
+ self.in_main = 0
+ self.heading = None
+
+ def handle_starttag(self, tag, attrs):
+ if tag == "main":
+ self.in_main += 1
+ elif self.in_main:
+ if tag in DROP_INTO and tag != "nav" or tag == "nav":
+ if tag in DROP_INTO:
+ self.drop_depth += 1
+ if tag in ("h1", "h2", "h3", "h4"):
+ self.heading = tag
+
+ def handle_endtag(self, tag):
+ if tag == "main" and self.in_main:
+ self.in_main -= 1
+ elif self.in_main:
+ if tag in DROP_INTO and self.drop_depth:
+ self.drop_depth -= 1
+ if tag in ("h1", "h2", "h3", "h4"):
+ self.heading = None
+ if tag in BLOCK:
+ self.parts.append("\n")
+
+ def handle_data(self, data):
+ if not self.in_main or self.drop_depth:
+ return
+ text = " ".join(data.split())
+ if not text:
+ return
+ prefix = ""
+ if self.heading == "h1":
+ prefix = "# "
+ elif self.heading in ("h2", "h3"):
+ prefix = "## "
+ elif self.heading == "h4":
+ prefix = "### "
+ self.parts.append(prefix + text + " ")
+
+
+def extract(html: str) -> tuple[str, str]:
+ p = Prose()
+ p.feed(html)
+ raw = "".join(p.parts)
+ raw = re.sub(r"[ \t]+", " ", raw)
+ raw = re.sub(r"\n\s*\n+", "\n\n", raw)
+ return raw.strip()
+
+
+def meta(html: str, name: str) -> str:
+ m = re.search(
+ r'<meta[^>]+(?:name|property)=["\']' + re.escape(name) + r'["\'][^>]+content=["\']([^"\']*)["\']',
+ html,
+ )
+ if not m: # attribute order can flip
+ m = re.search(
+ r'<meta[^>]+content=["\']([^"\']*)["\'][^>]+(?:name|property)=["\']' + re.escape(name) + r'["\']',
+ html,
+ )
+ return (m.group(1) if m else "").strip()
+
+
+def main() -> int:
+ check = "--check" in sys.argv
+ POSTS.mkdir(exist_ok=True)
+ slugs = sorted(p.stem for p in BLOG.glob("*.html") if p.name != "index.html")
+ if not slugs:
+ print(f"no posts under {BLOG}", file=sys.stderr)
+ return 1
+ drift = []
+ for slug in slugs:
+ html = (BLOG / f"{slug}.html").read_text(encoding="utf-8")
+ title = re.search(r"<title>(.*?)</title>", html, re.S)
+ published = re.search(r'datePublished"?\s*:\s*"(\d{4}-\d{2}-\d{2})', html)
+ if not published:
+ published = re.search(r"PUBLISHED\s*(\d{4}-\d{2}-\d{2})", html)
+ record = {
+ "id": f"blog-{slug}",
+ "title": (title.group(1).strip() if title else slug),
+ "description": meta(html, "description") or meta(html, "og:description"),
+ "published": published.group(1) if published else "",
+ "url": f"https://xerj.org/blog/{slug}",
+ "body": extract(html),
+ }
+ out = POSTS / f"{slug}.json"
+ text = json.dumps(record, indent=2, ensure_ascii=False) + "\n"
+ if check:
+ if not out.exists() or out.read_text(encoding="utf-8") != text:
+ drift.append(out.name)
+ else:
+ out.write_text(text, encoding="utf-8")
+ if check:
+ stale = sorted(p.name for p in POSTS.glob("*.json") if p.stem not in slugs)
+ if drift or stale:
+ for n in drift:
+ print(f"stale vs landing/blog: posts/{n}")
+ for n in stale:
+ print(f"no source post for: posts/{n}")
+ print("run: python3 tools/packs/xerj-blogposts/gen_posts.py")
+ return 1
+ print(f"OK: {len(slugs)} post records match landing/blog")
+ return 0
+ print(f"wrote {len(slugs)} records to {POSTS}")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/tools/packs/xerj-blogposts/posts/cutting-the-index-28-percent.json b/tools/packs/xerj-blogposts/posts/cutting-the-index-28-percent.json
new file mode 100644
index 000000000..b8f1dea31
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/cutting-the-index-28-percent.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-cutting-the-index-28-percent",
+ "title": "Cutting the index 28%: dissect first, write Rust second",
+ "description": "Four file-format changes took our 100k-doc index from 5.52 MB to 3.99 MB (−28%), each gated on dissecting real segments first. The losing rows are in the post.",
+ "published": "2026-09-27",
+ "url": "https://xerj.org/blog/cutting-the-index-28-percent",
+ "body": "← ALL POSTS · /BLOG \nSTORAGE · ON-DISK SIZE · 100K-DOC HARNESS · RUNS 2026-09-26/27 # A DISSECTION, FOUR FILE FORMATS, # AND 28% OFF THE INDEX \nXERJ ENGINEERING · PUBLISHED 2026-09-27 \nWe spent two days cutting the on-disk size of a XERJ index by 28 percent — from about 5.52 MB to 3,989,254 bytes on a 100k-document benchmark — and the interesting part is not the number. It is that three of the four format changes we shipped ended up shaped differently from the plans that started them, because we dissected real segment files before writing any Rust, and kept every losing row. \n01 · THE METHOD ## Dissect first, write Rust second \nThe size work started as an epic with a waste list written against the code: numeric doc-values stored as raw 8-byte lanes, postings block headers carrying bytes the reader could derive, per-term metadata in fixed 24-byte records, the same keyword strings stored three times per segment. A confident list. Parts of it were wrong, and the way we found out which parts is the method worth writing down. \nStage zero built a harness, benchmarks/index-size : 100,000 documents — 4,008 real telemetry events cycled 25 times, each with a timestamp, a model name, token counts, a cost, a tenant, and a body of text — bulk-indexed into a throwaway node, force-merged to a single segment, then a byte census by file family and by field. Every format change in this post landed with its A/B result committed beside it. \nThe rule the epic settled on: before writing a codec, copy the segment file out of the data directory and dissect it offline — python3 and the zstd command line are enough — and predict the payoff from the actual bytes. Only then open the editor. Four formats went through that gate: \nFormat change \nFamily \nBefore → after (B) \nΔ \n\nZNV2 · doc-values FOR + bitpack, per-column chooser \n.dv \n390,487 → 355,156 \n−9.0% \n\nZPS2 · postings frame-of-reference framing \n.post \n2,449,405 → 2,364,905 \n−3.4% \n\nZBS4 · typed-int stored columns, duplicate refs \n.seg \n1,671,271 → 449,094 \n−73.1% \n\nZFM5 · columnar varint term metadata \n.meta \n200,826 → 13,774 \n−93.1% \n\nwhole index, last two stages (committed pair) \nall \n5,398,478 → 3,989,254 \n−26.1% \n\nEach row is a same-day A/B against a control binary on the same corpus at the balanced compression level, one force-merged segment; the first two stages' tables live in the changelog entries and the last two stages' result files are committed beside the harness. Those last two were also re-measured together on the merged tree — 4,176,306 to 3,989,254 B — and subtracting the .meta delta from that control reproduces the endpoint to the byte. Sum all four family deltas and the index that entered the epic at roughly 5.52 MB came out at 3,989,254 B: −27.7%, which the headline rounds to 28. The two biggest wins are the two formats the dissection redirected, and they are the middle of this post. \n02 · THE FIRST LESSON ## The plan lost to plain bytes on our own corpus \nThe first change looked like the safest bet on the list. Numeric doc-value columns were stored as raw 8-byte values per document; the textbook fix is frame-of-reference plus bit-packing — subtract the minimum, divide out the greatest common divisor, pack the residuals into 128-document blocks at the width the spread demands. That is the shape tantivy's columnar store uses, and our unit tests measure monotone strided columns ~5× smaller than raw before compression. \nThe first cut shipped bitpack-everywhere. The harness rejected it outright: the .dv family came out at 2.0× the baseline — 789,167 B against 390,487. The optimization doubled the size of the thing it was optimizing. \nThe reason is the interesting part. The corpus cycles its 4,008 events, so the raw lanes repeat byte-for-byte down the file, and the outer zstd pass matches repeating bytes almost for free. Bit-packing is block-local: every 128-doc block scrambles the byte grid the compressor was matching against. An information-theoretic win lost, on real bytes, to a compressor that could see the whole file. \nBitpack-always: 2.02× the .dv size. The row stays at the top of the losing table because it is the whole argument for the method — the format we were most confident about was the one our own corpus rejected hardest. What shipped instead races both candidates per column — the bit-packed layout and the raw one — compresses both at the real level, and keeps whichever is smaller after zstd: the Parquet pick-the-smallest rule. On this worst-case-for-bitpacking corpus it wins 9.0% on .dv (0.6% of the whole index); on genuinely monotone columns — timestamps, counters — it can win five times as much. The chooser pays both prices and never guesses. \n03 · THE FRAMING TAX ## Postings: a percent here, a percent there \nThe postings files carry, for every term, the sorted document ids and the term frequencies, packed in 128-document blocks. The blocks were paying a framing tax: a 4-byte length that is a pure function of the bit width, and a residual count the reader can derive on its own. ZPS2 re-framed them — [width][vbyte min] , where width zero means a constant block that carries no payload at all; the positions block lost its length prefix (exactly 128 count-and-delta groups pin its end); and a positioned term whose total term frequency equals its document frequency omits its entire frequency stream, because the reader can re-derive every count as one. \nMeasured: .post −3.4% (2,449,405 → 2,364,905 B), body.post −4.3% (1,828,102 → 1,749,695 B). Small and honest — and the widest keyword family in the corpus ( top_doc , 12 terms at df ≈ 8.3k) went the other way, +1.5%. Families move in both directions; the family total is what gates the merge. \n04 · THE WHALE ## The stored section, where the dissection redirected the plan \nThe .seg file holds the stored documents — the columnar copy of _source . The epic's plan for it was dictionary work on keyword columns. Then we dissected one: the planned dict-stream work targeted about 5% of the section. The body text's JSON fallback alone was 84.2% of it. The plan was aiming at the wrong end of the file. \nThe same dissection showed two cheaper embarrassments: __seq_no — consecutive integers — stored as ASCII text, five bytes for “12345”; and doc_id stored as a byte-identical duplicate of the engine's internal __id column. Three codecs went in instead of the dictionary work: \nTYPED_INT — an all-integer column becomes a presence bitmap plus 128-value frame-of-reference blocks, the same shape as the ZPS2 postings framing, with a zigzag-varint residual for what escapes the blocks. Floats and strings never qualify and keep the JSON fallback. \nCOPY_OF — a column byte-identical to an earlier column is written as a 4-byte reference, after a digest plus a full equality check. An id echoed into _source costs 4 bytes instead of a second payload. \nA long-effort chooser, merge path only — each JSON-fallback column is additionally compressed at zstd level 19 with long-distance matching and an explicit 16 MB window; the smaller payload wins. Flush stays pinned to level 3, where an earlier measurement showed level 19 is an ingest regression we had no reason to re-learn. \nTwo measured reasons the third codec is a chooser and not a level bump. The window knee is sharp: the 29.8 MB body column compresses to 679 kB at the default window and 330 kB at 16 MB, because the corpus's sentence pool repeats just past a small window. And high levels regress small-alphabet streams: the id column is 54 kB at level 3 and 143 kB at level 19. A global 19 would grow the ids while it shrank the body. \nResult: .seg −73.1% (1,671,271 → 449,094 B), the whole index −22.6% in one stage (5,398,478 → 4,176,300 B). Every other file family is byte-identical between those two runs but for one byte in a manifest counter — the change is fenced to its own envelope, and anything an older codec could already express is still written in that older codec, byte for byte. \n05 · THE EMBARRASSING ONE ## 138.7 KB for about 200 bytes of information \nThe .meta files hold per-term postings metadata: document frequency, total term frequency, and a pointer into the postings — for every term in the field's dictionary. doc_id has 100,000 unique terms, and in this corpus every one of them has ttf == df (each document holds its id once) and every postings gap is zero. The information content of that file is a few hundred bytes. It cost 138,727 B. \nThe culprit was the record stride: {df u32, ttf u64, offset u64, len u32} — 24 fixed bytes per term, interleaved. zstd did compress that stream, seventeen-fold, but it cannot match across the stride's alternating field widths, so every record still cost it residual bytes on the lanes that vary: about 1.4 bytes per term, 138.7 kB across a hundred thousand terms, for a file whose information content is a few hundred bytes. \nThe obvious first move — keep the records, delta-encode the fields in place under the envelope — would have kept the stride, and the stride itself was the cost. ZFM5 reshapes the section before compressing it: four columnar varint streams — df, ttf − df (elided entirely when every term in the field has ttf == df , which is the keyword-field shape), offset gaps, and lengths. zstd sees four long runs of one-symbol lanes instead of 100,000 interleaved records. On the final tree that file is 216 B on disk, envelope header included. The reader expands the streams once at open time into the flat record array the previous formats built, so the term-lookup hot path is untouched. \nOne more thing this format earned before it merged. An adversarial review of the diff — independent reviewers told to break the decoder — confirmed exactly one real defect: the total-frequency reconstruction was the only unchecked addition left in the expansion loop, and a crafted delta could wrap it in a release build to ttf < df , silently flipping the freq-elision predicate from section 03. Unreachable from our writer, but a decoder should not trust its writer. Fixed with checked arithmetic and a regression test that feeds it the crafted delta. .meta finished at −93.1% (200,826 → 13,774 B). \nThe peer anchor is worth naming: tantivy's term dictionary serializes block-leading absolute ranges once and per-term VInt lengths, reconstructing offsets by accumulation — same insight, MIT-licensed, cited beside our implementation of it. The columnar split and the elision flag are ours. \n06 · THE BASELINES ## Six percent of raw — and the caveat that number needs \nAfter the four stages, the index for those 100,000 documents — the whole data directory — is 3,989,254 B. The raw documents are 63,461,256 B of NDJSON, measured off the exact bulk payload the harness indexed. Against the obvious baselines on the same bytes: \n100,000 documents, same bytes \nSize (B) \n% of raw \n\nraw NDJSON documents \n63,461,256 \n— \n\nzstd -19 of the raw \n1,571,615 \n2.5% \n\ngzip -9 of the raw \n4,089,793 \n6.4% \n\nXERJ index, whole data dir \n3,989,254 \n6.3% \n\nzstd -3 of the raw (our flush level) \n5,866,915 \n9.2% \n\nThe index — which answers queries, accepts updates and deletes, and gives random access into every one of those bytes — lands smaller than gzip -9 of the same text. It will never reach zstd -19 of a sequential stream, and it should not be asked to: that row is a compressor with unbounded CPU and no obligation to ever seek. \nThe caveat, plainly. This corpus is deliberately repetitive — 4,008 events cycled 25 times over a twelve-sentence body pool. It is a stress harness for format work, not a product ratio. On your corpus the index will be a larger fraction of raw. The deltas in the first table are what transfer; the 6.3% is not. We print it only to anchor the baseline row. 07 · WHAT'S LEFT ## Two whales, and a plan for each \nWhere the 3,989,254 B went, from the committed harness result for the final tree (the .seg family measured 449,094 B in that stage's own A/B — two bytes of run-to-run noise): \nFile family \nBytes \nShare \nWhat it is \n\n.post \n2,364,905 \n59.3% \npostings — body.post alone is 1,749,695 B \n\n.ids \n613,485 \n15.4% \nseq_no → external id map for fast restart \n\n.seg \n449,092 \n11.3% \nstored columns (_source) \n\n.dv \n355,156 \n8.9% \ndoc values for sorting and aggs \n\n.fst \n105,760 \n2.7% \nterm dictionaries \n\n.json + .norms + .meta \n96,809 \n2.4% \nmanifests, BM25 lengths, term metadata \n\neverything else \n4,047 \n0.1% \nmarkers, keys, locks \n\nTwo clusters dominate. Body text is ~2.11 MB, about 53% of the index — postings for the body field (1,749,695 B), its stored column (328,266 B), its length norms (35,194 B). That is 7.1% of the 29.8 MB of raw body text: text is already near its entropy, and the remaining wins there are incremental framing work. The id echo is ~0.88 MB, about 22% — in this corpus _id and doc_id are the same string, and it is stored four ways: the .ids pairs at 613 kB, doc_id 's own postings at 256 kB, the __id stored column — 9.4 kB on the merged tree, after stage 1's duplicate-reference and long-effort codecs had their way with it — and term-dictionary slices. That cluster still pays ~45% of its raw bytes, where the body pays 7.1%. \nStage 2 is dictionary reuse: the full-text term dictionary already is a finished dictionary for keyword fields — today we learn the ids and then store them again in two more places; referencing term ordinals from the other columns deletes the echo. Stage 3 is trained zstd dictionaries for the many-small-files tail. Neither is measured yet, so neither gets a number in this post; when they are, the losing rows will be in that one too. \n08 · THE LOSING ROWS ## What we tried and kept out \nVariant \nMeasured \nVerdict \n\nbitpack-always .dv \n2.02× baseline \nper-column chooser ships instead \n\nzstd-19, default window, body column \n679 kB \n330 kB at an explicit 16 MB window — the window is the knob \n\nzstd-19 on the id column \n54 kB → 143 kB \nregression; effort is chosen per column \n\nZPS2 on the widest keyword family \n+1.5% \nkept — the family total still wins \n\n.meta with the 24-byte stride kept \n138,727 B for doc_id.meta \nthe stride itself was the cost; ZFM5 removes it \n\nEvery number in this post traces to a run. The harness and its design notes are committed in benchmarks/index-size , with the last two stages' result files beside them and the first two stages' A/B tables in the changelog entries; the work is tracked in epic #1038 and landed as pull requests #1040 , #1041 , #1042 and #1043 , each with its own measured table. The wire-compatibility conformance suite stayed green across all four merges — the gate that outranks size. \nIf you would rather check the claim than read about it: the engine is one binary , the harness is in the repository, and your own corpus is the benchmark that matters. The retrieval side of this engine's story is in our post on reranking and the BM25-vote decisions study ; the wire-protocol conformance numbers live on the benchmarks page ."
+}
diff --git a/tools/packs/xerj-blogposts/posts/does-xerj-beat-jev.json b/tools/packs/xerj-blogposts/posts/does-xerj-beat-jev.json
new file mode 100644
index 000000000..3fe4ca932
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/does-xerj-beat-jev.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-does-xerj-beat-jev",
+ "title": "Does XERJ beat JEV? On the bill, outright. On FiQA, no.",
+ "description": "1,271 judged queries: Jev rerank takes SciFact 0.7410 and FiQA 0.3638 (+0.126), our zero-API-token hybrid keeps NFCorpus 0.3448, and the FiQA run cost $0.6375.",
+ "published": "2026-09-21",
+ "url": "https://xerj.org/blog/does-xerj-beat-jev",
+ "body": "← ALL POSTS · /BLOG \nBENCHMARKS · ONE JUDGE MODEL, MEASURED · ONE WIRE, ANSWERED · RUNS 2026-09-19..21 # DOES XERJ BEAT JEV? # ON THE BILL, OUTRIGHT. ON FIQA, NO. \nAUTHOR · XERJ ENGINEERING TEAM · PUBLISHED · 2026-09-21 · UPDATED · 2026-09-27 \nTHE VERDICT split, measured, with the losses left in Not outright — and not behind, either: a split verdict, measured over 1,271 judged BEIR queries (3 shuffled repeats each). Where reading beats word-overlap, Jev's hosted judge wins rerank: our BM25 top-30 reordered by Jev scores 0.7410 nDCG@10 on SciFact (versus 0.6993 for our best zero-API-token arm, hybrid RRF) and 0.3638 on FiQA (versus 0.2382 BM25 — a +0.126 lift, the biggest we measured and the clearest case where hosted Jev still wins); our local hybrid keeps NFCorpus, 0.3448 to the rerank path's 0.3312, and that losing row stays in the table rather than being hidden. \nOn the bill XERJ wins outright: the FiQA rerank run cost 15,178,758 judge input tokens — $0.6375 at $0.042/Mtok, input only, p50 1.23 s per call — while XERJ answers the same wire ( /v1/systemone and /_decide ) locally with zero tokens, no model, and p50 42.7 ms on /v1/systemone ( /_decide : 34.8 ms), and the unmodified pip-installed jev-reranker ran against a XERJ node and passed its own strict validation through both of its entry points (spam 0.9447 versus ham 0.0905, client 0.1.2, re-run 2026-09-21). AG News reaches 0.9182 accuracy on all 7,600 test items with no model and no tokens — no Jev row exists for AG News and none is claimed. \nHold the caveats: hosted Jev's published SciFact 0.768 and NFCorpus 0.358 are not run by us and are not a race with our rows (different experiments sharing a metric); provider non-determinism makes any gap within ±0.01 nDCG@10 noise; and Jev's FiQA probabilities are badly calibrated (ECE 0.3109 — documents rated 0.93 confidence were relevant 34% of the time; order by them, never threshold them with min_score ). Verdict: use Jev where the judge wins, FiQA-style rerank; use XERJ where tokens, latency, and data locality decide. \nTwo experiments, in that order. First we measured what TypeSafe AI's Jev judge model really does to our ranking. We include the day our own code scored 0.3822 nDCG@10 while plain BM25 scored 0.7750. That bug was ours. We found it, fixed it, and ran 1,271 judged queries on three public datasets. Then we flipped the question. A XERJ node now answers the System One wire itself. The pip-installed jev-reranker runs against it with no code changes. No request leaves your machine. Every number below comes from a run you can find in the repo. The losses sit next to the wins. \n0.3822 the stage, as it shipped nDCG@10 against BM25's 0.7750 on 40 judged SciFact queries. Our defect. The root cause is below. 0.8299 the same stage, fixed one request shape changed. Same shortlists, same day. The raw API scored 0.8389. +0.126 biggest lift, FiQA BM25 0.2382 to Jev 0.3638 over 648 judged queries. SciFact gained +0.084. NFCorpus gained +0.030. 42.7 ms our answer to the same wire p50 per item on 120,000 labelled examples, local, free, no egress. The hosted API measured 1,230 ms per query on the FiQA rerank run (§02). Different tool, different workload. 01 · THE AUTOPSY · A STAGE THAT SHIPPED UNMEASURED ## FIRST, WE BROKE IT ## IN PUBLIC. \nThe rerank stage takes BM25's top hits, sends them to a hosted relevance judge, and reorders by the probability that comes back. It shipped with a caveat that said: quality not verified, no provider key . Then TypeSafe gave this project an evaluation key. The first measured run put a number on the caveat. The number was a disaster. The judge made ranking worse than not using it. \nThe defect was ours. Not the model's. Our request builder put every candidate into one shared state blob. Then it asked each question an untargeted phrase: \"Does this document contain information that answers the query?\" The words \"this document\" pointed at nothing. So the model judged the whole pile once. It echoed roughly the same probability back for every question. Inside each 30-document window the probabilities were nearly flat. The spread was about 0.02. That is query-level noise dressed up as a ranking. Same 40 judged SciFact queries · same BM25 shortlists · same day \nnDCG@10 \nWhat differed \n\nBM25 alone, no judge \n0.7750 \nbaseline \n\nV1, candidates in shared state , untargeted question \n0.3822 \nwhat shipped. \"This document\" bound to nothing. \n\nV2, one noul per document, the document inside its own question \n0.8389 \nraw API, no stage code around it \n\nThe fixed stage, V2 shape through the real rerank path \n0.8299 \nthe commit that landed. p50 399 ms, p95 515 ms per query. \n\nBM25, XERJ first stage Jev through the pre-fix stage Jev through the fixed stage Jev, raw API 0.7750 0.3822 0.8299 0.8389 BM25 no judge pre-fix shipped unmeasured fixed this commit raw API no stage SciFact, first 40 judged queries — pilot, 2026-09-20 The pilot was for diagnosis. Forty queries were enough to see a 2× gap. The fix came from reading the installed jev-reranker wheel (MIT licence), not from memory: listwise mode, the document named by backtick path inside its own question. \nThe lesson travels. A judge model answers the question you actually sent, token by token. Your code can score well and still ask a different question than the one you think you asked. Measure the integration at the raw wire before you trust any number that comes back. \nRaw artifacts: benchmarks/beir-hybrid/results/2026-09-20-rerank-pilot and …/2026-09-20-rerank-full · narrative in docs/research/typesafe-skill-2026-09/NOTES.md · model pinned jev-1.13.0 throughout. \n02 · THE FULL RUN · 1,271 JUDGED QUERIES, THREE PUBLIC DATASETS ## THEN THE WHOLE ## DATASETS. THREE TIMES. \nThree BEIR datasets, all public, all from the standard distribution. SciFact has 300 judged queries. NFCorpus has 323. FiQA has 648. We fetched BM25 top-30 shortlists once. The shortlist step is deterministic. Then we sent the fixed request shape three times per dataset, with the query order shuffled each time, and took per-query medians. Zero failed requests. We repeated because the provider is not deterministic. That finding is below, and it sets the resolution of everything in this section. \nBefore calling any model we checked our harness on FiQA. Our local BM25 scored 0.2382 nDCG@10 . BEIR's published BM25 figure for FiQA is 0.236 . Close enough to trust the scorer. \nnDCG@10, BEIR test split \nSciFact · 300 q \nNFCorpus · 323 q \nFiQA · 648 q \nRun by \n\nXERJ BM25 ( multi_match , no embedder) \n0.6572 \n0.3016 \n0.2382 \nus, any node \n\nXERJ hybrid RRF ( --embed-mode neural ), measured 2026-09-18, rc.74 \n0.6993 \n0.3448 \nnot run \nus, that run \n\nXERJ BM25 top-30, reordered by Jev ( jev-1.13.0 , pinned) \n0.7410 \n0.3312 \n0.3638 \nus, this run, median of 3 \n\nJev (TypeSafe AI), hosted reranker \n0.768 \n0.358 \nno figure \nnot run by us , published in the hev/jev-rerank README \n\nVoyage rerank-3, hosted reranker \n0.755 \n0.357 \nno figure \nnot run by us , same README \n\nCohere rerank-v3.5, hosted reranker \n0.745 \n0.340 \nno figure \nnot run by us , same README \n\nRead the Run-by column before the numbers. The three hosted rows rerank that project's own first-stage shortlists, not ours. Same dataset, same metric, nothing else controlled. Our Jev rows rerank XERJ's own BM25 top-30. That is the setup an operator can actually run. The published 0.768 and our 0.7410 are not a race. They are two different experiments that share a metric. \nWhere the judge wins big, and where it does not. FiQA is the biggest lift, +0.126. Finance questions live on phrases like \"business expense on a business trip\", and BM25's word overlap buries good documents deep. The judge reads them and pulls them up. On SciFact it beats our best local arm too, 0.6993 hybrid to 0.7410 reranked. On NFCorpus it loses to the local hybrid, 0.3312 against 0.3448. The losses sit in medical shorthand, where 30-candidate windows are mostly noise to a general judge, and in the 25 queries where BM25 returned nothing at all. No reorder can fix an empty list. \nXERJ BM25, the shortlist BM25 top-30 + Jev, this run 0.6572 0.7410 BM25 no judge + Jev 82 W · 30 L · 188 T SciFact · 300 queries — median of 3 repeats 0.3016 0.3312 BM25 no judge + Jev 118 W · 74 L · 131 T NFCorpus · 323 queries — median of 3 repeats 0.2382 0.3638 BM25 no judge + Jev 249 W · 57 L · 342 T FiQA · 648 queries — median of 3 repeats, the biggest lift W / L / T counted per query against the same run's BM25 arm. All three datasets net positive. NFCorpus is the weakest, and its per-query losses are in the table above, not hidden. \nThe bill, and the clock \nSciFact \nNFCorpus \nFiQA \n\nJudge input tokens (document text sent, 3 repeats) \n9,589,068 \n7,618,170 \n15,178,758 \n\nCost at $0.042 / Mtok, input only \n$0.4027 \n$0.3200 \n$0.6375 \n\nWall clock per query, p50 \n1.49 s \n1.48 s \n1.23 s \n\nFailed requests \n0 \n0 \n0 \n\nFINDING 1 ## The provider is not deterministic \nsame request, sent 3 times Mean per-document probability drift was 0.0077 on SciFact and 0.0096 on NFCorpus, with a max of 0.08. On FiQA the repeat means spanned 0.3622 to 0.3648. So: any comparison of Jev numbers closer than about ±0.01 nDCG@10 is measuring noise. We report medians for that reason. A single-shot benchmark of a hosted judge is a coin with a ±0.01 bias. \nFINDING 2 ## The probabilities do not mean what they say \n19,440 confidence/relevance pairs on FiQA A judge probability is not the chance a document is relevant. On FiQA the expected calibration error is 0.3109 . Documents the model rated near 0.93 confidence were relevant 34% of the time . The curve still rises to the right, so the model ranks well. But every bin above 0.2 promises far more than it delivers. SciFact: ECE 0.1023, bin 0.85 confidence, 42% relevant. NFCorpus: ECE 0.1332, bin 0.92 confidence, 55% relevant. Use the ordering. Never set min_score on the raw number. \nwhat the judge said what was true 0.75 0.04 0.85 0.12 0.93 0.34 bin 7 said / was bin 8 said / was bin 9 said / was FiQA, top three confidence bins — mean confidence vs share actually relevant 19,440 (probability, relevance) pairs, 10 equal-width bins; the three highest are shown. The full curve, bin by bin, is in fiqa-full-run.json . The gap between the red bar and the gold bar is the whole finding: at the top of the scale the judge says \"certain\" and means \"one in three\". \nAbout the calibration number you will meet again below. The local history vote on this site measured ECE 0.012 on Banking77. That is not a scoreboard win over the judge's 0.10 to 0.31. The vote did in-domain classification against its own training labels. The judge was scored cross-domain against graded human relevance labels. Calibration belongs to the task, not to the interface. Both numbers are honest on their own task. Neither redeems the other. \nRunner and raw JSON: …/2026-09-20-rerank-full (SciFact, NFCorpus) and …/2026-09-20-rerank-full-fiqa (FiQA, with dataset provenance) · hybrid-row figures (0.6993 / 0.3448, 2026-09-18, rc.74): benchmarks/beir-hybrid ( results/scifact.txt , results/nfcorpus.txt ) · run 2026-09-20 on the wire-compat branch engine, scoring byte-identical to the hybrid benchmark's eval.py · FiQA fetched from the standard BEIR distribution · hosted-reranker figures: hev/jev-rerank (MIT). A third party published them. Not TypeSafe's numbers, and not ours. \n03 · THE WIRE · A XERJ NODE THAT ANSWERS /v1/systemone ## THEN WE ASKED THE ## QUESTION BACKWARDS. \nSystem One is a documented interface for typed judgement. You POST a state, a model, and a map of questions. Each question comes back noul , a yes/no with a 0 to 1 probability, or choice , N named options with probabilities. XERJ already had a fast answer for exactly that shape of question. Index the labelled history you already have. Answer a new question by a rank-weighted vote over its k nearest neighbours. Report the winning label's vote share as the probability. No model. No tokens. So the node learned to speak the wire. \nSURFACE 1 ## POST /v1/systemone \nnative REST · --port + 1 The documented request and response shape, answered by the vote. A client written for TypeSafe's API works unmodified. state as string or object. instructions as string, object, or array. Backtick paths like `documents.doc_0` resolved against state. Answers keyed by exactly the ids sent. Everything strict clients validate is there. \nSURFACE 2 ## POST /_decide \nES-compat port · the audit surface The same vote without the wire costume. It names its index per request, and it returns the evidence : each neighbour's id, label, the engine's own BM25 score, its 1/rank weight, and its text. Any answer can be checked against the history that produced it. Below decisions.min_confidence it abstains. \nBREAK 1 ## model ## is echoed truthfully \ndeliberate · test-pinned The response says xerj-history-vote-1 . Never a Jev model name. Echoing jev-1.13.0 would claim these probabilities are the hosted model's. The name you asked for rides at decisions.requested_model . Compatibility does not require lying about whose numbers they are. \nBREAK 2 ## Zero support is a 422, never a made-up 0.5 \ndeliberate · test-pinned A question whose vote finds no labelled neighbour carries no information. The endpoint refuses it. HTTP 422, naming the question ids. A silent 0.5 is exactly the silent-fake defect class this project treats as a bug. Wire compatibility does not change that. \n## The gate: the pip client, unmodified, on a local node \nNo SDK of ours, no patches, no subclassing. pip install jev-reranker (0.1.2, MIT), its own listwise template, its own splitting, its own strict response validation, pointed at a XERJ node holding 4,000 labelled SMS messages. The gate ranks through both of the client's entry points — the constructor default, and the documented relevance preset, which since 0.1.2 ships its rubric as an object the vote must acknowledge without reading it as retrieval text. Two environment variables, and one of them is a trap: \n$ pip install jev-reranker $ # TYPESAFE_ENDPOINT carries the FULL path. TYPESAFE_BASE_URL is silently ignored $ # by this client (reranker.py:238), and the call still goes to the real host. $ export TYPESAFE_ENDPOINT=http://localhost:9441/v1/systemone $ export TYPESAFE_API_KEY=local-only # the node ignores it; localhost only $ python3 gate_run.py client: jev-reranker 0.1.2 (pip, unmodified) client resolved model: ['xerj-history-vote-1'] 1.0000 spam Please call our customer service representative on 0800 169 6031 betwe 1.0000 spam Great News! Call FREEFONE 08006344447 to claim your guaranteed £1000 C 1.0000 spam URGENT! Your Mobile number has been awarded with a £2000 prize GUARANT 0.0000 ham If you're not in my car in an hour and a half I'm going apeshit 0.0000 ham Carlos says we can pick up from him later so yeah we're set ... # 10 fixed docs, 5+5, both entry points mean noul spam=0.9447 ham=0.0905 gap=0.8542 GATE PASSED: unmodified jev-reranker ranked from the XERJ node \nThe client's own validation is the wire gate. Answers keyed by the sent ids. Every noul numeric in 0..1. Model a non-empty string. Usage non-negative integers. Surviving it unmodified is the compatibility claim. The spam/ham separation is the semantic one. Zero requests left the machine. The vote is an ordinary search of an ordinary index, and the module adds no outbound client. \nThe first gate attempt failed. It is the most useful thing on this page. The wire puts the query in state , and the vote text joined it, so query vocabulary took part in retrieval. With a spam-bearing query like \"winner claim prize\", every document's vote retrieved spam neighbours. The vote measured the query, not the documents: spam 1.000 against ham 0.785. No separation. We first called that \"inherent to a retrieval vote\". It was not. It was two defects, and we fixed them. The vote text used to concatenate the instruction's prose into the retrieval query — wording alone moved accuracy 32 points (0.9867 with an empty instruction, 0.6700 with a criteria-rich one, same 300 held-out messages) — and an object state contributed only its query field, so {\"message\": …} voted on prose at the spam base rate (0.1733 against 0.9667 for the same message as a string). The vote text is now exactly what the question points at: its backtick references, or the state's own string content — never instruction prose, never state the question never named. After the fix, all eight wording/shape arms of the same 300 messages score identically (0.9767). One part is by design, and it is the client's choice, not ours: since 0.1.2 the client's own question references the query in backticks, so the query is named payload — the question being asked is \"does this document answer this query\". Pick the query for the history you have still holds: under the deliberately spammy query the gap narrows from 0.8542 to 0.6087, and the gate asserts both. ## Speed: the Rust side of the same wire \nA full news item against 120,000 labelled AG News examples is a heavy query. About 40 terms, and the match set is most of the index. This is the workload that exposed the waste in our own search loop. The old path built a hit list per term, folded them through hash maps, and sorted the whole match set. All that to return a size-10 page. We replaced it with a WAND-style pruned walk for the one shape every match query becomes. A document is now scored only when it can still make the page even at its best possible score. The method is the classic one from Broder et al., and the same idea tantivy uses, adapted to our postings format. \nAG News vote · 120,000 history docs · all 7,600 test items · identical inputs \nms / item \nAccuracy \nDecisions changed \n\nEngine before the change \n68.7 \n0.9182 \n— \n\nWAND first cut \n51.2 \n0.9182 \nnone \n\nWAND, allocation-free inner loop (shipped) \n34.2 \n0.9182 \nnone \n\n2.0× faster end to end, and the 7,600 decisions are bit-identical : same labels, same confidence bands. 83.1% of items decided at confidence 0.8 or higher, and 96.7% of those right. Zero items had no neighbour. Ranking quality did not move because scores are computed in the same order and to the same values. We proved that three ways. The three BEIR runs reproduce to four decimals on the new engine, 0.6572, 0.3016, 0.2382. A 648-query A/B over a byte-identical copy of the FiQA index found zero order changes and zero score-bit changes. The full ES wire-conformance suite on that branch stayed at 1371 passed, 0 failed — a dated capture from the wire-compat branch these runs measured; the site-wide canonical figure on every commit is on the benchmarks board. \nhosted Jev API XERJ node, this engine 1,230 ms 42.7 ms 34.8 ms hosted paid, text leaves /v1/systemone local, free /_decide local, evidence Same wire, p50 per call — hosted: FiQA run · local: 300 distinct items, one box The hosted bar is the Jev API's measured p50 on the FiQA rerank run in §02, 1.23 s per query. Its fastest of the three datasets, so the bar is generous to the hosted side; SciFact and NFCorpus measured 1.49 s and 1.48 s. The local bars are the same wire answered by the vote over 120k AG News history on this engine. Different tools: the hosted judge needs no history, the vote needs this index. This is a speed, cost and egress comparison, not a quality race. No Jev number exists for AG News and we claim none. \n## What the vote itself is worth \nMeasured earlier on the same engine ( the hub's ranking section ), on the vote's home ground: labelled history, in-domain classification. No judge model was run on these datasets by us, and none of these rows say anything about Jev. \nDecisions from labelled history · k = 10 · held-out items \nAccuracy \nCalibration error \nDecided at confidence ≥ 0.8 \nms / item \n\nBanking77, 77-way intent routing · 1,000 items — BM25, no model of any kind \n0.819 \n0.089 \n50.6% at 0.996 \n2.2 \n\nBanking77 — MiniLM neighbours ( --embed-mode neural ) \n0.933 \n0.012 \n86.9% at 0.979 \n8.6 \n\nSMS spam, yes / no · 1,000 items — BM25, no model of any kind \n0.983 \n0.017 \n95.4% at 0.992 \n0.9 \n\nAG News, 4-way topic · 7,600 items — BM25, no model of any kind \n0.9182 \n0.019 \n83.1% at 0.9669 \n34.2 \n\n$ # the audit surface — same vote, evidence attached $ curl -s localhost:9440/_decide -H 'content-type: application/json' \\ -d '{\"index\":\"sms\",\"question\":\"URGENT! Your Mobile number has been awarded\"}' {\"index\":\"sms\",\"k\":10,\"label\":\"spam\",\"confidence\":1.0,\"abstain\":false, \"neighbours\":[{\"_id\":\"1805\",\"label\":\"spam\",...,\"weight\":1.0}, ...]} \nRead this before quoting the compatibility claim. The node did not \"become a language model.\" It answers a typed judgement wire from a search over your own labelled history. It says so in its model field. It refuses what it cannot know: zero support, score -type ordinal questions. It attaches the neighbours behind every answer. If you need judgement where you have no history, a new policy, an unseen category, this is the wrong tool and the hosted judge is the right one. The two ends of the wire are complements, not competitors. \nLatency scales with the match set, not with the corpus. AG News items are long and match nearly everything, so they cost tens of milliseconds. Short texts on the same engine cost far less: SMS is 0.9 ms per message. One shape at one scale, measured. No TB-scale claim. \nWAND engine change: cf6a9989 , with the A/B logs · AG News artifacts and provenance: benchmarks/decisions-as-retrieval/results/2026-09-20-agnews · endpoint: engine/crates/xerj-api/src/systemone_api.rs · 14 end-to-end tests: tests/systemone_http.rs · operator doc: docs/DECISIONS.md · gate harness and transcript: benchmarks/systemone-gate . \n04 · THE ECONOMICS · RENTED JUDGEMENT, OWNED DECISIONS ## JUDGEMENT IS RENTED. ## DECISIONS ARE OWNED. \nThe judge's bill on the 300-query SciFact run, next to the vote's numbers on its own measured workloads. Two tools, two workloads, priced side by side: \nThe bills \nJudge (hosted, SciFact run) \nVote (local, own workloads) \n\nCash cost \n$0.4027 at $0.042/Mtok in \n$0 \n\nLatency per item, p50 \n1.49 s \n34.8 ms (measured on 120k AG News, its heaviest workload) \n\nDocument text that leaves the machine \n9.6 M tokens' worth (3 repeats) \nnone \n\nWorks with no labelled history \nyes, that is its job \nno, that is its limit \n\nCalibration, on its own target \nECE 0.10 cross-domain BEIR \nECE 0.012 in-domain Banking77 \n\nBoth columns survive contact with the other's weakness. The judge is the only option where there is no history. And every call is metered, slower, and ships document text to a third party. The vote is free, tens of milliseconds, and never leaves the node. And it cannot judge anything your history does not already cover. At 300 queries a day the judge costs $0.40 and is irrelevant to your budget. Use it freely. At 300,000 messages a day, at this run's measured 1.49 s per call, that is over 120 hours of provider latency per day , however you parallelise it. It is roughly $400 a day at this run's measured rate. And every one of those messages leaves the node. The vote answers each in tens of milliseconds, on the node, for nothing. \nWhy the wire matters more than either number. Every System One client, the reranker, the SDKs, whatever an agent is already holding, now has a second local implementation of the interface it speaks. Point TYPESAFE_ENDPOINT at a XERJ node when the questions have history and must stay home. Point it at the hosted API when they do not. Same client. Same wire. No code change. That is the whole bridge. \nWhat we claim, and what we do not. Claimed: every number on this page, from the runs cited beside it, on our node, our shortlists, the pinned model. Not claimed: anything about how Jev scores on Banking77, SMS or AG News. TypeSafe has published no such numbers and we ran none, which is why those tables carry no judge row. Not claimed: any zero-shot ability for the local vote, or that the published hosted-reranker figures and ours compare beyond dataset and metric. TypeSafe AI granted the evaluation key that made §01 and §02 possible. The measurements are of their model, through their documented API, and this project thanks them for the access. The findings are ours, warts published. ## Reproduce the gate \n$ git clone https://github.com/xerj-org/xerj && cd xerj/engine $ cargo build --release -p xerj-server $ cat > gate.toml <<'EOF' [decisions] index = \"sms\" k = 10 label_field = \"label\" text_field = \"text\" positive_label = \"spam\" min_confidence = 0.0 EOF $ ./target/release/xerj --insecure --port 9440 --config gate.toml # native REST on 9441 $ python3 benchmarks/systemone-gate/gate_load_sms.py # index 4,000 labelled SMS $ python3 -m venv ~/gate-venv && ~/gate-venv/bin/pip install jev-reranker $ TYPESAFE_ENDPOINT=http://localhost:9441/v1/systemone \\ TYPESAFE_API_KEY=local-only ~/gate-venv/bin/python benchmarks/systemone-gate/gate_run.py mean noul spam=0.9447 ham=0.0905 gap=0.8542 GATE PASSED: unmodified jev-reranker ranked from the XERJ node \nEverything on this page: the pilot · the full run · the FiQA run · the AG News vote · the gate · the research narrative · measured 2026-09-19..21 · engine at the wire-compat branch plus the WAND commit cf6a9989, ES-YAML conformance 1371 passed / 0 failed on that branch (canonical: 1366 / 1369 today) · related: the benchmarks hub · the rerank stage, documented · the ES scorecard . \n05 · THE ANSWER · FOUR SECTIONS, ONE ARGUMENT ## THE TITLE ASKED FOR A WINNER. ## THE MEASUREMENT FOUND A WIRE. \nRead in order, the four sections are one argument, and the title's question was never going to have a single winner. Measured over 1,271 judged queries the scoreboard is a split: the hosted judge takes SciFact and FiQA — +0.126 on FiQA, the biggest lift we measured — and the local hybrid keeps NFCorpus, 0.3448 to 0.3312 . On the bill XERJ wins outright: the FiQA rerank run cost 15,178,758 judge input tokens and $0.6375 , while the vote over your own history spends no tokens and sends no text off the node. What turns that split into something an operator can act on is §03: both ends now speak the same wire, so the same client — unmodified, as the gate proved — can take either answer. \nThree lessons outlast the tables. First, measure the integration, not the model : our stage scored 0.3822 where plain BM25 scored 0.7750, the defect was our request shape, and a judge answers the question you actually sent. Second, know your noise floor : the provider is not deterministic, any gap within ±0.01 nDCG@10 is noise, and a single-shot benchmark of a hosted judge is a coin. Third, a judge probability is an ordering, not a probability — ECE 0.3109 on FiQA, where documents rated 0.93 confidence were relevant 34% of the time. \nCarry these three rules out of the post. Measure the integration at the raw wire before you trust any number that comes back. Treat any hosted-judge comparison inside ±0.01 nDCG@10 as a tie. Order by the judge's probability; never threshold it with min_score . Each rule cost us a run to learn, and every run behind them is linked in the sections above. If you would rather check the claim than read about it: the gate recipe directly above is the whole verification path, and the engine behind it is one binary with a quickstart — or start in the playground before installing anything. The benchmark that matters is the one this post keeps pointing at: your own labelled history . Index it, ask /_decide , and read the neighbours that ride along with every answer. And if a System One client is already in your stack, the switch is one environment variable — point TYPESAFE_ENDPOINT at your node, exactly as the gate does, and keep the hosted API for the questions with no history behind them. \nEvery number on this page is verbatim from the runs cited section by section above · the wire-conformance board lives on the benchmarks hub · most recent from this repository: cutting the index 28% ."
+}
diff --git a/tools/packs/xerj-blogposts/posts/eval-scars-from-agent-memory.json b/tools/packs/xerj-blogposts/posts/eval-scars-from-agent-memory.json
new file mode 100644
index 000000000..73fee7f06
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/eval-scars-from-agent-memory.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-eval-scars-from-agent-memory",
+ "title": "Six eval scars from a production agent-memory system",
+ "description": "Guest recipes from Chunxiao Wang (Assay): topic slicing beat token windows on recall@1 by double digits, a 0.87 classifier nearly matched by a 0.78 always-yes baseline, and the mask bug that scored every query zero. Plus the corpus gap we checked and confirmed.",
+ "published": "2026-10-07",
+ "url": "https://xerj.org/blog/eval-scars-from-agent-memory",
+ "body": "← ALL POSTS · /BLOG \nGUEST CONTRIBUTION · AGENT MEMORY · RETRIEVAL EVAL · ISSUES #1118 + #1138 # SIX SCARS FROM PRODUCTION # AGENT-MEMORY EVAL, FROM SOMEONE BLEEDING THERE. \nGUEST · CHUNXIAO WANG, ASSAY / NAUTILUS-COMPASS · EDITED AND PUBLISHED BY XERJ ENGINEERING · 2026-10-07 \nWHY THIS POST EXISTS a guest answered our invitation with receipts We asked practitioners what a search engine built for agents is still missing. Chunxiao Wang of Assay ( nautilus-compass ) answered twice, in #1118 and #1138 , with six patterns from a production agent-memory system. Each one cost a real failure, which is the only currency eval advice should trade in. This post is their material, credited, with two additions from our side: where their patterns rhyme with how this repo already gates itself, and the honest answer to the question they asked back, namely where our corpus registry is thin against their workload. It is thin in exactly the way they guessed, and we checked before saying so. \nSix patterns, three themes: what changes when the corpus is the agent's own history, what an eval must freeze before anyone runs anything, and the arithmetic mistakes that make weak systems look strong. Every number in §01 through §04 is theirs. §05 is ours. \n## 01 · THE CORPUS IS THE AGENT'S OWN HISTORY \nRetrieving from a reference corpus and retrieving from session memory are different problems, and standard benchmarks cannot see the difference. Three of Chunxiao's observations carry it: \nThe observation \nTheir measurement \n\nthe query is a situation, not a question \nsession-memory queries arrive as imperatives shaped by task state (\"deploy failed again with 401\"), not information needs (\"how do 401s work?\"). Hybrid dense+sparse retrieval handled these better than dense-only in their runs, but the bigger effect was chunking \n\ntopic slicing beat token-window slicing \nchunking session memory by semantic topic instead of token window moved recall@1 by double digits in Chinese, and reversed the ranking of two embedding models relative to their MTEB scores. Benchmark-ledger performance did not predict in-distribution behavior on their session data \n\na failure hit is worth more than a manual hit \nwhen the corpus is the agent's own memory, a hit that surfaces that you already tried this and it failed beats a hit that surfaces the manual page. Nobody scores that today, in their words \n\nAnd the failure mode that hides from every dashboard: a fill_diagonal -style masking bug that excludes gold pairs from the candidate pool turns a retrieval eval into a constant-zero or constant-pass exercise. They shipped one. The test costs nothing: if every query scores zero hits, suspect your mask, not your model. \n## 02 · FOUR EVAL PATTERNS, EACH PAID FOR \nThe second contribution (#1118) is four patterns from building a verified-memory system. We keep them in their original order because the order is the story: distribution, leakage, calibration, variance. \nPattern \nTheir measurement \nThe recipe \n\nbenchmark scores do not transfer to your traffic \nbakeoff of bge-m3 vs Qwen3-embedding-0.6B on their own corpus (agent session memory, mixed zh/en): the MTEB-favored model gained +0.46pt recall@5 overall, under their transfer threshold, while the incumbent won recall@1 and the Chinese slices by +2.75pt \nre-rank embedders on a frozen sample of your own traffic before switching; public benchmarks are priors, not verdicts \n\ngroup by qid or your eval leaks \ncross-item contamination (train items from the same task family appearing in eval retrieval context) silently inflated their early numbers \nevery eval split is grouped by question or task id, never by row \n\nthree-valued retrieval beats binary \ntheir judge emits an unclear state with a confidence: Brier 0.069 with honest abstention, and the 2/27 abstentions in their latest public measurement were exactly the boundary rows \nlet the retriever say don't know; score abstention as part of calibration (ECE), not as failure \n\nto measure system drift, cache the inputs \nsame-day score swings of 0.93 → 0.30 → 0.90 looked like model drift; replaying cached inputs through the judge K times showed 0.0pp judge-side variance , all of it in the generated side \ntwo-stage variance attribution, replay-cached-input vs regenerate-then-judge, before blaming retrieval or judging \n\n## 03 · PREREGISTER, LABEL, BASELINE, PAIR \nThe third theme (#1138, recipe 2) is the discipline around the run itself, stated in four rules: \nThe rule \nThe scar behind it \n\nfreeze criteria before running: metric, threshold, stop-loss, and the exact verifiable artifact each claim points to. Criteria may only move stricter mid-stream; loosening needs a fresh preregistration \nevery rule here is a re-learned lesson from a run that was allowed to move its own goalposts \n\nlabel every claim measured, inferred, or unverifiable. Inferred claims carry an upgrade path \nthe most useful eval artifact they ever published was a self-report reading \"2 of 4 gates FAIL on recompute\" . The visible FAILs are what made the green credible afterwards \n\ncompute the majority-class baseline before claiming accuracy \na 0.87 binary classifier that a 0.78 always-yes baseline nearly matched, n=60, confidence intervals overlapping. Below n=100 the CI belongs next to every headline number, or the number is not a claim, it is a mood \n\npaired designs beat unpaired by an order of magnitude of information \nsame frames, two checkpoints, McNemar. Their unpaired reading overstated an effect by roughly 4× versus the paired one \n\nThe affinity is not an accident. This repo gates its own releases the same way: bars written before the work, FAILs kept visible in the notes, and a CI job that re-checks every claim in a release section against the tree it describes. The rc.80 gates post is the same philosophy with our numbers in it: three gates passed, three failed, one split, all published. When Chunxiao writes that visible FAILs are what made the green credible, that is the operating manual we already live by, arriving independently from a different domain. That convergence is worth more than either set of numbers alone. \n## 04 · THE QUESTION THEY ASKED BACK, ANSWERED HONESTLY \nTheir price for the recipes was not a star. It was this: an honest issue pointing at where the index is thin against these patterns, especially session-memory slicing and failure-turn retention. We checked the registry rather than answering from memory. The answer, posted in full in #1138 : \n0 agent-trajectory corpora at the hub, of 99 live 0 session or trajectory entries in the backlog, of 132 file / section our chunk unit, not the semantic topic their recall@1 needs Three thin spots, stated plainly. First, the corpus they described, real multi-session agent trajectories with timestamps and failure turns kept verbatim, does not exist at our hub: zero of the 99 live manifests and none of the other 131 backlog entries are session or trajectory data. Nobody using our reference corpora can score what they score. Second, our indexer chunks at file and section boundaries and keeps a locator back to the source span; for session logs that is the wrong shape, and we have no semantic-topic slicer to offer instead. Third, our memory features store curated facts an agent chose to keep, with BM25 recall by default; there is no native tried-and-failed marker and no retention of turns that went nowhere. \nWhat we did about it: the wanted corpus now has a named slot in the hub backlog ( agent-session-trajectories , status planned, demand-anchored to their issue), and if Assay can donate sanitized multi-session trajectories with failure turns intact, the contribution path is open by pull request . It would be a first-of-kind corpus at the hub. Their offer to recompute our benchmarks independently stands unaccepted for now, and it should not: an independent recompute of any number we publish is always welcome. \nWhat is claimed here, and by whom. Claimed by our guest, from their production system, with artifacts public in their repository: every measurement in §01 through §03, quoted from issues #1118 and #1138 with light editing and linked at each section. Claimed by us: the registry counts in §04 (98 manifests, backlog 132 rows after the wishlist entry, 99 live, zero matching a session, trajectory, chat or conversation query), verified 2026-10-07 by running the hub's own validator against the corpus-hub branch; the description of our chunking and memory features, which is a description of the code as it ships. Not claimed: that we have independently reproduced any of their numbers, that our engine today serves their workload well, or that the planned corpus exists in any form. It does not. That is the point of the backlog entry. If you have production scars of your own: the same invitation stands. Open an issue with what it cost you and what you measured, and if it survives our check against reality, it gets the same treatment, your name on it. The engine itself is one binary with a quickstart , and the agent-memory recipe is the closest thing we ship today to what §01 describes wanting. \nGuest material verbatim in issues #1118 and #1138 · their repository: nautilus-compass · the honest-gap comment: #1138 comment · backlog entry PR #1210 · related: the rc.80 gates · the Corpus Hub · the agent-memory recipe ."
+}
diff --git a/tools/packs/xerj-blogposts/posts/jev-vs-a-bm25-vote.json b/tools/packs/xerj-blogposts/posts/jev-vs-a-bm25-vote.json
new file mode 100644
index 000000000..15a94209f
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/jev-vs-a-bm25-vote.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-jev-vs-a-bm25-vote",
+ "title": "A BM25 vote ties Jev on spam and beats it on intent",
+ "description": "500 decisions each on SMS Spam and Banking77: a tie on spam (McNemar p=0.75), a 9-point retrieval win on 77-way intent at zero cost, and one dataset Jev wins.",
+ "published": "2026-09-22",
+ "url": "https://xerj.org/blog/jev-vs-a-bm25-vote",
+ "body": "← ALL POSTS · /BLOG \nBENCHMARKS · DECISIONS · SMS SPAM + BANKING77 · RUNS 2026-09-21 # A BM25 VOTE TIES JEV ON SPAM # AND BEATS IT ON INTENT \nXERJ ENGINEERING · PUBLISHED 2026-09-22 · UPDATED 2026-09-27 \nWe gave TypeSafe's Jev five hundred support messages to classify, then answered the same set from a XERJ index with no model at all. On spam the two tied. On fine-grained intent, looking the answer up in our own labelled history won by nine points. \n01 · THE SETUP ## What we compared \nJev is a decision model. You send it a question and a payload, and it returns a typed answer instead of prose, which is a genuinely useful shape for anything that has to branch on the result. \nIt also raises an uncomfortable question about our own product. If you already hold a pile of labelled history, do you need a model to classify the next item, or can you simply look it up? \nSo we built the dumbest competitor we could think of: retrieve the ten nearest labelled examples from an index, let them vote, and return the winning label. No training, no fine-tuning, no inference. We then ran it against Jev on two public datasets with five hundred held-out items each, scoring every arm with exact McNemar tests and bootstrap confidence intervals so that a difference of a point or two could not be mistaken for a result. \nDataset \nQuestion type \nClasses \nIndexed \nTested \n\nSMS Spam Collection (UCI) \nbinary noul \n2 \n4,000 \n500 \n\nBanking77 (PolyAI) \nmany-way choice \n77 \n10,003 \n500 \n\nOne thing to be precise about, because our own rules require it: rows labelled semantic or hybrid ran --embed-mode neural with all-MiniLM-L6-v2 in-process on CPU. XERJ's default embedder is lexical feature hashing, and the BM25 rows used no model whatsoever. Everything local still costs zero API tokens either way. \n02 · THE TIE ## On spam, nobody wins \nBoth systems get essentially every message right, and the difference between them is noise. \nSMS Spam, n=500 \nAccuracy \n95% CI \np50 \n$/1k \n\nmajority floor \n0.8440 \n.812–.876 \n— \n0 \n\nBM25 vote, no model \n0.9800 \n.968–.992 \n7.8 ms \n0 \n\nhybrid vote \n0.9840 \n.972–.994 \n26.5 ms \n0 \n\nJev, rich criteria \n0.9880 \n.978–.996 \n922 ms \n$0.0145 \n\nPaired on the same items, hybrid and Jev disagree on ten of them and split those six to four, which an exact McNemar test scores at p = 0.75 . There is no detectable difference in accuracy between a hosted frontier decision model and simply counting which labels turn up near your query. The gap that does exist sits in the other two columns, where the local arm is roughly thirty-five times faster and the bill is zero. \n03 · THE WIN ## On 77 classes, retrieval wins outright \nWe expected the fine-grained task to be where a hosted model pulled ahead. It went the other way, and not by a little. \nJev, hosted XERJ, local, no tokens 0.8240 0.8300 0.9140 0.9180 Jev choice, 77 options BM25 vote as shipped hybrid MiniLM, local semantic + RR best arm Banking77 accuracy, 500 held-out utterances — run 2026-09-21 Paired, the two disagree on eighty-five items and Jev loses sixty-five of them, which is decisive at p < 0.0001 . The best local arm also calibrates better by a factor of three on expected calibration error, so unlike the hosted arm its confidence is worth thresholding on rather than merely sorting by. \nWhy would a vote beat a model here? Because seventy-seven intents in a banking app are not a general reasoning problem, they are a vocabulary problem, and that vocabulary is already sitting in the index. A model that has never seen this bank's phrasing has to infer the whole taxonomy from a list of option strings, while the index holds ten thousand examples of how real customers actually word each one. \n04 · THE CROSSOVER ## How much history you need before this works \nThis is the number we would most want if we were reading someone else's post, so here it is. \nBanking77 history indexed \nPer class \nAccuracy \nvs Jev 0.8240 \n\n385 \n5 \n0.5740 \nfar behind \n\n770 \n10 \n0.7420 \nbehind \n\n1,925 \n25 \n0.8360 \npasses Jev \n\n3,850 \n50 \n0.9120 \nclear \n\n10,003 \n130 \n0.9140 \nflat after here \n\nTwenty-five labelled examples per class. Below that line it is worth paying for the model, and above it you are paying a vendor to do worse than your own archive. Most support teams crossed that threshold years ago without noticing, which is the part of this result that seems genuinely interesting. \n05 · THE LOSS ## Where Jev beat us, and why \nOn DBpedia, Jev wins 0.9800 to our 0.9125. Fourteen ontology classes, encyclopaedic text, and a taxonomy whose boundaries are semantic rather than lexical. Our embedder puts Artist and Athlete near each other because the sentences look alike. Jev knows they are different kinds of thing. We nearly published a much better-looking number here. Our first DBpedia run dumped the class labels as bare integers, so Jev was scoring at chance and the result looked like a rout — until we read our own harness and found the bug. With real class names the comparison flipped completely, and the honest version is the one above. \nThere is a second loss worth naming, and it is structural rather than incidental. Ask a question whose answer is not in the label vocabulary at all and retrieval scores zero, because a vote can only ever return a label it has already seen; Jev answers the same question zero-shot with the best calibration we measured anywhere. A vote is not a reasoner, and we should stop pretending that the two substitute cleanly for one another. \n06 · THE BUGS ## The comparison found two defects in our own code \nRunning a competitor properly is the cheapest code review available, and two of ours failed under it. The first is an instruction bug, which showed up when we tested a four-step ladder running from \"Is this spam?\" up to a multi-clause policy and the two systems moved in opposite directions. \nInstruction \nJev \nOurs \n\nL1 · \"Is this spam?\" \n0.9633 \n0.9900 \n\nL2 · one clarifying clause \n0.9833 \n0.9667 \n\nL3 · explicit criteria \n0.9867 \n0.8100 \n\nL4 · multi-clause policy \n0.9900 \n0.6400 \n\nThe cause is that our implementation concatenates the instruction into the retrieval query. A longer instruction is better guidance for a model and steadily worse query text for an index, because the instruction is a question rather than something to search for, which is filed as #1000 . \nThe second defect is quieter and worse: a structured state payload was being silently discarded, so the endpoint returned confident answers computed from an empty context and nothing ever errored. That one is #1001 . \n07 · LIMITS ## What we are not claiming \nBoth datasets are public and may sit in Jev's training data. That biases the comparison in Jev's favour, which makes the Banking77 result conservative rather than inflated, but it is still a real limit on what two datasets can tell you. \nThe runs used one vendor model version over a single week, sampled once per item, on a shared machine whose load average wandered between eight and twenty-two. Local latencies are therefore lower bounds, and Jev's include a network path nobody outside TypeSafe can see. \nEvery item was a short English text with a single label, in one language. Nothing here shows that the result transfers to long documents or multilingual corpora, and that claim stays unmade until somebody measures it. \n08 · THE TAKEAWAY ## Count your labels before you pay for a model \nRead together, the three datasets answer the question this post opened with. If the task is a closed vocabulary you already hold thousands of examples of, looking the answer up is not the budget option: on Banking77 it was the more accurate one, and it costs zero API tokens. If the task is binary spam, there is no detectable difference, and the tie is the finding. If the taxonomy is semantic rather than lexical, as on DBpedia, the model is the one to reach for. \nThe operational form of all of it is the crossover: twenty-five labelled examples per class on Banking77, the only dataset we measured it on. Below that line it is worth paying for the model; above it you are, on this evidence, paying a vendor to do worse than your own archive. \nA vote is not a reasoner. A vote can only return a label it has already seen; Jev answers zero-shot, with the best calibration we measured on any zero-shot arm. The rule this post earns is compositional, not a substitution: on a labelled workload, try the lookup you already own first, and keep the model for what the archive cannot see. Every number above traces to the runs in sections 02–06 — the spam tie at p = 0.75, the Banking77 win at p < 0.0001, the DBpedia loss, and the two defects now filed as #1000 and #1001 . The full write-up, every arm and the per-item predictions live in the study; the endpoints are /v1/systemone and /_decide , both documented in the docs ; the retrieval side of the story continues in our earlier post on reranking and on the benchmarks page . \nIf you would rather check the claim than read about it, the shortest path is the quickstart , an index recipe , and your own labelled archive: index the history, hold five hundred items back, ask /_decide , and score the disagreements the way we did. Your archive is the benchmark that matters."
+}
diff --git a/tools/packs/xerj-blogposts/posts/one-vulnerability-three-names.json b/tools/packs/xerj-blogposts/posts/one-vulnerability-three-names.json
new file mode 100644
index 000000000..287641817
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/one-vulnerability-three-names.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-one-vulnerability-three-names",
+ "title": "One vulnerability, three names — and a pack we sign",
+ "description": "The same Rust vulnerability arrives as RUSTSEC, GHSA and CVE. We collapsed 4,107 advisories to 1,950 identity-resolved records, packed them, and signed the pack — because no vulnerability database we surveyed does.",
+ "published": "2026-09-27",
+ "url": "https://xerj.org/blog/one-vulnerability-three-names",
+ "body": "← ALL POSTS · /BLOG \nCORPUS PACKS · IDENTITY RESOLUTION · ED25519 · BUILT 2026-09-26/27 # ONE VULNERABILITY, THREE NAMES, # AND A PACK WE SIGN \nXERJ ENGINEERING · PUBLISHED 2026-09-27 \nThe same Rust vulnerability arrives as RUSTSEC-2021-0003 , GHSA-43w2-9j62-hq99 and CVE-2021-25900 — three records, in two databases that never talk to each other, none of them carrying everything the other knows. We built a tool that collapses them into one record, packs it into something portable and checksummed, and then signs the pack. The last part is the strangest finding of the project: in our survey of vulnerability databases people pip-install and OCI-pull every day, not one ships a signature a consumer can verify. \n01 · THE PROBLEM ## Two sources, each sure it is the whole story \nWe started with the sources everyone reaches for, and measured what each one actually carries for the Rust ecosystem: \nSource (both CC0) \nRecords \nHas \nMissing \n\nosv.dev crates.io export \n2,856 \nGHSA + RUSTSEC + MAL ids, CVSS scores \nzero affected-function data; aliases never merged \n\nRustSec advisory-db \n1,251 \ncurated vulnerable-function paths, categories, keywords, full advisory prose \nno GHSA-only records \n\nGitHub advisory-database \n— \nthe same crates.io records \nits extra fields are marked internal-use-only — we never read them \n\nThe alias problem is the one that hurts an agent most. osv.dev's export lists the same vulnerability twice — once under its GHSA id, once under its RUSTSEC id — with a shared CVE in each record's alias list, and no merge ever performed between them. Search it for “smallvec insert_many” and you get whichever filing happened to phrase it that way; the other half of the knowledge is a separate record you did not retrieve. RustSec fixes the merge by being one curated database, but it cannot see GHSA-only filings at all. \nHackerOne, the source the original brief asked about, is out of scope for a different reason: report content there is unredistributable under its terms of service. A pack's author owns what goes in the pack, and this pack ships only sources whose licence lets us redistribute them. \n02 · THE RECIPE ## Identity resolution as a declarative file \nWe did not write a Rust-vulnerability importer. We wrote a corpus builder whose entire domain knowledge lives in a commented TOML recipe — because the next corpus is not advisories. The same tool with a different recipe indexes mailboxes, or code, or genomes; nothing about the pipeline knows what a vulnerability is. \nThe identity section is three lines: \n[identity] edges = [{ field = \"id\" }, { field = \"aliases\", each = true }] canonical_source_order = [\"rustsec\", \"osv\"] \nUnion-find over those edge values does the rest, and it closes chains for free: a RustSec filing and a GHSA filing that share a CVE alias merge even with no direct edge between them, because each is transitively bound to the CVE. Measured on the real sources: \nrust-vulns, measured off the committed build \nCount \n\nsource records harvested (envelopes) \n4,107 \n\nrecords after identity resolution \n1,950 \n\n…merged from both sources \n1,221 \n\ncanonical id: RUSTSEC / GHSA / MAL \n1,221 / 711 / 18 \n\nrecords carrying curated function paths \n270 (663 distinct paths) \n\nwithdrawn advisories (kept, flagged) \n124 \n\npackages covered · records JSONL bytes · cold build \n1,813 · 10,140,789 · ~34 s \n\nThe function paths are the field no export carries. RustSec's hand-curated affected.functions — which function in which crate is the vulnerable one — survives the merge unioned across sibling filings: one 2026 CVE filed against three libcrux-* crates becomes one record carrying all three crates' paths. For an agent asking “is this call the dangerous one?”, that is the whole difference between a hit and an answer. \nMerge precedence is declared, not discovered: RustSec wins a disagreeing scalar because it owns the curated fields; arrays are always unioned; the merged record's licence is the most restrictive of its sources and sources[] names every contributor, so a merge is auditable after the fact. Withdrawn advisories are kept and flagged rather than dropped — filtering is the consumer's decision, not the pack's. \n03 · THE PACK ## A directory you can move, and a machine that refuses surprises \nThe build emits a self-contained directory: sharded records in canonical JSON order, a manifest with per-file SHA-256 checksums, the recipe verbatim as provenance, and suggestions — a proposed field mapping and join candidates computed from a sample, explicitly suggestions, not decisions , because the index infers the real mapping the way it does for any folder. \nTwo rules in the format are load-bearing. A manifest carries a format_version that readers refuse when they do not know it — a published pack outlives the release that built it. And installing one verifies every checksum before anything is materialized, so a truncated or edited pack is refused whole, not half-mounted: \n$ xerj corpus add rust-vulns --from rust-vulns-pack.zip --verify-sig rust-vulns.pub $ xerj corpus index rust-vulns $ xerj code rust-vulns \"smallvec insert_many buffer overflow\" \nIncremental rebuilds need no mode flag: every normalized record is stored content-addressed, so a re-run recomputes each key, sees the file, and skips. Only new or changed upstream records are written, and the pack re-emits deterministically from whatever the store holds — same bytes in, same pack out, which is what makes a signature over it meaningful. \n04 · THE SIGNATURE ## Checksums prove integrity. They do not prove origin. \nHere is the attack that checksums cannot stop. Take a pack. Edit records — flip a fixed_versions string, say. Recompute every file's checksum and rewrite SHA256SUMS honestly. The pack now verifies perfectly against its own manifest. Every checksum agrees, because the checksums were never the thing being attacked — the pack's origin was. \nWe pinned exactly this in a test: a self-consistent rebuild passes every checksum check and fails the signature. That gap is the entire reason the pack carries one — a raw 64-byte ed25519 signature over SHA256SUMS , verified by xerj corpus add --verify-sig <pubkey> before a byte is materialized. \nBefore building it we surveyed what the existing ecosystem ships, and found the lane empty. None of these is a criticism of the projects — their data is good and their tooling is real; it is a statement about the format: \nDatabase (our survey, 2026-09) \nDistribution \nIntegrity mechanism \n\nTrivy DB \nOCI artifact, 6-hour builds \nchecksums in registry metadata — no consumer-verifiable signature \n\nGrype / vunnel \nper-provider feeds \nunsigned \n\nPrimeVul \nHugging Face dataset \nunsigned \n\nVulnRAG \nresearch artifact \nunsigned \n\nThe design rules we landed on, each one because its absence would make the signature decorative: \nThe public key travels out of band — committed beside the recipe in the repository, mirrored on our site, never inside the pack. A key shipped beside its own signature verifies nothing: an attacker who can replace the pack can replace the key. \nBuild and publish are different steps. corpus build emits; it never signs. The seed exists only as a CI secret, and the publish workflow signs, then verifies its own output against the committed public key before publishing — a rotated key that forgot to update the committed .pub fails the build instead of shipping a pack no consumer can verify. \nThe signature covers the checksum file , which covers every pack file; the signature itself is deliberately absent from the checksum list, because signing a list that contains the signature is circular. \nWhat the signature does not do. It proves who built a pack, not that the pack is safe to open — a verified pack is exactly what the key holder built. And it is one release key in v1: rotation means a new keypair, a new CI secret, a committed .pub , and consumers choosing to trust the new one. We wrote the procedure down before we needed it. 05 · THE HONEST PART ## What this is not \nNot a security product. It is a searchable corpus of advisories for agents and humans, with no completeness claim beyond what its two sources carried at build time. It is not a scanner and will not tell you what is running in your production. \nFreshness is a cron job, not a promise. The publish workflow rebuilds daily; between a source updating and the next run, the pack lags by up to a day. Each release carries its build date and record count as a freshness file, and the same 30-day staleness refusal that governs every reference corpus governs ours — a workflow that stops running shows up as a stale pack, not a silently aging artifact. \nRecords, not an index. Installing the pack still costs every consumer the same CPU-minutes to index — the pre-indexed half of the corpus-hub idea is a separate, harder format problem (a published index needs a compatibility promise our internal segment format has never had to make). \nThe value hypothesis is unproven. Trivy's database gets pulled because scanners need it at scan time; an agent-facing vulnerability corpus has weaker daily pull, and the honest analogy is template packs that took years to compound. What we can say is what the pack uniquely carries — identity-resolved clusters, the curated function paths, a signature — and that the numbers above are measured, not projected. \n06 · THE TRACE ## Every number, pinned to a run \nThe counts in section 02 come from tools/packs/rust-vulns — a committed pack-stats.json whose provenance field says measured , with a test that fails the build if the README's table and the stats file drift apart, and another that fails if the stats describe any recipe other than the one shipped. The builder, the signature code, and the pack format are in the same repository under engine/crates/xerj-autoindex/src/harvest/ , and the format is documented end to end in docs/CORPUS_PACKS.md . \nThe pack itself ships as a GitHub Release per build day — dated pack-rust-vulns-YYYY-MM-DD tags, newest first at releases?q=pack-rust-vulns — rebuilt and signed on a schedule, with the zip, the loose checksums, the signature, and a freshness file as assets. (Our repository has immutable releases — release tags are single-use — so there is no single rolling URL; each day's release is exactly the bytes that shipped, pinned by its signature.) Build it yourself instead, from the recipe, if you would rather trust your own machine than our key; that is a supported path, not a workaround. If your agent works with Rust dependencies, point it at the pack and ask it the question a raw export cannot answer: which function is the vulnerable one?"
+}
diff --git a/tools/packs/xerj-blogposts/posts/the-corpus-hub.json b/tools/packs/xerj-blogposts/posts/the-corpus-hub.json
new file mode 100644
index 000000000..6e290c201
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/the-corpus-hub.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-the-corpus-hub",
+ "title": "The Corpus Hub: pinned, licenced, signed, contributed by PR",
+ "description": "A public registry of corpora for AI agents: reference code pinned to SHAs, record packs ed25519-signed, every source licence-reviewed by a human. The measured use case (2.7× fewer output tokens), the tie we published anyway, and how to contribute yours by PR.",
+ "published": "2026-10-01",
+ "url": "https://xerj.org/blog/the-corpus-hub",
+ "body": "← ALL POSTS · /BLOG \nCORPUS HUB · PINNED · LICENCED · SIGNED · BUILT 2026-10-01 # THE CORPUS HUB: PINNED, LICENCED, SIGNED, # AND CONTRIBUTED BY PULL REQUEST \nXERJ ENGINEERING · PUBLISHED 2026-10-01 \nEvery team that points an AI agent at a body of knowledge re-solves the same four problems in private: which exact version of the sources, under what licence, whether the copy you have is the copy I have, and who vouches for the bytes. We are opening the answers as a registry: the Corpus Hub , a branch on our GitHub where corpora arrive as pull requests — source pinned to SHAs, licences reviewed by a human per source, record packs checksummed and ed25519-signed. It ships with four reference corpora, one signed daily pack, a measured use case, and one result we did not want and are publishing anyway. \nUpdate, 2026-10-06: the registry has outgrown this post. The launch four are now 100 live corpora (119 backlog rows, every live one named in the xerj-code skill's domain-selection table since rc.83) across seven categories — including non-IT domains mined from real demand: eCFR titles 12/26/29 and UK legislation — and the registry has its own site: browse every corpus with its licence verdict, pin, size, use case and measured retrieval scores at hub.xerj.org . What follows is the post as written at launch. \n01 · THE PROBLEM ## Agent context is everyone's private plumbing \nAsk five teams what their coding agent retrieves from and you get five ad-hoc pipelines: a folder of cloned repos of unknown vintage, a wiki dump, a vector store someone seeded months ago. Each works, privately, and none of them can be shared, because a shared corpus needs four things a folder does not carry: \nProperty \nWhy it matters \nHow the Hub does it \n\npinned \ntwo people must retrieve the same bytes or results are incomparable \nevery repo recorded at the full SHA the build used; moving a pin is its own PR with a reason \n\nlicenced \n\"where did this text come from and may I act on it\" is not optional the day someone pastes \na human review block per source — adapt-freely / read-don't-paste / mixed — not a detector's guess \n\nchecksummed \na corpus that silently drifts is a corpus that lies \npacks carry per-file SHA-256; corpus add refuses the pack whole on mismatch \n\nsigned \nchecksums prove integrity; only a signature proves authorship \ndetached ed25519 over SHA256SUMS, verified with --verify-sig before a record is trusted \n\nThat last row was the strangest finding of our pack work : of the vulnerability databases people pip-install and OCI-pull daily, none ships a signature a consumer can verify. The Hub does, because a corpus an agent reasons from is supply chain, and supply chain runs on authorship, not just integrity. \n02 · WHAT IS IN IT ## Two lanes: reference corpora and record packs \nReference corpora are other people's source code, cloned at pinned commits — the material for reference coding , where an agent reads how three other engines solved the problem before writing a fourth. Record packs are structured data you curate — the first is 1,950 Rust vulnerability advisories identity-resolved across osv.dev and RustSec, rebuilt and signed daily. One command each: \n$ xerj corpus add --from https://raw.githubusercontent.com/xerj-org/xerj/corpus-hub/tools/xerj-code/hub/xerj-storage.json $ xerj corpus index xerj-storage $ xerj code xerj-storage \"flush epoch crash recovery\" \ncorpus \nlane \ncontents \nuse it for \n\nxerj-search \nreference \nlucene, tantivy, quickwit, meilisearch, sonic, elasticsearch \nFTS, BM25, merge policy, ES wire semantics \n\nxerj-vector \nreference \nqdrant, usearch, instant-distance, hnswlib \nHNSW construction, quantisation, filtered kNN \n\nxerj-storage \nreference \nsled, fjall, redb \nWAL, crash recovery, compaction \n\nxerj-columnar \nreference \nclickhouse \ncolumnar layout, codecs, vectorised scans \n\nrust-vulns \npack \n1,950 identity-resolved advisories, signed, daily \nvulnerability precedent, affected-function lookup \n\nThe grouping rule is the one design decision that matters: corpora are built by domain, not by language or popularity. A corpus that contains everything retrieves like a search engine with no query. The four reference corpora exist because an agent working on merge policy and an agent working on HNSW construction need different precedent — the same study that shows retrieval winning also shows the win gated by having the right precedent, not more of it. \n03 · THE USE CASE, MEASURED ## Reference coding: the same solve rate, 2.7× fewer output tokens \nThe Hub's reason to exist is the measured one. In a controlled study — 16 tasks across five languages, on libraries written for the study so no training set contains them, each carrying a runtime contract the compiler cannot warn about — an agent with XERJ reference corpora and the same agent with native file access both solved 16/16 . The difference was what it cost: \n\nnative (grep + read files) \nXERJ reference corpora \n\ntasks solved \n16/16 \n16/16 \n\noutput tokens (median) \n26,477 \n9,982 (2.7× fewer) \n\ncost \n$3.27 \n$1.58 (2.1× cheaper) \n\nRead the fine print, because it is the same fine print the next section turns into a whole experiment: on the study's two memorised public controls (tantivy; valkey + memcached), retrieval was neutral-to-harmful — the model reproduces even a 256-value quantisation table from memory. The collapse happened exactly where the agent could not have known the answer — a runtime rule like \"seal before you read\", a recovery order no compiler will tell you. Without retrieval, the same model solved 1 of 21 such tasks and burned $21.9 flailing; with native grep but no retrieval focus, one corpus had ~1.06M input tokens of file content pulled into context. \nThe pack lane answers a differently-shaped question. Reviewing code and wondering whether a pattern has precedent: \n$ xerj code rust-vulns \"smallvec insert_many buffer overflow\" \nreturns the identity-resolved advisory — one record carrying the RustSec prose, the GHSA filing, the CVE, the affected functions, the fixed versions — instead of three half-records in two databases that never talk to each other. \n04 · THE MEASUREMENT WE DID NOT WANT ## We A/B-tested the corpus on our own code. It tied. \nBefore opening a hub we ran the experiment that would justify it: two blinded arms auditing XERJ's own engine for security vulnerabilities — a plain agent, and the same agent with the rust-vulns corpus and XERJ retrieval. Same task, same turn budget, same pinned binary, two independent runs per arm, and a manual gate that re-proved every finding dynamically before counting it. Result, published in full : \n\nplain agent \ncorpus + XERJ \n\nfindings filed \n20 \n18 \n\nconfirmed exploitable (dynamic PoC) \n13 \n16 \n\nfalse positives \n1 — its only CRITICAL claim \n0 \n\ncost / wall clock \n$65.72 · 99.7 min \n$70.55 · 89.8 min \n\nfindings traceable to the corpus \n— \nzero \n\nThe corpus arm was marginally better on precision and it was never queried — one unused sweep call in one run, zero in the other. A tie, published as a tie, and then diagnosed against the pack itself: 1,963 records of advisory prose, only 14% containing any code, nothing that retrieves against a code-shaped question like \"does slicing at a byte offset inside a multi-byte character have precedent?\" — while half the pack was published after 2025, so memorisation was never the whole story. The failure was surface (nothing made retrieval the natural move), then shape (prose cannot match code), and only then size. \nThat diagnosis is now the Hub's roadmap, with pre-registered predictions : the next pack generation is code-shaped — version-pinned vulnerable functions extracted at the fix commit, before/after regression tests as trigger pairs, a bug-class taxonomy seeded from the 33 confirmed defect classes the two arms found — because we measured 9.8 extractable vulnerable functions per advisory and that is what a reviewer's question can actually retrieve against. If the re-test still ties, that gets published too. A registry whose numbers you can check is worth more than a demo. \n05 · CONTRIBUTE ## One pull request, two lanes, a licence table \nThe Hub is a branch: corpus-hub on xerj-org/xerj. Branch from it, open a PR against it, and a stdlib-only validator checks the format on every push — manifest fields, full 40-hex SHAs, licence review blocks, recipe shape, no binaries, no private keys. The full guide with templates lives in /docs/corpus-hub and in the branch's CONTRIBUTING.md . What a reviewer will actually hold you to: \nrule \nwhat it means \n\na nameable domain \nfinish the sentence \"an agent working on ___ would query this for ___\" or it is not ready \n\nun-memorised content \nretrieval's measured win is on niche, private, internal, post-cutoff material — not on famous snippets a model knows by heart \n\nhuman licence review \na review block per source with one of three verdicts: adapt-with-attribution (Apache/MIT/BSD), approach-only (AGPL/SSPL/Elastic/BUSL/GPL — read the design, never paste), or mixed \n\nno binaries in git \nrecipes and manifests only; built packs are signed Release assets a maintainer attaches after review \n\nThe licence row is where we are least flexible, because we have been burned by our own tooling: our licence detector once reported Elasticsearch as Apache-2.0 — the AGPL text contains the phrase «an \"Apache License 2.0\" compatible license» — and a detector's false \"permissive\" is how restricted code ends up pasted into an Apache-2.0 project. So the CI checks that a human review block exists ; only the reviewer's own opened licence file makes it true. \nWhat is next for the Hub itself: the code-shaped pack generation above, and the pre-indexed half — a corpus you mount instead of indexing, so a consumer's CPU is not the price of entry. Both tracked in the open. If you have a domain worth retrieving from — engine internals, protocol specs, incident postmortems, hardware errata — the branch is open."
+}
diff --git a/tools/packs/xerj-blogposts/posts/the-exploit-hub.json b/tools/packs/xerj-blogposts/posts/the-exploit-hub.json
new file mode 100644
index 000000000..9b97e76fc
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/the-exploit-hub.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-the-exploit-hub",
+ "title": "The exploit hub, tested on three fresh CVEs",
+ "description": "We ran the exploit corpus against three CVEs it had never seen: one query named the exact route and field for one, an in-corpus 2026 exploit named the exact denylist segments the vendor shipped for another, and the third proved the corpus adds nothing when its stratum is empty. Losses included.",
+ "published": "2026-10-08",
+ "url": "https://xerj.org/blog/the-exploit-hub",
+ "body": "← ALL POSTS · /BLOG \nCYBER-EXPLOITS CORPUS · A/B EVAL · SEALED GROUND TRUTH · RUN 2026-10-08 # THE EXPLOIT HUB, TESTED ON # THREE FRESH CVES \nXERJ ENGINEERING · PUBLISHED 2026-10-08 \nThirty-six proof-of-concept repositories for CVE-2026-23744 sit in our exploit corpus. One query over 1.09 million PoC documents named the exact route, the operative field, and the one-request trigger, with citations. The advisory alone could not name any of the three. Then we unsealed the vendor patch, and both arms, with the corpus and without, had predicted the wrong fix. That is the whole eval in one sentence: the corpus answered attribution questions nothing else could, and did not magically answer the one nobody could. This post is the full run, losses included. \n01 · THE DESIGN ## Two arms, sealed ground truth, and a negative control we ran against ourselves \nWe picked three CVEs published after the corpus pin date and ran each through two arms of the same analyst session: \nArm A, advisory only. The CVE prose, nothing else. Written and frozen before a single retrieval query ran in the session. \nArm B, advisory + corpus. Same knowledge, plus retrieval over the cyber-exploits group: exploit-pocs-2026 at 1,093,749 documents across 5,644 indices, exploitdb-src at 218,329, the cve-records stratum, and vuln-fix-commits (8,546 of 30,207 fix-commit payloads fetched at run time). \nGround truth was sealed before Arm B wrote a word: vendor patches downloaded and diffed unread, PoC repositories cloned but unopened, then unsealed only after both arms were frozen. Every query Arm B ran is logged in the artifacts, including the ones that failed. \nThree honesty rules shaped the scoring. First, this is a pilot: n=3, one analyst, so it is a case study with measured arms, not statistics. Second, when retrieval adds nothing we count the case as added-nothing rather than dropping it from the denominator. Third, we ran a negative control against our own claim: cloning the three needle PoC repos and grepping them took 2.1 seconds and found the same endpoint, with the repo names already in hand. The corpus is not a fetch accelerator. It is the discovery layer: Arm A had no way to know those repositories existed, which three to read, or that 33 others corroborate the same route. \n02 · THE NEEDLE ## CVE-2026-23744: one query, exact attribution, wrong patch \nThe one case whose PoCs are in the corpus. The question a working analyst asks first is not “what class is this?” but “what exactly do I send, and where?” \nQuestion \nArm A (advisory) \nArm B (corpus) \nSealed truth \n\ntechnique class \nright, inferred from CWE-306 prose \nright, cited from 3 independent PoCs \nunauth endpoint + stdio command launch \n\nexact route + field \ncould not name \nPOST /api/mcp/connect , serverConfig.command \nconfirmed in all PoCs \n\ntrigger steps \nambiguous (install vs connect) \none POST, command launches in-request \nconfirmed \n\npatch mechanism \n3 candidates, argued auth+transport \nsame pair, argued more confidently \nbind 127.0.0.1 only; both arms wrong \n\npatch file \ncould not name \nguessed the route file \nserver/index.ts (hostname constant) \n\nThe retrieval cost was measured, not vibes: two shipped-client queries (14.2 s and 5.7 s, both failed for reasons in section 05) plus three direct multi_match queries at about a second each, roughly 23 seconds end to end over 1.09M documents. The vendor patch, when unsealed, turned out to be one line: the stdio server hostname constant moved from 0.0.0.0 to 127.0.0.1 . The unauthenticated route is still there. Both arms dismissed that candidate as insufficient, and the corpus evidence made Arm B more confident in the wrong pair. Attribution and fix prediction are different questions, and the corpus answered only the one it had evidence for. \n03 · THE ANALOGY ## CVE-2026-105844: no PoC anywhere, so the corpus lent a neighbor \nNo PoC for this CVE exists in the corpus or, at eval time, anywhere public. Arm B ran on analogy retrieval instead: how do same-year prototype-pollution exploits in the corpus actually work? The productive query returned an in-corpus 2026 writeup (exploitdb entry 52528, deephas 1.0.7, CVE-2026-25047) that names both path shapes and the filter-bypass variants: \n\"1. constructor.prototype path + hasOwnProperty bypass 2. __proto__ path + indexOf bypass\" gadget family: process.env, require.extensions, child_process or: hasOwnProperty / toString pollution for auth bypass \nThat transformed the patch prediction from a shape into a spec. Arm B predicted a denylist of prototype-sensitive path segments plus a null-prototype accumulator. The sealed 3.88.0 diff shipped a new fieldPath.ts with Set(['__proto__','constructor','prototype']) and an Object.create(null) in the nested-assignment helper, plus a 400 on bad paths. Both mechanisms named, the denylist contents named. The losses: neither arm could name the vulnerable file (it was setNestedValue.ts and friends in the import-export plugin), and Arm B narrowed the entry point to the import half when the truth was the export preview. Arm A had hedged both halves and was right by hedging. Analogies sharpen mechanisms and can over-narrow entry points. \n04 · THE EMPTY STRATUM ## CVE-2026-97332: the case the corpus added nothing, counted \nA WordPress multisite plugin whose private uploads directory is served directly because the root-level rewrite rule never matches the per-site path. The advisory title already states the mechanism, so Arm A was concrete from prose alone. Arm B ran three queries against the exploitdb stratum looking for a close precedent for the class and found none: that stratum is weighted to older RCE/SQLi/upload classes, and WPScan-sourced CVEs rarely get GitHub PoCs at all. \nRetrieval cannot manufacture what is not indexed. The case is counted as adds ~0 in the final tally rather than dropped, because a corpus eval that only reports its hits is marketing. The sealed patch was a fourth shape nobody listed: a folder-level .htaccess inside the uploads directory, generated at activation, with a Require all denied fallback for hosts without mod_rewrite. \nThe tally across the pilot: technique attribution 2 of 3 improved by the corpus (one from nothing to exact, one from generic to same-year-cited), patch-mechanism prediction 1 of 3 improved, 1 of 3 cases added nothing. Two related measurements fell out of the run: zero of 128 post-pin CVEs checked had any public PoC at eval time, so fresh-CVE PoC evaluation needs either pin-rolling or corpus-present CVEs as the eval set; and the raw group stands at about 37.6 GB against the 50 GB build target, a number we report as it is because the gap is fetch backlog, not padding. \n05 · THE DEFECT ## The eval caught a live bug in our own client \nArm B's first two queries used the shipped xerj code client and surfaced zero of the 36 indexed needle PoCs on natural queries. That is not acceptable in a product whose pitch is exactly this query, so we dug in instead of routing around it. \nMechanism, measured: the client builds its field list from the union of mappings across every index in the corpus. One index family in the group maps an extra text field, so the union grows to four fields, and the engine then zeroes every multi-token multi_match for the roughly five thousand indices that do not map the fourth field. Drop the poison field and the needle appears: \nmulti_match field set (same query, same corpus) \nHits \nNeedle PoCs in top results \n\n[body, defs, title, text] (client union, shipped) \n39 \nabsent; one 23,745-word wordlist index dominates \n\n[body, defs, title] \n27 \n16 distinct needle docs in the top 27 \n\nFiled as issue #1238 with the table above, the fix direction (unmapped fields should be skipped per index with a hint, the way search engines with mappings already treat them, and the client should intersect mappings rather than union them), and a two-index regression test proposal. We are stating the obvious conclusion: an A/B harness run over a real corpus doubles as corpus QA, and the eval paid for itself before the blog post existed. \n06 · WHAT IS IN THE GROUP ## Four strata, one join, and a licence line we do not blur \nStratum \nContents \nStatus at eval time \n\nexploit-pocs-2026 \nPoC repository source, per-repo indices, full-text \n1,093,749 docs / 5,644 indices, live \n\nexploitdb-src \nExploit-DB entries with source, full-text \n218,329 docs, live \n\ncve-records \nCVE/NVD records with CVSS, references, CNA prose \npartial, apply phase in progress \n\nvuln-fix-commits \nthe fix side: inventoried commits linking advisories to patches \n8,546 / 30,207 payloads fetched, backfill running \n\nThe join the group exists for is the one nobody ships: advisory, working exploit source, and the fix commit in one searchable place, so an agent can ask “what does exploitation of this class actually look like this year” and cite the answer. Licence posture is deliberate and one line: Exploit-DB is GPL and PoC repositories carry their own terms, so the whole group is approach-only , indexed for retrieval, never copied into XERJ and never redistributed as a pack. Query it, cite it, write your own code. \n07 · THE ADD-ON ## A corpus of our own posts, because agents write too \nOne more corpus shipped alongside this eval, and it is the smallest and strangest one on the hub: xerj-blogposts , seven posts (this one included at the next rebuild) as retrievable records with derived CVE and release ids, 107,295 bytes, built from the published pages by a generator whose --check mode fails CI if the corpus drifts from the site. It exists because the writing task is also a retrieval task: an agent asked to write the next XERJ post needs the house voice as data, how these posts open (a number first), argue (every claim traced to a run), and close (the losses left in). This post is the proof by construction; it was written the way it argues, with the sealed patches, the failed queries, the 2.1-second negative control, and the empty-stratum case all in the tables, and the corpus that taught it the shape is now on the hub beside the exploit group it reports on."
+}
diff --git a/tools/packs/xerj-blogposts/posts/the-rc80-gates.json b/tools/packs/xerj-blogposts/posts/the-rc80-gates.json
new file mode 100644
index 000000000..3b78e5ea7
--- /dev/null
+++ b/tools/packs/xerj-blogposts/posts/the-rc80-gates.json
@@ -0,0 +1,8 @@
+{
+ "id": "blog-the-rc80-gates",
+ "title": "The rc.80 gates: three passed outright, three failed, one split",
+ "description": "Ten features, eight measured gates: /_ask macro-F1 0.9975, xerj_map 20/30 to 0/30, calibration ECE 0.0088 pass; the judge, the flywheel and the decide head fail their bars, numbers published.",
+ "published": "2026-09-30",
+ "url": "https://xerj.org/blog/the-rc80-gates",
+ "body": "← ALL POSTS · /BLOG \nRELEASE GATES · TEN FEATURES · EIGHT GATES · RUNS 2026-09-30 # THE RC.81 GATES. # MEASURED IN PUBLIC, LOSSES LEFT IN. \nAUTHOR · XERJ ENGINEERING TEAM · PUBLISHED · 2026-09-30 \nTHE VERDICT split, measured, with the losses left in The program behind rc.81 shipped ten features, and every item that could carry a number was filed with a measured gate that binds at ship time. This post is the packaging half of that rule, and the scoreboard is a split. Three gates passed outright : /_ask turned 230 prompt/gold pairs into validated DSL at macro-F1 0.9975 with zero invalid queries and wall-clock p50 1.129 ms against a 300 ms budget; xerj_map took unknown-field 400s on MCP-shaped DSL from 20/30 guessed to 0/30 map-informed — a 100% reduction against a ≥80% bar; and the calibration layer took FiQA rerank ECE from 0.3109 raw to 0.0088 held-out against a ≤0.10 bar. Three failed with the numbers : the local judge loses to its own first stage everywhere it was measured (SciFact 0.7045 → 0.5967 ), the decision flywheel answers 19.72% of later traffic at ≥0.8 confidence against an 80% bar, and the tier-2 decide head misses its accuracy bars by 3 to 59 points. One split : stemming gained +0.0160/+0.0179 BM25 nDCG@10 (bar +0.01) and still left 15 zero-hit queries against a bar of ≤10 — and no stemmer can fix the 15. The failures filed four issues, #1091–#1094 . No number below was tuned after its gate was read. \nOne window, ten features, eight gates, all measured on 2026-09-30 against bars that were written down before the work started. The wins and the losses sit in the same tables, every figure links to the run that produced it, and the four defects the gates exposed are filed in the open tracker with the measurements that found them. That is the whole post. \n0.9975 macro-F1, /_ask 230 prompt/gold pairs, 0 invalid DSL, byte-identical across 3 runs. p50 1.129 ms; the bar allowed 300. 0/30 unknown-field 400s, with xerj_map down from 20/30 guessed field names. 100% reduction; the bar asked for 80%. The 5 silent 0-hits became issue #1093. 0.0088 held-out ECE, calibrated from 0.3109 raw on 3,600 held-out FiQA pairs, query-level split. Temperature scaling managed 0.3163 and is published beside it. 4 issues the failures filed #1091 hybrid cost, #1092 analyzer echo, #1093 silent 0-hit, #1094 flywheel freeze. Each carries its measurement. 01 · THE PROGRAM · TEN FEATURES, EACH WITH A GATE THAT BINDS ## THE RULE WAS WRITTEN ## BEFORE THE WORK. \nThe ten-item program to the first official release ( discussion #1054 , filed as issues #1055 – #1064 ) was planned as five items for rc.79, four for rc.81, and the open model for v1.1.0. They landed together in one window — PRs #1066–#1090 since the rc.78 cut — so the gates were run as one suite, and the artifacts call it the rc.81 gate suite. This post keeps that name and states the plan honestly: two planned releases, one measured window. \nThe plan's own packaging rule, verbatim: a benchmarks/<name> directory with raw results plus a blog post with the losses left in. Three items also carried a loses-does-not-ship rule in their issue text — the local judge must beat the shipped hybrid arm beyond the run spread or it does not ship; the decide head below its bar ships behind a flag with the numbers published; the FiQA judge row must clear 0.30. This post is where those rules get honoured. \nThe program · feature (PR) · its gate \nVerdict \n\nxerj_map MCP FieldSpec tool ( #1074 ) · unknown-field 400s down ≥80% \nPASS — 100% \n\nPOST /_ask + xerj_plan ( #1076 ) · macro-F1 ≥0.9, 0 invalid DSL, p50 ≤300 ms \nPASS \n\ntier-2 local decide head via candle ( #1072 , #1073 ) · SMS ≥0.95 acc, ECE ≤0.05, AG News ≥0.85 \nFAIL (quality) / PASS (latency) \n\nmax_tokens on every MCP search tool ( #1067 ) · response-size budget knob \nno measured gate in this suite \n\nstemming analyzer for profiler-marked prose ( #1070 ) · BM25 ≥+0.01; zero-hit ≤10 \nSPLIT — +0.0160/+0.0179 PASS; 15 zero-hit FAIL \n\nself-judged hits judge stage ( #1077 ) · beat hybrid beyond spread, or do not ship \nFAIL (quality) / PASS (cost) \n\ndecision-cache flywheel ( #1075 ) · ≥80% of later traffic from history at ≥0.8, acc ≥0.97 \nFAIL (share) / PASS (accuracy) \n\nreal _watcher evaluate-or-501 + autoindex --label ( #1082 ) · wrong-and-confident ≤5% at p≥0.8 \ngate not yet measured \n\ncalibration layer, p_cal ( #1080 ) · held-out ECE ≤0.10 \nPASS — 0.0088 \n\nopen xerj-decide-v1 model ( #1084 ) · deterministic exports, published eval card \nreported — card carries the weak numbers \n\nTwo rows say \"not measured\" on purpose. max_tokens is a response-size budget with no quality claim attached, and the _watcher detection gate (wrong-and-confident rate at p≥0.8) has not been run — the watcher's mechanics are test-pinned, its detection-quality number is not, and this post does not invent one. \nOne binary, one day. Every number in this post was measured on 2026-09-30 on release builds of main @ a179e1ef3 , version string v1.0.0-rc.78 — the rc.79/rc.81 tags are cut after the gates, not before them. The two exceptions are stated where they occur (the tier-2 feature build, the paid provider arm). \nThe plan: discussion #1054 · tracker #1065 · issues #1055 – #1064 · window PRs #1066–#1090 · gate PRs #1079 , #1085 , #1086 , #1087 , #1088 , #1090 . \n02 · THE PASSES · THREE GATES, CLEAN ## THREE PASSED. ## WITH THEIR NUMBERS. \nPASS 1 ## POST /_ask ## + ## xerj_plan ## : prompt in, validated DSL out \n#1056 · PRs #1076, #1079 The gate: ≥200 (prompt, gold result-set) pairs over public tabular datasets, result-set F1 ≥0.9, zero invalid DSL, and a latency budget. Measured: 230 pairs (72 USGS earthquakes / 78 exoplanets / 80 gapminder), macro-F1 0.9975 , 0 invalid DSL — every returned plan passes parse_request before it is returned — and byte-identical output across 3 runs . Wall-clock p50 1.129 ms , p99 2.852 ms, n=690 over loopback HTTP. The bar allowed 300 ms; the planner clears it by 265×. \nThe one arm not run: the token gate — output tokens per solved structured-query task ≤50% of agent-written DSL at equal solve rate — is designed, not measured . It needs a live agent harness with real model calls, and the cost of that run was not spent this window. The design sits in benchmarks/ask-plan and the claim is not made here. \nPASS 2 ## xerj_map ## : the field map an agent was guessing at \n#1055 · PRs #1074, #1086 Thirty MCP-shaped DSL queries against a reference-coding corpus, issued twice: once guessing field names from the prompt alone, once informed by the map. Guessed: 20 of 30 came back as unknown-field 400s, and only 5 returned hits. Map-informed: 0 of 30 unknown-field 400s, 29 of 30 with hits. A 100% reduction against the ≥80% bar . \nThe discovery is worth more than the pass. Five of the guessed queries did not error at all — a wrong field name inside term , match , range or exists is a silent 0-hit HTTP 200 . The gate counted 400s; the silent rows are the worse failure, and they are now issue #1093 . \nPASS 3 ## Calibration: ## p_cal ## beside every ## p_raw \n#1063 · PRs #1080, #1087 The baseline is the number this blog already published: on FiQA, a hosted judge probability of 0.93 meant relevance 34% of the time — ECE 0.3109 . The gate: held-out ECE ≤0.10 after fitting. Measured on 19,440 raw (query, doc, p_raw, gold) pairs rebuilt from 648 judged FiQA queries — $0.2125 of provider calls, 5,059,586 input tokens, zero failed calls — with a query-level split: the fit never sees any pair from a held-out query, which is the deployment shape. Isotonic held-out ECE 0.0088 . Temperature scaling, the comparison arm, managed 0.3163 and fails the same bar; both arms' ECE is published by the node at /_decide/_calibration . \nThe gate also audited the fitter. Writing an independent naive PAVA in Python found a knot-index bug in the benchmark's mirror — fixed there, and the shipped Rust module was verified against the naive implementation to 8.7e-19 at all 98 pooled points. The defect was in the measuring stick, not the product; both are now pinned. \nask-plan: benchmarks/ask-plan (gate table with the measured rows) and results/2026-09-30-latency-gate · map gate: PR #1086 (artifacts in the PR) · calibration: results/2026-09-30-pairlevel-fiqa · pairs and shortlists committed beside them. \n03 · THE FAILURES · READINGS, NOT EXCUSES ## THREE FAILED, ONE SPLIT. ## THE NUMBERS STAY IN. \n## Stemming (#1059): a real win and a real miss, in the same gate \nPaired arms on one node, differing only in the create-time analyzer. BM25 nDCG@10: SciFact 0.6572 → 0.6732 (+0.0160) , NFCorpus 0.3016 → 0.3195 (+0.0179) — both clear the +0.01 bar. Zero-hit NFCorpus queries: 25 → 15, against a bar of ≤10 . Stemming repaired exactly the ten plural and inflection queries (bagels, leeks, pineapples, turnips…). The fifteen that remain — Fosamax, Zoloft, eggnog, halibut, Yale — are single words whose stem also occurs nowhere in the corpus . No stemmer can lexically bridge a word that is absent in every inflected form. That half of the gate was unreachable by the feature it gated; only the vector arm can fix those queries, and that is the honest reading: the gate was half right to exist, and the miss is a boundary, not a bug in the stemmer. \nTwo adjacent records: GET _settings does not echo the analysis block and _analyze shows the standard path even when the stemmer is declared and provably applied by search — filed as issue #1092 rather than tuned around. Raw per-query outputs are committed. \n## The tier-2 decide head (#1057): misses its bars, ships behind the flag anyway \nDecide head, xerj-decide-v1 weights · measured on the wire \nAccuracy \nECE \nBar \nVerdict \n\nSMS held-out, noul · 1,574 items \n0.9193 \n0.287 \nacc ≥0.95, ECE ≤0.05 \nFAIL / FAIL \n\nAG News test, 4-way choice · 7,600 items, never trained on it \n0.2599 \n0.060 \n≥0.85 \nFAIL (chance = 0.25) \n\nBanking77 test, 77-way choice · 3,080 items \n0.1185 \n0.0717 \nreported, not gated \nreported \n\nLatency, 30 questions, 8 pinned cores \np50 8.4 ms \n≤50 ms \nPASS \n\nThe reading is in the issue's own rule: below the bar it ships behind a flag with the numbers published — --decide-mode local --decide-model-dir , tier 2 off unless asked for. The artifact is 28.5 MiB of F32 weights, not quantized (candle 0.9 has no quantized safetensors VarBuilder ; the PR documents that as deliberate), well under the 300 MB download budget — and there is no download at all: the tier loads a local directory and makes no egress. Tier 1, the history vote, stays ahead of tier 2 on every home-ground row: Banking77 0.8289 vs 0.1185 , SMS 0.9848 vs 0.9193 , AG News 0.9182 vs 0.2599 . That is the design working: where labelled history exists, the vote wins; where it does not, tier 2 exists at all — and its zero-shot boundary is now a published number instead of a hope. \nThe gate's second catch is the more useful one. Measuring tier 2 on the stock release binary found that --decide-mode local was a no-op there: release binaries were built without the decide-local cargo feature, the node logged a warning, and the ladder quietly stayed on the history vote. Every tier-2 number above was therefore measured on a feature build of the same commit, with the no-op evidence committed ( stock-binary-noop.txt ). The fix is release engineering, not code: the shipped build must carry the feature — the runtime switch stays opt-in — and it is queued ahead of the cut. A gate that cannot reach the feature it is gating is measuring the build, and that is exactly what it caught. ## The flywheel (#1061): frozen as shipped, 4× under the bar even when forced \nTwo arms, both worse than the bar. As shipped : 2,000 fill requests fired, and only 12 answers were ever cached — write-back fires only when tier 2 answers, and after the first cached document the history vote returns BM25 support for ~99.4% of traffic, so tier 2 stops answering and the cache freezes at 12 documents. That is a defect, filed as issue #1094 , and it makes the gate's premise unreachable through the ladder itself. The premise forced — 2,000 gold answers cached in the write-back's own document shape — later traffic answered from history at ≥0.8 confidence: 19.72% against the 80% bar, four times under , at accuracy 0.9953 against the 0.97 bar, which met . The reading, not the excuse: the confident slice is easily accurate enough, but 2,000 answers at k=10 only clear 0.8 confidence on a fifth of Banking77-shaped traffic. The share bar needs a far larger cache, or the hybrid neighbours, before it is reachable — and until #1094 is fixed the cache cannot grow at all. \n## The local judge (#1060): loses to its own first stage, everywhere measured \nnDCG@10 · 3 runs each, spread 0.0000 \nFirst stage \n+ judge \nΔ \nBar \nVerdict \n\nSciFact · 300 q \n0.7045 hybrid \n0.5967 \n−0.1077 \nbeat hybrid beyond spread \nFAIL \n\nNFCorpus · 323 q \n0.3419 hybrid \n0.2924 \n−0.0495 \nbeat hybrid beyond spread \nFAIL \n\nFiQA · 648 q \n0.2382 BM25 \n0.1650 \n−0.0732 \n≥0.30 (hosted Jev: 0.3638) \nFAIL \n\nAdded latency, p50, top-30 \n+0.7 ms / +0.5 ms / +0.6 ms \n≤40 ms \nPASS \n\nWhy it loses, plainly: the shipped judge is a lexical scorer — window-local BM25 saturation with page-local IDF, no semantic signal. Both first stages already read those words: BM25 ranked by them, hybrid fused them with MiniLM vectors. Re-reading the same words over the page with page-local statistics destroys information the first stages had — corpus-level IDF and the vector arm — so the judged order is a worse order. The effect is biggest exactly where the first stage is strongest. The gate arms carried no min_p , because a threshold can only remove recall and cannot be part of a passing attempt; an informational arm with min_p: 0.5 kept 0.1 of 30 hits per page on SciFact and emptied 274 of 300 queries. The stage stays what PR #1077 shipped: opt-in, named lexical in every response, no quality claim — its own loses-does-not-ship rule, honoured. One cell could not be measured at all: hybrid+judge on FiQA, because the hybrid first stage runs 13–26 s per query on the 57,638-doc index — issue #1091 , found by this gate. \nStemming: results/2026-09-30-stemming-1059 (PR #1085) · decide + flywheel: PR #1088 — benchmarks/decisions-as-retrieval/results/2026-09-30-rc80gates/ , incl. run-2026-09-30.md and stock-binary-noop.txt · judge: PR #1090 — benchmarks/beir-hybrid/results/2026-09-30-judge-gate/ , incl. the aborted FiQA hybrid log behind #1091. \n04 · THE NEXT WINDOW · WHAT rc.81 DOES ABOUT EACH LOSS ## EVERY LOSS HAS ## A FILED ISSUE. \nA failed gate that files nothing is a buried gate. These filed four, plus two direction changes the numbers forced: \nThe loss \nThe filed work \n\nsilent 0-hit on unknown fields (found by the map gate) \n#1093 — QueryError::UnknownField is constructed nowhere today; wrong fields must 4xx, not 200-empty \n\nflywheel freeze (12 of 2,000 cached) \n#1094 — fix the write-back rule so the cache can grow; the 19.72% share measurement is then re-run on a live cache \n\nhybrid 13–26 s/query on FiQA (blocked the judge's FiQA hybrid cell) \n#1091 — first-stage cost on the 57,638-doc index; the hosted-comparison row needs it \n\nanalyzer invisible in settings/_analyze \n#1092 — echo the declared analysis block \n\nlexical judge loses everywhere \nthe model arm: a judge that ships must be the decide-local cross-encoder head, beating these same hybrid numbers under this same harness — the bar does not move \n\nthe 15 unstemmable zero-hit queries \nthe vector arm — the only repair for words absent from the corpus in every inflected form \n\nTwo more states, stated so nobody has to guess. The open model: xerj-decide-v1 is 7,419,907 parameters , its exports are byte-identical across runs, its eval card carries the weak numbers above in it, and the Hugging Face publication is staged behind an operator credential — no URL is claimed until the page exists . And the decide-head build fix: the shipped binary must carry the decide-local feature so the opt-in flag is not a no-op; that change rides ahead of the cut. \nWhat we claim, and what we do not. Claimed: every number on this page, verbatim from the gate runs linked beside it, on release builds of main @ a179e1ef3 measured 2026-09-30 — the tier-2 numbers on the feature build of that commit, the calibration pairs on one paid provider run whose determinism bound is stated in its provenance file. Not claimed: any quality for the judge stage, any quality for tier 2 beyond the published numbers, any token-saving result for xerj_plan (designed, not run), any detection-quality figure for _watcher (gate not yet measured), and any published URL for the model. The gates were written before the work; three said yes, three said no, one split; the repo carries all eight verdicts and the four issues the noes filed. If you want to check a number rather than read about it: each gate directory above carries its raw per-query outputs, its manifest and its harness, and the four gate PRs (#1086, #1088, #1090, and #1085's merged artifacts) are diffable line by line. The engine itself is one binary with a quickstart , the playground needs no install, and the benchmarks hub keeps the standing boards. The nearest prior chapter is the Jev verdict — the 0.3109 ECE this window's calibration gate finally answered. \nEverything on this page: the gate runs cited section by section above · program #1054 · gate PRs #1079 #1085 #1086 #1087 #1088 #1090 · issues #1091 – #1094 · related: the Jev verdict · the benchmarks hub ."
+}
diff --git a/tools/packs/xerj-blogposts/recipe.toml b/tools/packs/xerj-blogposts/recipe.toml
new file mode 100644
index 000000000..755332ed2
--- /dev/null
+++ b/tools/packs/xerj-blogposts/recipe.toml
@@ -0,0 +1,57 @@
+# xerj-blogposts — the house-writing corpus: every post XERJ has published,
+# as records, so an agent writing the next one can retrieve how the last ones
+# were argued rather than guessing at the voice.
+#
+# Source is our own Apache-2.0 prose (landing/blog/*.html), derived to
+# posts/*.json by gen_posts.py in this directory. Two rules it inherits from
+# the corpus program:
+# * it indexes ONLY the published posts — never engine code (rule 3 of the
+# xerj-code skill: a reference corpus is for other people's work, not a
+# mirror of ours that would return our own mistakes as precedent);
+# * gen_posts.py --check pins the records to the site, so the corpus cannot
+# silently drift from what xerj.org serves.
+#
+# What it is FOR (the use case the G7 gate scores): "write the post about X
+# in the house voice" — retrieve the two or three posts closest in subject,
+# then match their structure: a number in the first paragraph, the loss kept
+# in, every claim traced to a run, no em-dashes, no filler intro.
+
+[recipe]
+format = 1
+name = "xerj-blogposts"
+description = "XERJ engineering posts as records: the house voice, arguments and measured numbers, retrievable"
+
+[[sources]]
+slug = "posts"
+kind = "dir"
+path = "posts"
+glob = "**/*.json"
+format = "flat"
+licence = "Apache-2.0"
+
+[identity]
+# one record per post: ids are already unique, so the union-find has no
+# merging to do — the block is present but carries no cross-source edges.
+edges = [{ field = "id" }]
+
+[envelope]
+id_from = ["id"]
+title_from = ["title"]
+body_join = ["title", "description", "published", "body"]
+
+[[derived]]
+name = "cve_ids"
+op = "regex_extract"
+from = ["body"]
+pattern = '(?i)\bCVE-\d{4}-\d{4,}\b'
+unique = true
+
+[[derived]]
+name = "release_ids"
+op = "regex_extract"
+from = ["body"]
+pattern = '(?i)\brc\.\d+\b'
+unique = true
+
+[emit]
+shards = 4
diff --git a/tools/xerj-code/hub/xerj-blogposts.json b/tools/xerj-code/hub/xerj-blogposts.json
new file mode 100644
index 000000000..8d7873f65
--- /dev/null
+++ b/tools/xerj-code/hub/xerj-blogposts.json
@@ -0,0 +1,5 @@
+{"corpus":"xerj-blogposts","cloned_at":"2026-10-08T03:34:58Z","repos":[
+ {"repo":"xerj","url":"https://github.com/xerj-org/xerj","licence":"Apache-2.0","sha":"fce97e180e558df407af8d453bd52d5a7968b091","files":7,"bytes":107295,
+ "review":{"spdx":"Apache-2.0","use":"adapt-with-attribution","by":"xerj-org","at":"2026-10-08",
+ "note":"Our own published prose, not third-party code. The recipe harvests ONLY landing/blog/*.html (via gen_posts.py-derived posts/*.json under tools/packs/xerj-blogposts/); engine code is out of scope by the skill's rule 3 (never index this repository's code into a reference corpus). Pin is the commit whose posts the first build records."}}
+],"kind":"harvested","recipe":"tools/packs/xerj-blogposts/recipe.toml"}