Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

search/query ranking wave: collapse stage, CLI --explain fix, degraded notice, rank priors, score contract, bounded rows, ranking-shapes bench

garrytan4c208b03a0fb
diff --git a/docs/architecture/key-files/core-search-2.md b/docs/architecture/key-files/core-search-2.md
index b1e9987d88..659defb9f8 100644
--- a/docs/architecture/key-files/core-search-2.md
+++ b/docs/architecture/key-files/core-search-2.md
@@ -69,3 +69,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `src/core/search/relational-recall.ts` — the relational recall arm: `parseRelationalQuery` → seed resolution per in-scope source (federated set, scalar source, or every non-archived source for an unscoped caller; a literal `__all__` resolves no seeds, fail-closed) → `relationalFanout` → hydrate, fail-open. Seeds resolve through `resolveEntitySlugWithSource` and a `fallback_slugify` result is dropped (confidence gate D3). The entity resolver never returns meetings, so for an incoming `attended` relation (`Who attended <meeting>?`) a live `meeting` or `event` page whose title is exactly the seed phrase (case-insensitive, unique in the source) is the seed; other relations never seed from titles. Pinned by `test/relational-recall.test.ts`, `test/relational-recall-scope-sources.test.ts` and `test/pack-relation-direction-engine.test.ts`. With `planner` on (`search.relational_planner`, on in balanced/tokenmax), a 2-3 relationship question (`parseRelationalPlan`) runs `runRelationalChain` first: answers then evidence pages, each with a `relational` field; nothing found → the one-hop path; refused → no arm (`meta.plan`). With `orientOneHop` (`search.relational_orient_onehop`, off in every bundle) typed one-hop walks add neighbors reached through links written on the other page. `answerRows` limits the pin and evidence slot to answers. Hydrate selects a bounded body prefix and shows its synopsis through `page-window/bounded-lead.ts`. Pinned by `test/relational-recall.test.ts`.
- `src/core/search/relational-rerank-pin.ts` — relational-arm rows bypass reranker DEMOTION (ranker wave, receipt R1 in `scripts/r1-namedthing-rerank-ab.ts`: on NamedThingBench's 39 graph-relationship questions the shipped `balanced` default lost hit@1 21/39 → 3/39 and hit@3 27/39 → 5/39 with the reranker on — 19 and 22 paired losses — because the cross-encoder scores chunk TEXT and an edge-derived answer's text need not mention the query's entity; with the pin at its default 3, measured with `--autocut on`, the shape that shipped before rule R2 turned autocut off, the same paired run shows 0 hit@1 / 0 hit@3 losses, 21/39 and 27/39, and the 11 non-relational core queries show 0 losses — one hard-negative gain, hit@1 10/11 → 11/11). `pinRelationalRows(reranked, relationalList, {max, fusedOrder?, onPin?})` is a pure PERMUTATION of the post-rerank pool: relational rows (page key `(source_id, slug)` in the arm's list; ONE row per page — its first, highest-ranked occurrence) claim `min(fused_rank, reranked_rank)` (fused rank = position among relational rows in `fusedOrder`, the pre-rerank `deduped` pool; arm order for rows absent from it), claims sort ascending with ties resolved to the FUSED order then the reranked position, the first `max` claimants form the top block in that order, every other row follows in reranked order (an unpinned row lands at its reranked position or up to `pinned.length` lower, never higher). Pinned rows are shallow copies stamped `relational_pinned: true`; no row is added or removed (re-injecting rows dropped upstream stays `ensureRelationalEvidenceSlot`'s job). Every no-op path (`max <= 0`, empty pool, empty arm, no relational page in the pool) returns the input array itself. `normalizeRelationalRerankPin` is the ONE range contract for the knob (non-negative integer `<= 10` or a string parsing to one → that integer; the literals `off` / `false` (any case) or boolean `false` → 0; anything else → `undefined` = fall through), shared by `mode.ts:loadOverridesFromConfig` and both per-call seams in `hybrid.ts`; `DEFAULT_RELATIONAL_RERANK_PIN` (3) and `RELATIONAL_RERANK_PIN_MAX` (10) are exported. `RelationalRerankPinDecision` (`{max, relational_in_pool, pinned:[{slug, source_id, from_rank, to_rank, fused_rank}], moved}`) is surfaced as `HybridSearchMeta.relational_rerank_pin` for `--explain`. Wired in `hybridSearch` immediately after `applyReranker` and before the alias hop, gated on the reranker having actually reordered (`reranked !== deduped` — `applyReranker` returns its input on every fail-open / skip / pass-through path, and the fused order already carries the arm) and on non-image modality; autocut's `scoreOf` ignores pinned rows and its preserve predicate keeps them, so text-row autocut is byte-identical to the pre-pin behavior. Known cost: a false-positive arm (relational shape parsed AND a real seed resolved, but wrong/stale edges) now puts up to `max` edge pages at ranks 1..max instead of one at `limit`; mitigations are the arm's `fallback_slugify` confidence gate, the tier-2 resolution-margin TODO, config `search.relational_rerank_pin off`, and per-call `SearchOpts.relationalRerankPin`. Pinned by `test/search/relational-rerank-pin.test.ts` (pure contract + tie policy) and `test/search/relational-rerank-pin-hybrid.serial.test.ts` (hermetic PGLite on the relational corpus through the REAL gateway rerank path behind `__setRerankTransportForTests` with an inverted-relevance stub: pin 0 reproduces the regression, pin 3 restores hit@1/hit@3 on all 8 who-invested questions, non-relational queries and reranker-off runs are byte-identical).
+- `src/core/search/collapse.ts` — `collapseResults`: folds copies of one result into the best-ranked row before reranking and again after the identity tiers (`rank.ts` `collapsePool`, both keyword-only paths): same slug in another source (`twin`), a redirect stub whose readable target it names (`redirect`; a target missing from the pool is read under the alias-hop read policy, an unresolved stub stays stamped `redirect_to`), and copies of one document (`family`: identical bodies, or a derivative or leaf-extension slug in the same source). The kept row lists them in `collapsed`; `meta.collapse` counts them. Knob `search.collapse` (#4612, #7153, #7154).
+- `src/core/search/rank-priors.ts` — `applyRankPriors`: multiplicative priors after rerank and pinning (person rows on an organization question, low-coverage image rows stamped `image_page`, undated rows on a when-question, redirect stubs); each changed row carries `rank_prior` and `rank_score`. Knob `search.rank_priors`.
+- `src/core/search/score-contract.ts` — `scoresFollowRank`: at the search/query op boundary the returned `score` follows the returned order (the rerank score, times any rank prior, in a reranked list; a running minimum otherwise) and the replaced value stays as `fused_score` (#7156).
+- `scripts/bench/ranking-shapes/` + `test/fixtures/ranking-shapes/` — synthetic two-source ranking bench (208 pages, 70 questions): `run.ts` builds a PGLite brain, runs search/query/query --expand through a checkout's CLI behind a caching provider proxy and scores hit@k, MRR and per-shape checks (twins, stubs, families, priors, score order, chunk size).
diff --git a/scripts/bench/ranking-shapes/.gitignore b/scripts/bench/ranking-shapes/.gitignore
new file mode 100644
index 0000000000..ceddaa37f1
--- /dev/null
+++ b/scripts/bench/ranking-shapes/.gitignore
@@ -0,0 +1 @@
+.cache/
diff --git a/scripts/bench/ranking-shapes/generate.ts b/scripts/bench/ranking-shapes/generate.ts
new file mode 100644
index 0000000000..4408a762ac
--- /dev/null
+++ b/scripts/bench/ranking-shapes/generate.ts
@@ -0,0 +1,764 @@
+#!/usr/bin/env bun
+/**
+ * Synthetic ranking-shape corpus generator (GBRA-154 retrieval ranking wave).
+ *
+ * Writes test/fixtures/ranking-shapes/{source-a,source-b}/**.md plus
+ * questions.jsonl. Everything is fictional: names come from seeded syllable
+ * pools in this file, prose comes from an LLM that is told to invent
+ * everything, and a final privacy pass rejects a deny-list of real-world names.
+ *
+ * Failure shapes planted (see run.ts for how each is scored):
+ * E1 twins, E2 redirect stubs, E3 document families, E4 org-vs-founder,
+ * E9 OCR image pages, E11 temporal, E13 very long pages, E15 paraphrased
+ * known-item questions. (E12 is a property of any result list.)
+ *
+ * Usage:
+ * OPENAI_API_KEY=... bun scripts/bench/ranking-shapes/generate.ts \
+ * [--out test/fixtures/ranking-shapes] [--model gpt-4.1-mini] [--seed 154] \
+ * [--cache-dir scripts/bench/ranking-shapes/.cache/llm] [--concurrency 8] [--plan-only]
+ *
+ * Every LLM response is cached on disk by prompt hash, so a rerun with the same
+ * seed and prompts is free and byte-identical. Delete the cache dir to
+ * regenerate the prose.
+ */
+import { createHash } from 'node:crypto';
+import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
+import { dirname, join, resolve } from 'node:path';
+
+const ROOT = resolve(import.meta.dir, '../../..');
+
+// ---------------------------------------------------------------- CLI
+
+function parseArgs(argv: string[]) {
+ const o: Record<string, string | boolean> = {};
+ for (let i = 0; i < argv.length; i++) {
+ const a = argv[i]!;
+ if (!a.startsWith('--')) continue;
+ const key = a.slice(2);
+ const next = argv[i + 1];
+ if (next === undefined || next.startsWith('--')) o[key] = true;
+ else { o[key] = next; i++; }
+ }
+ return o;
+}
+const args = parseArgs(process.argv.slice(2));
+const OUT = resolve(ROOT, String(args.out ?? 'test/fixtures/ranking-shapes'));
+const CACHE = resolve(ROOT, String(args['cache-dir'] ?? 'scripts/bench/ranking-shapes/.cache/llm'));
+const MODEL = String(args.model ?? 'gpt-4.1-mini');
+const SEED = Number(args.seed ?? 154);
+const CONCURRENCY = Number(args.concurrency ?? 8);
+const PLAN_ONLY = args['plan-only'] === true;
+
+// ---------------------------------------------------------------- RNG + names
+
+function mulberry32(seed: number) {
+ let a = seed >>> 0;
+ return () => {
+ a = (a + 0x6d2b79f5) >>> 0;
+ let t = a;
+ t = Math.imul(t ^ (t >>> 15), t | 1);
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
+ };
+}
+const rnd = mulberry32(SEED);
+const pick = <T>(xs: T[]): T => xs[Math.floor(rnd() * xs.length)]!;
+function shuffle<T>(xs: T[]): T[] {
+ const a = [...xs];
+ for (let i = a.length - 1; i > 0; i--) {
+ const j = Math.floor(rnd() * (i + 1));
+ [a[i], a[j]] = [a[j]!, a[i]!];
+ }
+ return a;
+}
+const FIRST = ['Marlow', 'Tamsin', 'Oriel', 'Bram', 'Ysolde', 'Corvin', 'Linnea', 'Fenwick', 'Odalys', 'Perrin', 'Ilsabet', 'Torben', 'Sorrel', 'Anwen', 'Casimir', 'Dorrit', 'Eilis', 'Hollis', 'Jorund', 'Kestrel', 'Lisbet', 'Merrin', 'Nadezhda', 'Orsin', 'Petra', 'Quillan', 'Rhosyn', 'Seren', 'Tobiah', 'Ulrika', 'Veda', 'Wystan', 'Xanthe', 'Yorick', 'Zephyra', 'Amadeo', 'Briony', 'Caspian', 'Delphine', 'Emrys', 'Fiora', 'Gideon', 'Halvard', 'Isolde', 'Jessamy', 'Kalev', 'Lorcan', 'Mirela', 'Niamh', 'Osric', 'Pavla', 'Rune', 'Saskia', 'Teodor', 'Una', 'Valdis', 'Winnow', 'Yvaine', 'Zosia', 'Alaric'];
+const SUR_A = ['Brin', 'Talv', 'Ostr', 'Velk', 'Marq', 'Quen', 'Holm', 'Fenn', 'Dunk', 'Kesp', 'Lorn', 'Pelt', 'Ravn', 'Silv', 'Thrum', 'Wenk', 'Yarl', 'Zelk', 'Corv', 'Ibb', 'Jorv', 'Nask', 'Ulm', 'Vask', 'Gwil', 'Hesk'];
+const SUR_B = ['wick', 'ford', 'mere', 'dale', 'ton', 'hollow', 'brook', 'stead', 'vane', 'croft', 'ley', 'ham', 'moor', 'by'];
+const CO_A = ['Kel', 'Vor', 'Bri', 'Tess', 'Nuv', 'Par', 'Quil', 'Hal', 'Dor', 'Emb', 'Fyn', 'Glim', 'Jor', 'Lum', 'Mir', 'Nex', 'Orb', 'Pyr', 'Rin', 'Sol', 'Tav', 'Umb', 'Vex', 'Wyn', 'Xan', 'Zor', 'Aly', 'Cav', 'Dra', 'Eph'];
+const CO_B = ['ora', 'ley', 'ix', 'aly', 'ik', 'ow', 'yra', 'vane', 'rel', 'dra', 'let', 'mere', 'tun', 'ova'];
+const CO_SUFFIX = ['Systems', 'Labs', 'Works', 'Analytics', 'Robotics', 'Health', 'Freight', 'Cloud', 'Grid', 'Dynamics', 'Networks', 'Studio'];
+
+const usedNames = new Set<string>();
+const usedSurnames = new Set<string>();
+function uniq(make: () => string): string {
+ for (let i = 0; i < 2000; i++) {
+ const n = make();
+ if (!usedNames.has(n.toLowerCase())) { usedNames.add(n.toLowerCase()); return n; }
+ }
+ throw new Error('name pool exhausted');
+}
+// Surnames are unique across people so a "<first> <last>" query has one true owner.
+const personName = () => uniq(() => {
+ for (;;) {
+ const sur = `${pick(SUR_A)}${pick(SUR_B)}`;
+ if (usedSurnames.has(sur)) continue;
+ usedSurnames.add(sur);
+ return `${pick(FIRST)} ${sur}`;
+ }
+});
+const companyName = () => uniq(() => `${pick(CO_A)}${pick(CO_B)} ${pick(CO_SUFFIX)}`);
+
+const slugify = (s: string, max = 64) => {
+ const base = s.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
+ if (base.length <= max) return base;
+ const cut = base.slice(0, max);
+ return cut.slice(0, Math.max(cut.lastIndexOf('-'), 20));
+};
+const wordCount = (s: string) => s.split(/\s+/).filter(Boolean).length;
+
+// ---------------------------------------------------------------- LLM
+
+const PRICE_IN = 0.4 / 1e6;
+const PRICE_OUT = 1.6 / 1e6;
+const usage = { calls: 0, cached: 0, inTok: 0, outTok: 0 };
+
+interface ChatReq { system: string; user: string; json?: boolean; temperature?: number; maxTokens?: number; salt?: string }
+
+async function chat(req: ChatReq): Promise<string> {
+ const temperature = req.temperature ?? 0.8;
+ const key = createHash('sha256').update(JSON.stringify([MODEL, req.system, req.user, temperature, !!req.json, req.salt ?? ''])).digest('hex');
+ const file = join(CACHE, key.slice(0, 2), `${key}.json`);
+ if (existsSync(file)) {
+ usage.cached++;
+ return JSON.parse(readFileSync(file, 'utf8')).text as string;
+ }
+ const apiKey = process.env.OPENAI_API_KEY;
+ if (!apiKey) throw new Error('OPENAI_API_KEY is required for uncached generation');
+ let lastErr = '';
+ for (let attempt = 0; attempt < 5; attempt++) {
+ const res = await fetch('https://api.openai.com/v1/chat/completions', {
+ method: 'POST',
+ headers: { 'content-type': 'application/json', authorization: 'Bearer ' + apiKey },
+ body: JSON.stringify({
+ model: MODEL,
+ temperature,
+ max_tokens: req.maxTokens ?? 2500,
+ ...(req.json ? { response_format: { type: 'json_object' } } : {}),
+ messages: [{ role: 'system', content: req.system }, { role: 'user', content: req.user }],
+ }),
+ });
+ if (res.status === 429 || res.status >= 500) {
+ lastErr = `${res.status} ${await res.text()}`;
+ await new Promise(r => setTimeout(r, 1500 * (attempt + 1)));
+ continue;
+ }
+ if (!res.ok) throw new Error('openai ' + res.status + ': ' + await res.text());
+ const j = await res.json() as { choices: Array<{ message: { content: string } }>; usage?: { prompt_tokens: number; completion_tokens: number } };
+ const text = j.choices[0]!.message.content;
+ usage.calls++;
+ usage.inTok += j.usage?.prompt_tokens ?? 0;
+ usage.outTok += j.usage?.completion_tokens ?? 0;
+ mkdirSync(dirname(file), { recursive: true });
+ writeFileSync(file, JSON.stringify({ text, model: MODEL }));
+ return text;
+ }
+ throw new Error('openai failed after retries: ' + lastErr);
+}
+
+async function chatJson<T>(req: ChatReq, validate: (v: any) => string | null): Promise<T> {
+ let err = '';
+ for (let attempt = 0; attempt < 4; attempt++) {
+ const user = attempt ? req.user + '\n\nYour previous answer was rejected: ' + err + '. Fix that.' : req.user;
+ const text = await chat({ ...req, json: true, salt: (req.salt ?? '') + '#' + attempt, user });
+ try {
+ const v = JSON.parse(text);
+ const bad = validate(v);
+ if (!bad) return v as T;
+ err = bad;
+ } catch (e) { err = 'invalid JSON (' + (e as Error).message + ')'; }
+ }
+ throw new Error('LLM JSON validation failed: ' + err);
+}
+
+async function pool<T, R>(items: T[], n: number, fn: (x: T, i: number) => Promise<R>): Promise<R[]> {
+ const out: R[] = new Array(items.length);
+ let next = 0;
+ await Promise.all(Array.from({ length: Math.min(n, items.length) }, async () => {
+ for (;;) {
+ const i = next++;
+ if (i >= items.length) return;
+ out[i] = await fn(items[i]!, i);
+ }
+ }));
+ return out;
+}
+
+// ---------------------------------------------------------------- Types
+
+type PType = 'person' | 'company' | 'meeting' | 'note' | 'concept' | 'media' | 'writing';
+type Role = 'plain' | 'E2' | 'E3' | 'E4' | 'E9' | 'E11' | 'E13';
+interface Page { source: 'a' | 'b'; slug: string; type: string; title: string; fm: Record<string, unknown>; body: string }
+interface Related { source_id: string; slug: string; role: string }
+interface Row { id: string; shape: string; question: string; target: { source_id: string; slug: string }; also_ok: Array<{ source_id: string; slug: string }>; related: Related[]; notes: string }
+interface Item {
+ kind: 'target' | 'distractor';
+ type: PType;
+ role: Role;
+ domain: number;
+ name: string;
+ planner?: Record<string, any>;
+ slug?: string;
+ title?: string;
+ words: number;
+ twin?: 'identical' | 'divergent';
+ bOnly?: boolean;
+}
+
+const DOMAINS = [
+ 'cold-chain pharmaceutical logistics (temperature-controlled shipping, vaccine distribution, sensor tags)',
+ 'vertical farming and indoor agriculture (grow towers, nutrient dosing, yield forecasting)',
+ 'grid-scale battery storage (dispatch software, degradation modeling, interconnection queues)',
+ 'legal contract automation (clause extraction, redlining, procurement review)',
+ 'dental clinic scheduling and billing (chair utilization, insurance claims, recall campaigns)',
+ 'satellite imagery analytics for insurers (roof condition scoring, flood extent, catastrophe response)',
+ 'construction site robotics (rebar tying, drone surveys, safety monitoring)',
+ 'maritime port operations (berth scheduling, crane telemetry, customs clearance, container tracking)',
+ 'adaptive tutoring for K-12 schools (mastery tracking, teacher dashboards, district procurement)',
+ 'wildfire detection and utility vegetation management (camera networks, line inspection, outage risk)',
+];
+
+// Deny-list for the privacy pass (word-boundary, case-insensitive).
+const REAL_DENY = [
+ 'openai', 'anthropic', 'google', 'microsoft', 'amazon', 'apple inc', 'tesla', 'nvidia', 'meta platforms', 'facebook', 'twitter', 'uber', 'airbnb', 'spacex', 'netflix', 'spotify', 'linkedin', 'salesforce', 'ibm', 'samsung', 'boeing', 'walmart', 'fedex', 'maersk', 'siemens', 'palantir', 'sequoia', 'andreessen', 'a16z', 'elon', 'musk', 'zuckerberg', 'bezos', 'altman', 'nadella', 'pichai', 'buffett', 'obama', 'trump', 'biden', 'rogan', 'ferriss', 'fridman', 'huberman', 'chatgpt', 'iphone', 'kubernetes', 'aws', 'pfizer', 'moderna', 'johnson & johnson', 'unitedhealth', 'dhl', 'tiktok', 'youtube', 'coursera', 'khan academy', 'duolingo',
+];
+
+// ---------------------------------------------------------------- Plan
+
+function buildItems(): Item[] {
+ const items: Item[] = [];
+ const targetPlan: Array<[PType, Role[]]> = [
+ ['person', ['E9', 'E9', 'E9', 'E9', 'E2', 'E2', 'plain', 'plain', 'plain', 'plain']],
+ ['company', ['E4', 'E4', 'E4', 'E4', 'E4', 'E4', 'E2', 'E2']],
+ ['meeting', ['E11', 'E11', 'E11', 'E11', 'E13', 'E13', 'plain', 'plain']],
+ ['note', ['E3', 'E3', 'E3', 'E3', 'plain', 'plain', 'plain', 'plain']],
+ ['concept', ['E2', 'E2', 'plain', 'plain', 'plain', 'plain', 'plain', 'plain']],
+ ['media', ['plain', 'plain', 'plain', 'plain']],
+ ['writing', ['plain', 'plain', 'plain', 'plain']],
+ ];
+ const distractorPlan: Array<[PType, number]> = [['person', 18], ['company', 16], ['meeting', 16], ['note', 14], ['concept', 20], ['media', 8], ['writing', 8]];
+ const wordsFor = (type: PType, kind: 'target' | 'distractor', role: Role) => {
+ if (role === 'E13') return 0;
+ const t = { person: [300, 450], company: [200, 300], meeting: [280, 450], note: [200, 350], concept: [200, 350], media: [380, 500], writing: [380, 500] }[type];
+ const d = { person: [130, 220], company: [110, 200], meeting: [130, 230], note: [110, 200], concept: [110, 200], media: [150, 260], writing: [150, 260] }[type];
+ const [lo, hi] = kind === 'target' ? t : d;
+ return lo + Math.floor(rnd() * (hi - lo));
+ };
+ let off = 0;
+ for (const [type, roles] of targetPlan) {
+ roles.forEach((role, i) => {
+ items.push({ kind: 'target', type, role, domain: (off + i) % DOMAINS.length, name: '', words: wordsFor(type, 'target', role) });
+ });
+ off += 3;
+ }
+ for (const [type, n] of distractorPlan) {
+ for (let i = 0; i < n; i++) items.push({ kind: 'distractor', type, role: 'plain', domain: (off + i) % DOMAINS.length, name: '', words: wordsFor(type, 'distractor', 'plain') });
+ off += 3;
+ }
+ // E1 twins: 15 plain targets + 5 distractors; every fourth one is divergent (different type, shorter body).
+ const plainTargets = shuffle(items.filter(i => i.kind === 'target' && i.role === 'plain'));
+ const twinDistractors = shuffle(items.filter(i => i.kind === 'distractor')).slice(0, 5);
+ const twins = shuffle([...plainTargets.slice(0, 15), ...twinDistractors]);
+ twins.forEach((it, i) => { it.twin = i % 4 === 3 ? 'divergent' : 'identical'; });
+ shuffle(items.filter(i => i.kind === 'distractor' && !i.twin)).slice(0, 10).forEach(i => { i.bOnly = true; });
+ return items;
+}
+
+// ---------------------------------------------------------------- Planner
+
+interface DomainPlan { people: any[]; companies: any[]; meetings: any[]; notes: any[]; concepts: any[]; media: any[]; writing: any[] }
+const KEY_OF: Record<PType, keyof DomainPlan> = { person: 'people', company: 'companies', meeting: 'meetings', note: 'notes', concept: 'concepts', media: 'media', writing: 'writing' };
+
+async function planDomain(d: number, counts: Record<keyof DomainPlan, number>): Promise<DomainPlan> {
+ const system = 'You design fictional corpora for a search-ranking benchmark. Everything must be invented. Never mention real people, companies, funds, podcasts, products or places. Output a single JSON object.';
+ const user = `Domain: ${DOMAINS[d]}
+
+Invent the raw material for a fictional internal wiki about this domain. Return JSON with exactly these arrays and exact lengths:
+- "people": ${counts.people} items {"role": job title, "specialty": 5-10 words, "history_hook": one concrete career detail}
+- "companies": ${counts.companies} items {"product_name": invented product name (1-2 words), "pitch": one sentence on what the product does, "customer_industry": the customers' industry in 2-4 words, "traction": one concrete invented metric}
+- "meetings": ${counts.meetings} items {"title": 3-7 words, "summary": one sentence, "activity": a 3-6 word noun phrase naming a project or pilot that the meeting kicked off (for example "the pallet-tracking pilot")}
+- "notes": ${counts.notes} items {"title": 3-7 words, "summary": one sentence}
+- "concepts": ${counts.concepts} items {"title": 2-5 words, "summary": one sentence definition}
+- "media": ${counts.media} items {"title": 3-7 words (a talk or episode title), "show": invented show name, "summary": one sentence}
+- "writing": ${counts.writing} items {"title": 3-7 words (essay title), "summary": one sentence}
+Rules: every title is distinct and specific; items overlap in vocabulary and jargon on purpose (similar industries, similar meetings, overlapping roles) so a search engine has to work to separate them; do not repeat a title word more than 3 times across the whole output; no dates in titles; no real-world brand names.`;
+ const lens = (v: any) => {
+ for (const k of Object.keys(counts) as Array<keyof DomainPlan>) {
+ if (!Array.isArray(v[k]) || v[k].length !== counts[k]) return '"' + k + '" must have exactly ' + counts[k] + ' items';
+ }
+ return null;
+ };
+ return chatJson<DomainPlan>({ system, user, temperature: 0.9, maxTokens: 4000, salt: 'plan-' + d }, lens);
+}
+
+// ---------------------------------------------------------------- Writers
+
+const SYS_WRITER = 'You write pages of a fictional internal wiki for a search-ranking benchmark. Everything is invented: never mention real people, real companies, real products, real shows or real places. Write plain markdown prose (short paragraphs, a few bullets or sub-headings are fine). Do NOT output a top-level title heading or YAML frontmatter; the caller adds them. Name no person except those the prompt supplies (refer to anyone else by role, such as the CFO or a customer), and no real agencies, brands or funds. Be concrete: include specific invented numbers, names of projects, places and decisions so the page is distinctive.';
+
+async function write(prompt: string, words: number, salt: string): Promise<string> {
+ let best = '';
+ for (let attempt = 0; attempt < 3; attempt++) {
+ const text = (await chat({ system: SYS_WRITER, user: prompt + '\n\nLength: about ' + words + ' words.', temperature: 0.8, maxTokens: Math.ceil(words * 2.2) + 200, salt: salt + '#' + attempt })).trim();
+ if (wordCount(text) >= words * 0.6) return text;
+ if (wordCount(text) > wordCount(best)) best = text;
+ }
+ return best;
+}
+
+const TYPE_GUIDE: Record<PType, string> = {
+ person: 'a person page: current role and employer, career history with years, specialties, notable projects with invented codenames, working style, who they work with. Third person.',
+ company: 'a company page: what the product does and for whom, customers, stage and invented funding/traction, team, competitors (invented), open risks.',
+ meeting: 'meeting notes: start with "Date:" and "Attendees:" lines, then agenda, discussion with specific numbers, decisions and action items with owners.',
+ note: 'a working note by a team member: observations, measurements, open questions, next steps. Informal but specific.',
+ concept: 'a concept explainer: definition, how it works, tradeoffs, a worked example with numbers, common failure modes.',
+ media: 'a transcript excerpt of a talk or podcast episode (invented show and speakers): speaker-labelled lines, natural spoken language, specific anecdotes.',
+ writing: 'an original essay or blog post draft by an invented author: a clear argument, an anecdote, a concrete recommendation.',
+};
+
+const DIRS: Record<PType, string> = { person: 'people', company: 'companies', meeting: 'meetings', note: 'notes', concept: 'concepts', media: 'media', writing: 'writing' };
+
+function randDate(y0 = 2023, y1 = 2025): string {
+ const y = y0 + Math.floor(rnd() * (y1 - y0 + 1));
+ const m = 1 + Math.floor(rnd() * 12);
+ const d = 1 + Math.floor(rnd() * 27);
+ return `${y}-${String(m).padStart(2, '0')}-${String(d).padStart(2, '0')}`;
+}
+
+// ---------------------------------------------------------------- Question helpers
+
+const STOP = new Set(['the', 'and', 'for', 'with', 'from', 'into', 'over', 'about', 'that', 'this', 'what', 'when', 'who', 'how', 'why', 'does', 'did', 'was', 'are', 'its', 'our', 'their', 'old', 'summary']);
+const stem = (w: string) => w.toLowerCase().replace(/[^a-z0-9]/g, '').replace(/(ing|ed|es|s)$/, '');
+function titleTokens(...titles: string[]): Set<string> {
+ const out = new Set<string>();
+ for (const t of titles) for (const w of t.split(/[^A-Za-z0-9]+/)) if (w.length >= 3 && !STOP.has(w.toLowerCase())) out.add(stem(w));
+ return out;
+}
+function overlap(q: string, forbidden: Set<string>): string[] {
+ const hits: string[] = [];
+ for (const w of q.split(/[^A-Za-z0-9]+/)) if (w.length >= 3 && forbidden.has(stem(w))) hits.push(w);
+ return [...new Set(hits)];
+}
+
+async function askQuestion(instructions: string, forbidden: Set<string>, validate: ((q: string) => string | null) | null, salt: string): Promise<{ q: string; note: string }> {
+ let feedback = '';
+ let last = '';
+ for (let attempt = 0; attempt < 5; attempt++) {
+ const text = await chat({
+ system: 'You write search queries for a retrieval benchmark. Output a single JSON object {"question": "..."}.',
+ user: instructions + (feedback ? '\n\nYour previous attempt "' + last + '" was rejected: ' + feedback : ''),
+ json: true,
+ temperature: 0.9,
+ maxTokens: 200,
+ salt: salt + '#' + attempt,
+ });
+ let q = '';
+ try { q = String(JSON.parse(text).question ?? '').trim(); } catch { /* retry */ }
+ last = q;
+ if (!q) { feedback = 'empty or invalid JSON'; continue; }
+ const hits = overlap(q, forbidden);
+ if (hits.length) { feedback = 'it reuses forbidden words: ' + hits.join(', ') + '. Rephrase without them.'; continue; }
+ const bad = validate?.(q);
+ if (bad) { feedback = bad; continue; }
+ return { q, note: '' };
+ }
+ const hits = overlap(last, forbidden);
+ return { q: last, note: hits.length ? 'WARNING question still overlaps title words: ' + hits.join(',') : 'WARNING validation failed after retries' };
+}
+
+// ---------------------------------------------------------------- Main generation
+
+const pages: Page[] = [];
+const rows: Row[] = [];
+const manifest: Array<{ source: string; slug: string; type: string; role: string }> = [];
+const addPage = (p: Page, role: string) => { pages.push(p); manifest.push({ source: 'source-' + p.source, slug: p.slug, type: p.type, role }); };
+
+const items = buildItems();
+console.error('[plan] ' + items.length + ' base items (' + items.filter(i => i.kind === 'target').length + ' targets)');
+
+// Names first (seeded, deterministic), so cross-references are known before any LLM call.
+for (const it of items) it.name = it.type === 'person' ? personName() : it.type === 'company' ? companyName() : '';
+const founders = new Map<Item, { name: string; slug?: string }>();
+for (const it of items) if (it.role === 'E4') founders.set(it, { name: personName() });
+
+const perDomain: DomainPlan[] = [];
+await pool(DOMAINS.map((_, d) => d), CONCURRENCY, async d => {
+ const mine = items.filter(i => i.domain === d);
+ const counts = { people: 0, companies: 0, meetings: 0, notes: 0, concepts: 0, media: 0, writing: 0 } as Record<keyof DomainPlan, number>;
+ for (const i of mine) counts[KEY_OF[i.type]]++;
+ perDomain[d] = await planDomain(d, counts);
+});
+const cursor = DOMAINS.map(() => ({ people: 0, companies: 0, meetings: 0, notes: 0, concepts: 0, media: 0, writing: 0 }) as Record<keyof DomainPlan, number>);
+for (const it of items) {
+ const k = KEY_OF[it.type];
+ it.planner = perDomain[it.domain]![k][cursor[it.domain]![k]++];
+ if (it.type === 'person' || it.type === 'company') it.title = it.name;
+ else it.title = String(it.planner!.title).replace(/["\n]/g, '').trim();
+ const dir = DIRS[it.type];
+ if (it.type === 'meeting') {
+ it.planner!.date = randDate();
+ it.slug = `${dir}/${it.planner!.date}-${slugify(it.title!, 48)}`;
+ } else if (it.type === 'person') it.slug = `${dir}/${slugify(it.name)}`;
+ else it.slug = `${dir}/${slugify(it.title!)}`;
+}
+const seenSlugs = new Set<string>();
+for (const it of items) {
+ let s = it.slug!, n = 2;
+ while (seenSlugs.has(s)) s = `${it.slug}-${n++}`;
+ it.slug = s; seenSlugs.add(s);
+}
+if (PLAN_ONLY) {
+ for (const it of items) console.log([it.kind, it.type, it.role, 'd' + it.domain, it.slug, it.twin ?? '', it.bOnly ? 'b-only' : ''].join('\t'));
+ process.exit(0);
+}
+
+for (const it of items) {
+ const pl = it.planner!;
+ if (it.type === 'meeting') pl.attendees = shuffle(items.filter(i => i.type === 'person' && i.domain === it.domain)).slice(0, 3 + Math.floor(rnd() * 2)).map(a => a.slug);
+ if (it.type === 'media') {
+ pl.speakers = [personName(), personName()];
+ pl.show = 'The ' + pick(CO_A) + pick(CO_B) + ' ' + pick(['Hour', 'Review', 'Sessions', 'Dispatch', 'Briefing']);
+ }
+ if (it.role === 'E3') pl.talkSpeaker = personName();
+ if (it.role === 'E13') pl.sectionPick = 4 + Math.floor(rnd() * 4);
+}
+
+const peopleByDomain = (d: number) => items.filter(i => i.type === 'person' && i.domain === d);
+const companiesByDomain = (d: number) => items.filter(i => i.type === 'company' && i.domain === d);
+const bodiesBySlug = new Map<string, string>();
+
+async function writeLongMeeting(it: Item, attendees: Item[]): Promise<string> {
+ const pl = it.planner!;
+ const names = attendees.map(a => a.name).join(', ');
+ const outline = await chatJson<{ sections: Array<{ heading: string; focus: string }> }>({
+ system: 'You outline fictional meeting notes. Output JSON.',
+ user: 'Domain: ' + DOMAINS[it.domain] + '. Meeting: ' + it.title + ' (' + pl.summary + '). Attendees: ' + names + '. Return {"sections":[{"heading": "...", "focus": "one sentence of what is discussed, including one invented codename or number"}]} with exactly 8 sections for a long quarterly review.',
+ temperature: 0.9, maxTokens: 1800, salt: 'outline-' + it.slug,
+ }, v => (Array.isArray(v.sections) && v.sections.length === 8 ? null : 'sections must have exactly 8 items'));
+ const head = 'Date: ' + pl.date + '\n\nAttendees: ' + names + '\n\nAttendee pages: ' + attendees.map(a => '[[' + a.slug + ']]').join(', ');
+ const sections = await pool(outline.sections, 5, async (s, i) => {
+ let text = '';
+ for (let a = 0; a < 3 && text.length < 4300; a++) {
+ text = (await chat({
+ system: SYS_WRITER,
+ user: 'This is section ' + (i + 1) + ' of a long, detailed fictional meeting record titled "' + it.title + '" in the domain ' + DOMAINS[it.domain] + '.\nSection heading: ' + s.heading + '. Focus: ' + s.focus + '.\nAttendees (use only these names, as speakers): ' + names + '.\nWrite roughly 5000 characters (about 800 words) of detailed back-and-forth discussion with specific figures, quotes and decisions. No heading line.',
+ temperature: 0.85, maxTokens: 2200, salt: it.slug + '-sec' + i + '#' + a,
+ })).trim();
+ }
+ return '## ' + s.heading + '\n\n' + text;
+ });
+ return [head, ...sections].join('\n\n');
+}
+
+async function buildItem(it: Item): Promise<void> {
+ const d = it.domain;
+ const dom = DOMAINS[d]!;
+ const pl = it.planner!;
+ const base = 'Domain: ' + dom + '.\nTitle: ' + it.title + '\nWrite ' + TYPE_GUIDE[it.type];
+ let body = '';
+ const fm: Record<string, unknown> = { type: it.type, title: it.title, tags: [slugify(dom.split(' (')[0]!, 40)] };
+
+ if (it.type === 'person') {
+ const employer = companiesByDomain(d)[0];
+ body = await write(base + '\nRole: ' + pl.role + '. Specialty: ' + pl.specialty + '. Career detail to weave in: ' + pl.history_hook + '.' + (employer ? ' Employer: ' + employer.name + ' (' + employer.planner!.pitch + ').' : '') + ' The person is named ' + it.name + '.', it.words, it.slug!);
+ if (employer) body += '\n\nCurrent employer: [[' + employer.slug + ']].';
+ } else if (it.type === 'company') {
+ body = await write(base + '\nProduct: ' + pl.product_name + ', ' + pl.pitch + ' Customers: ' + pl.customer_industry + '. Traction: ' + pl.traction + '. The company is named ' + it.name + '.', it.words, it.slug!);
+ const founder = founders.get(it);
+ if (founder) body += '\n\nFounder: [[people/' + slugify(founder.name) + ']].';
+ } else if (it.type === 'meeting') {
+ const attendees = (pl.attendees as string[]).map(sl => items.find(i => i.slug === sl)!);
+ fm.date = pl.date;
+ fm.attendees = attendees.map(a => a.name);
+ if (it.role === 'E13') body = await writeLongMeeting(it, attendees);
+ else {
+ const e11 = it.role === 'E11'
+ ? '\nThis is the kickoff meeting at which ' + pl.activity + ' officially started. State plainly, in the discussion, that ' + pl.activity + ' started on ' + pl.date + ' (the meeting date), and who owns it.'
+ : '';
+ body = await write(base + '\nDate: ' + pl.date + '. Attendees: ' + attendees.map(a => a.name).join(', ') + '. Meeting subject: ' + pl.summary + e11, it.words, it.slug!);
+ body += '\n\nAttendee pages: ' + attendees.map(a => '[[' + a.slug + ']]').join(', ') + '.';
+ }
+ } else if (it.type === 'media') {
+ fm.source_kind = 'transcript';
+ fm.show = pl.show;
+ body = await write(base + '\nShow: ' + pl.show + '. Episode/talk: ' + pl.title + '. Summary: ' + pl.summary + '\nThe only people named are the host ' + pl.speakers[0] + ' and the guest ' + pl.speakers[1] + '; audience members are unnamed.', it.words, it.slug!);
+ } else {
+ body = await write(base + '\nSubject: ' + pl.summary, it.words, it.slug!);
+ }
+ bodiesBySlug.set(it.slug!, body);
+ addPage({ source: 'a', slug: it.slug!, type: it.type, title: it.title!, fm, body: '# ' + it.title + '\n\n' + body + '\n' }, it.kind + ':' + it.role);
+}
+
+// ---------------------------------------------------------------- Special cases
+
+async function buildFounder(company: Item): Promise<void> {
+ const f = founders.get(company)!;
+ const pl = company.planner!;
+ const slug = 'people/' + slugify(f.name);
+ const body = await write(
+ 'Domain: ' + DOMAINS[company.domain] + '.\nWrite a person page for ' + f.name + ', founder and CEO of ' + company.name + '. This page is long and densely about the product: mention the product "' + pl.product_name + '" by name at least eight times and describe in detail what it does (' + pl.pitch + ') for ' + pl.customer_industry + ', how ' + f.name + ' came up with it, early customers, pricing experiments and roadmap. Third person, with a career history and years.',
+ 420, slug,
+ );
+ f.slug = slug;
+ addPage({ source: 'a', slug, type: 'person', title: f.name, fm: { type: 'person', title: f.name, tags: [slugify(DOMAINS[company.domain]!.split(' (')[0]!, 40)] }, body: '# ' + f.name + '\n\n' + body + '\n\nFounder of [[' + company.slug + ']].\n' }, 'founder');
+}
+
+function stubFor(it: Item, n: number): Page {
+ const t = it.type;
+ const fm: Record<string, unknown> = { type: t };
+ let slug: string, title: string;
+ if (t === 'person') { slug = it.slug + '-1'; title = it.title!; }
+ else if (t === 'company') { slug = it.slug + '-old'; title = it.title!; }
+ else { slug = it.slug + '-old'; title = it.title + ' (old)'; }
+ fm.title = title;
+ if (n % 2 === 0) fm.merged_into = it.slug;
+ return { source: 'a', slug, type: t, title, fm, body: '# ' + title + '\n\nThis page has been merged into [[' + it.slug + ']]\n' };
+}
+
+async function buildE3Family(it: Item): Promise<{ transcript: Page; summary: Page; copy: Page }> {
+ const pl = it.planner!;
+ const speaker = pl.talkSpeaker as string;
+ const talkTitle = pl.title + ': lessons from the field';
+ const talkSlug = 'media/' + slugify(talkTitle);
+ const transcriptBody = await write(
+ 'Domain: ' + DOMAINS[it.domain] + '.\nWrite a verbatim, speaker-labelled transcript of a conference talk by ' + speaker + ' on the same subject as an internal note titled "' + it.title + '" (' + pl.summary + '). Reuse much of the same vocabulary as that subject. Include audience Q&A fragments. The talk is called "' + talkTitle + '". The speaker is the only person named; the moderator is just "Moderator" and audience members are unnamed.',
+ 520, talkSlug,
+ );
+ const summaryBody = await write(
+ 'Summarise the following talk transcript in a neutral third-person summary with five bullet points and a one-paragraph overview. Keep the subject vocabulary.\n\n' + transcriptBody,
+ 170, talkSlug + '-summary',
+ );
+ const mk = (slug: string, type: string, title: string, body: string, extra: Record<string, unknown> = {}): Page => ({ source: 'a', slug, type, title, fm: { type, title, ...extra }, body: '# ' + title + '\n\n' + body + '\n' });
+ return {
+ transcript: mk(talkSlug, 'media', talkTitle, transcriptBody, { source_kind: 'transcript' }),
+ summary: mk(talkSlug + '-summary', 'media', talkTitle + ' (summary)', summaryBody, { source_kind: 'summary' }),
+ copy: mk('concepts/' + slugify(talkTitle), 'concept', talkTitle, transcriptBody),
+ };
+}
+
+async function buildE11Stub(it: Item): Promise<Page> {
+ const pl = it.planner!;
+ const act = String(pl.activity).replace(/^the /i, '');
+ const title = act.charAt(0).toUpperCase() + act.slice(1) + ' overview';
+ const body = await write(
+ 'Domain: ' + DOMAINS[it.domain] + '.\nWrite a short undated concept stub about ' + pl.activity + ': what it is, why it matters, the vocabulary used for it, who typically owns it. Do NOT include any dates, years, months or "started/began/kicked off" statements.',
+ 80, 'e11stub-' + it.slug,
+ );
+ const slug = 'concepts/' + slugify(title);
+ return { source: 'a', slug, type: 'concept', title, fm: { type: 'concept', title }, body: '# ' + title + '\n\n' + body + '\n' };
+}
+
+// Each image page shares exactly one word with the "<first> <last>" query.
+function imagePagesFor(it: Item, others: string[], used: Set<string>): Page[] {
+ const [first, last] = it.name.split(' ') as [string, string];
+ const other = (): [string, string] => {
+ for (;;) {
+ const [f, l] = pick(others).split(' ') as [string, string];
+ if (f !== first && l !== last) return [f, l];
+ }
+ };
+ const [of1, ol1] = other();
+ const [of2] = other();
+ const [of3, ol3] = other();
+ const texts = [
+ 'BADGE\n' + first + ' ' + ol1 + '\nVisitor - Hall B\nNo. ' + (1000 + Math.floor(rnd() * 8000)),
+ of2 + ' ' + last + '\nWHITEBOARD: Q3 roadmap\nowner ' + of1,
+ 'Receipt - ' + first + "'s Corner Cafe\nFlat white 3.80\nTotal 18.40\nCashier " + of3 + ' ' + ol3,
+ ].slice(0, 2 + Math.floor(rnd() * 2));
+ return texts.map(text => {
+ let slug: string;
+ do slug = 'images/' + randDate(2024, 2025) + '-img-' + (1000 + Math.floor(rnd() * 9000)) + '.jpg'; while (used.has(slug));
+ used.add(slug);
+ const title = slug.split('/')[1]!;
+ return { source: 'a', slug, type: 'image', title, fm: { type: 'image', title, ocr: true, source_kind: 'image' }, body: 'OCR text:\n' + text + '\n' };
+ });
+}
+
+// ---- run units
+
+const targets = items.filter(i => i.kind === 'target');
+await pool(items, CONCURRENCY, buildItem);
+console.error('[pages] base pages written: ' + pages.length);
+
+await pool(items.filter(i => i.role === 'E4'), CONCURRENCY, buildFounder);
+
+const familyByNote = new Map<Item, { transcript: Page; summary: Page; copy: Page }>();
+await pool(targets.filter(i => i.role === 'E3'), CONCURRENCY, async it => {
+ const fam = await buildE3Family(it);
+ familyByNote.set(it, fam);
+ for (const p of [fam.transcript, fam.summary, fam.copy]) addPage(p, 'E3-family');
+});
+
+const e11Stubs = new Map<Item, Page>();
+await pool(targets.filter(i => i.role === 'E11'), CONCURRENCY, async it => {
+ const s = await buildE11Stub(it);
+ e11Stubs.set(it, s); addPage(s, 'E11-stub');
+});
+
+const imagesByPerson = new Map<Item, Page[]>();
+{
+ const used = new Set<string>();
+ const others = items.filter(i => i.type === 'person' && i.role !== 'E9').map(i => i.name);
+ for (const it of targets.filter(i => i.role === 'E9')) {
+ const imgs = imagePagesFor(it, others, used);
+ imagesByPerson.set(it, imgs);
+ for (const p of imgs) addPage(p, 'E9-image');
+ }
+}
+
+const e2Stubs = new Map<Item, Page>();
+targets.filter(i => i.role === 'E2').forEach((it, n) => {
+ const s = stubFor(it, n);
+ e2Stubs.set(it, s); addPage(s, 'E2-stub');
+});
+
+// ---- twins / source-b
+
+const DIVERGENT_TYPE: Record<string, string> = { person: 'note', meeting: 'note', note: 'concept', concept: 'note', media: 'concept', writing: 'note', company: 'note' };
+const aBySlug = new Map(pages.filter(p => p.source === 'a').map(p => [p.slug, p]));
+for (const it of items) {
+ if (!it.twin && !it.bOnly) continue;
+ const a = aBySlug.get(it.slug!)!;
+ if (it.bOnly) {
+ pages.splice(pages.indexOf(a), 1);
+ manifest.splice(manifest.findIndex(m => m.slug === a.slug && m.source === 'source-a'), 1);
+ addPage({ ...a, source: 'b' }, it.kind + ':b-only');
+ } else if (it.twin === 'identical') {
+ addPage({ ...a, source: 'b' }, 'twin-identical:' + it.kind);
+ } else {
+ const paras = a.body.split('\n\n');
+ const keep = paras.slice(0, Math.max(2, Math.ceil(paras.length * 0.55))).join('\n\n');
+ const type = DIVERGENT_TYPE[it.type]!;
+ addPage({ source: 'b', slug: a.slug, type, title: a.title, fm: { ...a.fm, type }, body: keep + '\n\n(Condensed copy of the original page.)\n' }, 'twin-divergent:' + it.kind);
+ }
+}
+
+// ---------------------------------------------------------------- Questions
+
+const twinOf = (it: Item) => (it.twin ? [{ source_id: 'source-b', slug: it.slug! }] : []);
+const qrows: Array<{ it: Item; shape: string; question: string; notes: string; related: Related[] }> = [];
+
+function paraphraseInstr(it: Item, angle: string) {
+ const body = aBySlug.get(it.slug!)!.body.slice(0, 3500);
+ return 'Below is a wiki page. Write ONE natural question that someone who half-remembers this page might type into a search box, such that this page is the best answer. Paraphrase: describe the page\'s distinctive content in your own words instead of copying its title. Angle: ' + angle + '.\n\nTitle: ' + it.title + '\n\n' + body;
+}
+
+await pool(targets, CONCURRENCY, async it => {
+ const title = it.title!;
+ if (it.role === 'E9') {
+ qrows.push({ it, shape: 'E9', question: it.name, notes: 'name query; each OCR image page shares exactly one query word', related: imagesByPerson.get(it)!.map(p => ({ source_id: 'source-a', slug: p.slug, role: 'image' })) });
+ } else if (it.role === 'E2') {
+ const s = e2Stubs.get(it)!;
+ const q = it.type === 'person' ? 'Who is ' + title + '?' : it.type === 'company' ? 'What does ' + title + ' do?' : title + ' explained';
+ qrows.push({ it, shape: 'E2', question: q, notes: 'redirect stub ' + s.slug + (s.fm.merged_into ? ' (has merged_into frontmatter)' : ' (body only)'), related: [{ source_id: 'source-a', slug: s.slug, role: 'stub' }] });
+ } else if (it.role === 'E3') {
+ const fam = familyByNote.get(it)!;
+ const r = await askQuestion(
+ 'A team note titled "' + title + '" holds the answer to a question. A conference talk on the same subject (title: "' + fam.transcript.title + '") also exists in several copies. Write ONE natural question about the subject whose best answer is the team note (its conclusion or recommendation). Use the subject\'s own vocabulary (sharing words with the talk is fine), but do not name any person.\n\nNote:\n' + aBySlug.get(it.slug!)!.body.slice(0, 3000),
+ new Set(), null, 'q-e3-' + it.slug);
+ qrows.push({ it, shape: 'E3', question: r.q, notes: 'family of 3 derived pages on the same subject' + (r.note ? ' ' + r.note : ''), related: [fam.transcript, fam.summary, fam.copy].map(p => ({ source_id: 'source-a', slug: p.slug, role: 'family' })) });
+ } else if (it.role === 'E4') {
+ const f = founders.get(it)!;
+ const pl = it.planner!;
+ const forbid = titleTokens(title, f.name, String(pl.product_name));
+ const r = await askQuestion(
+ 'Write ONE descriptive search query of the form "API/tool/platform that does X for Y industry" for the product below. Describe what it does and who it serves in your own words. Do NOT use the company name, the product name, any person\'s name, or these words: ' + [...forbid].join(', ') + '.\n\nProduct: ' + pl.product_name + ' - ' + pl.pitch + ' Customers: ' + pl.customer_industry + '.',
+ forbid, null, 'q-e4-' + it.slug);
+ qrows.push({ it, shape: 'E4', question: r.q, notes: 'company; founder page ' + f.slug + ' mentions the product heavily' + (r.note ? ' ' + r.note : ''), related: [{ source_id: 'source-a', slug: f.slug!, role: 'founder' }] });
+ } else if (it.role === 'E11') {
+ const stub = e11Stubs.get(it)!;
+ const r = await askQuestion(
+ 'Write ONE question of exactly the form "when did <x> start <y>" where <y> refers to ' + it.planner!.activity + ' and <x> is the team or person who started it (invent a plausible short subject that fits the meeting, such as a team name; never the name of a person). Do not include a date.\n\nMeeting excerpt:\n' + aBySlug.get(it.slug!)!.body.slice(0, 1500),
+ new Set(), q => (/^when did .+ start .+/i.test(q) ? null : 'must match "when did <x> start <y>"'), 'q-e11-' + it.slug);
+ qrows.push({ it, shape: 'E11', question: r.q, notes: 'dated meeting ' + it.planner!.date + '; undated concept stub ' + stub.slug + (r.note ? ' ' + r.note : ''), related: [{ source_id: 'source-a', slug: stub.slug, role: 'undated-stub' }] });
+ } else if (it.role === 'E13') {
+ const body = aBySlug.get(it.slug!)!.body;
+ const secs = body.split(/\n## /).slice(1);
+ const sec = secs[it.planner!.sectionPick as number] ?? secs[0]!;
+ const forbid = titleTokens(title);
+ const r = await askQuestion(
+ 'Below is one section of a very long meeting record. Write ONE natural question about a specific detail in this section (a figure, decision, or codename) that a person could ask without knowing the meeting\'s title. Paraphrase; do not use these words: ' + [...forbid].join(', ') + '.\n\n' + sec.slice(0, 3500),
+ forbid, null, 'q-e13-' + it.slug);
+ qrows.push({ it, shape: 'E13', question: r.q, notes: 'very long page (' + body.length + ' chars)' + (r.note ? ' ' + r.note : ''), related: [] });
+ } else {
+ const forbid = titleTokens(title);
+ const r = await askQuestion(paraphraseInstr(it, 'the main point or most distinctive fact') + '\n\nDo not use these words: ' + [...forbid].join(', ') + '.', forbid, null, 'q-base-' + it.slug);
+ qrows.push({ it, shape: it.twin ? 'E1' : 'E15', question: r.q, notes: it.type + '; ' + (it.twin ? 'twin ' + it.twin + ' in source-b' : 'single source') + (r.note ? ' ' + r.note : ''), related: [] });
+ }
+});
+
+// 20 extra paraphrases (a second, different angle) over random targets.
+const baseQ = new Map(qrows.map(r => [r.it, r.question]));
+const extraPool = shuffle(targets.filter(i => i.role !== 'E13' && i.role !== 'E9'));
+await pool(extraPool.slice(0, 20), CONCURRENCY, async it => {
+ const forbid = titleTokens(it.title!);
+ const r = await askQuestion(paraphraseInstr(it, 'a detail from the second half of the page, phrased differently from this earlier question: ' + baseQ.get(it)) + '\n\nDo not use these words: ' + [...forbid].join(', ') + '.', forbid, null, 'q-extra-' + it.slug);
+ qrows.push({ it, shape: it.twin ? 'E1' : 'E15', question: r.q, notes: 'second paraphrase of a ' + it.role + ' target' + (r.note ? ' ' + r.note : ''), related: [] });
+});
+
+qrows.sort((a, b) => (a.it.slug! + a.shape).localeCompare(b.it.slug! + b.shape) || a.question.localeCompare(b.question));
+qrows.forEach((r, i) => {
+ rows.push({ id: 'q' + String(i + 1).padStart(3, '0'), shape: r.shape, question: r.question, target: { source_id: 'source-a', slug: r.it.slug! }, also_ok: twinOf(r.it), related: r.related, notes: r.notes });
+});
+
+// ---------------------------------------------------------------- Scrub + privacy pass
+
+// Safety net for real-sounding strings the model still produces despite the prompt rules.
+const SCRUB: Array<[RegExp, string]> = [
+ [/\bNorthwind\b/g, 'Northvale'], [/\bMeridian\b/g, 'Merrowick'], [/\bNimbus\b/g, 'Nimbrel'], [/\bHurricane Delta\b/g, 'Hurricane Delmora'],
+ [/\bAWS\b/g, 'Skycloud'], [/\bFDA\b/g, 'NHRA'], [/\bDoD\b/g, 'MoD'], [/\(UPS\)/g, '(backup power)'], [/\bUPS\b/g, 'backup power'],
+];
+const scrubBase = (t: string) => SCRUB.reduce((a, [re, to]) => a.replace(re, to), t);
+const REAL_FIRSTS = ['Maya', 'Elena', 'Jamal', 'Priya', 'Raj', 'Ravi', 'Jane', 'Carlos', 'Jordan', 'Jamie', 'Rohan', 'Lena', 'Greg', 'Mike', 'Mira', 'Kaitlyn', 'Leo', 'Samir', 'Jen', 'Alex', 'Sarah', 'John', 'David', 'Michael', 'James', 'Robert', 'Emily', 'Anna', 'Maria', 'Daniel', 'Kiran', 'Marina', 'Lianne', 'Linton', 'Chen', 'Patel', 'Rivera', 'Rodriguez', 'Torres', 'Moretti', 'Smith', 'Johnson', 'Williams', 'Garcia', 'Martinez', 'Lopez', 'Nguyen', 'Singh', 'Kumar', 'Sharma', 'Ahmed', 'Khan', 'Wang', 'Zhang', 'Liu', 'Choi', 'Nakamura', 'Tanaka', 'Sato', 'Suzuki', 'Muller', 'Schmidt', 'Fischer', 'Weber', 'Meyer', 'Dubois', 'Bernard', 'Rossi', 'Russo', 'Ferrari', 'Esposito', 'Bianchi', 'Romano', 'Okafor', 'Adeyemi', 'Mensah', 'Nasser', 'Cohen', 'Goldberg', 'Emma', 'Olivia', 'Liam', 'Noah', 'Sophia', 'Isabella', 'Ethan', 'Lucas', 'Amelia', 'Harper', 'Evelyn', 'Abigail', 'Ella', 'Priyanka', 'Anil', 'Amit', 'Neha', 'Sunita', 'Yuki', 'Hiro', 'Chloe', 'Ben', 'Tom', 'Tim', 'Bob', 'Bill', 'Steve', 'Kate', 'Lisa', 'Karen', 'Susan', 'Linda'];
+const realFirstRe = new RegExp('(^|[^A-Za-z0-9_])(' + REAL_FIRSTS.join('|') + ')([^A-Za-z0-9]|$)');
+// Any leaked common real name becomes a stable invented one (hash of the original).
+const nameHash = (n: string) => parseInt(createHash('sha256').update(n).digest('hex').slice(0, 8), 16);
+const inventedFor = (n: string) => CO_A[nameHash(n) % CO_A.length]! + CO_B[Math.floor(nameHash(n) / 31) % CO_B.length]!;
+const realFirstAll = new RegExp('\\b(' + [...new Set(REAL_FIRSTS)].join('|') + ')\\b', 'g');
+const scrub = (t: string) => scrubBase(t).replace(realFirstAll, m => inventedFor(m));
+for (const p of pages) { p.title = scrub(p.title); p.body = scrub(p.body); p.fm = JSON.parse(scrub(JSON.stringify(p.fm))); }
+for (const r of rows) r.question = scrub(r.question);
+
+const denyRe = REAL_DENY.map(w => ({ w, re: new RegExp('(^|[^a-z0-9])' + w.replace(/[.*+?^$()|[\]\\{}]/g, '\\$&') + '([^a-z0-9]|$)', 'i') }));
+function privacyFindings(): string[] {
+ const out: string[] = [];
+ const check = (where: string, text: string) => {
+ for (const { w, re } of denyRe) if (re.test(text)) out.push(where + ': "' + w + '"');
+ const m = text.match(realFirstRe);
+ if (m) out.push(where + ': common real name "' + m[2] + '"');
+ };
+ for (const p of pages) check('source-' + p.source + '/' + p.slug, p.title + '\n' + p.body);
+ for (const r of rows) check('question ' + r.id, r.question);
+ return out;
+}
+const findings = privacyFindings();
+if (findings.length) console.error('[privacy] deny-list hits (' + findings.length + '):\n ' + findings.slice(0, 40).join('\n '));
+
+// ---------------------------------------------------------------- Write
+
+function frontmatter(fm: Record<string, unknown>): string {
+ const lines = Object.entries(fm).map(([k, v]) => k + ': ' + (typeof v === 'string' || Array.isArray(v) ? JSON.stringify(v) : String(v)));
+ return '---\n' + lines.join('\n') + '\n---\n\n';
+}
+for (const s of ['source-a', 'source-b']) rmSync(join(OUT, s), { recursive: true, force: true });
+for (const p of pages) {
+ const file = join(OUT, 'source-' + p.source, p.slug + '.md');
+ mkdirSync(dirname(file), { recursive: true });
+ writeFileSync(file, frontmatter(p.fm) + p.body);
+}
+writeFileSync(join(OUT, 'questions.jsonl'), rows.map(r => JSON.stringify(r)).join('\n') + '\n');
+writeFileSync(join(OUT, 'manifest.json'), JSON.stringify(manifest, null, 2) + '\n');
+
+const shapeCounts: Record<string, number> = {};
+for (const r of rows) shapeCounts[r.shape] = (shapeCounts[r.shape] ?? 0) + 1;
+const summary = {
+ pages: pages.length,
+ source_a: pages.filter(p => p.source === 'a').length,
+ source_b: pages.filter(p => p.source === 'b').length,
+ questions: rows.length,
+ shapes: shapeCounts,
+ longest_body_chars: pages.reduce((m, p) => Math.max(m, p.body.length), 0),
+ llm: { model: MODEL, calls: usage.calls, cached: usage.cached, input_tokens: usage.inTok, output_tokens: usage.outTok, est_usd: +(usage.inTok * PRICE_IN + usage.outTok * PRICE_OUT).toFixed(3) },
+ privacy_findings: findings.length,
+};
+writeFileSync(join(OUT, 'README.md'), '# ranking-shapes fixture\n\nSynthetic, fictional corpus for the ranking-shape bench. Generated by ' + '`scripts/bench/ranking-shapes/generate.ts`' + ' (seed ' + SEED + '). Do not hand-edit; rerun the generator.\n\n```json\n' + JSON.stringify({ ...summary, llm: { model: MODEL } }, null, 2) + '\n```\n\n- `source-a/`, `source-b/`: page directories (source-b holds same-slug twins plus a few b-only pages).\n- `questions.jsonl`: one row per question; `related` lists the stub/family/founder/image pages that the shape-specific pass criteria look at.\n- `manifest.json`: slug to role map.\n');
+console.error(JSON.stringify(summary, null, 2));
+if (findings.length) process.exit(2);
diff --git a/scripts/bench/ranking-shapes/run.ts b/scripts/bench/ranking-shapes/run.ts
new file mode 100644
index 0000000000..0ccd7dae08
--- /dev/null
+++ b/scripts/bench/ranking-shapes/run.ts
@@ -0,0 +1,558 @@
+#!/usr/bin/env bun
+/**
+ * Ranking-shape bench runner (GBRA-154 retrieval ranking wave).
+ *
+ * Builds a fresh PGLite brain in a temp GBRAIN_HOME (never ~/.gbrain) from the
+ * synthetic fixture at test/fixtures/ranking-shapes, then runs every question
+ * through search, query and query --expand via the CLI of the checkout given by
+ * --repo, scores the results and writes results.json + summary.md.
+ *
+ * Usage:
+ * bun scripts/bench/ranking-shapes/run.ts --out /tmp/rs-master [--repo /path/to/checkout]
+ * [--fixtures dir] [--cache-dir ~/.cache/gbrain-ranking-shapes] [--limit 20]
+ * [--variants search,query,query-expand] [--max-questions N] [--home dir] [--keep-home]
+ * [--fast] [--embedding-model openai:text-embedding-3-large] [--config key=value,key=value]
+ *
+ * Network calls (embeddings, query expansion LLM, reranker) go through a local
+ * caching proxy so reruns are free and deterministic: embeddings are cached per
+ * input text (keyed by sha256 of model + dimensions + text), other provider calls
+ * per request body. Cached entries remember the upstream latency and the proxy
+ * replays it, so wall times stay realistic; --fast skips the replay.
+ *
+ * --config applies 'gbrain config set key value' after init (for example search.reranker.enabled=false to score without the reranker).
+ *
+ * --home reuses an already-built brain (skips init/sync/embed) so scoring changes
+ * can be iterated without a rebuild. The brain schema belongs to the checkout that
+ * built it: use a separate home per checkout.
+ */
+import { createHash } from 'node:crypto';
+import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync, appendFileSync, statSync } from 'node:fs';
+import { homedir, tmpdir } from 'node:os';
+import { dirname, join, resolve } from 'node:path';
+
+const SCRIPT_ROOT = resolve(import.meta.dir, '../../..');
+
+// ---------------------------------------------------------------- CLI args
+
+function parseArgs(argv: string[]) {
+ const o: Record<string, string | boolean> = {};
+ for (let i = 0; i < argv.length; i++) {
+ const a = argv[i]!;
+ if (!a.startsWith('--')) continue;
+ const key = a.slice(2);
+ const next = argv[i + 1];
+ if (next === undefined || next.startsWith('--')) o[key] = true;
+ else { o[key] = next; i++; }
+ }
+ return o;
+}
+const args = parseArgs(process.argv.slice(2));
+const REPO = resolve(String(args.repo ?? SCRIPT_ROOT));
+const FIXTURES = resolve(String(args.fixtures ?? join(SCRIPT_ROOT, 'test/fixtures/ranking-shapes')));
+const OUT = resolve(String(args.out ?? 'ranking-shapes-out'));
+const CACHE = resolve(String(args['cache-dir'] ?? join(homedir(), '.cache/gbrain-ranking-shapes')));
+const LIMIT = Number(args.limit ?? 20);
+const EMBEDDING_MODEL = String(args['embedding-model'] ?? 'openai:text-embedding-3-large');
+const VARIANTS = String(args.variants ?? 'search,query,query-expand').split(',') as Variant[];
+const MAX_Q = Number(args['max-questions'] ?? 0);
+const FAST = args.fast === true;
+const KEEP_HOME = args['keep-home'] === true;
+const CONFIG_SETS = typeof args.config === 'string' ? String(args.config).split(',').filter(Boolean) : [];
+
+type Variant = 'search' | 'query' | 'query-expand';
+const VARIANT_ARGS: Record<Variant, string[]> = { search: ['search'], query: ['query'], 'query-expand': ['query', '--expand'] };
+
+interface Ref { source_id: string; slug: string }
+interface Q { id: string; shape: string; question: string; target: Ref; also_ok: Ref[]; related?: Array<Ref & { role: string }>; notes?: string }
+
+const log = (m: string) => process.stderr.write('[ranking-shapes] ' + m + '\n');
+const sha = (s: string) => createHash('sha256').update(s).digest('hex');
+
+// ---------------------------------------------------------------- caching proxy
+
+const UPSTREAM: Record<string, string> = { openai: 'https://api.openai.com', anthropic: 'https://api.anthropic.com', voyage: 'https://api.voyageai.com' };
+const PRICE = { embedPerTok: 0.13 / 1e6, voyagePerTok: 0.02 / 1e6, anthropicIn: 1 / 1e6, anthropicOut: 5 / 1e6 };
+
+function startProxy(cacheDir: string) {
+ mkdirSync(cacheDir, { recursive: true });
+ const embFile = join(cacheDir, 'embeddings.jsonl');
+ const respFile = join(cacheDir, 'responses.jsonl');
+ const emb = new Map<string, { v: number[]; ms: number }>();
+ const resp = new Map<string, { status: number; ct: string; body: string; ms: number }>();
+ const load = (file: string, fn: (o: any) => void) => {
+ if (!existsSync(file)) return;
+ for (const line of readFileSync(file, 'utf8').split('\n')) if (line.trim()) { try { fn(JSON.parse(line)); } catch { /* torn line */ } }
+ };
+ load(embFile, o => emb.set(o.k, { v: o.v, ms: o.ms }));
+ load(respFile, o => resp.set(o.k, { status: o.status, ct: o.ct, body: o.body, ms: o.ms }));
+ const stats: Record<string, { calls: number; hits: number; misses: number; inTok: number; outTok: number; usd: number }> = {};
+ const st = (p: string) => (stats[p] ??= { calls: 0, hits: 0, misses: 0, inTok: 0, outTok: 0, usd: 0 });
+ let replay = false;
+ const sleep = (ms: number) => new Promise(r => setTimeout(r, ms));
+
+ const forwardHeaders = (req: Request) => {
+ const h = new Headers();
+ for (const [k, v] of req.headers) if (!['host', 'content-length', 'accept-encoding', 'connection'].includes(k.toLowerCase())) h.set(k, v);
+ return h;
+ };
+
+ const server = Bun.serve({
+ port: 0,
+ hostname: '127.0.0.1',
+ idleTimeout: 120,
+ async fetch(req) {
+ const url = new URL(req.url);
+ const m = url.pathname.match(/^\/(openai|anthropic|voyage)(\/.*)$/);
+ if (!m) return new Response('unknown route', { status: 404 });
+ const provider = m[1]!;
+ const path = m[2]!;
+ const upstream = UPSTREAM[provider]! + path + url.search;
+ const bodyText = req.method === 'GET' ? '' : await req.text();
+ const s = st(provider);
+ s.calls++;
+
+ if (provider === 'openai' && path.endsWith('/embeddings') && req.method === 'POST') {
+ const body = JSON.parse(bodyText);
+ const inputs: string[] = Array.isArray(body.input) ? body.input : [body.input];
+ const keys = inputs.map(t => sha(JSON.stringify([body.model, body.dimensions ?? null, t])));
+ const missIdx = keys.map((k, i) => (emb.has(k) ? -1 : i)).filter(i => i >= 0);
+ let tokens = 0;
+ if (missIdx.length) {
+ const t0 = Date.now();
+ const r = await fetch(upstream, { method: 'POST', headers: forwardHeaders(req), body: JSON.stringify({ ...body, input: missIdx.map(i => inputs[i]), encoding_format: 'float' }) });
+ if (!r.ok) return new Response(await r.text(), { status: r.status, headers: { 'content-type': 'application/json' } });
+ const j = await r.json() as any;
+ const ms = Date.now() - t0;
+ tokens = j.usage?.prompt_tokens ?? 0;
+ for (const d of j.data) {
+ const i = missIdx[d.index]!;
+ emb.set(keys[i]!, { v: d.embedding, ms });
+ appendFileSync(embFile, JSON.stringify({ k: keys[i], v: d.embedding, ms }) + '\n');
+ }
+ s.misses++;
+ s.inTok += tokens;
+ s.usd += tokens * PRICE.embedPerTok;
+ } else {
+ s.hits++;
+ if (replay) await sleep(Math.max(...keys.map(k => emb.get(k)!.ms)));
+ }
+ const b64 = body.encoding_format === 'base64';
+ const data = keys.map((k, i) => {
+ const v = emb.get(k)!.v;
+ return { object: 'embedding', index: i, embedding: b64 ? Buffer.from(new Float32Array(v).buffer).toString('base64') : v };
+ });
+ return Response.json({ object: 'list', data, model: body.model, usage: { prompt_tokens: tokens, total_tokens: tokens } });
+ }
+
+ const key = sha(JSON.stringify([req.method, path, bodyText]));
+ const hit = resp.get(key);
+ if (hit) {
+ s.hits++;
+ if (replay) await sleep(hit.ms);
+ return new Response(hit.body, { status: hit.status, headers: { 'content-type': hit.ct } });
+ }
+ const t0 = Date.now();
+ const r = await fetch(upstream, { method: req.method, headers: forwardHeaders(req), body: req.method === 'GET' ? undefined : bodyText });
+ const text = await r.text();
+ const ms = Date.now() - t0;
+ const ct = r.headers.get('content-type') ?? 'application/json';
+ s.misses++;
+ const inTok = Number(text.match(/"(?:input_tokens|prompt_tokens)":\s*(\d+)/)?.[1] ?? 0);
+ const outTok = Number(text.match(/"(?:output_tokens|completion_tokens)":\s*(\d+)/)?.[1] ?? 0);
+ const totalTok = Number(text.match(/"total_tokens":\s*(\d+)/)?.[1] ?? 0);
+ if (provider === 'anthropic') { s.inTok += inTok; s.outTok += outTok; s.usd += inTok * PRICE.anthropicIn + outTok * PRICE.anthropicOut; }
+ else if (provider === 'voyage') { s.inTok += totalTok; s.usd += totalTok * PRICE.voyagePerTok; }
+ if (r.status === 200) {
+ resp.set(key, { status: 200, ct, body: text, ms });
+ appendFileSync(respFile, JSON.stringify({ k: key, status: 200, ct, body: text, ms }) + '\n');
+ }
+ return new Response(text, { status: r.status, headers: { 'content-type': ct } });
+ },
+ });
+ return {
+ port: server.port,
+ stats,
+ setReplay: (v: boolean) => { replay = v; },
+ stop: () => server.stop(true),
+ totalUsd: () => Object.values(stats).reduce((a, s) => a + s.usd, 0),
+ };
+}
+
+// ---------------------------------------------------------------- CLI runner
+
+interface Ran { code: number; stdout: string; stderr: string; ms: number }
+let HOME = '';
+let PROXY_PORT = 0;
+
+async function cli(cliArgs: string[], extraEnv: Record<string, string> = {}, timeoutMs = 600_000): Promise<Ran> {
+ const env: Record<string, string> = {
+ ...(process.env as Record<string, string>),
+ GBRAIN_HOME: HOME,
+ OPENAI_BASE_URL: 'http://127.0.0.1:' + PROXY_PORT + '/openai/v1',
+ ANTHROPIC_BASE_URL: 'http://127.0.0.1:' + PROXY_PORT + '/anthropic/v1',
+ NO_COLOR: '1',
+ ...extraEnv,
+ };
+ delete env.GBRAIN_CONTRIBUTOR_MODE;
+ const t0 = performance.now();
+ const p = Bun.spawn(['bun', 'run', join(REPO, 'src/cli.ts'), ...cliArgs], { cwd: REPO, env, stdout: 'pipe', stderr: 'pipe' });
+ const timer = setTimeout(() => p.kill(), timeoutMs);
+ const [stdout, stderr, code] = await Promise.all([new Response(p.stdout).text(), new Response(p.stderr).text(), p.exited]);
+ clearTimeout(timer);
+ return { code, stdout, stderr, ms: Math.round(performance.now() - t0) };
+}
+
+function need(r: Ran, what: string): Ran {
+ if (r.code !== 0) throw new Error(what + ' failed (exit ' + r.code + '):\n' + (r.stderr + r.stdout).slice(-2500));
+ return r;
+}
+
+function git(cwd: string, ...a: string[]) {
+ const r = Bun.spawnSync(['git', '-c', 'user.name=ranking-shapes-bench', '-c', '[email protected]', ...a], { cwd });
+ if (r.exitCode !== 0) throw new Error('git ' + a.join(' ') + ': ' + r.stderr.toString());
+}
+
+// ---------------------------------------------------------------- brain build
+
+async function buildBrain(workdir: string, proxy: ReturnType<typeof startProxy>) {
+ const info: Record<string, unknown> = {};
+ mkdirSync(HOME, { recursive: true });
+ need(await cli(['init', '--pglite', '--embedding-model', EMBEDDING_MODEL, '--search-mode', 'balanced', '--non-interactive']), 'init');
+ const cfgPath = join(HOME, '.gbrain/config.json');
+ const cfg = JSON.parse(readFileSync(cfgPath, 'utf8'));
+ cfg.provider_base_urls = { ...(cfg.provider_base_urls ?? {}), voyage: 'http://127.0.0.1:' + proxy.port + '/voyage/v1' };
+ writeFileSync(cfgPath, JSON.stringify(cfg, null, 2));
+ for (const kv of CONFIG_SETS) {
+ const i = kv.indexOf('=');
+ need(await cli(['config', 'set', kv.slice(0, i), kv.slice(i + 1)]), 'config set ' + kv);
+ }
+ const mig = await cli(['apply-migrations', '--yes', '--no-autopilot-install']);
+ info.apply_migrations_exit = mig.code;
+
+ for (const s of ['source-a', 'source-b']) {
+ const dir = join(workdir, s);
+ cpSync(join(FIXTURES, s), dir, { recursive: true });
+ git(dir, 'init', '-q');
+ git(dir, 'add', '-A');
+ git(dir, 'commit', '-q', '-m', 'fixture');
+ need(await cli(['sources', 'add', s, '--path', dir, '--federated']), 'sources add ' + s);
+ }
+ const t0 = Date.now();
+ const sync = await cli(['sync', '--all', '--yes'], {}, 1_800_000);
+ info.sync_exit = sync.code;
+ info.sync_tail = (sync.stdout + sync.stderr).split('\n').filter(l => /imported|Links|held|Held|error|Error/i.test(l)).slice(-12);
+ const emb = await cli(['embed', '--stale', '--yes'], {}, 1_800_000);
+ info.embed_exit = emb.code;
+ info.embed_tail = (emb.stdout + emb.stderr).split('\n').slice(-6);
+ const links = await cli(['extract', 'links', '--source', 'db']);
+ info.extract_links_exit = links.code;
+ info.extract_links_tail = (links.stdout + links.stderr).split('\n').filter(Boolean).slice(-3);
+ const emb2 = await cli(['embed', '--stale', '--yes']);
+ info.embed2_exit = emb2.code;
+ const list = await cli(['sources', 'list', '--json']);
+ try { info.sources = JSON.parse(list.stdout).sources.map((s: any) => ({ id: s.id, pages: s.page_count, federated: s.federated })); } catch { info.sources = list.stdout.slice(0, 400); }
+ const status = await cli(['sources', 'status', '--json']);
+ info.status_raw = status.stdout.slice(0, 3000);
+ info.build_ms = Date.now() - t0;
+ return info;
+}
+
+// ---------------------------------------------------------------- scoring
+
+interface Row { slug: string; source_id?: string; type?: string; score?: number; rerank_score?: number; chunk_text?: string; collapsed?: Array<{ slug: string; source_id?: string; reason?: string }> }
+interface Compact { slug: string; source_id?: string; type?: string; score?: number; rerank_score?: number; chunk_len: number; collapsed: number }
+
+function ranks(q: Q, rows: Row[]) {
+ const T = q.target;
+ const strict = rows.findIndex(r => r.slug === T.slug && r.source_id === T.source_id);
+ const isTwin = (r: { slug: string; source_id?: string }) => r.slug === T.slug || q.also_ok.some(o => o.slug === r.slug && o.source_id === r.source_id);
+ const twin = rows.findIndex(isTwin);
+ const collapseHit = (r: Row) => (r.collapsed ?? []).some(c => c.slug === T.slug && (c.source_id === undefined || c.source_id === T.source_id || q.also_ok.some(o => o.source_id === c.source_id)));
+ const collapse = rows.findIndex(r => isTwin(r) || collapseHit(r));
+ return { strict, twin, collapse };
+}
+
+const dupSlots = (rows: Row[]) => {
+ const top = rows.slice(0, 10);
+ const seen = new Set<string>();
+ let dups = 0;
+ for (const r of top) { if (seen.has(r.slug)) dups++; seen.add(r.slug); }
+ return { dups, slots: top.length };
+};
+
+function shapeChecks(q: Q, rows: Row[], rk: ReturnType<typeof ranks>) {
+ const out: Record<string, boolean | number> = {};
+ const top10 = rows.slice(0, 10);
+ const d = dupSlots(rows);
+ out.no_duplicate_slug_top10 = d.dups === 0;
+ const rel = (role: string) => (q.related ?? []).filter(r => r.role === role);
+ const idxOf = (slug: string) => rows.findIndex(r => r.slug === slug);
+ if (q.shape === 'E2') {
+ const stubIdx = Math.min(...rel('stub').map(s => idxOf(s.slug)).map(i => (i < 0 ? Infinity : i)));
+ out.e2_target_above_stub = rk.collapse >= 0 && (stubIdx === Infinity || rk.collapse < stubIdx);
+ out.e2_stub_rank = stubIdx === Infinity ? 0 : stubIdx + 1;
+ }
+ if (q.shape === 'E3') {
+ const fam = new Set(rel('family').map(f => f.slug));
+ const famTop5 = rows.slice(0, 5).filter(r => fam.has(r.slug)).length;
+ out.e3_family_in_top5 = famTop5;
+ out.e3_target_rank1 = rk.collapse === 0;
+ out.e3_pass = rk.collapse === 0 && famTop5 <= 1;
+ }
+ if (q.shape === 'E4') {
+ out.e4_company_rank1 = rk.collapse === 0;
+ const f = rel('founder')[0];
+ const fi = f ? idxOf(f.slug) : -1;
+ out.e4_founder_above_company = fi >= 0 && (rk.collapse < 0 || fi < rk.collapse);
+ }
+ if (q.shape === 'E9') {
+ out.e9_person_rank1 = rk.collapse === 0;
+ out.e9_images_in_top5 = rows.slice(0, 5).filter(r => r.type === 'image' || /\.(jpg|png)$/.test(r.slug)).length;
+ }
+ if (q.shape === 'E11') {
+ out.e11_target_rank1 = rk.collapse === 0;
+ const s = rel('undated-stub')[0];
+ const si = s ? idxOf(s.slug) : -1;
+ out.e11_stub_above_target = si >= 0 && (rk.collapse < 0 || si < rk.collapse);
+ }
+ const maxChunk = Math.max(0, ...top10.map(r => (r.chunk_text ?? '').length));
+ out.max_chunk_chars_top10 = maxChunk;
+ out.e13_chunk_under_8k = maxChunk < 8000;
+ const scores = rows.map(r => r.score).filter((s): s is number => typeof s === 'number');
+ let mono = true;
+ for (let i = 1; i < scores.length; i++) if (scores[i]! > scores[i - 1]!) mono = false;
+ out.e12_score_monotonic = mono;
+ return out;
+}
+
+function parseRows(stdout: string): Row[] | null {
+ const t = stdout.trim();
+ for (const cand of [t, t.slice(Math.max(0, t.indexOf('\n[') + 1))]) {
+ try { const v = JSON.parse(cand); if (Array.isArray(v)) return v; } catch { /* next */ }
+ }
+ return null;
+}
+
+// ---------------------------------------------------------------- main
+
+const t00 = Date.now();
+rmSync(OUT, { recursive: true, force: true });
+mkdirSync(OUT, { recursive: true });
+
+const questions: Q[] = readFileSync(join(FIXTURES, 'questions.jsonl'), 'utf8').split('\n').filter(l => l.trim()).map(l => JSON.parse(l));
+const qs = MAX_Q ? questions.slice(0, MAX_Q) : questions;
+
+const proxy = startProxy(CACHE);
+PROXY_PORT = Number(proxy.port);
+const tmpRoot = mkdtempSync(join(tmpdir(), 'ranking-shapes-'));
+const reuse = typeof args.home === 'string';
+HOME = reuse ? resolve(String(args.home)) : join(tmpRoot, 'home');
+if (HOME === join(homedir())) throw new Error('refusing to use the real home as GBRAIN_HOME');
+
+const version = (await cli(['--version'])).stdout.trim();
+const commit = Bun.spawnSync(['git', 'rev-parse', '--short', 'HEAD'], { cwd: REPO }).stdout.toString().trim();
+log('repo ' + REPO + ' (' + version + ', ' + commit + '); home ' + HOME + '; ' + qs.length + ' questions x ' + VARIANTS.length + ' variants');
+
+let build: Record<string, unknown> = { reused_home: reuse };
+if (!reuse) {
+ proxy.setReplay(false);
+ log('building brain (init, sync, embed)...');
+ build = await buildBrain(tmpRoot, proxy);
+ log('build done in ' + build.build_ms + 'ms; sources: ' + JSON.stringify(build.sources));
+}
+const buildUsd = proxy.totalUsd();
+proxy.setReplay(!FAST);
+
+interface Result {
+ id: string; shape: string; variant: Variant; question: string; wall_ms: number; exit: number; n: number;
+ strict_rank: number | null; twin_rank: number | null; collapse_rank: number | null;
+ checks: Record<string, boolean | number>; dup_slots: number; slots: number;
+ expansion_applied: boolean | null; llm_calls: Array<{ kind: string; operation?: string; model?: string; in?: number; out?: number }>; llm_in: number; llm_out: number; reranker_ran: boolean | null;
+ top: Compact[]; error?: string; has_collapsed_field: boolean;
+}
+const results: Result[] = [];
+const logDir = join(tmpRoot, 'calllogs');
+mkdirSync(logDir, { recursive: true });
+
+let done = 0;
+for (const q of qs) {
+ for (const v of VARIANTS) {
+ const callLog = join(logDir, q.id + '-' + v + '.jsonl');
+ const r = await cli([...VARIANT_ARGS[v], q.question, '--json', '--limit', String(LIMIT)], { GBRAIN_AI_CALL_LOG: callLog });
+ const rows = parseRows(r.stdout);
+ const calls = existsSync(callLog) ? readFileSync(callLog, 'utf8').split('\n').filter(Boolean).map(l => JSON.parse(l)) : [];
+ const llm = calls.filter((c: any) => c.kind === 'chat' || c.kind === 'expansion');
+ const expCall = llm.length > 0;
+ const res: Result = {
+ id: q.id, shape: q.shape, variant: v, question: q.question, wall_ms: r.ms, exit: r.code, n: rows?.length ?? 0,
+ strict_rank: null, twin_rank: null, collapse_rank: null, checks: {}, dup_slots: 0, slots: 0,
+ expansion_applied: calls.length || existsSync(callLog) ? expCall : null,
+ llm_calls: calls.map((c: any) => ({ kind: c.kind, operation: c.operation, model: c.model, in: typeof c.input_tokens === 'number' ? c.input_tokens : undefined, out: typeof c.output_tokens === 'number' ? c.output_tokens : undefined })),
+ llm_in: llm.reduce((a: number, c: any) => a + (typeof c.input_tokens === 'number' ? c.input_tokens : 0), 0),
+ llm_out: llm.reduce((a: number, c: any) => a + (typeof c.output_tokens === 'number' ? c.output_tokens : 0), 0),
+ reranker_ran: calls.length ? calls.some((c: any) => c.kind === 'reranker' || c.kind === 'rerank') : null,
+ top: [], has_collapsed_field: false,
+ };
+ if (!rows) {
+ res.error = (r.stderr + r.stdout).slice(-600);
+ } else {
+ const rk = ranks(q, rows);
+ res.strict_rank = rk.strict >= 0 ? rk.strict + 1 : null;
+ res.twin_rank = rk.twin >= 0 ? rk.twin + 1 : null;
+ res.collapse_rank = rk.collapse >= 0 ? rk.collapse + 1 : null;
+ res.checks = shapeChecks(q, rows, rk);
+ const d = dupSlots(rows);
+ res.dup_slots = d.dups; res.slots = d.slots;
+ res.has_collapsed_field = rows.some(x => Array.isArray(x.collapsed));
+ res.top = rows.map(x => ({ slug: x.slug, source_id: x.source_id, type: x.type, score: x.score, rerank_score: x.rerank_score, chunk_len: (x.chunk_text ?? '').length, collapsed: x.collapsed?.length ?? 0 }));
+ }
+ results.push(res);
+ }
+ done++;
+ if (done % 5 === 0) log(done + '/' + qs.length + ' questions');
+}
+proxy.stop();
+
+// ---------------------------------------------------------------- aggregate
+
+const pct = (n: number, d: number) => (d ? Math.round((1000 * n) / d) / 10 : 0);
+const f1 = (x: number) => x.toFixed(3);
+function agg(rs: Result[], key: 'strict_rank' | 'twin_rank' | 'collapse_rank') {
+ const n = rs.length;
+ const hit = (k: number) => pct(rs.filter(r => r[key] !== null && r[key]! <= k).length, n);
+ const mrr = n ? rs.reduce((a, r) => a + (r[key] ? 1 / r[key]! : 0), 0) / n : 0;
+ return { n, hit1: hit(1), hit5: hit(5), hit10: hit(10), hit20: hit(20), mrr: +mrr.toFixed(3) };
+}
+function passRate(rs: Result[], pred: (r: Result) => boolean | undefined) {
+ const applicable = rs.filter(r => pred(r) !== undefined);
+ return { pass: applicable.filter(r => pred(r) === true).length, n: applicable.length };
+}
+const SHAPES = ['E1', 'E2', 'E3', 'E4', 'E9', 'E11', 'E13', 'E15'];
+const summary: Record<string, any> = {};
+for (const v of VARIANTS) {
+ const rs = results.filter(r => r.variant === v);
+ const by = (s: string) => rs.filter(r => r.shape === s);
+ const known = rs.filter(r => r.shape === 'E15' || r.shape === 'E1');
+ const s: Record<string, any> = {
+ all: { strict: agg(rs, 'strict_rank'), twin: agg(rs, 'twin_rank'), collapse: agg(rs, 'collapse_rank') },
+ e15_paraphrased: { strict: agg(known, 'strict_rank'), twin: agg(known, 'twin_rank'), collapse: agg(known, 'collapse_rank') },
+ by_shape_hit1_twin: Object.fromEntries(SHAPES.map(sh => [sh, { n: by(sh).length, hit1: agg(by(sh), 'twin_rank').hit1, hit10: agg(by(sh), 'twin_rank').hit10 }])),
+ pass: {
+ E1_no_dup_slug_top10: passRate(by('E1'), r => r.checks.no_duplicate_slug_top10 as boolean),
+ E1_all_questions: passRate(rs, r => r.checks.no_duplicate_slug_top10 as boolean),
+ E2_target_above_stub: passRate(by('E2'), r => r.checks.e2_target_above_stub as boolean),
+ E3_target1_family_le1: passRate(by('E3'), r => r.checks.e3_pass as boolean),
+ E4_company_rank1: passRate(by('E4'), r => r.checks.e4_company_rank1 as boolean),
+ E9_person_rank1: passRate(by('E9'), r => r.checks.e9_person_rank1 as boolean),
+ E11_dated_rank1: passRate(by('E11'), r => r.checks.e11_target_rank1 as boolean),
+ E12_score_monotonic_all: passRate(rs, r => r.checks.e12_score_monotonic as boolean),
+ E13_chunk_under_8k: passRate(by('E13'), r => r.checks.e13_chunk_under_8k as boolean),
+ },
+ e13_max_chunk_chars: Math.max(0, ...by('E13').map(r => Number(r.checks.max_chunk_chars_top10 ?? 0))),
+ max_chunk_chars_any: Math.max(0, ...rs.map(r => Number(r.checks.max_chunk_chars_top10 ?? 0))),
+ dup_slot_rate: pct(rs.reduce((a, r) => a + r.dup_slots, 0), rs.reduce((a, r) => a + r.slots, 0)),
+ wall_ms: { mean: Math.round(rs.reduce((a, r) => a + r.wall_ms, 0) / Math.max(1, rs.length)), p50: [...rs].map(r => r.wall_ms).sort((a, b) => a - b)[Math.floor(rs.length / 2)] ?? 0 },
+ errors: rs.filter(r => r.error).length,
+ collapsed_field_present_rate: pct(rs.filter(r => r.has_collapsed_field).length, rs.length),
+ expansion_applied: passRate(rs, r => (r.expansion_applied === null ? undefined : r.expansion_applied)),
+ reranker_ran: passRate(rs, r => (r.reranker_ran === null ? undefined : r.reranker_ran)),
+ llm_tokens: { in: rs.reduce((a, r) => a + r.llm_in, 0), out: rs.reduce((a, r) => a + r.llm_out, 0) },
+ };
+ summary[v] = s;
+}
+// pairwise identity: does the variant return the same ordered slug list as search / query?
+const key = (id: string, v: Variant) => results.find(r => r.id === id && r.variant === v);
+const identical: Record<string, any> = {};
+for (const [a, b] of [['search', 'query'], ['search', 'query-expand'], ['query', 'query-expand']] as Array<[Variant, Variant]>) {
+ if (!VARIANTS.includes(a) || !VARIANTS.includes(b)) continue;
+ let same10 = 0, same20 = 0, n = 0;
+ for (const q of qs) {
+ const x = key(q.id, a), y = key(q.id, b);
+ if (!x || !y || x.error || y.error) continue;
+ n++;
+ if (x.top.slice(0, 10).map(t => t.slug + '@' + t.source_id).join('|') === y.top.slice(0, 10).map(t => t.slug + '@' + t.source_id).join('|')) same10++;
+ if (x.top.map(t => t.slug + '@' + t.source_id).join('|') === y.top.map(t => t.slug + '@' + t.source_id).join('|')) same20++;
+ }
+ identical[a + ' vs ' + b] = { n, identical_top10: same10, identical_top20: same20 };
+}
+const expansion: Record<string, any> = {};
+if (VARIANTS.includes('query-expand')) {
+ const ex = results.filter(r => r.variant === 'query-expand');
+ const deltas = (base: Variant) => ex.map(r => { const b = key(r.id, base); return b ? r.wall_ms - b.wall_ms : null; }).filter((x): x is number => x !== null);
+ const mean = (xs: number[]) => (xs.length ? Math.round(xs.reduce((a, b) => a + b, 0) / xs.length) : 0);
+ expansion.applied = passRate(ex, r => (r.expansion_applied === null ? undefined : r.expansion_applied));
+ expansion.mean_latency_delta_ms_vs_query = mean(deltas('query'));
+ expansion.mean_latency_delta_ms_vs_search = mean(deltas('search'));
+ expansion.llm_tokens_in = ex.reduce((a, r) => a + r.llm_in, 0);
+ expansion.llm_tokens_out = ex.reduce((a, r) => a + r.llm_out, 0);
+ const qv = results.filter(r => r.variant === 'query');
+ expansion.query_default_expansion_applied = passRate(qv, r => (r.expansion_applied === null ? undefined : r.expansion_applied));
+}
+
+const meta = {
+ repo: REPO, version, commit, fixtures: FIXTURES, home: KEEP_HOME || reuse ? HOME : '(temp, deleted)', started: new Date(t00).toISOString(), elapsed_s: Math.round((Date.now() - t00) / 1000),
+ questions: qs.length, variants: VARIANTS, limit: LIMIT, embedding_model: EMBEDDING_MODEL, search_mode: 'balanced (init --search-mode)', config_overrides: CONFIG_SETS, build,
+ api: { build_usd_est: +buildUsd.toFixed(4), total_usd_est: +proxy.totalUsd().toFixed(4), by_provider: proxy.stats, note: 'estimates: embeddings 0.13 USD/M tokens, voyage rerank 0.02 USD/M, anthropic assumed 1 USD/M in and 5 USD/M out; cache hits cost 0' },
+};
+writeFileSync(join(OUT, 'results.json'), JSON.stringify({ meta, summary, identical, expansion, results }, null, 1));
+
+// ---------------------------------------------------------------- markdown
+
+const tick = String.fromCharCode(96);
+const L: string[] = [];
+L.push('# Ranking-shape bench: ' + version + ' @ ' + commit, '');
+L.push('Questions: ' + qs.length + ' (' + SHAPES.map(s => s + ' ' + qs.filter(q => q.shape === s).length).join(', ') + '). Fixture pages: see manifest. Search mode: balanced. Limit ' + LIMIT + '. Elapsed ' + meta.elapsed_s + 's. API spend (est): ' + meta.api.total_usd_est + ' USD.', '');
+const hdr = (cols: string[]) => '| ' + cols.join(' | ') + ' |\n|' + cols.map((_, i) => (i ? '---:' : '---')).join('|') + '|';
+for (const [title, getter] of [
+ ['All questions (' + qs.length + ')', (s: any) => s.all],
+ ['E15: paraphrased known-item (shapes E15 + E1)', (s: any) => s.e15_paraphrased],
+] as Array<[string, (s: any) => any]>) {
+ L.push('## ' + title, '', hdr(['variant', 'match', 'n', 'hit@1', 'hit@5', 'hit@10', 'hit@20', 'MRR']));
+ for (const v of VARIANTS) for (const m of ['strict', 'twin', 'collapse']) {
+ const a = getter(summary[v])[m];
+ L.push('| ' + v + ' | ' + m + ' | ' + a.n + ' | ' + a.hit1 + '% | ' + a.hit5 + '% | ' + a.hit10 + '% | ' + a.hit20 + '% | ' + a.mrr + ' |');
+ }
+ L.push('');
+}
+L.push('## Per-shape pass rates (target identified collapse-aware)', '');
+L.push(hdr(['check', ...VARIANTS]));
+const passKeys = Object.keys(summary[VARIANTS[0]!].pass);
+const label: Record<string, string> = {
+ E1_no_dup_slug_top10: 'E1 no slug twice in top 10 (E1 rows)', E1_all_questions: 'E1 no slug twice in top 10 (all rows)', E2_target_above_stub: 'E2 target above stub', E3_target1_family_le1: 'E3 target rank 1 and family <=1 of top 5',
+ E4_company_rank1: 'E4 company rank 1', E9_person_rank1: 'E9 person rank 1', E11_dated_rank1: 'E11 dated page rank 1', E12_score_monotonic_all: 'E12 score non-increasing (all rows)', E13_chunk_under_8k: 'E13 max chunk < 8k chars (E13 rows)',
+};
+for (const k of passKeys) L.push('| ' + label[k] + ' | ' + VARIANTS.map(v => { const p = summary[v].pass[k]; return p.pass + '/' + p.n + ' (' + pct(p.pass, p.n) + '%)'; }).join(' | ') + ' |');
+L.push('');
+L.push('## Other metrics', '', hdr(['metric', ...VARIANTS]));
+L.push('| duplicate-slot rate (top 10) | ' + VARIANTS.map(v => summary[v].dup_slot_rate + '%').join(' | ') + ' |');
+L.push('| max chunk_text chars, E13 rows | ' + VARIANTS.map(v => summary[v].e13_max_chunk_chars).join(' | ') + ' |');
+L.push('| max chunk_text chars, any row | ' + VARIANTS.map(v => summary[v].max_chunk_chars_any).join(' | ') + ' |');
+L.push('| mean wall ms per call | ' + VARIANTS.map(v => summary[v].wall_ms.mean).join(' | ') + ' |');
+L.push('| p50 wall ms | ' + VARIANTS.map(v => summary[v].wall_ms.p50).join(' | ') + ' |');
+L.push('| reranker call seen | ' + VARIANTS.map(v => { const p = summary[v].reranker_ran; return p.pass + '/' + p.n; }).join(' | ') + ' |');
+L.push('| expansion call seen | ' + VARIANTS.map(v => { const p = summary[v].expansion_applied; return p.pass + '/' + p.n; }).join(' | ') + ' |');
+L.push('| rows carrying a ' + tick + 'collapsed' + tick + ' field | ' + VARIANTS.map(v => summary[v].collapsed_field_present_rate + '%').join(' | ') + ' |');
+L.push('| CLI errors | ' + VARIANTS.map(v => summary[v].errors).join(' | ') + ' |', '');
+L.push('## Hit@1 / hit@10 by shape (twin-aware)', '', hdr(['shape', 'n', ...VARIANTS]));
+for (const sh of SHAPES) L.push('| ' + sh + ' | ' + qs.filter(q => q.shape === sh).length + ' | ' + VARIANTS.map(v => { const b = summary[v].by_shape_hit1_twin[sh]; return b.hit1 + '% / ' + b.hit10 + '%'; }).join(' | ') + ' |');
+L.push('');
+L.push('## Do the variants return the same list?', '');
+for (const [k, o] of Object.entries(identical)) L.push('- ' + k + ': identical top 10 on ' + (o as any).identical_top10 + '/' + (o as any).n + ', identical top 20 on ' + (o as any).identical_top20 + '/' + (o as any).n);
+L.push('');
+if (VARIANTS.includes('query-expand')) {
+ L.push('## Expansion cost', '');
+ L.push('- expansion LLM call seen on ' + expansion.applied.pass + '/' + expansion.applied.n + ' query --expand calls; on ' + expansion.query_default_expansion_applied.pass + '/' + expansion.query_default_expansion_applied.n + ' plain query calls');
+ L.push('- mean latency delta of query --expand vs query: ' + expansion.mean_latency_delta_ms_vs_query + ' ms; vs search: ' + expansion.mean_latency_delta_ms_vs_search + ' ms');
+ L.push('- expansion LLM (chat) tokens on query --expand: ' + expansion.llm_tokens_in + ' in / ' + expansion.llm_tokens_out + ' out');
+ L.push('');
+}
+L.push('## Build and spend', '');
+L.push('- build: ' + JSON.stringify(build.sources ?? build) + '; build wall ' + (build.build_ms ?? 'n/a') + ' ms');
+for (const [p, s] of Object.entries(proxy.stats)) L.push('- ' + p + ': ' + s.calls + ' calls (' + s.hits + ' cache hits, ' + s.misses + ' forwarded), ' + s.inTok + ' in / ' + s.outTok + ' out tokens, ~' + s.usd.toFixed(4) + ' USD');
+L.push('- total API spend this run (est): ' + meta.api.total_usd_est + ' USD (' + meta.api.note + ')');
+writeFileSync(join(OUT, 'summary.md'), L.join('\n') + '\n');
+console.log(L.join('\n'));
+
+if (!KEEP_HOME && !reuse) rmSync(tmpRoot, { recursive: true, force: true });
+else log('kept ' + tmpRoot);
+process.exit(0);
diff --git a/src/cli/main.ts b/src/cli/main.ts
index 4e5c06ecab..cba40ead86 100755
--- a/src/cli/main.ts
+++ b/src/cli/main.ts
@@ -76,7 +76,7 @@ import {
type CliDispatchContext,
} from './command-table.ts';
import { formatRememberResult } from './remember-format.ts';
-import { applyCliOpNotices, captureCapacityNotices, captureOpNotice } from './op-notices.ts';
+import { applyCliOpNotices, captureCapacityNotices, captureOpNotice, captureRetrievalNotices } from './op-notices.ts';
// db-availability loop: best-effort brain-id for the GBRAIN_DB_ACCESS marker,
// so a MOUNT's DB failure reads as `brain=<id>` instead of masquerading as a
@@ -696,6 +696,7 @@ async function runSharedOperation(command: string, subArgs: string[], cliOpts: C
if (op.mutating) await captureCapacityNotices(engine); // #6696 (A4)
}
if (rawResult === SEGMENTED_STREAMED) return;
+ captureRetrievalNotices(op.name, rawResult, lastRetrievalMeta, params, ctx.config);
// ENG-2 (renderer parity by data shape): JSON-round-trip the local-engine
// path's return value so renderers see the same shape they'd see on the
// routed path. Date → ISO string; bigint → string (postgres.js shape);
@@ -1037,7 +1038,8 @@ export function resolveQueryImage(
export function parseOpArgs(op: Operation, args: string[]): Record<string, unknown> {
// `gbrain search --explain`: the CLI-local formatter flag also asks the op for score attribution.
- const params: Record<string, unknown> = op.name === 'search' && args.includes('--explain') ? { explain: true } : {};
+ const explained = (op.name === 'search' || op.name === 'query') && (getCliOptions().explain || args.includes('--explain'));
+ const params: Record<string, unknown> = explained ? { explain: true } : {};
const positional = op.cliHints?.positional || [];
let posIdx = 0;
diff --git a/src/cli/op-notices.ts b/src/cli/op-notices.ts
index 992be0d2de..a1bf9792ea 100644
--- a/src/cli/op-notices.ts
+++ b/src/cli/op-notices.ts
@@ -24,6 +24,19 @@ export async function captureCapacityNotices(engine: import('../core/engine.ts')
for (const notice of await capacityNotices(engine, { throttle: true, deadlineAt: Date.now() + CAPACITY_READ_WAIT_MS }).catch(() => [])) pending.push(notice);
}
+/**
+ * #7171: a degraded search/query (a keyword or vector arm that failed or timed out) names itself on the CLI the way
+ * MCP's dispatch already does, so a lost arm is never read as "no matches". Lazy: only search and query load it.
+ */
+export function captureRetrievalNotices(
+ op: string, result: unknown, retrieval: Record<string, unknown> | null, params: Record<string, unknown>,
+ config: import('../core/config.ts').GBrainConfig | null | undefined,
+): void {
+ if (op !== 'search' && op !== 'query') return;
+ const { recallInteropNotices } = require('../core/interop-notices.ts') as typeof import('../core/interop-notices.ts');
+ pending.push(...recallInteropNotices(op, result, { retrieval: retrieval ?? {} }, params, { config, transport: 'cli' }));
+}
+
/** Drain the captured notices into the result (`--json` objects) and/or a stderr string. */
export function applyCliOpNotices(result: unknown, json: boolean): { result: unknown; stderr?: string } {
const captured = [...pending, ...takeChatFallbackHopNotices()];
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index 4e49446ea9..985745746d 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -1023,6 +1023,11 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;
{ since: '0.60.327.0', text: 'Fact extraction no longer rewrites the facts it stores: the prompt-injection filter used to delete words such as "System" before a parenthesis, so "Business System (ABS)" was saved as "Business [redacted](ABS)". Injection phrases are now neutralized only where stored facts are rendered into a model prompt (standing questions, turn context, proactive briefs). `gbrain doctor --only facts_redaction_marker` counts facts damaged earlier; `gbrain repair redacted-facts` previews what a source page can prove and changes nothing until you apply the printed `--apply --expect <hash>` command.' },
{ since: '0.60.327.0', text: 'The embed sweep that finds chunks whose text changed after they were embedded now runs in 5,000-chunk batches, keeps its place between runs (at most 60 seconds per run) and starts a new pass once a day (`embed.content_drift.pass_interval_hours`, default 24); before, one statement covered the whole brain and a large brain cancelled it on every run. `gbrain doctor --only content_drift_sweep` shows each pass and any error.' },
{ since: '0.60.328.0', id: 'google_api_access_probe', text: 'A managed Google source whose enabled services cannot name the account (an API disabled for the OAuth project, a scope not granted) now resolves it through the OAuth userinfo endpoint: the account pins, the services that work keep syncing, the run is `partial`, and the disabled API is reported as `api_not_enabled` instead of failing the whole sync. `connector_account_changed` is raised only when an account resolved and differs from the pin; when nothing can name the account (userinfo also failing), the sync fails with the underlying error, a network failure included, instead of refusing as an account change. `gbrain google setup` now probes every requested service before registering a source and stops (exit 2, `status: api_access_blocked`) naming each disabled API with its Google Cloud project and enable link, or each scope not granted, in one report. `gbrain google status` adds `accounts[].api_access` and exits 1 while a problem remains, and doctor adds `google_api_access`, read from what the last sync recorded. A Google 403 for insufficient authentication scopes is now `scope_missing` (before: `upstream`, and a calendar read named it `calendar_unreadable`).' },
+ { since: 'TBD', text: 'search and query fold copies of one result into the best-ranked row before reranking: the same slug in another source, a redirect stub (frontmatter `redirect_to`/`merged_into`, a `*-redirect` page or a short "merged into [[...]]" body) whose target is readable, and copies of one document (identical bodies, or a derivative `-summary`/`-transcript` slug in the same source). The kept row lists the folded pages under `collapsed` with `slug`, `source_id` and `reason`; an unresolved stub stays, stamped `redirect_to`, and ranks lower. `gbrain config set search.collapse false` turns it off.' },
+ { since: 'TBD', text: 'search and query apply small rank priors after reranking: a person page ranks a little lower on a question about a company or organization that names no person, an image page whose text barely covers the query ranks lower (stamped `image_page`), an undated page ranks a little lower on a when-question, and a redirect stub ranks lower. Each changed row carries `rank_prior` and `rank_score`. `gbrain config set search.rank_priors false` turns them off.' },
+ { since: 'TBD', text: 'The `score` that search and query return now never increases down the list: in a reranked list it is the rerank score (times any rank prior), and a pinned or unreranked row takes its neighbour\'s value. The fused score it replaced stays on the row as `fused_score`.' },
+ { since: 'TBD', text: 'One search or query row returns at most 8,000 characters of text by default (`chunk_chars` says when it was cut), and a block grown around a match under the implied `auto` unit stops at 8,000 characters (`delivered.truncated`). Pass `snippet_chars: 0` for full chunk text or an explicit `return_unit` for the full evidence block.' },
+ { since: 'TBD', text: '`gbrain search --explain` and `gbrain query --explain` now pass explain to the search, so `score_details` reports the arms, RRF and blend that ran; before, every row said `single_arm_path` / `no_query_embedding` even when both arms ran. A CLI search or query whose keyword or vector arm failed or timed out now prints the `degraded_recall` notice on stderr (the `--json` array stays bare), as MCP already did.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */
diff --git a/src/core/config.ts b/src/core/config.ts
index 8c86e9d9a7..e141f7e862 100644
--- a/src/core/config.ts
+++ b/src/core/config.ts
@@ -1406,6 +1406,8 @@ export const KNOWN_CONFIG_KEYS: readonly string[] = [
'search.relational_orient_onehop',
// Multi-hop chain slots: chain rows leading page 1 when a chain fired (mode.ts reads; 0..10).
'search.relational_chain_slots',
+ 'search.collapse', // result-time collapse of twins, redirect stubs and document copies (mode.ts reads; boolean)
+ 'search.rank_priors', // rank priors after the reranker (mode.ts reads; boolean)
'search.diverse_pool_depth', // session-diverse pool before the reranker (mode.ts reads; `off` | 0..100; 0 = off)
// Ranker wave (Phase E2): keyword-arm confidence floor — weak keyword arm fuses at half weight (mode.ts reads; `off` | (0, 1]).
'search.keyword_arm_confidence_floor',
diff --git a/src/core/operations-descriptions.ts b/src/core/operations-descriptions.ts
index a604de7fd1..9cfba32bb3 100644
--- a/src/core/operations-descriptions.ts
+++ b/src/core/operations-descriptions.ts
@@ -49,7 +49,7 @@ export const LIST_PAGES_DESCRIPTION =
"List pages with filters. For 'what's recent / what did I touch this week' use sort=updated_desc. Default 50 rows; truncated: continue with updated_after + updated_after_slug from the last row.";
export const QUERY_DESCRIPTION =
- "Hybrid search for concept/landscape questions and people/companies/projects by topic; expand adds multi-query expansion (expansion recovers synonyms). Still top-K; return_unit: sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no LLM call). Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows: use follow_up. fields: \"full\" adds diagnostics.";
+ "Hybrid search for questions and people/companies/projects by topic; ranks like `search` plus fact rows and a confidence grade. expand: one LLM call, rarely helps. Still top-K; return_unit: sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper. Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows: use follow_up. fields: \"full\" adds diagnostics.";
export const SEARCH_DESCRIPTION =
"Cheap hybrid search, no LLM expansion, top 20: exact tokens, names, field values. NOT proof of coverage; match: \"keyword\" pages every keyword match and takes OR across quoted names or codes (\"A\" OR \"B\" OR …): one call lists every page matching any. Name lists: entity names. Concepts/landscape or people/companies/projects by topic: `query`; lists: list_pages; personal: get_recent_salience. return_unit: sections or conversations. fields: \"full\" adds diagnostics.";
diff --git a/src/core/ops/search.ts b/src/core/ops/search.ts
index 0b20dfd8a3..07bfa8c057 100644
--- a/src/core/ops/search.ts
+++ b/src/core/ops/search.ts
@@ -31,7 +31,8 @@ import { markKeywordHits } from '../search/evidence.ts';
import { captureEvalCandidate, isEvalCaptureEnabled, isEvalScrubEnabled } from '../eval-capture.ts';
import type { HybridSearchMeta, SearchResult } from '../types.ts';
import { bumpLastRetrievedAt } from '../last-retrieved.ts';
-import { applySnippetCap, DEFAULT_AGENT_SNIPPET_CHARS } from '../search/snippet-cap.ts';
+import { applySnippetCap, DEFAULT_AGENT_SNIPPET_CHARS, resultChunkCap } from '../search/snippet-cap.ts';
+import { scoresFollowRank } from '../search/score-contract.ts';
import { redactRetrievalOutput } from '../search/output-redaction.ts';
import { leanRowsKeepId, projectRows, resultRowsFor } from '../search/lean-rows.ts';
import { buildScoreDetails } from '../search/explain-formatter.ts';
@@ -116,6 +117,8 @@ function searchOutput(ctx: OperationContext, p: Record<string, unknown>, results
const lean = { keepId: leanRowsKeepId(ctx) };
// `explain: true` — every row carries its score breakdown (kept in lean rows).
if (p.explain === true) for (const r of results) r.score_details = buildScoreDetails(r);
+ // #7156: the returned score follows the returned order.
+ results = scoresFollowRank(results);
// The shape is reported where it can vary: remote callers, or an explicit `fields`.
const shown = ctx.remote !== false || p.fields !== undefined ? { rows } : {};
// Stage timings are read last, after the returned rows are assembled (meta only, never content).
@@ -126,7 +129,7 @@ function searchOutput(ctx: OperationContext, p: Record<string, unknown>, results
};
if (!evidence) {
const output = redactRetrievalOutput(results, { ...meta, ...shown });
- return emit(output, projectRows(applySnippetCap(output.results, snippetCap).map(factRowOutput), rows, lean));
+ return emit(output, projectRows(applySnippetCap(output.results, resultChunkCap(p.snippet_chars, snippetCap)).map(factRowOutput), rows, lean));
}
// Evidence delivery: explicit snippet_chars wins over the delivered blocks;
// otherwise the blocks are returned whole (their budget already bounds
@@ -424,8 +427,7 @@ async function buildRetrievalResponseMeta(
): Promise<Record<string, unknown>> {
const m = meta as (HybridSearchMeta & { degraded?: unknown[]; retrieved_count?: number }) | null;
const hint = opts.conceptHint && looksConceptShaped(queryText)
- ? "concept-shaped question — the 'query' tool with expand: true adds multi-query expansion, " +
- 'which can recover synonym-phrased matches this keyword-leaning search can miss.'
+ ? "concept-shaped question — the 'query' tool ranks the same and adds saved-fact rows and a confidence grade."
: undefined;
const excludePrivate = await resolveExcludePrivatePages(ctx.engine, ctx.remote);
const excludeSlugPrefixes = resolveHardExcludes();
@@ -473,6 +475,7 @@ async function buildRetrievalResponseMeta(
...(m.relational_plan ? { relational_plan: m.relational_plan } : {}),
...(m.rerank_gate ? { rerank_gate: m.rerank_gate } : {}),
...(m.cosine_rescore ? { cosine_rescore: m.cosine_rescore } : {}),
+ ...(m.collapse ? { collapse: m.collapse } : {}),
} : {}),
...((m?.degraded !== undefined || degraded.length > 0) ? { degraded } : {}),
projection_readiness: readiness,
@@ -831,7 +834,7 @@ const query: Operation = {
return_unit: RETURN_UNIT_PARAM,
return_window: RETURN_WINDOW_PARAM,
token_budget: { type: 'number', description: 'Evidence token cap.' },
- expand: { type: 'boolean', description: 'Default off; search.expansion overrides.' },
+ expand: { type: 'boolean', description: 'Default off; one LLM call, rarely helps.' },
detail: { type: 'string', description: 'low (compiled truth), medium (default) or high (all chunks).' },
fields: FIELDS_PARAM,
mode: { type: 'string', description: 'Local callers only.' },
diff --git a/src/core/search/collapse.ts b/src/core/search/collapse.ts
new file mode 100644
index 0000000000..9f317f9948
--- /dev/null
+++ b/src/core/search/collapse.ts
@@ -0,0 +1,277 @@
+/**
+ * Result-time collapse (#4612, #7153, #7154): one document takes one slot.
+ *
+ * Runs on the deduped candidate pool before the reranker, so the slots it
+ * frees go to other pages, and on both keyword-only return paths. Three kinds
+ * of page fold into the best-ranked member of their group, which lists the
+ * others in `collapsed`:
+ * - twin: the same slug in another source. Page identity stays
+ * (source_id, slug) everywhere else in search (dedup.ts); only result
+ * slots fold, and the twin stays named on the row.
+ * - redirect: a page that hands its identity to another page of its source:
+ * frontmatter `redirect_to` / `redirect` / `merged_into` (or an
+ * alias/redirect `status` with `superseded_by`), a `*-redirect` page
+ * type, or a short body that says it was merged or moved into a linked
+ * page. The target takes the stub's slot. A target missing from the pool
+ * is read in under the alias hop's read policy (its own source, the
+ * private and exclude predicates re-applied); a bare-word target resolves
+ * only when exactly one page of the source ends in that word. A stub
+ * whose target can't be returned stays, stamped `redirect_to`, and the
+ * rank priors demote it.
+ * - family: copies of one document: pages whose bodies are identical, or,
+ * in one source and outside entity types, slugs whose last segment
+ * differs only by a derivative suffix (-summary, -transcript, ...) or
+ * extends the other's last segment while both carry the same document
+ * date (a meeting and its transcript).
+ * Only rows already in the pool are folded, so no page outside the caller's
+ * results is named. `search.collapse false` turns it off.
+ */
+import type { BrainEngine } from '../engine.ts';
+import type { SearchResult } from '../types.ts';
+import { pageLeadSource, projectedLead } from '../page-window/bounded-lead.ts';
+import { type IdentityTierOpts, isExcludedIdentity } from './alias-hop.ts';
+import { isPrivatePage } from './private-visibility.ts';
+
+export type CollapseReason = 'twin' | 'redirect' | 'family';
+export interface CollapsedRef { slug: string; source_id?: string; reason: CollapseReason }
+
+export interface CollapseDecision { twins: number; redirects: number; families: number; redirect_reads: number }
+
+/** A stub body: "This page has been merged into [[target]]" / "... moved to [Target](/companies/target)". */
+const REDIRECT_BODY = /\b(?:has been|was|is now|been)\s+(?:merged|moved|redirected|consolidated|folded)\s+(?:in)?to\s+(\[\[[^\]]+\]\]|\[[^\]]*\]\([^)]+\))/i;
+/** A page that also carries real content is not a redirect by its body text alone. */
+const REDIRECT_BODY_MAX_CHARS = 600;
+const REDIRECT_TYPE = /(?:^|-)redirect$/i;
+const DERIVATIVE_SUFFIX = /-(?:summary|summarized|summarised|transcript|transcription|verbatim|diarized|diarised|raw|clean|cleaned|full|copy)$/;
+const ENTITY_TYPES = new Set(['person', 'company', 'organization', 'deal', 'yc', 'civic', 'project']);
+const DATED_SOURCES = new Set(['date', 'published', 'filename', 'event_date']);
+/** Pages compared pairwise for families: the head the reranker and the caller read. */
+const FAMILY_HEAD = 40;
+/** Identical bodies shorter than this (empty templates, one-line stubs) say nothing about a shared document. */
+const IDENTICAL_BODY_MIN_CHARS = 200;
+const INJECTED_LEAD_CHARS = 1500;
+
+const pageKey = (r: Pick<SearchResult, 'source_id' | 'slug'>) => `${r.source_id ?? 'default'}:${r.slug}`;
+const leaf = (slug: string) => (slug.split('/').pop() ?? slug).replace(/\.(md|mdx|txt)$/i, '').toLowerCase();
+const dir = (slug: string) => slug.includes('/') ? slug.slice(0, slug.lastIndexOf('/')) : '';
+
+/** A redirect value as a slug: `[[people/x|X]]`, `[X](/people/x.md#a)`, `people/x.md` and `/people/x` are `people/x`. */
+export function redirectTargetSlug(value: string): string | null {
+ let v = value.trim();
+ const md = v.match(/^\[[^\]]*\]\(([^)]+)\)$/);
+ if (md) v = md[1];
+ v = v.replace(/^\[\[/, '').replace(/\]\]$/, '').split('|')[0].split('#')[0].trim();
+ v = v.replace(/^<|>$/g, '').replace(/^\.?\/+/, '').replace(/\.md$/i, '').trim();
+ return v && !/^[a-z]+:\/\//i.test(v) ? v : null;
+}
+
+/** Same source, same stem once derivative suffixes are stripped, or one leaf extending the other on the same document date. */
+function slugFamily(a: SearchResult, b: SearchResult): boolean {
+ if ((a.source_id ?? 'default') !== (b.source_id ?? 'default')) return false;
+ if (ENTITY_TYPES.has(a.type) || ENTITY_TYPES.has(b.type)) return false;
+ const strip = (s: string) => { for (let prev = ''; prev !== s;) { prev = s; s = s.replace(DERIVATIVE_SUFFIX, ''); } return s; };
+ const [la, lb] = [leaf(a.slug), leaf(b.slug)];
+ const [sa, sb] = [strip(la), strip(lb)];
+ if (sa.length >= 6 && !/^\d{4}(-\d{2}){0,2}$/.test(sa) && sa === sb && (sa !== la || sb !== lb)) return true;
+ const [short, long] = la.length <= lb.length ? [la, lb] : [lb, la];
+ const sameDate = !!a.effective_date && a.effective_date === b.effective_date
+ && DATED_SOURCES.has(a.effective_date_source ?? '') && DATED_SOURCES.has(b.effective_date_source ?? '');
+ return sameDate && dir(a.slug) !== dir(b.slug) && short.length >= 6 && long.startsWith(`${short}-`);
+}
+
+class Groups {
+ private parent = new Map<string, string>();
+ private reason = new Map<string, CollapseReason>();
+ constructor(private readonly order: Map<string, number>) {}
+ find(k: string): string {
+ let root = k;
+ while (this.parent.has(root)) root = this.parent.get(root)!;
+ return root;
+ }
+ /** Join two pages; the better-ranked root stays the representative. */
+ join(a: string, b: string, reason: CollapseReason): void {
+ const [ra, rb] = [this.find(a), this.find(b)];
+ if (ra === rb) return;
+ const [keep, fold] = this.order.get(ra)! <= this.order.get(rb)! ? [ra, rb] : [rb, ra];
+ this.parent.set(fold, keep);
+ this.reason.set(fold, reason);
+ }
+ reasonOf(k: string): CollapseReason | undefined { return this.reason.get(k); }
+}
+
+const STATUS_REDIRECT = `lower(COALESCE(frontmatter->>'status', '')) ~ '(^|[^a-z])(alias|redirect|redirected)([^a-z]|$)'`;
+
+export interface PageFacts { target: string | null; body: string | null }
+
+/** Per page id: the frontmatter redirect target and an identity hash of a substantial body. Ids already in `cache` are not read again. */
+async function readPageFacts(engine: Pick<BrainEngine, 'executeRaw'>, allIds: number[], bodyIds: number[], cache: Map<number, PageFacts>): Promise<Map<number, PageFacts>> {
+ const ids = allIds.filter(id => !cache.has(id));
+ if (ids.length === 0) return cache;
+ try {
+ const rows = await engine.executeRaw<{ id: number; target: string | null; body: string | null }>(
+ `SELECT id,
+ COALESCE(NULLIF(btrim(frontmatter->>'redirect_to'), ''), NULLIF(btrim(frontmatter->>'redirect'), ''),
+ NULLIF(btrim(frontmatter->>'merged_into'), ''),
+ CASE WHEN ${STATUS_REDIRECT} THEN NULLIF(btrim(frontmatter->>'superseded_by'), '') END) AS target,
+ CASE WHEN id = ANY($2::int[]) AND length(btrim(COALESCE(compiled_truth, ''))) >= ${IDENTICAL_BODY_MIN_CHARS} THEN md5(btrim(compiled_truth)) END AS body
+ FROM pages WHERE id = ANY($1::int[])`,
+ [ids, bodyIds],
+ );
+ for (const id of ids) cache.set(id, { target: null, body: null });
+ for (const r of rows) cache.set(Number(r.id), { target: r.target, body: r.body });
+ } catch {
+ // fail-open: no frontmatter redirects or body identity this call
+ }
+ return cache;
+}
+
+/** A bare-word target resolves only to the one page of the source whose slug is that word or ends in it. */
+async function resolveBareTarget(engine: Pick<BrainEngine, 'executeRaw'>, sourceId: string, word: string, pages: Map<string, SearchResult[]>): Promise<string | null> {
+ const inPool = [...pages.values()].map(rows => rows[0]).filter(r => (r.source_id ?? 'default') === sourceId && leaf(r.slug) === word.toLowerCase());
+ if (inPool.length === 1) return inPool[0].slug;
+ try {
+ const rows = await engine.executeRaw<{ slug: string }>(
+ `SELECT slug FROM pages WHERE source_id = $1 AND deleted_at IS NULL AND (slug = $2 OR slug LIKE $3) LIMIT 2`,
+ [sourceId, word, `%/${word.replace(/[%_\\]/g, '\\$&')}`],
+ );
+ return rows.length === 1 ? rows[0].slug : null;
+ } catch {
+ return null;
+ }
+}
+
+/** Read a redirect target the arms did not return, under the alias hop's policy; null when it may not be shown. */
+async function readTarget(engine: BrainEngine, sourceId: string, slug: string, score: number, opts: IdentityTierOpts): Promise<SearchResult | null> {
+ if (isExcludedIdentity(slug, opts)) return null;
+ if (opts.sourceIds && !opts.sourceIds.includes(sourceId)) return null;
+ if (opts.sourceId && opts.sourceId !== sourceId) return null;
+ try {
+ const page = await engine.getPage(slug, { sourceId, excludePrivate: opts.excludePrivate });
+ if (!page || (opts.excludePrivate && isPrivatePage(page))) return null;
+ const lead = await projectedLead(engine, { slug: page.slug, source_id: page.source_id ?? sourceId, compiled_truth: await pageLeadSource(engine, page) });
+ if (!lead.trim()) return null;
+ return {
+ page_id: page.id, slug: page.slug, title: page.title, type: page.type, source_id: page.source_id ?? sourceId,
+ chunk_text: lead.slice(0, INJECTED_LEAD_CHARS), chunk_source: 'compiled_truth', chunk_id: 0, chunk_index: 0,
+ score, base_score: score, stale: false,
+ };
+ } catch {
+ return null;
+ }
+}
+
+/**
+ * Fold twins, redirect stubs and document families into one row group each
+ * (module comment). Order-preserving: surviving rows keep their relative
+ * order, and a redirect target takes its stub's slot when the stub ranked
+ * higher. Returns a new array; rows that gain `collapsed` or `redirect_to` are copies.
+ */
+export async function collapseResults(
+ engine: BrainEngine,
+ results: SearchResult[],
+ opts: IdentityTierOpts & { onDecision?: (d: CollapseDecision) => void; facts?: Map<number, PageFacts> } = {},
+): Promise<SearchResult[]> {
+ if (results.length < 2) return results;
+ const pages = new Map<string, SearchResult[]>();
+ const order = new Map<string, number>();
+ for (const r of results) {
+ const k = pageKey(r);
+ if (!pages.has(k)) { pages.set(k, []); order.set(k, order.size); }
+ pages.get(k)!.push(r);
+ }
+ const head = [...pages.keys()].slice(0, FAMILY_HEAD);
+ const idOf = (k: string) => pages.get(k)![0].page_id;
+ const valid = (id: number) => Number.isSafeInteger(id) && id > 0;
+ const facts = await readPageFacts(engine, [...pages.keys()].map(idOf).filter(valid), head.map(idOf).filter(valid), opts.facts ?? new Map());
+ const decision: CollapseDecision = { twins: 0, redirects: 0, families: 0, redirect_reads: 0 };
+
+ // Redirect stubs and their targets (same source).
+ const targets = new Map<string, string>();
+ for (const [k, rows] of pages) {
+ const r = rows[0];
+ const fm = facts.get(r.page_id)?.target;
+ const body = rows.map(x => (x.chunk_text ?? '').trim()).find(t => t.length <= REDIRECT_BODY_MAX_CHARS && REDIRECT_BODY.test(t));
+ const raw = fm ?? body?.match(REDIRECT_BODY)?.[1] ?? (REDIRECT_TYPE.test(r.type) ? rows.map(x => x.chunk_text ?? '').join(' ').match(/\[\[[^\]]+\]\]|\[[^\]]*\]\([^)]+\)/)?.[0] : undefined);
+ let target = raw ? redirectTargetSlug(raw) : null;
+ if (target && !target.includes('/')) target = await resolveBareTarget(engine, r.source_id ?? 'default', target, pages) ?? `\u0000${target}`;
+ if (target && target !== r.slug) targets.set(k, target);
+ }
+ const injected = new Map<string, SearchResult>();
+ for (const [stubKey, target] of targets) {
+ if (target.startsWith('\u0000')) continue;
+ const stub = pages.get(stubKey)![0];
+ const targetKey = pageKey({ source_id: stub.source_id, slug: target });
+ if (pages.has(targetKey) || injected.has(targetKey)) continue;
+ const row = await readTarget(engine, stub.source_id ?? 'default', target, stub.score, opts);
+ if (row) { injected.set(targetKey, row); decision.redirect_reads++; }
+ }
+ for (const [targetKey, row] of injected) { pages.set(targetKey, [row]); order.set(targetKey, Number.MAX_SAFE_INTEGER - order.size); }
+
+ const groups = new Groups(order);
+ const redirectStubs = new Set<string>();
+ for (const [stubKey, target] of targets) {
+ const stub = pages.get(stubKey)![0];
+ const targetKey = pageKey({ source_id: stub.source_id, slug: target });
+ if (!pages.has(targetKey)) continue;
+ redirectStubs.add(stubKey);
+ // The target represents the group and takes the stub's slot when the stub ranked higher.
+ order.set(targetKey, Math.min(order.get(targetKey)!, order.get(stubKey)! - 0.5));
+ groups.join(targetKey, stubKey, 'redirect');
+ }
+
+ const bySlug = new Map<string, string>();
+ for (const [k, rows] of pages) {
+ if (redirectStubs.has(k)) continue;
+ const twin = bySlug.get(rows[0].slug);
+ if (twin) groups.join(twin, k, 'twin'); else bySlug.set(rows[0].slug, k);
+ }
+ const family = head.filter(k => !redirectStubs.has(k));
+ for (let i = 0; i < family.length; i++) {
+ for (let j = i + 1; j < family.length; j++) {
+ const [a, b] = [pages.get(family[i])![0], pages.get(family[j])![0]];
+ if (groups.find(family[i]) === groups.find(family[j])) continue;
+ const bodyA = facts.get(a.page_id)?.body;
+ if ((bodyA && bodyA === facts.get(b.page_id)?.body) || slugFamily(a, b)) groups.join(family[i], family[j], 'family');
+ }
+ }
+
+ const members = new Map<string, CollapsedRef[]>();
+ for (const k of pages.keys()) {
+ const root = groups.find(k);
+ if (root === k) continue;
+ const r = pages.get(k)![0];
+ // A page an identity tier re-injected after the first pass is already listed on its representative.
+ if (pages.get(root)![0].collapsed?.some(c => c.slug === r.slug && c.source_id === r.source_id)) continue;
+ const reason = groups.reasonOf(k)!;
+ decision[reason === 'twin' ? 'twins' : reason === 'redirect' ? 'redirects' : 'families']++;
+ members.set(root, [...members.get(root) ?? [], { slug: r.slug, ...(r.source_id ? { source_id: r.source_id } : {}), reason }]);
+ }
+ const unresolved = new Map([...targets].filter(([k]) => !redirectStubs.has(k)).map(([k, t]) => [k, t.replace(/^\u0000/, '')]));
+ const folded = [...pages.keys()].some(k => groups.find(k) !== k);
+ if (!folded && unresolved.size === 0) return results;
+
+ const mark = (r: SearchResult, k: string): SearchResult => {
+ const collapsed = members.get(k);
+ const redirectTo = unresolved.get(k);
+ if (!collapsed && !redirectTo) return r;
+ return { ...r, ...(collapsed ? { collapsed: [...(r.collapsed ?? []), ...collapsed] } : {}), ...(redirectTo ? { redirect_to: redirectTo } : {}) };
+ };
+ const out: SearchResult[] = [];
+ const moved = new Set<SearchResult>();
+ for (const r of results) {
+ const k = pageKey(r);
+ const root = groups.find(k);
+ if (root !== k) {
+ // A redirect stub's slot goes to its target when the stub ranked higher.
+ const lead = pages.get(root)![0];
+ if (groups.reasonOf(k) === 'redirect' && !moved.has(lead) && !out.some(o => pageKey(o) === root)) {
+ out.push(mark(lead, root));
+ moved.add(lead);
+ }
+ continue;
+ }
+ if (!moved.has(r)) out.push(mark(r, k));
+ }
+ opts.onDecision?.(decision);
+ return out;
+}
diff --git a/src/core/search/evidence-delivery.ts b/src/core/search/evidence-delivery.ts
index 371b219fa0..69ad453f20 100644
--- a/src/core/search/evidence-delivery.ts
+++ b/src/core/search/evidence-delivery.ts
@@ -60,6 +60,14 @@ export const DEFAULT_RETURN_BUDGET = 6000;
export const DEFAULT_CONVERSATION_BUDGET = 24000;
export const DEFAULT_REMOTE_BUDGET_MAX = 32000;
export const EVIDENCE_BLOCK_CHAR_CAP = 60_000;
+/**
+ * #7164: the most text a search/query block grows to around its matching span
+ * when the caller named no unit (an implied `auto`). A long meeting or
+ * transcript otherwise fills toward EVIDENCE_BLOCK_CHAR_CAP, tens of thousands
+ * of characters per row a caller never budgeted for. The row says
+ * `delivered.truncated`, and an explicit `return_unit` keeps the full cap.
+ */
+export const AUTO_BLOCK_CHAR_CAP = 8_000;
export const EVIDENCE_OMISSION = '\n\n[…]\n\n';
export const EVIDENCE_FETCH_TIMEOUT_MS = 5000;
/** First server release that understands `return_unit` (thin-client skew warning). */
@@ -141,6 +149,8 @@ export interface EvidencePlan {
longPage?: LongPagePolicy;
/** W5: page unit + caller budget + `search.page_rank_cut: whole_pages` (page-rank-cut.ts). */
rankCut?: PageRankCut;
+ /** #7164: set only by the search/query caller for an implied `auto` (withLongPagePolicy): how far a block grows around its match. */
+ blockCharCap?: number;
}
/** The cap runs only under `auto`, with a budget the caller passed and a packing other than `off`. */
@@ -370,8 +380,9 @@ export function longPageMinCharsValueProblem(value: string): string | null {
* `snippet_chars` leaves it on; capDeliveredSnippets exempts widened rows.
* Read errors and unknown values are `off`; an unusable threshold is the default.
*/
-export async function withLongPagePolicy(engine: BrainEngine, plan: EvidencePlan | null): Promise<EvidencePlan | null> {
- if (!plan || plan.unit !== 'auto' || plan.explicitUnit || plan.budgetExplicit) return plan;
+export async function withLongPagePolicy(engine: BrainEngine, input: EvidencePlan | null): Promise<EvidencePlan | null> {
+ if (!input || input.unit !== 'auto' || input.explicitUnit || input.budgetExplicit) return input;
+ const plan = { ...input, blockCharCap: AUTO_BLOCK_CHAR_CAP };
const raw = (await engine.getConfig(LONG_PAGE_UNIT_CONFIG_KEY).catch(() => null))?.trim();
if (raw !== 'window' && raw !== 'section' && raw !== 'page') return plan;
const min = (await engine.getConfig(LONG_PAGE_MIN_CHARS_CONFIG_KEY).catch(() => null)) ?? '';
@@ -646,9 +657,11 @@ interface Block {
reason?: AutoReason;
/** The cap cut this block: its text ends with EVIDENCE_CUT_MARKER. */
capMarker?: boolean;
+ /** Characters enrichment may grow the block to (the plan's blockCharCap, else EVIDENCE_BLOCK_CHAR_CAP). */
+ charCap: number;
}
-type PlannedBlock = Omit<Block, 'titleTok' | 'title' | 'rank' | 'reason' | 'capMarker' | 'header' | 'headerTok'>;
+type PlannedBlock = Omit<Block, 'titleTok' | 'title' | 'rank' | 'reason' | 'capMarker' | 'header' | 'headerTok' | 'charCap'>;
/**
* The hit's text as it appears in the page: a fenced_code chunk carries the
@@ -916,7 +929,7 @@ function enrichBlock(b: Block, remaining: number, tokenizer: 'cl100k' | 'heurist
const adj = adjacent(b, i);
const cost = tok(b, i, tokenizer) + (adj ? 0 : omitTok);
const len = b.doc.pieces[i].text.length + (adj ? 0 : EVIDENCE_OMISSION.length);
- if (cost > remaining || chars + len > EVIDENCE_BLOCK_CHAR_CAP) break;
+ if (cost > remaining || chars + len > b.charCap) break;
b.selected.add(i);
remaining -= cost;
chars += len;
@@ -1085,7 +1098,7 @@ function allocateCapped(blocks: Block[], chunks: ChunkItem[], plan: EvidencePlan
for (const i of enrichmentOrder(b)) {
if (!window.has(i)) continue;
target.add(i);
- if (selectionCost(b, target, tokenizer, omitTok).chars > EVIDENCE_BLOCK_CHAR_CAP) { target.delete(i); break; }
+ if (selectionCost(b, target, tokenizer, omitTok).chars > b.charCap) { target.delete(i); break; }
}
const sel = selectionCost(b, target, tokenizer, omitTok);
const cost = b.titleTok + b.headerTok + sel.tokens - (b === lead ? floorOf(b, tokenizer).tokens : 0);
@@ -1295,7 +1308,7 @@ export async function deliverEvidence(
if (b.fallbackReason) fallbacks.add(b.fallbackReason);
const title = b.hit.title ?? '';
const header = headerFor(b.hit);
- planned.push({ ...b, title, titleTok: countEvidenceTokens(title, tokenizer), header, headerTok: countEvidenceTokens(header, tokenizer), rank: g.rank, ...(g.reason ? { reason: g.reason } : {}) });
+ planned.push({ ...b, title, titleTok: countEvidenceTokens(title, tokenizer), header, headerTok: countEvidenceTokens(header, tokenizer), rank: g.rank, charCap: plan.blockCharCap ?? EVIDENCE_BLOCK_CHAR_CAP, ...(g.reason ? { reason: g.reason } : {}) });
}
const capped = capEngaged(plan);
diff --git a/src/core/search/hybrid.ts b/src/core/search/hybrid.ts
index 80c03524e7..8830f8f7b0 100644
--- a/src/core/search/hybrid.ts
+++ b/src/core/search/hybrid.ts
@@ -49,7 +49,7 @@ import { prepareSemanticCache, resolveCacheSearchMode, semanticCacheSkipped, ser
import { buildPostFusionOpts, joinVectorSide, resolveEarlyModality, runLexicalAndRelational, startVectorSide } from './hybrid/arms.ts';
import { searchVectorFallback, searchWithoutEmbeddings } from './hybrid/keyword-only.ts';
import { factEmbeddingDisabled } from '../embedding-disabled.ts';
-import { capSessionPool, expandStructuralNeighbors, finalizeHybridResults, fuseArms, rerankAndPin, sizeReturnPool } from './hybrid/rank.ts';
+import { capSessionPool, collapsePool, expandStructuralNeighbors, finalizeHybridResults, fuseArms, rerankAndPin, sizeReturnPool } from './hybrid/rank.ts';
import { type StageTimer, UNTIMED } from './stage-timings.ts';
export const RRF_K = 60;
@@ -1170,7 +1170,7 @@ export async function hybridSearch(
// aliasing in the postFusionOpts resolver near line ~256.
// Dedup
- const deduped = await timer.stage('post_fusion', async () => capSessionPool(req, dedupResults(fused, { ...dedupOpts, regions: await segmentRegions(req.engine, fused) })));
+ const deduped = await timer.stage('post_fusion', async () => collapsePool(req, capSessionPool(req, dedupResults(fused, { ...dedupOpts, regions: await segmentRegions(req.engine, fused) }))));
opts?.explainTarget?.observe('deduped', deduped);
// Auto-escalate: if detail=low returned 0, retry with high. The inner
diff --git a/src/core/search/hybrid/keyword-only.ts b/src/core/search/hybrid/keyword-only.ts
index 905f5d8597..b16dbb189a 100644
--- a/src/core/search/hybrid/keyword-only.ts
+++ b/src/core/search/hybrid/keyword-only.ts
@@ -17,6 +17,7 @@ import { enforceTokenBudget } from '../token-budget.ts';
import { pushDegraded, stampBudgetStage } from './degraded.ts';
import { stampEvidence } from '../evidence.ts';
import { applyEvidenceGate } from '../decide-stage.ts';
+import { collapsePool, prioritize } from './rank.ts';
import { warnOncePerProcess } from '../../utils.ts';
/** No embedding provider (and no multimodal route): keyword + title + relational only. */
@@ -59,11 +60,11 @@ export async function searchWithoutEmbeddings(
// T3/T4 — alias hop + evidence stamp even without an embedding provider
// (the named-thing fix is most valuable exactly when vector is unavailable).
trace?.observe('fused', noEmbedResults);
- const noEmbedDeduped = dedupResults(noEmbedResults, { regions: await segmentRegions(engine, noEmbedResults) });
+ const noEmbedDeduped = prioritize(req, await collapsePool(req, dedupResults(noEmbedResults, { regions: await segmentRegions(engine, noEmbedResults) })));
trace?.observe('deduped', noEmbedDeduped);
const noEmbedPreExact = await applyAliasHop(engine, noEmbedDeduped, query, aliasHopOpts);
// #1663 — structural exact-lookup tier (slug / exact-title identity).
- const noEmbedHopped = await applyExactLookupTier(engine, noEmbedPreExact, query, exactLookupOpts);
+ const noEmbedHopped = await collapsePool(req, await applyExactLookupTier(engine, noEmbedPreExact, query, exactLookupOpts));
stampEvidence(noEmbedHopped, { cosineFloor: resolvedMode.evidence_cosine_floor });
// System One S3 evidence gate (no-op when the slot is off), at the fused path's position.
const noEmbedGated = await applyEvidenceGate(req.decide, query, noEmbedHopped);
@@ -180,11 +181,11 @@ export async function searchVectorFallback(
fallbackResults = await applyFeedbackStage(engine, fallbackResults, { reranked: false });
}
trace?.observe('fused', fallbackResults);
- const kwDeduped = dedupResults(fallbackResults, { regions: await segmentRegions(engine, fallbackResults) });
+ const kwDeduped = prioritize(req, await collapsePool(req, dedupResults(fallbackResults, { regions: await segmentRegions(engine, fallbackResults) })));
trace?.observe('deduped', kwDeduped);
const kwPreExact = await applyAliasHop(engine, kwDeduped, query, aliasHopOpts);
// #1663 — structural exact-lookup tier (slug / exact-title identity).
- const kwHopped = await applyExactLookupTier(engine, kwPreExact, query, exactLookupOpts);
+ const kwHopped = await collapsePool(req, await applyExactLookupTier(engine, kwPreExact, query, exactLookupOpts));
stampEvidence(kwHopped, { cosineFloor: resolvedMode.evidence_cosine_floor });
// System One S3 evidence gate (no-op when the slot is off), at the fused path's position.
const kwGated = await applyEvidenceGate(req.decide, query, kwHopped);
diff --git a/src/core/search/hybrid/rank.ts b/src/core/search/hybrid/rank.ts
index 2d2ca7ccc5..17614047db 100644
--- a/src/core/search/hybrid/rank.ts
+++ b/src/core/search/hybrid/rank.ts
@@ -16,6 +16,8 @@ import { type RelationalEvidenceSlotDecision, ensureRelationalEvidenceSlot } fro
import { type RelationalRerankPinDecision, pinRelationalRows } from '../relational-rerank-pin.ts';
import { applyFeedbackStage } from '../feedback-boost.ts';
import { capPerSession } from '../diverse-pool.ts';
+import { collapseResults } from '../collapse.ts';
+import { applyRankPriors } from '../rank-priors.ts';
import { type RerankFailedReason, type RerankPassThroughReason, type RerankSkipReason, applyReranker } from '../rerank.ts';
import type { RerankMeta } from '../../ai/gateway.ts';
import { applyEvidenceGate, recordRerankReceipts, startRerankShadow } from '../decide-stage.ts';
@@ -251,6 +253,30 @@ export function capSessionPool(req: HybridRequest, deduped: SearchResult[]): Sea
return req.resolvedMode.diverse_pool_depth > 0 ? capPerSession(deduped) : deduped;
}
+/**
+ * Result-time collapse (search.collapse, collapse.ts): twins, redirect stubs and document copies take one slot.
+ * Runs before the reranker reads the pool, and again after the identity tiers, which inject pages by title,
+ * slug or alias (a stub titled with the entity's name, or each twin). The second pass reuses the page facts.
+ */
+export async function collapsePool(req: HybridRequest, rows: SearchResult[]): Promise<SearchResult[]> {
+ if (!req.resolvedMode.collapse) return rows;
+ req.collapseFacts ??= new Map();
+ return collapseResults(req.engine, rows, {
+ ...req.aliasHopOpts,
+ facts: req.collapseFacts,
+ onDecision: (d) => {
+ if (d.twins + d.redirects + d.families + d.redirect_reads === 0) return;
+ const prev = req.collapse ?? { twins: 0, redirects: 0, families: 0, redirect_reads: 0 };
+ req.collapse = { twins: prev.twins + d.twins, redirects: prev.redirects + d.redirects, families: prev.families + d.families, redirect_reads: prev.redirect_reads + d.redirect_reads };
+ },
+ });
+}
+
+/** Rank priors (search.rank_priors, rank-priors.ts) on the reranked (or fused) order. */
+export function prioritize(req: HybridRequest, rows: SearchResult[]): SearchResult[] {
+ return req.resolvedMode.rank_priors ? applyRankPriors(rows, req.query) : rows;
+}
+
/** Cross-encoder rerank (fail-open), then the relational-row pin; the W3 rerank gate grades the same candidates. */
export async function rerankAndPin(
req: HybridRequest,
@@ -331,7 +357,7 @@ export async function rerankAndPin(
const rerankPinned = reranked !== deduped && effectiveModality !== 'image'
? pinRelationalRows(ordered, relationalList, { max: resolvedMode.relational_rerank_pin, fusedOrder: deduped, onPin: (d) => { relationalRerankPin = d; } })
: ordered;
- return { rerankPinned, relationalRerankPin, rerankGate, identityLookups: gate.lookups };
+ return { rerankPinned: prioritize(req, rerankPinned), relationalRerankPin, rerankGate, identityLookups: gate.lookups };
}
/** Alias hop + exact-lookup tier, evidence stamp, adaptive return, autocut and the relational evidence slot. */
@@ -358,9 +384,9 @@ export async function sizeReturnPool(
// the already-fetched title arm (no extra queries); pure no-op for
// non-lookup-shaped queries. Runs after the alias hop so all three
// identity surfaces (alias, slug, title) share the same injection shape.
- const aliasHopped = identityLookups
+ const aliasHopped = await collapsePool(req, identityLookups
? applyExactLookupHits(preExact, identityLookups.exactHits)
- : await applyExactLookupTier(engine, preExact, query, exactLookupOpts);
+ : await applyExactLookupTier(engine, preExact, query, exactLookupOpts));
// T4 — stamp evidence + create_safety so the agent's don't-duplicate
// decision keys off WHY a page matched, not a raw blended score. Stamp on
diff --git a/src/core/search/hybrid/request.ts b/src/core/search/hybrid/request.ts
index 2505f3eba3..272ae22250 100644
--- a/src/core/search/hybrid/request.ts
+++ b/src/core/search/hybrid/request.ts
@@ -92,6 +92,10 @@ export interface HybridRequest {
rerankMeta?: { model_resolved: string };
/** Set by the relational arm when the multi-hop planner ran (meta.relational_plan). */
relationalPlan?: import('../relational-recall.ts').RelationalPlanMeta;
+ /** Set by the collapse stage when it folded or read in a row (meta.collapse). */
+ collapse?: import('../collapse.ts').CollapseDecision;
+ /** Page facts the collapse stage read, reused by its second pass after the identity tiers. */
+ collapseFacts?: Map<number, import('../collapse.ts').PageFacts>;
/** The op's stage-timing collector (`opts._timings`), or the no-op timer. */
timer: StageTimer;
}
@@ -364,10 +368,11 @@ export function emitHybridMeta(req: HybridRequest, armMeta: HybridSearchMeta): v
const rawMeta = req.keywordCandidates ? { ...armMeta, keyword_candidates: req.keywordCandidates } : armMeta;
const decide = decideMetaFor(req.decide);
const answerability = req.decide?.answerability;
- const meta: HybridSearchMeta = decide || req.rerankMeta || answerability || req.relationalPlan
+ const meta: HybridSearchMeta = decide || req.rerankMeta || answerability || req.relationalPlan || req.collapse
? {
...rawMeta, ...(decide ? { decide } : {}), ...(req.rerankMeta ? { rerank: req.rerankMeta } : {}),
...(answerability ? { answerability } : {}), ...(req.relationalPlan ? { relational_plan: req.relationalPlan } : {}),
+ ...(req.collapse ? { collapse: req.collapse } : {}),
}
: rawMeta;
try {
diff --git a/src/core/search/lean-rows.ts b/src/core/search/lean-rows.ts
index ca80495042..699a9f87e4 100644
--- a/src/core/search/lean-rows.ts
+++ b/src/core/search/lean-rows.ts
@@ -42,6 +42,8 @@ const KEPT_FIELDS: ReadonlySet<string> = new Set([
'evidence_omitted',
// #5575 A6: every row says how much it deserves influence.
'trust_tier', 'origin', 'unconfirmed',
+ // Result-time collapse and rank priors: folded pages, an unfollowed redirect, an image page's text row, and a cut chunk's full length.
+ 'collapsed', 'redirect_to', 'image_page', 'chunk_chars',
// Present only when the caller asked for `explain: true`.
'score_details',
]);
diff --git a/src/core/search/mode.ts b/src/core/search/mode.ts
index 611c823735..341f038a1f 100644
--- a/src/core/search/mode.ts
+++ b/src/core/search/mode.ts
@@ -411,6 +411,20 @@ export interface ModeBundle {
* `search.diverse_pool_depth` (0..100).
*/
diverse_pool_depth: number;
+ /**
+ * Result-time collapse (search/collapse.ts, #4612 #7153 #7154): a same-slug
+ * twin in another source, a redirect stub and copies of one document fold
+ * into the best-ranked row, which lists them in `collapsed`. On in every
+ * bundle. Override: `search.collapse` (boolean).
+ */
+ collapse: boolean;
+ /**
+ * Rank priors after the reranker (search/rank-priors.ts, #7155 #7162
+ * #6058): organization over person when the query names no person, weak
+ * OCR matches, dated over undated rows on 'when' questions. On in every
+ * bundle. Override: `search.rank_priors` (boolean).
+ */
+ rank_priors: boolean;
/**
* Ranker wave (Phase E2, Cat 13) — arm-confidence-weighted fusion of the
* LEXICAL arms (arm-confidence.ts). When the keyword arm's scale-free
@@ -518,6 +532,8 @@ export const MODE_BUNDLES: Readonly<Record<SearchMode, Readonly<ModeBundle>>> =
relational_orient_onehop: false,
relational_chain_slots: 10,
diverse_pool_depth: 0,
+ collapse: true,
+ rank_priors: true,
autocut_jump: 0.2,
autocut_min_top: 0.35,
autocut_min_keep: 1,
@@ -587,6 +603,8 @@ export const MODE_BUNDLES: Readonly<Record<SearchMode, Readonly<ModeBundle>>> =
relational_orient_onehop: false,
relational_chain_slots: 10,
diverse_pool_depth: 0,
+ collapse: true,
+ rank_priors: true,
autocut_jump: 0.2,
autocut_min_top: 0.35,
autocut_min_keep: 1,
@@ -656,6 +674,8 @@ export const MODE_BUNDLES: Readonly<Record<SearchMode, Readonly<ModeBundle>>> =
relational_orient_onehop: false,
relational_chain_slots: 10,
diverse_pool_depth: 0,
+ collapse: true,
+ rank_priors: true,
autocut_jump: 0.2,
autocut_min_top: 0.35,
autocut_min_keep: 1,
@@ -728,6 +748,8 @@ export interface SearchKeyOverrides {
relational_orient_onehop?: boolean | null;
relational_chain_slots?: number;
diverse_pool_depth?: number;
+ collapse?: boolean;
+ rank_priors?: boolean;
// Ranker wave (Phase E2) — keyword-arm confidence floor override (null = off; (0, 1]).
keyword_arm_confidence_floor?: number | null;
// Ranker wave (Phase E3) — metadata boost gate override (`always` | `lexical`).
@@ -799,6 +821,8 @@ export interface SearchPerCallOpts {
relational_orient_onehop?: boolean | null;
relational_chain_slots?: number;
diverse_pool_depth?: number;
+ collapse?: boolean;
+ rank_priors?: boolean;
// Ranker wave (Phase E2) — keyword-arm confidence floor per-call override (null = off; (0, 1]).
keyword_arm_confidence_floor?: number | null;
// Ranker wave (Phase E3) — metadata boost gate per-call override (`always` | `lexical`).
@@ -910,6 +934,8 @@ export function resolveSearchMode(input: ResolveSearchModeInput): ResolvedSearch
relational_orient_onehop: pick('relational_orient_onehop'),
relational_chain_slots: pick('relational_chain_slots'),
diverse_pool_depth: pick('diverse_pool_depth'),
+ collapse: pick('collapse'),
+ rank_priors: pick('rank_priors'),
keyword_arm_confidence_floor: pick('keyword_arm_confidence_floor'),
metadata_boost_gate: pick('metadata_boost_gate'),
resolved_mode,
@@ -1267,6 +1293,9 @@ export function knobsHash(
...(knobs.relational_planner && knobs.relational_chain_slots ? [`rcs=${knobs.relational_chain_slots}`] : []),
// Session-diverse pool (append-only, emitted only when on, so every off key is unchanged).
...(knobs.diverse_pool_depth ? [`dpd=${knobs.diverse_pool_depth}`] : []),
+ // Collapse and rank priors (append-only, emitted only when turned off).
+ ...(knobs.collapse === false ? ['col=0'] : []),
+ ...(knobs.rank_priors === false ? ['rpr=0'] : []),
];
// #5691 (append-only, no version bump): only a non-empty query prefix adds
// a part, so every row written without one keeps its key.
@@ -1509,6 +1538,10 @@ export function loadOverridesFromConfig(
if (rcs !== undefined) out.relational_chain_slots = rcs;
const dpd = normalizeDiversePoolDepth(get('search.diverse_pool_depth'));
if (dpd !== undefined) out.diverse_pool_depth = dpd;
+ const col = parseBoolKnob(get('search.collapse'));
+ if (col !== undefined) out.collapse = col;
+ const rpr = parseBoolKnob(get('search.rank_priors'));
+ if (rpr !== undefined) out.rank_priors = rpr;
// Ranker wave (Phase E2) — keyword-arm confidence floor: the literal
// `off`/`null` pins the knob off (null); a number in (0, 1] is the floor;
// anything else falls through to the bundle. ONE range contract with the
@@ -1583,6 +1616,8 @@ export const KNOB_CONFIG_KEY: Readonly<Record<keyof ModeBundle, string>> = Objec
relational_orient_onehop: 'search.relational_orient_onehop',
relational_chain_slots: 'search.relational_chain_slots',
diverse_pool_depth: 'search.diverse_pool_depth',
+ collapse: 'search.collapse',
+ rank_priors: 'search.rank_priors',
keyword_arm_confidence_floor: 'search.keyword_arm_confidence_floor',
metadata_boost_gate: 'search.metadata_boost_gate',
});
diff --git a/src/core/search/modes-report.ts b/src/core/search/modes-report.ts
index 65684b6dda..fb3d287200 100644
--- a/src/core/search/modes-report.ts
+++ b/src/core/search/modes-report.ts
@@ -66,6 +66,8 @@ export const KNOB_DESCRIPTIONS: Record<keyof ModeBundle, string> = {
relational_planner: 'Multi-hop planner: questions chaining 2-3 typed relations walk typed hop chains with evidence (also keyless recall)',
relational_orient_onehop: 'Typed one-hop walks read edges written on either page by the relation type signature (opt-in; null = follow relational_planner)',
relational_chain_slots: 'When a multi-hop chain fired, up to this many chain rows (answers, then evidence pages) lead page 1 (0..10; 0 = single evidence slot)',
+ collapse: 'Result-time collapse: same-slug twins in other sources, redirect stubs and copies of one document fold into the best row (listed in collapsed)',
+ rank_priors: 'Rank priors after the reranker: organization over person when no person is named, weak OCR matches, dated over undated rows on when-questions',
diverse_pool_depth: 'Session-diverse pool before the reranker: each arm fetches at least N candidates, one row per session, the reranker reads at least N (0..100; 0 = off)',
// Ranker wave (Phase E2) arm-confidence fusion
keyword_arm_confidence_floor: 'Keyword-arm confidence floor: below this margin ratio the keyword + title lists fuse at half weight (null = off; (0, 1])',
diff --git a/src/core/search/rank-priors.ts b/src/core/search/rank-priors.ts
new file mode 100644
index 0000000000..8b93fddd9f
--- /dev/null
+++ b/src/core/search/rank-priors.ts
@@ -0,0 +1,108 @@
+/**
+ * Rank priors (#7155, #7162, #6058, #7153): small, query-gated multipliers on
+ * a row's ordering score, applied after the reranker so they shape the order
+ * the caller reads. In a reranked list the ordering score is the rerank score
+ * (stamped `rank_score` = rerank_score x prior) and only the rerank-scored
+ * rows reorder among themselves; otherwise `score` itself is multiplied and
+ * the list re-sorted. Every prior needs a competitor of the preferred kind
+ * in the same list, so a list with nothing to prefer is unchanged.
+ * - organization over person: a query that describes a company or
+ * product, names no person in the list and doesn't ask for one moves
+ * person pages below company pages that score close to them; a request for a quote or statement prefers the
+ * document that holds it over the speaker's profile.
+ * - image pages: a text row of an image page (a short caption or OCR
+ * text) matching at most half of the query's words is a weak match (row
+ * stamped `image_page`).
+ * - temporal: a "when did ..." question prefers rows with a document or
+ * event date over undated ones.
+ * - redirect stubs that could not be replaced by their target (`redirect_to`).
+ * `search.rank_priors false` turns them off.
+ */
+import type { SearchResult } from '../types.ts';
+
+export const PERSON_PRIOR = 0.85;
+export const OCR_PRIOR = 0.6;
+export const UNDATED_PRIOR = 0.85;
+export const REDIRECT_STUB_PRIOR = 0.5;
+
+const PERSON_TYPES = new Set(['person']);
+const ORG_TYPES = new Set(['company', 'organization', 'org', 'startup', 'product']);
+const DOCUMENT_TYPES = new Set(['media', 'meeting', 'conversation', 'transcript', 'source', 'writing', 'note', 'email', 'slack', 'podcast', 'video', 'talk']);
+const ASKS_FOR_PERSON = /\b(who|whom|whose|person|people|founder|founders|co-?founder|ceo|cto|cfo|coo|partner|investor|engineer|bio|biography|background|contact|email|phone)\b/i;
+const ASKS_FOR_ORG = /\b(company|companies|startup|startups|business|businesses|firm|product|products|platform|api|apis|app|apps|tool|tools|service|services|software|saas|marketplace|provider|vendor|brand|maker|manufacturer|organization|organisation|org|nonprofit|lab|agency|studio|builds|makes|sells|offers)\b/i;
+const ASKS_FOR_QUOTE = /\b(quote|quoted|quotes|said|says|saying|statement|remark|remarks|told)\b/i;
+const TEMPORAL = /^\s*when\b|\bwhat (?:date|day|month|year)\b|\bsince when\b|\bhow long ago\b/i;
+const DATED_SOURCES = new Set(['date', 'published', 'filename', 'event_date']);
+const IMAGE_SLUG = /\.(?:jpe?g|png|gif|webp|heic|heif|tiff?)$/i;
+const STOP = new Set(['the', 'a', 'an', 'of', 'and', 'or', 'for', 'to', 'in', 'on', 'at', 'by', 'with', 'from', 'is', 'are', 'was', 'were', 'did', 'does', 'do', 'what', 'when', 'where', 'which', 'how', 'who', 'about', 'that', 'this']);
+
+const words = (text: string) => (text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? []);
+
+function isImageRow(r: SearchResult): boolean {
+ return r.type === 'image' || IMAGE_SLUG.test(r.slug);
+}
+
+function isDated(r: SearchResult): boolean {
+ return !!r.effective_date && DATED_SOURCES.has(r.effective_date_source ?? '');
+}
+
+/** True when a query word is a name word of some person page in the list. */
+function namesListedPerson(queryWords: Set<string>, rows: SearchResult[]): boolean {
+ for (const r of rows) {
+ if (!PERSON_TYPES.has(r.type)) continue;
+ const name = [...words(r.title ?? ''), ...words(r.slug.split('/').pop() ?? '')];
+ if (name.some(w => w.length >= 3 && !STOP.has(w) && w !== 'example' && queryWords.has(w))) return true;
+ }
+ return false;
+}
+
+/** Share of the query's content words found in the text. */
+function coverage(queryWords: string[], text: string): number {
+ if (queryWords.length === 0) return 1;
+ const have = new Set(words(text));
+ return queryWords.filter(w => have.has(w)).length / queryWords.length;
+}
+
+/** The prior for each row (1 = none), computed against the whole list. */
+export function rankPriors(rows: SearchResult[], query: string): number[] {
+ const qList = words(query);
+ const qWords = new Set(qList);
+ const content = qList.filter(w => !STOP.has(w));
+ const types = new Set(rows.map(r => r.type));
+ const has = (set: Set<string>) => [...types].some(t => set.has(t));
+ const personDemoted = has(PERSON_TYPES) && !namesListedPerson(qWords, rows) && (
+ (has(ORG_TYPES) && ASKS_FOR_ORG.test(query) && !ASKS_FOR_PERSON.test(query)) || (ASKS_FOR_QUOTE.test(query) && has(DOCUMENT_TYPES)));
+ const temporal = TEMPORAL.test(query) && rows.some(isDated) && rows.some(r => !isDated(r));
+ return rows.map(r => {
+ let prior = 1;
+ if (personDemoted && PERSON_TYPES.has(r.type)) prior *= PERSON_PRIOR;
+ if (isImageRow(r) && coverage(content, r.chunk_text ?? '') <= 0.5) prior *= OCR_PRIOR;
+ if (temporal && !isDated(r)) prior *= UNDATED_PRIOR;
+ if (r.redirect_to) prior *= REDIRECT_STUB_PRIOR;
+ return prior;
+ });
+}
+
+/** Apply the priors (module comment). Returns a new array; changed rows are copies. */
+export function applyRankPriors(rows: SearchResult[], query: string): SearchResult[] {
+ if (rows.length === 0) return rows;
+ const priors = rankPriors(rows, query);
+ if (priors.every(p => p === 1) && !rows.some(isImageRow)) return rows;
+ const stamped = rows.map((r, i) => {
+ const image = isImageRow(r) ? { image_page: true as const } : {};
+ return priors[i] === 1 && !image.image_page ? r : { ...r, ...image, ...(priors[i] !== 1 ? { rank_prior: priors[i] } : {}) };
+ });
+ const scored = stamped.map((r, i) => (Number.isFinite(r.rerank_score) ? i : -1)).filter(i => i >= 0);
+ if (scored.length > 0) {
+ if (priors.every(p => p === 1)) return stamped;
+ for (const i of scored) stamped[i] = { ...stamped[i], rank_score: stamped[i].rerank_score! * priors[i] };
+ const reordered = scored.map(i => stamped[i]).map((r, n) => ({ r, n })).sort((a, b) => (b.r.rank_score! - a.r.rank_score!) || (a.n - b.n)).map(x => x.r);
+ scored.forEach((slot, n) => { stamped[slot] = reordered[n]; });
+ return stamped;
+ }
+ if (priors.every(p => p === 1)) return stamped;
+ return stamped
+ .map((r, n) => ({ r: priors[n] === 1 ? r : { ...r, score: r.score * priors[n] }, n }))
+ .sort((a, b) => (b.r.score - a.r.score) || (a.n - b.n))
+ .map(x => x.r);
+}
diff --git a/src/core/search/score-contract.ts b/src/core/search/score-contract.ts
new file mode 100644
index 0000000000..2b301a1afe
--- /dev/null
+++ b/src/core/search/score-contract.ts
@@ -0,0 +1,33 @@
+/**
+ * #7156: the returned `score` follows the returned order. Agents threshold
+ * on it ("ignore below 0.8"), so a list whose rank 3 outscores its rank 1
+ * reads as broken. In a reranked list the order is the rerank score (times
+ * any rank prior, `rank_score`), so that becomes `score`; elsewhere `score`
+ * already orders the list. Rows the order placed without a score of that
+ * kind (identity and relational pins above the reranked head, the unreranked
+ * tail, appended fact rows) take their neighbour's value, and a running
+ * minimum keeps the column non-increasing. The value `score` held before
+ * is kept as `fused_score` on every row it changed. Applied once, at the op
+ * output boundary, so internal consumers still read the fused score.
+ */
+import type { SearchResult } from '../types.ts';
+
+const finite = (n: unknown): n is number => typeof n === 'number' && Number.isFinite(n);
+
+export function scoresFollowRank<T extends Pick<SearchResult, 'score' | 'rerank_score' | 'rank_score' | 'fused_score'>>(rows: T[]): T[] {
+ const reranked = rows.some(r => finite(r.rerank_score));
+ const order = rows.map(r => (reranked ? (finite(r.rank_score) ? r.rank_score : r.rerank_score) : r.score));
+ const first = order.find(finite);
+ if (first === undefined) return rows;
+ let prev = Infinity;
+ let changed = false;
+ const out = rows.map((r, i) => {
+ const own = order[i];
+ const value = Math.min(finite(own) ? own : prev === Infinity ? first : prev, prev);
+ prev = value;
+ if (value === r.score) return r;
+ changed = true;
+ return { ...r, score: value, ...(finite(r.score) && r.fused_score === undefined ? { fused_score: r.score } : {}) };
+ });
+ return changed ? out : rows;
+}
diff --git a/src/core/search/snippet-cap.ts b/src/core/search/snippet-cap.ts
index bb49643af1..91dc569817 100644
--- a/src/core/search/snippet-cap.ts
+++ b/src/core/search/snippet-cap.ts
@@ -20,6 +20,21 @@
/** Default snippet budget (chars) for subagent callers when config is unset. */
export const DEFAULT_AGENT_SNIPPET_CHARS = 300;
+/**
+ * #7164: the most chunk text one search/query row returns when the caller set
+ * no snippet cap. The chunker stores at most a few thousand characters per
+ * chunk; a chunk written before that cap can hold tens of thousands, which a
+ * caller asking for ten rows never budgeted for. The marker names the window read
+ * that returns the rest; `snippet_chars: 0` returns full text.
+ */
+export const RESULT_CHUNK_CHARS = 8000;
+
+/** The cap for one call: an explicit `snippet_chars` (0 = full text) wins, then the resolved snippet cap, then RESULT_CHUNK_CHARS. */
+export function resultChunkCap(snippetChars: unknown, snippetCap: number): number {
+ if (typeof snippetChars === 'number' && Number.isFinite(snippetChars)) return snippetCap;
+ return snippetCap > 0 ? snippetCap : RESULT_CHUNK_CHARS;
+}
+
export function buildSnippetMarker(slug: string | undefined, droppedChars: number, followUp?: { op: string; args: Record<string, string> }, chunkId?: number): string {
// Large pages: a hit past the first chunk points at its own window (get_page around_chunk_id), not at the whole page.
if (!followUp && slug && Number.isSafeInteger(chunkId) && (chunkId as number) > 0) {
@@ -48,6 +63,7 @@ export function applySnippetCap<T extends { chunk_text?: unknown; slug?: unknown
const slug = typeof r.slug === 'string' ? r.slug : undefined;
return {
...r,
+ chunk_chars: text.length,
chunk_text: text.slice(0, chars) + buildSnippetMarker(slug, text.length - chars, r.follow_up,
typeof r.chunk_index === 'number' && r.chunk_index > 0 && typeof r.chunk_id === 'number' ? r.chunk_id : undefined),
};
diff --git a/src/core/types.ts b/src/core/types.ts
index 7ccf11683d..8b6ac772ae 100644
--- a/src/core/types.ts
+++ b/src/core/types.ts
@@ -1140,6 +1140,20 @@ export interface SearchResult {
create_safety?: import('./search/evidence.ts').CreateSafety;
/** Evidence delivery (`return_unit`): present only when a non-chunk unit applied. */
delivered?: import('./search/evidence-delivery.ts').DeliveredEvidence;
+ /** Pages folded into this row at result time (search/collapse.ts): a same-slug twin in another source, a redirect stub that points here, or another copy of the same document. */
+ collapsed?: import('./search/collapse.ts').CollapsedRef[];
+ /** A redirect stub whose target could not be returned in its place: the slug it points to (search/collapse.ts). */
+ redirect_to?: string;
+ /** A text row of an image page (its caption or OCR text), so an agent can discount a one-word match (search/rank-priors.ts). */
+ image_page?: true;
+ /** Multiplier the rank priors applied to this row's ordering score (search/rank-priors.ts); absent = 1. */
+ rank_prior?: number;
+ /** The value a reranked list is ordered by: rerank_score times rank_prior (search/rank-priors.ts). */
+ rank_score?: number;
+ /** The fused score when the returned `score` was rewritten to follow rank order (search/score-contract.ts). */
+ fused_score?: number;
+ /** Full length of chunk_text when the returned text was cut (snippet-cap.ts). */
+ chunk_chars?: number;
}
/**
@@ -2227,6 +2241,8 @@ export interface HybridSearchMeta {
rerank_gate?: import('./search/hybrid/rerank-gate.ts').RerankGateMeta;
/** `js_fallback` when the SQL cosine re-score failed and this search computed it in JavaScript (search/cosine-rescore.ts). */
cosine_rescore?: 'js_fallback';
+ /** Rows folded at result time (search/collapse.ts): twins, redirect stubs and document copies, plus redirect targets read in. Absent when nothing folded. */
+ collapse?: import('./search/collapse.ts').CollapseDecision;
/**
* v0.32.x (search-lite): token budget enforcement metadata. Omitted when
* no budget was applied (backward-compatible with pre-search-lite
diff --git a/test/evidence-result-caps.test.ts b/test/evidence-result-caps.test.ts
new file mode 100644
index 0000000000..c35dab36bd
--- /dev/null
+++ b/test/evidence-result-caps.test.ts
@@ -0,0 +1,59 @@
+/**
+ * #7164: a search/query row returns a bounded amount of text by default.
+ * - An implied `auto` grows a conversation block around its match up to
+ * AUTO_BLOCK_CHAR_CAP (was EVIDENCE_BLOCK_CHAR_CAP, 60k), says
+ * `delivered.truncated`, and an explicit `return_unit` keeps the full cap.
+ * - On the chunk path a row's text stops at RESULT_CHUNK_CHARS with a marker
+ * naming the read that returns the rest and `chunk_chars` (the full
+ * length); `snippet_chars: 0` returns the whole chunk.
+ * Keyword-only (search.mcp_keyword_only), PGLite, no provider.
+ */
+import { afterAll, beforeAll, describe, expect, test } from 'bun:test';
+import { PGLiteEngine } from '../src/core/pglite-engine.ts';
+import { AUTO_BLOCK_CHAR_CAP, EVIDENCE_BLOCK_CHAR_CAP } from '../src/core/search/evidence-delivery.ts';
+import { RESULT_CHUNK_CHARS } from '../src/core/search/snippet-cap.ts';
+import { installFixtureChunks } from './helpers/page-projection.ts';
+import { mcpCall, seedLongPages } from './helpers/long-page-fixture.ts';
+
+const turn = (i: number) => `**alice-example:** item ${i} on the depot roster and the forklift lease renewal schedule for the quarter.\n\n**bob-example:** noted, item ${i} stays with the night shift and the lease desk follows up.`;
+const MEETING = { slug: 'meetings/2026-04-01-depot-review', type: 'meeting', body: Array.from({ length: 400 }, (_, i) => i === 200 ? '**alice-example:** the zircon clause sets the forklift lease at 900 a month.' : turn(i)).join('\n\n') };
+const BIG_CHUNK = 'Old export. ' + 'The harbor ledger lists every pallet, the berth, the crane and the tally clerk for the shift. '.repeat(120);
+
+let engine: PGLiteEngine;
+beforeAll(async () => {
+ engine = new PGLiteEngine();
+ await engine.connect({});
+ await engine.initSchema();
+ await seedLongPages(engine, [MEETING]);
+ await engine.putPage('notes/harbor-ledger', { type: 'note', title: 'Harbor ledger', compiled_truth: BIG_CHUNK, timeline: '', frontmatter: {} });
+ await installFixtureChunks(engine, 'notes/harbor-ledger', [{ chunk_index: 0, chunk_text: BIG_CHUNK, chunk_source: 'compiled_truth' as const }]);
+}, 240_000);
+afterAll(async () => { await engine?.disconnect(); }, 120_000);
+
+describe('implied auto: a long conversation block stops at AUTO_BLOCK_CHAR_CAP', () => {
+ test('default call: bounded and marked truncated; explicit page unit: the old cap', async () => {
+ expect(MEETING.body.length).toBeGreaterThan(EVIDENCE_BLOCK_CHAR_CAP);
+ for (const name of ['search', 'query'] as const) {
+ const { rows } = await mcpCall(engine, name, { query: 'zircon clause forklift lease', ...(name === 'query' ? { expand: false } : {}) });
+ const hit = rows.find(r => r.slug === MEETING.slug)!;
+ expect((hit.chunk_text as string).length).toBeLessThanOrEqual(AUTO_BLOCK_CHAR_CAP + 200);
+ expect(hit.chunk_text as string).toContain('zircon clause');
+ expect(hit.delivered).toMatchObject({ truncated: true });
+ }
+ const { rows } = await mcpCall(engine, 'search', { query: 'zircon clause forklift lease', return_unit: 'page' });
+ expect((rows.find(r => r.slug === MEETING.slug)!.chunk_text as string).length).toBeGreaterThan(AUTO_BLOCK_CHAR_CAP * 2);
+ });
+});
+
+describe('chunk path: one row returns at most RESULT_CHUNK_CHARS', () => {
+ test('cut with chunk_chars and the read marker; snippet_chars 0 returns the whole chunk', async () => {
+ expect(BIG_CHUNK.length).toBeGreaterThan(RESULT_CHUNK_CHARS);
+ const cut = (await mcpCall(engine, 'search', { query: 'harbor ledger pallet berth' })).rows.find(r => r.slug === 'notes/harbor-ledger')!;
+ expect((cut.chunk_text as string).startsWith(BIG_CHUNK.slice(0, RESULT_CHUNK_CHARS))).toBe(true);
+ expect(cut.chunk_text as string).toContain('get_page notes/harbor-ledger');
+ expect(cut.chunk_chars).toBe(BIG_CHUNK.length);
+ const whole = (await mcpCall(engine, 'search', { query: 'harbor ledger pallet berth', snippet_chars: 0 })).rows.find(r => r.slug === 'notes/harbor-ledger')!;
+ expect(whole.chunk_text).toBe(BIG_CHUNK);
+ expect(whole.chunk_chars).toBeUndefined();
+ });
+});
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index fc9e438d91..532e3bb674 100644
--- a/test/fixtures/goldens/cli/tools-json.json
+++ b/test/fixtures/goldens/cli/tools-json.json
@@ -2,8 +2,8 @@
"golden": {
"exitCode": 0,
"stderr": "",
- "stdoutBytes": 252798,
- "stdoutSha256": "71b348f0e16ec33eeb7b856a2fa24821a5f971503416d541e00226572381ab56",
+ "stdoutBytes": 252796,
+ "stdoutSha256": "6294a0f25ef4437f325f2c867df61e979222f06210d6786beedb52f6886db8c7",
"toolNames": [
"remember",
"entity",
@@ -1701,7 +1701,7 @@
"scope": "read"
},
{
- "description": "Hybrid search for concept/landscape questions and people/companies/projects by topic; expand adds multi-query expansion (expansion recovers synonyms). Still top-K; return_unit: sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper (no LLM call). Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows: use follow_up. fields: \"full\" adds diagnostics.",
+ "description": "Hybrid search for questions and people/companies/projects by topic; ranks like `search` plus fact rows and a confidence grade. expand: one LLM call, rarely helps. Still top-K; return_unit: sections or conversations. Lists: list_pages. Exact tokens: `search` is cheaper. Personal: get_recent_salience, find_anomalies; transcripts: `gbrain transcripts recent`. Do NOT assume 'crazy' means impressive (often difficult or emotionally charged). Needs an embedding key (else keyword-only); expansion needs a chat key. Fact rows: use follow_up. fields: \"full\" adds diagnostics.",
"idempotent": true,
"local_only": false,
"mutating": false,
@@ -1769,7 +1769,7 @@
"type": "string"
},
"expand": {
- "description": "Default off; search.expansion overrides.",
+ "description": "Default off; one LLM call, rarely helps.",
"type": "boolean"
},
"explain": {
diff --git a/test/fixtures/goldens/exports/runtime.json b/test/fixtures/goldens/exports/runtime.json
index 99e549e65f..f9ae1fc9d0 100644
--- a/test/fixtures/goldens/exports/runtime.json
+++ b/test/fixtures/goldens/exports/runtime.json
@@ -854,6 +854,7 @@
"releaseLock"
],
"./search/evidence-delivery": [
+ "AUTO_BLOCK_CHAR_CAP",
"AUTO_PACKINGS",
"AUTO_PACKING_CONFIG_KEY",
"DEFAULT_AUTO_PACKING",
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index de6eb6e6a5..d8ce424a9e 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -747,6 +747,7 @@
"answerability?: AnswerabilityVerdict | undefined",
"autocut?: AutocutDecision | undefined",
"cache?: { status: \"hit\" | \"miss\" | \"disabled\"; similarity?: number; age_seconds?: number; } | undefined",
+ "collapse?: CollapseDecision | undefined",
"cosine_rescore?: \"js_fallback\" | undefined",
"decide?: Partial<Record<\"rerank\" | \"intent\" | \"evidence\" | \"answerable\" | \"injection\" | \"recall_needed\" | \"triage\" | \"grounding\" | \"conflict\", DecideSlotMeta>> | undefined",
"degraded?: DegradedStageEntry[] | undefined",
@@ -1478,10 +1479,12 @@
"base_score?: number | undefined",
"blend_norm_rrf?: number | undefined",
"chronicle_boost?: number | undefined",
+ "chunk_chars?: number | undefined",
"chunk_id: number",
"chunk_index: number",
"chunk_source: \"timeline\" | \"compiled_truth\" | \"fenced_code\"",
"chunk_text: string",
+ "collapsed?: CollapsedRef[] | undefined",
"content_flag?: { reason: string; detail: string; } | undefined",
"content_hash?: string | null | undefined",
"cosine?: number | undefined",
@@ -1499,6 +1502,7 @@
"fact_row?: { id: number; valid_from: string; valid_until: string | null; } | undefined",
"feedback_boost?: number | undefined",
"follow_up?: { op: \"recall\"; args: Record<string, string>; } | undefined",
+ "fused_score?: number | undefined",
"generated_demotion?: number | undefined",
"graph_adjacency_boost?: number | undefined",
"graph_adjacency_hits?: number | undefined",
@@ -1506,6 +1510,7 @@
"graph_cross_source_hits?: number | undefined",
"graph_session_demoted?: boolean | undefined",
"graph_session_prefix?: string | undefined",
+ "image_page?: true | undefined",
"injection_p?: number | undefined",
"injection_suspected?: true | undefined",
"keyword_hit?: boolean | undefined",
@@ -1517,7 +1522,10 @@
"page_id: number",
"page_slug?: string | undefined",
"provenance?: \"generated\" | undefined",
+ "rank_prior?: number | undefined",
+ "rank_score?: number | undefined",
"recency_boost?: number | undefined",
+ "redirect_to?: string | undefined",
"relational?: RelationalEvidence | undefined",
"relational_hop?: number | undefined",
"relational_path?: string[] | undefined",
@@ -7227,6 +7235,13 @@
}
],
"./search/evidence-delivery": [
+ {
+ "kind": "variable",
+ "name": "AUTO_BLOCK_CHAR_CAP",
+ "signature": [
+ "12000"
+ ]
+ },
{
"kind": "variable",
"name": "AUTO_PACKINGS",
@@ -7423,6 +7438,7 @@
{
"kind": "interface",
"members": [
+ "blockCharCap?: number | undefined",
"budgetClamped?: { requested: number; max: number; } | undefined",
"budgetExplicit: boolean",
"budgetTokens: number",
@@ -7811,7 +7827,7 @@
"kind": "function",
"name": "withLongPagePolicy",
"signature": [
- "(engine: BrainEngine, plan: EvidencePlan | null) => Promise<EvidencePlan | null>"
+ "(engine: BrainEngine, input: EvidencePlan | null) => Promise<EvidencePlan | null>"
]
}
],
@@ -8998,6 +9014,7 @@
"answerability?: AnswerabilityVerdict | undefined",
"autocut?: AutocutDecision | undefined",
"cache?: { status: \"hit\" | \"miss\" | \"disabled\"; similarity?: number; age_seconds?: number; } | undefined",
+ "collapse?: CollapseDecision | undefined",
"cosine_rescore?: \"js_fallback\" | undefined",
"decide?: Partial<Record<\"rerank\" | \"intent\" | \"evidence\" | \"answerable\" | \"injection\" | \"recall_needed\" | \"triage\" | \"grounding\" | \"conflict\", DecideSlotMeta>> | undefined",
"degraded?: DegradedStageEntry[] | undefined",
@@ -9482,10 +9499,12 @@
"base_score?: number | undefined",
"blend_norm_rrf?: number | undefined",
"chronicle_boost?: number | undefined",
+ "chunk_chars?: number | undefined",
"chunk_id: number",
"chunk_index: number",
"chunk_source: \"timeline\" | \"compiled_truth\" | \"fenced_code\"",
"chunk_text: string",
+ "collapsed?: CollapsedRef[] | undefined",
"content_flag?: { reason: string; detail: string; } | undefined",
"content_hash?: string | null | undefined",
"cosine?: number | undefined",
@@ -9503,6 +9522,7 @@
"fact_row?: { id: number; valid_from: string; valid_until: string | null; } | undefined",
"feedback_boost?: number | undefined",
"follow_up?: { op: \"recall\"; args: Record<string, string>; } | undefined",
+ "fused_score?: number | undefined",
"generated_demotion?: number | undefined",
"graph_adjacency_boost?: number | undefined",
"graph_adjacency_hits?: number | undefined",
@@ -9510,6 +9530,7 @@
"graph_cross_source_hits?: number | undefined",
"graph_session_demoted?: boolean | undefined",
"graph_session_prefix?: string | undefined",
+ "image_page?: true | undefined",
"injection_p?: number | undefined",
"injection_suspected?: true | undefined",
"keyword_hit?: boolean | undefined",
@@ -9521,7 +9542,10 @@
"page_id: number",
"page_slug?: string | undefined",
"provenance?: \"generated\" | undefined",
+ "rank_prior?: number | undefined",
+ "rank_score?: number | undefined",
"recency_boost?: number | undefined",
+ "redirect_to?: string | undefined",
"relational?: RelationalEvidence | undefined",
"relational_hop?: number | undefined",
"relational_path?: string[] | undefined",
diff --git a/test/fixtures/ranking-shapes/README.md b/test/fixtures/ranking-shapes/README.md
new file mode 100644
index 0000000000..a2bdcbe13b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/README.md
@@ -0,0 +1,31 @@
+# ranking-shapes fixture
+
+Synthetic, fictional corpus for the ranking-shape bench. Generated by `scripts/bench/ranking-shapes/generate.ts` (seed 154). Do not hand-edit; rerun the generator.
+
+```json
+{
+ "pages": 208,
+ "source_a": 178,
+ "source_b": 30,
+ "questions": 70,
+ "shapes": {
+ "E2": 6,
+ "E4": 6,
+ "E15": 21,
+ "E1": 23,
+ "E13": 2,
+ "E11": 4,
+ "E3": 4,
+ "E9": 4
+ },
+ "longest_body_chars": 60285,
+ "llm": {
+ "model": "gpt-4.1-mini"
+ },
+ "privacy_findings": 0
+}
+```
+
+- `source-a/`, `source-b/`: page directories (source-b holds same-slug twins plus a few b-only pages).
+- `questions.jsonl`: one row per question; `related` lists the stub/family/founder/image pages that the shape-specific pass criteria look at.
+- `manifest.json`: slug to role map.
diff --git a/test/fixtures/ranking-shapes/manifest.json b/test/fixtures/ranking-shapes/manifest.json
new file mode 100644
index 0000000000..ee50aaa6f7
--- /dev/null
+++ b/test/fixtures/ranking-shapes/manifest.json
@@ -0,0 +1,1250 @@
+[
+ {
+ "source": "source-a",
+ "slug": "people/saskia-fennmoor",
+ "type": "person",
+ "role": "target:E9"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/ysolde-fennford",
+ "type": "person",
+ "role": "target:E9"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/lisbet-brinhollow",
+ "type": "person",
+ "role": "target:E9"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/torben-fennmere",
+ "type": "person",
+ "role": "target:E9"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/veda-ravnby",
+ "type": "person",
+ "role": "target:E2"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/marlow-jorvvane",
+ "type": "person",
+ "role": "target:E2"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/dorrit-lornley",
+ "type": "person",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/odalys-naskdale",
+ "type": "person",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/rhosyn-jorvham",
+ "type": "person",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/zephyra-yarlvane",
+ "type": "person",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/tesstun-works",
+ "type": "company",
+ "role": "target:E4"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/vorrel-cloud",
+ "type": "company",
+ "role": "target:E4"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/nexlet-robotics",
+ "type": "company",
+ "role": "target:E4"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/umbaly-cloud",
+ "type": "company",
+ "role": "target:E4"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/zorrel-analytics",
+ "type": "company",
+ "role": "target:E4"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/umbix-dynamics",
+ "type": "company",
+ "role": "target:E4"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/glimow-studio",
+ "type": "company",
+ "role": "target:E2"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/nuvix-systems",
+ "type": "company",
+ "role": "target:E2"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-07-08-tiebot-deployment-strategy-discussion",
+ "type": "meeting",
+ "role": "target:E11"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-12-10-kickoff-for-automated-berth-coordination",
+ "type": "meeting",
+ "role": "target:E11"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-04-13-quarterly-adaptive-tools-strategy-review",
+ "type": "meeting",
+ "role": "target:E11"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-09-16-wildfire-early-warning-system-strategy",
+ "type": "meeting",
+ "role": "target:E11"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-10-01-queue-optimization-strategy-session",
+ "type": "meeting",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-05-16-clause-extraction-algorithm-review",
+ "type": "meeting",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/camera-network-sensitivity-calibration",
+ "type": "note",
+ "role": "target:E3"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/insight-on-sensor-tag-battery-life",
+ "type": "note",
+ "role": "target:E3"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/best-practices-for-dosing-systems",
+ "type": "note",
+ "role": "target:E3"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/interconnection-queue-challenges-overview",
+ "type": "note",
+ "role": "target:E3"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/vendor-contract-compliance-tips",
+ "type": "note",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/chair-utilization-optimization-tips",
+ "type": "note",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/improving-flood-extent-accuracy",
+ "type": "note",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/safety-monitoring-algorithm-tuning",
+ "type": "note",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/grid-battery-dispatch",
+ "type": "concept",
+ "role": "target:E2"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/clause-extraction",
+ "type": "concept",
+ "role": "target:E2"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-06-04-cold-chain-data-integration-strategy",
+ "type": "meeting",
+ "role": "target:E13"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-02-03-optimizing-nutrient-flow-rates",
+ "type": "meeting",
+ "role": "target:E13"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/dynamic-scheduling-model",
+ "type": "concept",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/roof-condition-scoring",
+ "type": "concept",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/autonomous-rebar-tying",
+ "type": "concept",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/berth-allocation-algorithms",
+ "type": "concept",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/mastery-based-learning",
+ "type": "concept",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/integrated-fire-detection",
+ "type": "concept",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/advances-in-post-flood-damage-mapping",
+ "type": "media",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/optimizing-rebar-automation-workflows",
+ "type": "media",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/innovations-in-dockside-scheduling",
+ "type": "media",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/innovations-in-student-mastery-tracking",
+ "type": "media",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/maximizing-district-procurement-efficiency",
+ "type": "writing",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/optimizing-camera-networks-for-fire-detection",
+ "type": "writing",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/optimizing-sensor-deployment-in-cold-logistics",
+ "type": "writing",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/reducing-waste-through-smart-dosing",
+ "type": "writing",
+ "role": "target:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/linnea-marqmoor",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/rune-ulmmoor",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/amadeo-ibbdale",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/tobiah-naskley",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/oriel-zelkdale",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/zosia-jorvley",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/oriel-fennvane",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/dorrit-peltdale",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/eilis-holmstead",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/tobiah-ulmford",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/fiora-velkbrook",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/kestrel-gwilham",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/dorrit-ravnham",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/dorrit-ibbmere",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/bram-holmmoor",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/yorick-talvwick",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/nadezhda-ibbton",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/saskia-silvhollow",
+ "type": "person",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/xanmere-cloud",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/orbdra-networks",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/vexvane-studio",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/pyrora-cloud",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/halora-works",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/dratun-studio",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/nexvane-networks",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/zordra-robotics",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/halow-freight",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/dortun-dynamics",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/vorley-analytics",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/zordra-works",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/tessix-networks",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/lumaly-health",
+ "type": "company",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2025-01-06-crane-telemetry-data-review-session",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-07-02-district-procurement-coordination-session",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-03-08-line-inspection-drone-deployment-planning",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2025-02-24-vaccine-temperature-compliance-review",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2025-07-13-forecasting-yield-accuracy-improvements",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-12-24-battery-degradation-data-review",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2025-01-07-procurement-redlining-workflow-kickoff",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-05-03-kickoff-for-insurance-claim-automation",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-11-22-kickoff-for-roof-analytics-integration",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-03-10-surveywing-data-workflow-review",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-03-23-customs-clearance-workflow-update",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-12-10-teacher-feedback-roundtable-on-dashteach",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2024-09-27-outage-risk-analytics-review",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2023-08-02-next-gen-packaging-materials-discussion",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "meetings/2025-06-04-dispatch-software-feature-planning",
+ "type": "meeting",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/shipment-delay-impact-analysis",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/machine-learning-model-updates",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/degradation-modeling-best-practices",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/improving-clause-extraction-precision",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/reducing-claim-denial-rates",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/catastrophe-response-data-latency",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/container-tracking-system-overview",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/challenges-in-mastery-tracking-implementation",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/vegetation-growth-seasonal-trends",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/training-protocol-for-cold-chain-handlers",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/maintenance-checklist-for-grow-towers",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/dispatch-software-user-feedback",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "notes/dynamic-redlining-benefits",
+ "type": "note",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/redlining-automation",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/multi-channel-recall-outreach",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/flood-extent-mapping",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/aerial-site-mapping",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/teacher-dashboard-analytics",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/temperature-excursion-definition",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/calendar-aging-effects",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/claim-lifecycle-management",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/rapid-disaster-analytics",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/customs-clearance-automation",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/district-procurement-workflow",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/predictive-outage-modeling",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/biopharma-cold-chain-compliance",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/yield-forecast-modeling",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/interconnection-queue-management",
+ "type": "concept",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/drone-mapping-innovations-in-construction",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/reducing-crane-downtime-with-iot",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/optimizing-teacher-dashboards-for-impact",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/advances-in-automated-line-inspections",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/ensuring-vaccine-integrity-in-transit",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/balancing-nutrients-in-vertical-systems",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/revolutionizing-contract-review-processes",
+ "type": "media",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/data-driven-vegetation-management-strategies",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/packaging-innovations-for-vaccine-stability",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/data-driven-yield-forecasting-benefits",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/balancing-longevity-and-dispatch-performance",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/challenges-in-automating-procurement-contracts",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/improving-revenue-through-recall-campaigns",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/leveraging-satellite-data-to-transform-insurance-claims",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "writing/enhancing-safety-with-ai-monitoring",
+ "type": "writing",
+ "role": "distractor:plain"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/niamh-marqley",
+ "type": "person",
+ "role": "founder"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/zosia-brinbrook",
+ "type": "person",
+ "role": "founder"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/marlow-thrumbrook",
+ "type": "person",
+ "role": "founder"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/halvard-talvley",
+ "type": "person",
+ "role": "founder"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/rhosyn-dunkford",
+ "type": "person",
+ "role": "founder"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/gideon-marqvane",
+ "type": "person",
+ "role": "founder"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/camera-network-sensitivity-calibration-lessons-from-the-field",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/camera-network-sensitivity-calibration-lessons-from-the-field-summary",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/camera-network-sensitivity-calibration-lessons-from-the-field",
+ "type": "concept",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/insight-on-sensor-tag-battery-life-lessons-from-the-field",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/insight-on-sensor-tag-battery-life-lessons-from-the-field-summary",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/insight-on-sensor-tag-battery-life-lessons-from-the-field",
+ "type": "concept",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/best-practices-for-dosing-systems-lessons-from-the-field",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/best-practices-for-dosing-systems-lessons-from-the-field-summary",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/best-practices-for-dosing-systems-lessons-from-the-field",
+ "type": "concept",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/interconnection-queue-challenges-overview-lessons-from-the-field",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "media/interconnection-queue-challenges-overview-lessons-from-the-field-summary",
+ "type": "media",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/interconnection-queue-challenges-overview-lessons-from-the-field",
+ "type": "concept",
+ "role": "E3-family"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/tiebot-integration-pilot-overview",
+ "type": "concept",
+ "role": "E11-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/berth-coordination-pilot-overview",
+ "type": "concept",
+ "role": "E11-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/adaptive-integration-pilot-overview",
+ "type": "concept",
+ "role": "E11-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/wildfire-sensor-pilot-overview",
+ "type": "concept",
+ "role": "E11-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-07-15-img-5385.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-01-03-img-6342.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-11-25-img-8418.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-07-22-img-8976.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-06-23-img-2265.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-09-03-img-1181.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-02-23-img-7472.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2025-09-06-img-9172.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2024-11-19-img-7599.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "images/2024-10-15-img-2726.jpg",
+ "type": "image",
+ "role": "E9-image"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/veda-ravnby-1",
+ "type": "person",
+ "role": "E2-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "people/marlow-jorvvane-1",
+ "type": "person",
+ "role": "E2-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/glimow-studio-old",
+ "type": "company",
+ "role": "E2-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "companies/nuvix-systems-old",
+ "type": "company",
+ "role": "E2-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/grid-battery-dispatch-old",
+ "type": "concept",
+ "role": "E2-stub"
+ },
+ {
+ "source": "source-a",
+ "slug": "concepts/clause-extraction-old",
+ "type": "concept",
+ "role": "E2-stub"
+ },
+ {
+ "source": "source-b",
+ "slug": "people/dorrit-lornley",
+ "type": "person",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "people/rhosyn-jorvham",
+ "type": "person",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "people/zephyra-yarlvane",
+ "type": "person",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "meetings/2023-05-16-clause-extraction-algorithm-review",
+ "type": "meeting",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "notes/vendor-contract-compliance-tips",
+ "type": "note",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "notes/chair-utilization-optimization-tips",
+ "type": "concept",
+ "role": "twin-divergent:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "notes/improving-flood-extent-accuracy",
+ "type": "concept",
+ "role": "twin-divergent:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/dynamic-scheduling-model",
+ "type": "concept",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/berth-allocation-algorithms",
+ "type": "concept",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/integrated-fire-detection",
+ "type": "concept",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "media/advances-in-post-flood-damage-mapping",
+ "type": "media",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "media/optimizing-rebar-automation-workflows",
+ "type": "concept",
+ "role": "twin-divergent:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "media/innovations-in-student-mastery-tracking",
+ "type": "media",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "writing/optimizing-sensor-deployment-in-cold-logistics",
+ "type": "writing",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "writing/reducing-waste-through-smart-dosing",
+ "type": "writing",
+ "role": "twin-identical:target"
+ },
+ {
+ "source": "source-b",
+ "slug": "companies/tessik-health",
+ "type": "company",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "companies/zordra-robotics",
+ "type": "company",
+ "role": "twin-identical:distractor"
+ },
+ {
+ "source": "source-b",
+ "slug": "companies/jorley-freight",
+ "type": "company",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "meetings/2024-07-02-district-procurement-coordination-session",
+ "type": "note",
+ "role": "twin-divergent:distractor"
+ },
+ {
+ "source": "source-b",
+ "slug": "meetings/2023-02-06-scaling-multi-tower-operations",
+ "type": "meeting",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "notes/rebar-robot-maintenance-checklist",
+ "type": "note",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "notes/maintenance-checklist-for-grow-towers",
+ "type": "note",
+ "role": "twin-identical:distractor"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/crane-telemetry-integration",
+ "type": "concept",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/vegetation-encroachment-risk",
+ "type": "concept",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/nutrient-dosing-cycles",
+ "type": "concept",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/procurement-review-workflow",
+ "type": "concept",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/ai-hazard-detection",
+ "type": "concept",
+ "role": "distractor:b-only"
+ },
+ {
+ "source": "source-b",
+ "slug": "concepts/district-procurement-workflow",
+ "type": "concept",
+ "role": "twin-identical:distractor"
+ },
+ {
+ "source": "source-b",
+ "slug": "media/reducing-crane-downtime-with-iot",
+ "type": "concept",
+ "role": "twin-divergent:distractor"
+ },
+ {
+ "source": "source-b",
+ "slug": "media/navigating-interconnection-queue-complexities",
+ "type": "media",
+ "role": "distractor:b-only"
+ }
+]
diff --git a/test/fixtures/ranking-shapes/questions.jsonl b/test/fixtures/ranking-shapes/questions.jsonl
new file mode 100644
index 0000000000..9d7b0fc047
--- /dev/null
+++ b/test/fixtures/ranking-shapes/questions.jsonl
@@ -0,0 +1,70 @@
+{"id":"q001","shape":"E2","question":"What does Glimow Studio do?","target":{"source_id":"source-a","slug":"companies/glimow-studio"},"also_ok":[],"related":[{"source_id":"source-a","slug":"companies/glimow-studio-old","role":"stub"}],"notes":"redirect stub companies/glimow-studio-old (has merged_into frontmatter)"}
+{"id":"q002","shape":"E4","question":"API that automates roof condition assessment and scoring to speed up claims processing for property insurance companies","target":{"source_id":"source-a","slug":"companies/nexlet-robotics"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/marlow-thrumbrook","role":"founder"}],"notes":"company; founder page people/marlow-thrumbrook mentions the product heavily"}
+{"id":"q003","shape":"E2","question":"What does Nuvix Systems do?","target":{"source_id":"source-a","slug":"companies/nuvix-systems"},"also_ok":[],"related":[{"source_id":"source-a","slug":"companies/nuvix-systems-old","role":"stub"}],"notes":"redirect stub companies/nuvix-systems-old (body only)"}
+{"id":"q004","shape":"E4","question":"AI-powered platform that automates clause extraction and contract redlining for procurement teams in the manufacturing and retail industry","target":{"source_id":"source-a","slug":"companies/tesstun-works"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/niamh-marqley","role":"founder"}],"notes":"company; founder page people/niamh-marqley mentions the product heavily"}
+{"id":"q005","shape":"E4","question":"autonomous rebar tying system that increases speed and consistency for commercial construction contractors","target":{"source_id":"source-a","slug":"companies/umbaly-cloud"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/halvard-talvley","role":"founder"}],"notes":"company; founder page people/halvard-talvley mentions the product heavily"}
+{"id":"q006","shape":"E4","question":"Adaptive tutoring platform that personalizes learning pathways and tracks student mastery for K-12 public education","target":{"source_id":"source-a","slug":"companies/umbix-dynamics"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/gideon-marqvane","role":"founder"}],"notes":"company; founder page people/gideon-marqvane mentions the product heavily"}
+{"id":"q007","shape":"E4","question":"API that automates insurance claim submissions and provides real-time approval status tracking for dental billing services","target":{"source_id":"source-a","slug":"companies/vorrel-cloud"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/zosia-brinbrook","role":"founder"}],"notes":"company; founder page people/zosia-brinbrook mentions the product heavily"}
+{"id":"q008","shape":"E4","question":"software platform that optimizes vessel docking schedules for maritime terminal operations to improve berth utilization and reduce wait times","target":{"source_id":"source-a","slug":"companies/zorrel-analytics"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/rhosyn-dunkford","role":"founder"}],"notes":"company; founder page people/rhosyn-dunkford mentions the product heavily"}
+{"id":"q009","shape":"E15","question":"How do robotic systems handle binding steel bars on construction sites and what challenges do they face in real-world use?","target":{"source_id":"source-a","slug":"concepts/autonomous-rebar-tying"},"also_ok":[],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q010","shape":"E15","question":"How do robots secure steel reinforcement bars on construction sites and what are the benefits and challenges of using them?","target":{"source_id":"source-a","slug":"concepts/autonomous-rebar-tying"},"also_ok":[],"related":[],"notes":"concept; single source"}
+{"id":"q011","shape":"E1","question":"How can a port efficiently assign incoming ships to dock spaces while minimizing waiting times and handling size and priority constraints?","target":{"source_id":"source-a","slug":"concepts/berth-allocation-algorithms"},"also_ok":[{"source_id":"source-b","slug":"concepts/berth-allocation-algorithms"}],"related":[],"notes":"concept; twin identical in source-b"}
+{"id":"q012","shape":"E1","question":"What methods help schedule incoming ships to dock spaces by considering vessel size, priorities, and equipment needs to reduce waiting times and avoid conflicts?","target":{"source_id":"source-a","slug":"concepts/berth-allocation-algorithms"},"also_ok":[{"source_id":"source-b","slug":"concepts/berth-allocation-algorithms"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q013","shape":"E15","question":"What are common problems faced by automated tools that identify and categorize parts of contracts, especially issues caused by unclear boundaries or unusual language?","target":{"source_id":"source-a","slug":"concepts/clause-extraction"},"also_ok":[],"related":[],"notes":"second paraphrase of a E2 target"}
+{"id":"q014","shape":"E2","question":"Clause Extraction explained","target":{"source_id":"source-a","slug":"concepts/clause-extraction"},"also_ok":[],"related":[{"source_id":"source-a","slug":"concepts/clause-extraction-old","role":"stub"}],"notes":"redirect stub concepts/clause-extraction-old (body only)"}
+{"id":"q015","shape":"E1","question":"How can dental clinics adjust appointments in real time based on patient flow and insurance status to improve chair usage and reduce billing delays?","target":{"source_id":"source-a","slug":"concepts/dynamic-scheduling-model"},"also_ok":[{"source_id":"source-b","slug":"concepts/dynamic-scheduling-model"}],"related":[],"notes":"concept; twin identical in source-b"}
+{"id":"q016","shape":"E15","question":"How does software manage large-scale energy storage systems to balance profit, equipment wear, and supply constraints during fluctuating electricity prices?","target":{"source_id":"source-a","slug":"concepts/grid-battery-dispatch"},"also_ok":[],"related":[],"notes":"second paraphrase of a E2 target"}
+{"id":"q017","shape":"E2","question":"Grid Battery Dispatch explained","target":{"source_id":"source-a","slug":"concepts/grid-battery-dispatch"},"also_ok":[],"related":[{"source_id":"source-a","slug":"concepts/grid-battery-dispatch-old","role":"stub"}],"notes":"redirect stub concepts/grid-battery-dispatch-old (has merged_into frontmatter)"}
+{"id":"q018","shape":"E1","question":"How do utilities combine multiple sensor types to quickly identify wildfires near power lines and reduce outage risks?","target":{"source_id":"source-a","slug":"concepts/integrated-fire-detection"},"also_ok":[{"source_id":"source-b","slug":"concepts/integrated-fire-detection"}],"related":[],"notes":"concept; twin identical in source-b"}
+{"id":"q019","shape":"E15","question":"What is the teaching method where students must fully understand each topic before moving on to the next one, and how does it impact pacing and assessment in classrooms?","target":{"source_id":"source-a","slug":"concepts/mastery-based-learning"},"also_ok":[],"related":[],"notes":"concept; single source"}
+{"id":"q020","shape":"E15","question":"How can satellite images be used to quickly estimate damage severity on building tops after natural disasters for insurance purposes?","target":{"source_id":"source-a","slug":"concepts/roof-condition-scoring"},"also_ok":[],"related":[],"notes":"concept; single source"}
+{"id":"q021","shape":"E15","question":"How can satellite photos help insurers quickly estimate the extent of building top damage after a disaster, including common challenges with image quality and damage detection?","target":{"source_id":"source-a","slug":"concepts/roof-condition-scoring"},"also_ok":[],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q022","shape":"E1","question":"How do frequent satellite images combined with different sensing techniques and AI help detect roof problems and debris after water disasters to speed up repair prioritization?","target":{"source_id":"source-a","slug":"media/advances-in-post-flood-damage-mapping"},"also_ok":[{"source_id":"source-b","slug":"media/advances-in-post-flood-damage-mapping"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q023","shape":"E1","question":"How is new satellite technology combined with AI improving rapid assessment of water-related disaster impacts on buildings and infrastructure?","target":{"source_id":"source-a","slug":"media/advances-in-post-flood-damage-mapping"},"also_ok":[{"source_id":"source-b","slug":"media/advances-in-post-flood-damage-mapping"}],"related":[],"notes":"media; twin identical in source-b"}
+{"id":"q024","shape":"E15","question":"How are advanced AI algorithms improving the assignment of berths at busy ports to handle unpredictable delays and increase efficiency?","target":{"source_id":"source-a","slug":"media/innovations-in-dockside-scheduling"},"also_ok":[],"related":[],"notes":"media; single source"}
+{"id":"q025","shape":"E15","question":"How is AI being used to integrate weather data and equipment status to improve berth assignments during unexpected disruptions at ports?","target":{"source_id":"source-a","slug":"media/innovations-in-dockside-scheduling"},"also_ok":[],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q026","shape":"E1","question":"How are new technologies helping teachers identify and respond to learning challenges in K-12 classrooms in real time?","target":{"source_id":"source-a","slug":"media/innovations-in-student-mastery-tracking"},"also_ok":[{"source_id":"source-b","slug":"media/innovations-in-student-mastery-tracking"}],"related":[],"notes":"media; twin identical in source-b"}
+{"id":"q027","shape":"E1","question":"How are engineers using multiple sensors and AI to improve robotic steel tying and safety on uneven construction sites?","target":{"source_id":"source-a","slug":"media/optimizing-rebar-automation-workflows"},"also_ok":[{"source_id":"source-b","slug":"media/optimizing-rebar-automation-workflows"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q028","shape":"E1","question":"How are robotics engineers addressing challenges in robotic steel tying on construction sites with irregular layouts and safety concerns?","target":{"source_id":"source-a","slug":"media/optimizing-rebar-automation-workflows"},"also_ok":[{"source_id":"source-b","slug":"media/optimizing-rebar-automation-workflows"}],"related":[],"notes":"media; twin divergent in source-b"}
+{"id":"q029","shape":"E13","question":"What is the planned timeline to complete the comprehensive testing of the Hydra-9 towers starting in early July?","target":{"source_id":"source-a","slug":"meetings/2023-02-03-optimizing-nutrient-flow-rates"},"also_ok":[],"related":[],"notes":"very long page (59540 chars)"}
+{"id":"q030","shape":"E1","question":"How can a machine learning system improve identifying specific sections like indemnity and confidentiality in contract documents, and what strategies help handle complex legal language?","target":{"source_id":"source-a","slug":"meetings/2023-05-16-clause-extraction-algorithm-review"},"also_ok":[{"source_id":"source-b","slug":"meetings/2023-05-16-clause-extraction-algorithm-review"}],"related":[],"notes":"meeting; twin identical in source-b"}
+{"id":"q031","shape":"E1","question":"What improvements are planned to help a machine learning system better recognize indemnity and confidentiality parts in contracts, especially dealing with tricky legal wording and ensuring uncertain cases get manual checks?","target":{"source_id":"source-a","slug":"meetings/2023-05-16-clause-extraction-algorithm-review"},"also_ok":[{"source_id":"source-b","slug":"meetings/2023-05-16-clause-extraction-algorithm-review"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q032","shape":"E11","question":"when did the Wildfire Sensor Deployment Team start the wildfire sensor pilot","target":{"source_id":"source-a","slug":"meetings/2023-09-16-wildfire-early-warning-system-strategy"},"also_ok":[],"related":[{"source_id":"source-a","slug":"concepts/wildfire-sensor-pilot-overview","role":"undated-stub"}],"notes":"dated meeting 2023-09-16; undated concept stub concepts/wildfire-sensor-pilot-overview"}
+{"id":"q033","shape":"E11","question":"when did the Automated Berth Coordination team start the berth coordination pilot","target":{"source_id":"source-a","slug":"meetings/2023-12-10-kickoff-for-automated-berth-coordination"},"also_ok":[],"related":[{"source_id":"source-a","slug":"concepts/berth-coordination-pilot-overview","role":"undated-stub"}],"notes":"dated meeting 2023-12-10; undated concept stub concepts/berth-coordination-pilot-overview"}
+{"id":"q034","shape":"E11","question":"when did the adaptive integration team start the adaptive integration pilot","target":{"source_id":"source-a","slug":"meetings/2024-04-13-quarterly-adaptive-tools-strategy-review"},"also_ok":[],"related":[{"source_id":"source-a","slug":"concepts/adaptive-integration-pilot-overview","role":"undated-stub"}],"notes":"dated meeting 2024-04-13; undated concept stub concepts/adaptive-integration-pilot-overview"}
+{"id":"q035","shape":"E13","question":"What is the deadline for updating the regulatory documentation and internal SOPs to meet PharmaCompliance 4.1 requirements?","target":{"source_id":"source-a","slug":"meetings/2024-06-04-cold-chain-data-integration-strategy"},"also_ok":[],"related":[],"notes":"very long page (60256 chars)"}
+{"id":"q036","shape":"E11","question":"when did the construction automation team start the TieBot integration pilot","target":{"source_id":"source-a","slug":"meetings/2024-07-08-tiebot-deployment-strategy-discussion"},"also_ok":[],"related":[{"source_id":"source-a","slug":"concepts/tiebot-integration-pilot-overview","role":"undated-stub"}],"notes":"dated meeting 2024-07-08; undated concept stub concepts/tiebot-integration-pilot-overview"}
+{"id":"q037","shape":"E15","question":"When will the weekly safety performance reviews for the autonomous rebar tying system begin?","target":{"source_id":"source-a","slug":"meetings/2024-07-08-tiebot-deployment-strategy-discussion"},"also_ok":[],"related":[],"notes":"second paraphrase of a E11 target"}
+{"id":"q038","shape":"E15","question":"How are new methods being tested to prioritize battery storage projects and reduce delays in the Northridge grid interconnection process?","target":{"source_id":"source-a","slug":"meetings/2024-10-01-queue-optimization-strategy-session"},"also_ok":[],"related":[],"notes":"meeting; single source"}
+{"id":"q039","shape":"E15","question":"How can predictive nutrient adjustments help manage the 5-minute delay in pH and EC sensor readings during hydroponic feeding to improve nutrient stability?","target":{"source_id":"source-a","slug":"notes/best-practices-for-dosing-systems"},"also_ok":[],"related":[],"notes":"second paraphrase of a E3 target"}
+{"id":"q040","shape":"E3","question":"What are the recommended best practices for calibrating and optimizing nutrient dosing systems to ensure consistent flow rates and nutrient concentrations while accounting for response lags in pH and EC measurements?","target":{"source_id":"source-a","slug":"notes/best-practices-for-dosing-systems"},"also_ok":[],"related":[{"source_id":"source-a","slug":"media/best-practices-for-dosing-systems-lessons-from-the-field","role":"family"},{"source_id":"source-a","slug":"media/best-practices-for-dosing-systems-lessons-from-the-field-summary","role":"family"},{"source_id":"source-a","slug":"concepts/best-practices-for-dosing-systems-lessons-from-the-field","role":"family"}],"notes":"family of 3 derived pages on the same subject"}
+{"id":"q041","shape":"E15","question":"How can adjusting detection thresholds based on weather data like dust and fog reduce false alarms in a visual monitoring system?","target":{"source_id":"source-a","slug":"notes/camera-network-sensitivity-calibration"},"also_ok":[],"related":[],"notes":"second paraphrase of a E3 target"}
+{"id":"q042","shape":"E3","question":"What conclusions and recommendations does the team note provide for improving camera network sensitivity calibration under environmental noise conditions such as dust storms and fog?","target":{"source_id":"source-a","slug":"notes/camera-network-sensitivity-calibration"},"also_ok":[],"related":[{"source_id":"source-a","slug":"media/camera-network-sensitivity-calibration-lessons-from-the-field","role":"family"},{"source_id":"source-a","slug":"media/camera-network-sensitivity-calibration-lessons-from-the-field-summary","role":"family"},{"source_id":"source-a","slug":"concepts/camera-network-sensitivity-calibration-lessons-from-the-field","role":"family"}],"notes":"family of 3 derived pages on the same subject"}
+{"id":"q043","shape":"E1","question":"How can a dental clinic improve appointment scheduling efficiency and reduce patient no-shows while managing different clinic locations' demands?","target":{"source_id":"source-a","slug":"notes/chair-utilization-optimization-tips"},"also_ok":[{"source_id":"source-b","slug":"notes/chair-utilization-optimization-tips"}],"related":[],"notes":"note; twin divergent in source-b"}
+{"id":"q044","shape":"E1","question":"What strategies can a dental practice use to reduce patient no-shows and improve appointment scheduling across multiple clinic locations?","target":{"source_id":"source-a","slug":"notes/chair-utilization-optimization-tips"},"also_ok":[{"source_id":"source-b","slug":"notes/chair-utilization-optimization-tips"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q045","shape":"E1","question":"How can adjusting water index thresholds and adding spectral bands help reduce false positives in city areas with reflective surfaces during minor inundation events?","target":{"source_id":"source-a","slug":"notes/improving-flood-extent-accuracy"},"also_ok":[{"source_id":"source-b","slug":"notes/improving-flood-extent-accuracy"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q046","shape":"E1","question":"How can satellite models reduce false alarms in urban water detection while balancing precision and recall during minor city-wide inundation events?","target":{"source_id":"source-a","slug":"notes/improving-flood-extent-accuracy"},"also_ok":[{"source_id":"source-b","slug":"notes/improving-flood-extent-accuracy"}],"related":[],"notes":"note; twin divergent in source-b"}
+{"id":"q047","shape":"E15","question":"What strategies and trade-offs are being considered to extend operation duration of temperature monitors for long vaccine shipments without compromising data accuracy or increasing shipment weight excessively?","target":{"source_id":"source-a","slug":"notes/insight-on-sensor-tag-battery-life"},"also_ok":[],"related":[],"notes":"second paraphrase of a E3 target"}
+{"id":"q048","shape":"E3","question":"What are the key conclusions and recommendations from the team’s analysis on extending Sensor Tag battery life for multi-day ArcticChill vaccine shipments without compromising data reliability?","target":{"source_id":"source-a","slug":"notes/insight-on-sensor-tag-battery-life"},"also_ok":[],"related":[{"source_id":"source-a","slug":"media/insight-on-sensor-tag-battery-life-lessons-from-the-field","role":"family"},{"source_id":"source-a","slug":"media/insight-on-sensor-tag-battery-life-lessons-from-the-field-summary","role":"family"},{"source_id":"source-a","slug":"concepts/insight-on-sensor-tag-battery-life-lessons-from-the-field","role":"family"}],"notes":"family of 3 derived pages on the same subject"}
+{"id":"q049","shape":"E3","question":"What are the main challenges causing delays in the interconnection queue for battery storage projects, and what recommendations does the team note provide to address these issues?","target":{"source_id":"source-a","slug":"notes/interconnection-queue-challenges-overview"},"also_ok":[],"related":[{"source_id":"source-a","slug":"media/interconnection-queue-challenges-overview-lessons-from-the-field","role":"family"},{"source_id":"source-a","slug":"media/interconnection-queue-challenges-overview-lessons-from-the-field-summary","role":"family"},{"source_id":"source-a","slug":"concepts/interconnection-queue-challenges-overview-lessons-from-the-field","role":"family"}],"notes":"family of 3 derived pages on the same subject"}
+{"id":"q050","shape":"E15","question":"How can AI systems be improved to better detect construction site hazards like falls and debris in low-light conditions while maintaining real-time processing speeds?","target":{"source_id":"source-a","slug":"notes/safety-monitoring-algorithm-tuning"},"also_ok":[],"related":[],"notes":"note; single source"}
+{"id":"q051","shape":"E1","question":"How can companies improve automated review tools to better detect non-standard clause issues and policy updates in procurement agreements?","target":{"source_id":"source-a","slug":"notes/vendor-contract-compliance-tips"},"also_ok":[{"source_id":"source-b","slug":"notes/vendor-contract-compliance-tips"}],"related":[],"notes":"note; twin identical in source-b"}
+{"id":"q052","shape":"E1","question":"Who is the robotics engineer behind Umbaly Cloud's autonomous rebar tying systems and their advanced control platforms for construction site automation?","target":{"source_id":"source-a","slug":"people/dorrit-lornley"},"also_ok":[{"source_id":"source-b","slug":"people/dorrit-lornley"}],"related":[],"notes":"person; twin identical in source-b"}
+{"id":"q053","shape":"E9","question":"Lisbet Brinhollow","target":{"source_id":"source-a","slug":"people/lisbet-brinhollow"},"also_ok":[],"related":[{"source_id":"source-a","slug":"images/2025-09-03-img-1181.jpg","role":"image"},{"source_id":"source-a","slug":"images/2025-02-23-img-7472.jpg","role":"image"}],"notes":"name query; each OCR image page shares exactly one query word"}
+{"id":"q054","shape":"E15","question":"Which data scientist developed a satellite-based system that flags damaged roofs within a day after storms to help insurance claims teams?","target":{"source_id":"source-a","slug":"people/marlow-jorvvane"},"also_ok":[],"related":[],"notes":"second paraphrase of a E2 target"}
+{"id":"q055","shape":"E2","question":"Who is Marlow Jorvvane?","target":{"source_id":"source-a","slug":"people/marlow-jorvvane"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/marlow-jorvvane-1","role":"stub"}],"notes":"redirect stub people/marlow-jorvvane-1 (body only)"}
+{"id":"q056","shape":"E15","question":"Who is the expert known for integrating crane telemetry with berth scheduling software to improve port container loading efficiency?","target":{"source_id":"source-a","slug":"people/odalys-naskdale"},"also_ok":[],"related":[],"notes":"person; single source"}
+{"id":"q057","shape":"E1","question":"Who is responsible for leading the adaptive learning rollout and mastery-based curriculum design at Umbix Dynamics?","target":{"source_id":"source-a","slug":"people/rhosyn-jorvham"},"also_ok":[{"source_id":"source-b","slug":"people/rhosyn-jorvham"}],"related":[],"notes":"person; twin identical in source-b"}
+{"id":"q058","shape":"E9","question":"Saskia Fennmoor","target":{"source_id":"source-a","slug":"people/saskia-fennmoor"},"also_ok":[],"related":[{"source_id":"source-a","slug":"images/2025-07-15-img-5385.jpg","role":"image"},{"source_id":"source-a","slug":"images/2025-01-03-img-6342.jpg","role":"image"},{"source_id":"source-a","slug":"images/2025-11-25-img-8418.jpg","role":"image"}],"notes":"name query; each OCR image page shares exactly one query word"}
+{"id":"q059","shape":"E9","question":"Torben Fennmere","target":{"source_id":"source-a","slug":"people/torben-fennmere"},"also_ok":[],"related":[{"source_id":"source-a","slug":"images/2025-09-06-img-9172.jpg","role":"image"},{"source_id":"source-a","slug":"images/2024-11-19-img-7599.jpg","role":"image"},{"source_id":"source-a","slug":"images/2024-10-15-img-2726.jpg","role":"image"}],"notes":"name query; each OCR image page shares exactly one query word"}
+{"id":"q060","shape":"E15","question":"How does the scheduling coordinator at Vorrel Cloud improve dental clinic chair utilization and coordinate with insurance claims to reduce billing delays?","target":{"source_id":"source-a","slug":"people/veda-ravnby"},"also_ok":[],"related":[],"notes":"second paraphrase of a E2 target"}
+{"id":"q061","shape":"E2","question":"Who is Veda Ravnby?","target":{"source_id":"source-a","slug":"people/veda-ravnby"},"also_ok":[],"related":[{"source_id":"source-a","slug":"people/veda-ravnby-1","role":"stub"}],"notes":"redirect stub people/veda-ravnby-1 (has merged_into frontmatter)"}
+{"id":"q062","shape":"E9","question":"Ysolde Fennford","target":{"source_id":"source-a","slug":"people/ysolde-fennford"},"also_ok":[],"related":[{"source_id":"source-a","slug":"images/2025-07-22-img-8976.jpg","role":"image"},{"source_id":"source-a","slug":"images/2025-06-23-img-2265.jpg","role":"image"}],"notes":"name query; each OCR image page shares exactly one query word"}
+{"id":"q063","shape":"E1","question":"Who is the expert specializing in using AI and vegetation monitoring to reduce electrical line outages and wildfire risks at Glimow Studio?","target":{"source_id":"source-a","slug":"people/zephyra-yarlvane"},"also_ok":[{"source_id":"source-b","slug":"people/zephyra-yarlvane"}],"related":[],"notes":"person; twin identical in source-b"}
+{"id":"q064","shape":"E15","question":"How can a school system streamline the process of adopting adaptive learning technologies to improve student mastery outcomes?","target":{"source_id":"source-a","slug":"writing/maximizing-district-procurement-efficiency"},"also_ok":[],"related":[],"notes":"writing; single source"}
+{"id":"q065","shape":"E15","question":"What are effective steps a school system can take to set contract terms with adaptive learning vendors that ensure accountability and allow flexibility over multiple years?","target":{"source_id":"source-a","slug":"writing/maximizing-district-procurement-efficiency"},"also_ok":[],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q066","shape":"E15","question":"How can utilities reduce false alarms from visual sensors monitoring wildfires near power lines while maintaining early warning capabilities?","target":{"source_id":"source-a","slug":"writing/optimizing-camera-networks-for-fire-detection"},"also_ok":[],"related":[],"notes":"writing; single source"}
+{"id":"q067","shape":"E1","question":"How can pharmaceutical shipments with temperature-sensitive products be monitored effectively to prevent damage during multi-country transport?","target":{"source_id":"source-a","slug":"writing/optimizing-sensor-deployment-in-cold-logistics"},"also_ok":[{"source_id":"source-b","slug":"writing/optimizing-sensor-deployment-in-cold-logistics"}],"related":[],"notes":"writing; twin identical in source-b"}
+{"id":"q068","shape":"E1","question":"How can shipment monitoring be tailored at different packaging levels to detect temperature issues in multi-country pharmaceutical transport?","target":{"source_id":"source-a","slug":"writing/optimizing-sensor-deployment-in-cold-logistics"},"also_ok":[{"source_id":"source-b","slug":"writing/optimizing-sensor-deployment-in-cold-logistics"}],"related":[],"notes":"second paraphrase of a plain target"}
+{"id":"q069","shape":"E1","question":"How can indoor vertical farms use sensors and adaptive algorithms to optimize nutrient delivery and improve sustainability?","target":{"source_id":"source-a","slug":"writing/reducing-waste-through-smart-dosing"},"also_ok":[{"source_id":"source-b","slug":"writing/reducing-waste-through-smart-dosing"}],"related":[],"notes":"writing; twin identical in source-b"}
+{"id":"q070","shape":"E1","question":"How can vertical farms adjust nutrient delivery at different heights using sensors to improve efficiency and environmental impact?","target":{"source_id":"source-a","slug":"writing/reducing-waste-through-smart-dosing"},"also_ok":[{"source_id":"source-b","slug":"writing/reducing-waste-through-smart-dosing"}],"related":[],"notes":"second paraphrase of a plain target"}
diff --git a/test/fixtures/ranking-shapes/source-a/companies/dortun-dynamics.md b/test/fixtures/ranking-shapes/source-a/companies/dortun-dynamics.md
new file mode 100644
index 0000000000..c49b51465b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/dortun-dynamics.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Dortun Dynamics"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Dortun Dynamics
+
+Dortun Dynamics specializes in satellite imagery analytics focused on insurance and emergency response sectors. Their flagship product, CatastroMap, delivers rapid damage detection following natural disasters by analyzing satellite data to identify flood extents and roof damage. This enables insurers to expedite claims processing and emergency responders to prioritize resource allocation effectively.
+
+Currently, CatastroMap is integrated into 15 major insurer claims platforms, achieving an 85% accuracy rate in damage alerts during recent hurricane and flood events. Dortun Dynamics has secured $12 million in Series A funding led by NovaTech Ventures, positioning them for scaling operations and expanding into earthquake response analytics.
+
+The core team combines expertise in geospatial data science, insurance risk modeling, and software engineering, with CTO Halvane Solano and CEO Dramere Dorow at the helm. Competitors include ParallaxVision and TerraShield Analytics, both offering similar satellite-based risk assessments.
+
+Open risks involve data latency during high cloud coverage events and ongoing verification of damage classifications in complex urban environments. The team is actively developing multi-modal sensor fusion to mitigate these challenges.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/dratun-studio.md b/test/fixtures/ranking-shapes/source-a/companies/dratun-studio.md
new file mode 100644
index 0000000000..b6dae403a5
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/dratun-studio.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Dratun Studio"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Dratun Studio
+
+Dratun Studio is a specialized provider of advanced insulated packaging solutions designed for the pharmaceutical cold-chain sector. Our flagship product, FrostGuard, ensures reliable maintenance of subzero environments during the shipment of temperature-sensitive pharmaceuticals such as vaccines and biologics. By combining proprietary multi-layer insulation materials with integrated phase-change technology, FrostGuard reduces temperature excursions significantly, preserving drug efficacy throughout transit.
+
+Our primary customers are pharmaceutical manufacturers, contract logistics providers, and healthcare distributors engaged in cold-chain logistics. In recent pilot trials with two mid-size vaccine manufacturers, FrostGuard packaging reduced temperature excursions by 40%, leading to fewer product rejections and improved supply chain reliability.
+
+Founded in 2022 and based in Northbridge, Dratun Studio completed a $3.5 million seed round in Q4 2023 led by Verdant Ventures and Arctic Horizon Capital. With a core team of 12 specialists in materials science, thermal engineering, and cold-chain operations, we are expanding manufacturing partnerships to scale production in 2024.
+
+Key competitors include CryoPack Solutions and PolarVault Systems, who offer standard insulated boxes lacking FrostGuard’s integrated phase-change layers. Major risks involve raw material price volatility and evolving cold-chain regulatory standards, which we monitor closely to adapt product design and ensure compliance.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/glimow-studio-old.md b/test/fixtures/ranking-shapes/source-a/companies/glimow-studio-old.md
new file mode 100644
index 0000000000..ddaaa5c550
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/glimow-studio-old.md
@@ -0,0 +1,9 @@
+---
+type: "company"
+title: "Glimow Studio"
+merged_into: "companies/glimow-studio"
+---
+
+# Glimow Studio
+
+This page has been merged into [[companies/glimow-studio]]
diff --git a/test/fixtures/ranking-shapes/source-a/companies/glimow-studio.md b/test/fixtures/ranking-shapes/source-a/companies/glimow-studio.md
new file mode 100644
index 0000000000..c558d83bb2
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/glimow-studio.md
@@ -0,0 +1,45 @@
+---
+type: "company"
+title: "Glimow Studio"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Glimow Studio
+
+Glimow Studio
+
+Glimow Studio develops FlameSight, an AI-driven camera network designed to detect wildfire ignition points in real time. The product integrates with existing utility vegetation management systems to provide early alerts on potential fire outbreaks near power lines and critical infrastructure.
+
+Product Overview
+
+FlameSight combines high-resolution thermal and optical cameras with advanced machine learning algorithms to monitor fire-prone areas continuously. Key features include:
+
+- Real-time detection of smoke plumes and heat signatures
+- Automated alerts sent directly to utility control centers
+- Integration with outage risk assessment tools
+- Adaptive learning to reduce false positives in diverse environmental conditions
+
+Customers and Use Cases
+
+FlameSight primarily serves utility companies responsible for vegetation management along transmission and distribution lines. Current deployments focus on regions with intense wildfire risk during dry seasons. Notable customers include the Pacific Northwest Electric Cooperative and Central Ridge Power Authority, which use FlameSight to prioritize line inspections and expedite outage response.
+
+Company Stage and Traction
+
+Founded in 2021, Glimow Studio has raised $7.5 million in seed and Series A funding led by Horizon Ventures and Greenline Capital. FlameSight is deployed across 12 regional power grids, collectively covering over 150,000 square kilometers. Early adopters report a 40% reduction in wildfire response times, leading to fewer outages and lower firefighting costs.
+
+Team
+
+The founding team includes CEO Dana Ryu, formerly a wildfire risk analyst; CTO Victor Salinas, a computer vision expert; and Chief Product Officer Leila Kim, specializing in utility software integrations. The company employs 28 engineers and data scientists based in Boulder, Colorado.
+
+Competitive Landscape
+
+Key competitors in the wildfire detection space include EmberGuard Systems, FireNet Analytics, and PyraVision Technologies. While many competitors focus on satellite or drone-based detection, FlameSight’s fixed camera network offers continuous, localized monitoring with superior real-time responsiveness.
+
+Open Risks
+
+- Environmental variability causing occasional false alarms
+- Dependence on utility customers’ willingness to integrate new technologies
+- Scalability challenges in deploying cameras over extremely remote terrain
+- Potential regulatory changes affecting camera surveillance deployments
+
+Glimow Studio continues to refine FlameSight’s AI models and expand its network partnerships to address these risks and strengthen its market position.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/halora-works.md b/test/fixtures/ranking-shapes/source-a/companies/halora-works.md
new file mode 100644
index 0000000000..f7ef420615
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/halora-works.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Halora Works"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Halora Works
+
+Halora Works develops BranchWatch, an automated drone system designed for electric grid maintenance firms to streamline overhead line inspections. BranchWatch combines high-resolution imaging with advanced vegetation encroachment analytics to identify outage risks posed by overgrown trees and foliage near power lines.
+
+In 2023, Halora Works completed over 15,000 successful line inspections across three regional utility providers, reducing manual survey times by 60%. The company recently secured $8 million in Series A funding led by Riverbank Ventures to expand operational capacity and enhance AI models.
+
+The core team includes CEO Xanrel Corbett, CTO Rajiv Menon, and Head of Field Ops Jortun Suarez, with expertise in robotics, geospatial analytics, and utility workflows. Main competitors are GridScope Drones and VerdantEye Tech, both focused on aerial inspection but lacking BranchWatch’s integrated vegetation risk scoring.
+
+Open risks include regulatory approvals for drone flights in new states and ensuring data privacy compliance with evolving utility standards.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/halow-freight.md b/test/fixtures/ranking-shapes/source-a/companies/halow-freight.md
new file mode 100644
index 0000000000..f22ac3b3db
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/halow-freight.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Halow Freight"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Halow Freight
+
+Halow Freight specializes in RecallSync, a dental clinic scheduling and billing tool aimed at optimizing chair utilization and insurance claim management. RecallSync seamlessly integrates recall campaign messaging across email, SMS, and phone channels, enhancing patient re-engagement for dental marketing solutions providers.
+
+Our primary customers are dental marketing agencies seeking to boost patient recall rates and streamline communication workflows. In recent beta testing with select clinics, RecallSync achieved a 30% higher patient response rate compared to traditional outreach methods, demonstrating clear efficacy.
+
+Founded eighteen months ago, Halow Freight completed a $2.5 million seed round led by Apex Ventures Dental Fund, fueling product development and market expansion. Our team includes dental industry veterans, software engineers, and data analysts focused on healthcare compliance and user experience.
+
+Key competitors include OrthoReach and SmilePulse, which offer partial communication tools but lack RecallSync’s multi-channel integration and analytics depth. Open risks involve navigating complex insurance claim regulations and scaling customer support as we grow.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/lumaly-health.md b/test/fixtures/ranking-shapes/source-a/companies/lumaly-health.md
new file mode 100644
index 0000000000..367217eda0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/lumaly-health.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Lumaly Health"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Lumaly Health
+
+Lumaly Health develops OutageGuard, a predictive analytics platform designed to forecast outage risks caused by near-line vegetation for utility companies. By integrating data from camera networks and line inspections, OutageGuard provides actionable insights to prevent wildfire-related outages and improve vegetation management strategies.
+
+Their primary customers are electric utilities focused on outage prevention and wildfire risk mitigation. In pilot deployments with three mid-sized utilities, OutageGuard improved outage prediction accuracy by 25%, reducing unnecessary line inspections by 15%.
+
+Founded in 2021, Lumaly Health has raised $8 million in seed funding led by GreenGrid Ventures. The core team includes experts in machine learning, forestry, and utility operations. Competitors include EmberSight Analytics and Fireline Predict.
+
+Open risks involve data integration challenges with legacy utility systems and scaling the platform across diverse geographic regions.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/nexlet-robotics.md b/test/fixtures/ranking-shapes/source-a/companies/nexlet-robotics.md
new file mode 100644
index 0000000000..c910459b2c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/nexlet-robotics.md
@@ -0,0 +1,19 @@
+---
+type: "company"
+title: "Nexlet Robotics"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Nexlet Robotics
+
+Nexlet Robotics specializes in advanced satellite imagery analytics tailored to the property insurance industry. Their flagship product, RoofSight, leverages AI-driven image processing to automate the assessment of roof conditions. This enables insurers to accelerate claims processing by quickly identifying damages such as wear, weather impact, or structural compromise from high-resolution satellite data, reducing the need for costly and time-consuming physical inspections.
+
+RoofSight primarily serves the property insurance sector, focusing on regional and national insurers managing large property portfolios. As of early 2024, Nexlet Robotics has onboarded over 50 regional insurance firms across North America and Europe, collectively covering approximately 3 million residential and commercial properties. Customers report up to a 40% reduction in claims processing time and a 25% decrease in adjustment costs since integrating RoofSight into their workflows.
+
+Founded in 2020, Nexlet Robotics secured a $15 million Series A funding round in Q3 2023, led by Orion Ventures and supported by UrbanTech Capital. The company is currently scaling its engineering team of 30, headquartered in the tech hub of Newhaven City. The core team combines expertise in remote sensing, AI, and insurance operations, with the CTO having previously developed satellite analytics tools for agricultural monitoring.
+
+Key competitors include Stratify Analytics, GeoClaim Insights, and Veritas Imagery Solutions, each offering varying degrees of satellite-based claims support. Nexlet Robotics differentiates itself with proprietary roof-specific scoring algorithms and a user-friendly claims integration platform.
+
+Open risks include satellite data availability during severe weather events, potential regulatory changes affecting remote property assessment, and reliance on third-party satellite providers which could impact data latency or coverage. The company is actively investing in multi-source data fusion and regulatory compliance initiatives to mitigate these risks.
+
+Founder: [[people/marlow-thrumbrook]].
diff --git a/test/fixtures/ranking-shapes/source-a/companies/nexvane-networks.md b/test/fixtures/ranking-shapes/source-a/companies/nexvane-networks.md
new file mode 100644
index 0000000000..bcf97d1950
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/nexvane-networks.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Nexvane Networks"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Nexvane Networks
+
+Nexvane Networks develops PhytaTrack, an innovative platform combining environmental sensors and AI algorithms to optimize nutrient dosing in indoor agriculture settings. By continuously monitoring variables like humidity, CO2, and nutrient levels, PhytaTrack dynamically adjusts feed schedules to maximize plant health and yield.
+
+PhytaTrack primarily serves indoor agriculture startups focusing on vertical farming and grow towers. Since its 2022 launch, Nexvane Networks has successfully deployed PhytaTrack in 15 pilot facilities across the Uplands and Grove City regions. Early results show an average 10% increase in crop density and a 7% reduction in nutrient waste.
+
+The team is led by CTO Halvane Solen, with expertise in agritech AI, and CEO Nexmere Keats, formerly a supply chain strategist. Nexvane has raised $4.5M in seed funding from the GreenSprout Ventures fund.
+
+Key competitors include VertiDose Labs and AeroNutrient Systems. Open risks involve sensor calibration challenges and scaling AI models to diverse crop types.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/nuvix-systems-old.md b/test/fixtures/ranking-shapes/source-a/companies/nuvix-systems-old.md
new file mode 100644
index 0000000000..7ae82508af
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/nuvix-systems-old.md
@@ -0,0 +1,8 @@
+---
+type: "company"
+title: "Nuvix Systems"
+---
+
+# Nuvix Systems
+
+This page has been merged into [[companies/nuvix-systems]]
diff --git a/test/fixtures/ranking-shapes/source-a/companies/nuvix-systems.md b/test/fixtures/ranking-shapes/source-a/companies/nuvix-systems.md
new file mode 100644
index 0000000000..5d831d9394
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/nuvix-systems.md
@@ -0,0 +1,30 @@
+---
+type: "company"
+title: "Nuvix Systems"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Nuvix Systems
+
+Nuvix Systems specializes in advanced temperature-controlled logistics solutions tailored for the cold-chain pharmaceutical sector. Their flagship product, ThermaTrack, is a state-of-the-art sensor tag that provides real-time temperature monitoring for vaccine shipments, ensuring compliance with stringent regulatory standards and safeguarding product integrity throughout transit.
+
+**Product Overview**
+ThermaTrack tags are compact, durable, and equipped with wireless connectivity, allowing continuous temperature tracking across multiple transport modes. The system integrates with customer dashboards via Nuvix’s proprietary cloud software, offering alerts, detailed analytics, and shipment audit trails. This enables biopharmaceutical logistics providers to proactively manage risks associated with temperature excursions, reducing spoilage and improving supply chain transparency.
+
+**Customer Base**
+Nuvix primarily serves biopharma logistics companies managing vaccine distribution networks globally. Key clients include specialized vaccine couriers and large-scale distribution centers that handle temperature-sensitive pharmaceuticals. The product is optimized for high-value shipments requiring stringent cold chain integrity.
+
+**Traction & Funding**
+Since its 2021 launch, ThermaTrack has been deployed in over 150,000 vaccine shipments worldwide, earning strong endorsements from regional cold-chain operators in North America, Europe, and Asia-Pacific. The company recently closed a $12 million Series A round led by Frostbridge Ventures in Q4 2023, aimed at expanding manufacturing capacity and developing next-generation sensor technology.
+
+**Team**
+Nuvix is led by CEO Dr. Brivane Mirov, a logistics technology veteran with 15 years in pharmaceutical cold chain innovation. The engineering team of 25 includes specialists in IoT sensor design, cloud software, and data analytics.
+
+**Competitors**
+Primary competitors include CryoSense Solutions, PolarTrack Technologies, and TempSure Logistics, each offering varying degrees of temperature monitoring but with less integrated software ecosystems.
+
+**Open Risks**
+- Sensor hardware reliability under extreme conditions requires ongoing validation.
+- Dependence on regional telecom infrastructure can impact real-time data transmission in remote areas.
+- Increasing competition may pressure pricing and market share.
+- Regulatory changes in data privacy and cold chain compliance may necessitate rapid product adaptations.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/orbdra-networks.md b/test/fixtures/ranking-shapes/source-a/companies/orbdra-networks.md
new file mode 100644
index 0000000000..253e05f244
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/orbdra-networks.md
@@ -0,0 +1,17 @@
+---
+type: "company"
+title: "Orbdra Networks"
+tags: ["construction-site-robotics"]
+---
+
+# Orbdra Networks
+
+Orbdra Networks develops SurveyWing, an advanced drone survey platform designed specifically for civil engineering firms operating in construction site robotics. SurveyWing captures and processes aerial imagery to generate real-time 3D maps of construction sites, enabling builders to monitor progress, validate site plans, and optimize resource allocation efficiently.
+
+SurveyWing’s key features include automated flight paths tailored for rebar tying verification, high-resolution orthomosaic generation, and seamless integration with existing project management software. This facilitates enhanced safety monitoring and reduces the need for manual site inspections.
+
+Orbdra Networks completed over 450 aerial scans last quarter across multiple infrastructure projects, demonstrating strong early traction. The company recently closed a $6.5M Series A funding round led by Titan Ventures, fueling product development and market expansion.
+
+The founding team combines expertise in robotics (led by CTO Dr. Lila Glimtun), drone systems (headed by COO Marcus Dorow), and civil engineering domain knowledge. Main competitors include SkyScape Robotics and BuildSight AI, both also targeting construction survey automation.
+
+Open risks involve regulatory challenges with drone operations in urban zones, potential hardware integration issues, and the need to scale data processing infrastructure as client demand grows.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/pyrora-cloud.md b/test/fixtures/ranking-shapes/source-a/companies/pyrora-cloud.md
new file mode 100644
index 0000000000..48d236a536
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/pyrora-cloud.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Pyrora Cloud"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Pyrora Cloud
+
+Pyrora Cloud develops adaptive tutoring solutions tailored for K-12 private and charter schools, focusing on mastery tracking and real-time teacher support. Its flagship product, DashTeach, delivers a dynamic teacher dashboard that provides actionable insights into student progress, enabling educators to personalize instruction and enhance learning outcomes.
+
+DashTeach integrates directly with district LMS platforms, currently embedded in 18 district systems covering over 25,000 educators nationwide. This integration facilitates seamless data flow and real-time updating, allowing teachers to monitor mastery levels across subjects and intervene promptly where needed. The platform supports both individual student analysis and class-wide trend identification, empowering data-driven instructional decisions.
+
+Founded in 2021, Pyrora Cloud has completed a $7.5M Series A round led by EdVantage Capital, fueling product development and district outreach. The core team includes CEO Dr. Xanrel Cortez, CTO Arjun Dorow, and Head of Education Partnerships Kelmere Dorova, all with deep experience in edtech and K-12 pedagogy.
+
+Key competitors include MasteryMap, ClassPulse, and InsightEd, each offering varying dashboard features and LMS integrations. Open risks involve evolving district procurement requirements, the challenge of scaling personalized insights across diverse curricula, and the need to maintain data privacy compliance amid expanding user bases.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/tessix-networks.md b/test/fixtures/ranking-shapes/source-a/companies/tessix-networks.md
new file mode 100644
index 0000000000..e3d1846846
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/tessix-networks.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Tessix Networks"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Tessix Networks
+
+Tessix Networks specializes in ProcureLearn, a procurement platform designed specifically for educational technology purchasing by K-12 school districts. The product streamlines vendor selection, funding allocation, and compliance tracking to simplify and optimize edtech procurement processes.
+
+ProcureLearn serves district administrators, procurement officers, and IT coordinators seeking transparency and efficiency in purchasing adaptive tutoring and mastery tracking tools. Over the past fiscal year, Tessix Networks facilitated $30 million in district contracts across 45 school districts, demonstrating strong market traction.
+
+Founded three years ago, Tessix Networks recently closed a $12 million Series A round led by EdVentures Capital. The team combines expertise in education technology, supply chain logistics, and software development.
+
+Key competitors include EduSource Direct, ScholarBid, and DistrictBuy. Open risks include evolving district budget cycles and integration challenges with legacy ERP systems, which the team actively addresses through ongoing platform enhancements.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/tesstun-works.md b/test/fixtures/ranking-shapes/source-a/companies/tesstun-works.md
new file mode 100644
index 0000000000..4fb1098e52
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/tesstun-works.md
@@ -0,0 +1,35 @@
+---
+type: "company"
+title: "Tesstun Works"
+tags: ["legal-contract-automation"]
+---
+
+# Tesstun Works
+
+Tesstun Works is a legal contract automation company focused on streamlining procurement contract review through AI-driven clause extraction and redlining. Our flagship product, ClauseSense, is designed to help procurement teams reduce manual contract analysis time and improve accuracy in identifying risky or non-compliant clauses.
+
+**What ClauseSense Does**
+ClauseSense leverages advanced natural language processing models trained on thousands of procurement contracts to:
+- Automatically extract key clauses such as indemnity, termination, pricing, and confidentiality
+- Highlight deviations from standard terms using AI-powered redlining
+- Generate summary reports for quick risk assessment
+- Integrate smoothly with contract management systems via API
+
+**Target Customers**
+Our primary customers are procurement teams in manufacturing and retail enterprises, where contracts are complex and volume is high. Typical users include contract managers, procurement officers, and legal counsel supporting sourcing operations.
+
+**Traction and Stage**
+Founded in 2020, Tesstun Works currently serves over 150 enterprise clients worldwide, including major electronics manufacturers and multinational retail chains. Annual recurring revenue recently surpassed $8M, with a 95% client retention rate. The company completed a $12M Series A funding round in Q4 2023 led by Pacific Ridge Capital.
+
+**Team**
+The team of 40 includes AI researchers, software engineers, and former procurement professionals. The CTO, Dr. Xanrel Park, previously led NLP initiatives at a major analytics firm.
+
+**Competitors**
+Key competitors include ContractSenseAI and ProcureRedline, but Tesstun Works differentiates through deep procurement domain expertise and superior clause context understanding.
+
+**Open Risks**
+- Dependence on continuous contract data access from clients for model updates
+- Potential regulatory changes affecting contract review automation
+- Competition from emerging startups with novel AI approaches
+
+Founder: [[people/niamh-marqley]].
diff --git a/test/fixtures/ranking-shapes/source-a/companies/umbaly-cloud.md b/test/fixtures/ranking-shapes/source-a/companies/umbaly-cloud.md
new file mode 100644
index 0000000000..fd75ea118c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/umbaly-cloud.md
@@ -0,0 +1,21 @@
+---
+type: "company"
+title: "Umbaly Cloud"
+tags: ["construction-site-robotics"]
+---
+
+# Umbaly Cloud
+
+Umbaly Cloud is a robotics company specializing in construction site automation, with a flagship product called TieBot. TieBot is an autonomous rebar tying robot designed to increase both the speed and consistency of rebar tying operations on commercial construction projects. By automating this labor-intensive task, TieBot reduces project timelines, lowers labor costs, and improves safety by minimizing workers’ exposure to repetitive strain and hazardous site conditions.
+
+Umbaly Cloud primarily serves commercial construction contractors operating mid- to large-scale projects across the United States. Typical customers include general contractors and specialty subcontractors responsible for concrete and structural steel work. These firms deploy TieBot to accelerate slab and foundation work, often realizing a 30-40% reduction in tying time per rebar grid compared to manual methods.
+
+Since launching TieBot commercially in late 2022, Umbaly Cloud has deployed units on 120 active job sites nationwide, including several projects exceeding $50 million in value. The company completed a $15 million Series A funding round in Q1 2024 led by Redstone Ventures, enabling expansion of product engineering and customer success teams.
+
+The core team includes CEO and co-founder Xanrel Mirov, who previously led robotics software at a warehouse automation startup; CTO Kelaly Shah, an expert in computer vision and autonomous systems; and Director of Field Operations Jortun Glimtun, with over a decade of experience managing construction technology deployments. Umbaly Cloud maintains a 30-person team, combining engineering, sales, and site support roles.
+
+Key competitors include SteelBind Robotics, which offers a semi-autonomous tying tool requiring operator input, and RebarBot Solutions, notable for their drone-assisted tying but lacking full autonomy. Umbaly Cloud differentiates through fully autonomous operation and integration with existing site workflows.
+
+Open risks include adoption resistance from traditional trades, variability in job site conditions potentially affecting robot performance, and ongoing hardware durability challenges in harsh environments. The company continues to invest in robotics robustness and customer training programs to mitigate these risks.
+
+Founder: [[people/halvard-talvley]].
diff --git a/test/fixtures/ranking-shapes/source-a/companies/umbix-dynamics.md b/test/fixtures/ranking-shapes/source-a/companies/umbix-dynamics.md
new file mode 100644
index 0000000000..84076c3258
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/umbix-dynamics.md
@@ -0,0 +1,28 @@
+---
+type: "company"
+title: "Umbix Dynamics"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Umbix Dynamics
+
+Umbix Dynamics is an edtech company specializing in adaptive tutoring solutions tailored for K-12 public school systems. Its flagship product, MasteryMap, delivers personalized learning pathways that dynamically adjust to each student’s progress, ensuring mastery of core subjects while providing teachers and administrators with real-time dashboards to monitor individual and cohort performance.
+
+### Product Overview
+MasteryMap leverages a combination of machine learning algorithms and pedagogical best practices to assess student mastery continuously. It supports core subjects including math, science, and literacy, adapting content difficulty and recommending targeted interventions. The platform’s teacher dashboard offers granular insights into student progress, enabling data-driven instructional decisions. District procurement teams benefit from centralized management tools for license allocation, compliance tracking, and outcome reporting.
+
+### Customers and Traction
+Currently deployed in 120 school districts across three states, Umbix Dynamics serves approximately 45,000 active student users. Key customers include the Lakeside Unified and Midland County School District, who report improved standardized test results and increased student engagement after one academic year of implementation. The company has secured $12 million in Series A funding led by the Pine Valley Education Fund, supporting ongoing product development and scaling efforts.
+
+### Team
+The founding team comprises CEO Dr. Xanrel Morales, a former district curriculum director; CTO Rajiv Dorow, an AI specialist; and COO Simone Lee, with experience in K-12 edtech sales and operations.
+
+### Competitors
+Main competitors include LearnSphere, QuestEd, and TutorWave. Umbix differentiates itself with deeper mastery tracking granularity and district-focused procurement features.
+
+### Open Risks
+- Dependence on district budget cycles may slow adoption.
+- Potential challenges integrating with legacy SIS platforms.
+- Ongoing need to demonstrate measurable academic impact to justify renewals.
+
+Founder: [[people/gideon-marqvane]].
diff --git a/test/fixtures/ranking-shapes/source-a/companies/vexvane-studio.md b/test/fixtures/ranking-shapes/source-a/companies/vexvane-studio.md
new file mode 100644
index 0000000000..cc277496a1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/vexvane-studio.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Vexvane Studio"
+tags: ["maritime-port-operations"]
+---
+
+# Vexvane Studio
+
+Vexvane Studio develops CranePulse, a real-time telemetry and predictive maintenance platform designed specifically for container crane operators at maritime ports. By continuously monitoring crane performance and health, CranePulse enables port equipment managers to anticipate failures and schedule maintenance proactively, minimizing unplanned downtime.
+
+Currently deployed in eight major terminals worldwide, CranePulse has demonstrably reduced crane downtime by 35%, improving berth efficiency and overall container throughput. Key customers include Pacific Harbor Port Authority, Eastreach Terminal Group, and BalticGate Containers.
+
+Founded in 2021, Vexvane Studio recently closed a $7 million Series A round led by OceanTech Ventures to accelerate product development and expand sales. The core team comprises experts in maritime operations, data engineering, and predictive analytics.
+
+Competitors include HarborSense and DockMate Analytics, though Vexvane’s focus on real-time telemetry and fine-grained predictive modeling sets it apart. Open risks involve integration complexity with legacy crane systems and ongoing sensor hardware reliability challenges.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/vorley-analytics.md b/test/fixtures/ranking-shapes/source-a/companies/vorley-analytics.md
new file mode 100644
index 0000000000..139de1bf2d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/vorley-analytics.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Vorley Analytics"
+tags: ["construction-site-robotics"]
+---
+
+# Vorley Analytics
+
+Vorley Analytics is a specialized technology company delivering SafeSite AI, an advanced safety monitoring device designed for construction sites. SafeSite AI leverages computer vision and machine learning to identify hazards in real time, alerting site supervisors before incidents occur. Its primary users are infrastructure development firms managing large-scale projects such as bridges, roads, and urban transit systems.
+
+Since launching pilot programs in early 2023, Vorley Analytics has partnered with three major infrastructure contractors across North Arcadia and Central Westland. These pilots demonstrated a 30% reduction in incident reports, validating the product’s effectiveness. The company recently closed a $7 million Series A round led by Ridgeview Ventures to expand deployments and enhance AI capabilities.
+
+Vorley’s core team includes CEO Dana Rellins (previously a construction engineer), CTO Marco Sun (ex-robotics startup lead), and Head of Data Science Embley Mehta. They face direct competition from BuildGuard Solutions and SiteSense AI, both focusing on construction safety analytics.
+
+Open risks include scaling device hardware production, ensuring data privacy compliance, and achieving broader industry adoption amid conservative safety cultures.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/vorrel-cloud.md b/test/fixtures/ranking-shapes/source-a/companies/vorrel-cloud.md
new file mode 100644
index 0000000000..208b7b5625
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/vorrel-cloud.md
@@ -0,0 +1,17 @@
+---
+type: "company"
+title: "Vorrel Cloud"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Vorrel Cloud
+
+Vorrel Cloud is a SaaS company specializing in dental clinic scheduling and billing solutions, with a focus on optimizing chair utilization, managing insurance claims, and running patient recall campaigns. Our flagship product, ClaimTrackr, automates insurance claim submissions and provides real-time monitoring of approval status, significantly reducing administrative overhead for dental billing services.
+
+ClaimTrackr is tailored primarily for dental billing services that handle multiple dental offices seeking to streamline their insurance workflows. Currently, over 150 dental offices across the country rely on ClaimTrackr to speed up claim processing and improve cash flow. Since our launch in 2021, Vorrel Cloud has completed a $4.2M seed round led by Crestline Ventures and achieved 120% year-over-year revenue growth.
+
+Our team comprises 12 full-time employees including dental industry veterans, software engineers, and compliance experts. The product roadmap includes expanding recall campaign automation and integrating direct scheduling features.
+
+Vorrel Cloud faces competition from established players like DentiManage and ClaimStream but differentiates itself through real-time claim status monitoring and ease of integration. Key open risks include navigating evolving insurance regulations and maintaining data security amid increasing cyber threats. The company is actively investing in compliance and infrastructure to mitigate these risks.
+
+Founder: [[people/zosia-brinbrook]].
diff --git a/test/fixtures/ranking-shapes/source-a/companies/xanmere-cloud.md b/test/fixtures/ranking-shapes/source-a/companies/xanmere-cloud.md
new file mode 100644
index 0000000000..757a6451e1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/xanmere-cloud.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Xanmere Cloud"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Xanmere Cloud
+
+Xanmere Cloud specializes in satellite imagery analytics tailored for the insurance sector, focusing on roof condition scoring, flood extent visualization, and catastrophe response enhancement. Their flagship product, FloodScope, delivers near real-time mapping of flood extents, enabling disaster management agencies to accelerate and optimize emergency response and resource allocation.
+
+Currently deployed in seven countries across Southeast Asia and Central America, FloodScope processes over 200,000 square kilometers of flood-affected regions each month. This extensive coverage helps clients anticipate damage patterns and prioritize critical interventions. Xanmere Cloud’s customer base includes national disaster management agencies and regional insurers seeking to reduce claims processing time and improve risk assessment accuracy.
+
+Founded in 2020, Xanmere Cloud has completed a $7.5 million Series A funding round led by the Nimbrel Venture Fund. The company employs 28 people, including a core team of geospatial data scientists, software engineers, and catastrophe risk analysts. CEO Amira DeLuca leads product innovation with CTO Rajiv Banerjee overseeing technology development.
+
+Competitors in this niche include TerraLens Analytics and HydroVision Systems, both offering flood mapping solutions but lacking Xanmere Cloud’s near real-time processing speed. Key risks involve satellite data latency, regulatory restrictions on data sharing, and dependence on cloud infrastructure stability. Ongoing investments focus on expanding geographic coverage and strengthening data integration capabilities.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/zordra-robotics.md b/test/fixtures/ranking-shapes/source-a/companies/zordra-robotics.md
new file mode 100644
index 0000000000..294cebd49d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/zordra-robotics.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Zordra Robotics"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Zordra Robotics
+
+Zordra Robotics specializes in intelligent dispatch software for grid-scale battery storage systems. Their flagship product, FluxCore, automates battery dispatch decisions by analyzing real-time grid conditions, degradation patterns, and market prices. FluxCore’s proprietary algorithms optimize charge and discharge cycles to maximize both battery lifespan and revenue from energy arbitrage and ancillary services.
+
+Zordra targets utility-scale renewable energy storage operators, independent power producers, and microgrid developers. Its software currently manages over 120MW of operating battery capacity across diverse geographies, including solar farms in the Southwest and wind storage projects in the Midwest.
+
+Founded three years ago, Zordra Robotics has secured $22 million in Series B funding led by the Valen Energy Fund. The 35-person team blends expertise in power systems engineering, AI, and battery chemistry. Key competitors include VoltOps Analytics and GridPulse Technologies, each offering dispatch solutions with varying trade-offs in optimization depth and user experience.
+
+Open risks include evolving interconnection queue delays that affect deployment timelines and uncertainties in long-term battery degradation models impacting forecast accuracy.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/zordra-works.md b/test/fixtures/ranking-shapes/source-a/companies/zordra-works.md
new file mode 100644
index 0000000000..f428444765
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/zordra-works.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Zordra Works"
+tags: ["maritime-port-operations"]
+---
+
+# Zordra Works
+
+Zordra Works develops ClearPath Customs, an AI-driven customs clearance solution designed to streamline documentation and ensure compliance for maritime port operations. Targeted primarily at logistics providers and customs brokerage firms, ClearPath Customs automates the complex paperwork and regulatory checks required for smooth container handling and shipping, reducing delays and penalties.
+
+Since launching in early 2022, ClearPath Customs has processed over 150,000 shipments with a 98% first-pass compliance rate, significantly improving clearance speed and accuracy. The company completed a $7 million Series A round led by Harbor Ventures in March 2024, fueling expansion into Southeast Asia and integration with major port operators.
+
+The Zordra Works team includes co-founders CEO Kelmere Lin, CTO Dramere Dorow, and VP of Product Sofia Morales, alongside a 25-member engineering and customer success staff. Key competitors include DockLogic and CargoSense, both offering customs-related software but with less AI integration and lower compliance scores.
+
+Open risks involve evolving international trade regulations that may require rapid software updates, as well as dependency on port data integration agreements that can delay deployments.
diff --git a/test/fixtures/ranking-shapes/source-a/companies/zorrel-analytics.md b/test/fixtures/ranking-shapes/source-a/companies/zorrel-analytics.md
new file mode 100644
index 0000000000..185fef1882
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/companies/zorrel-analytics.md
@@ -0,0 +1,32 @@
+---
+type: "company"
+title: "Zorrel Analytics"
+tags: ["maritime-port-operations"]
+---
+
+# Zorrel Analytics
+
+Zorrel Analytics is a maritime technology company specializing in advanced berth scheduling solutions aimed at optimizing vessel docking and cargo handling efficiency. Their flagship product, DockFlow, uses predictive analytics and real-time data integration to recommend optimal arrival and departure times for ships at port terminals, reducing wait times and maximizing berth utilization.
+
+**Product Overview**
+DockFlow ingests telemetry from cranes, vessel tracking feeds, and customs clearance statuses to generate dynamic berth allocation schedules. It accounts for variables such as tide conditions, vessel size, cargo type, and priority shipments. The software continuously updates predictions to adapt to delays or early arrivals, enabling terminal operators to proactively manage resources and minimize bottlenecks.
+
+**Target Customers**
+DockFlow primarily serves maritime terminal operations managers at global container ports, including bulk cargo and multipurpose terminals. Its users include port authorities seeking to improve throughput, shipping lines coordinating vessel calls, and logistics providers monitoring container flow.
+
+**Traction and Stage**
+Founded in 2020, Zorrel Analytics has deployed DockFlow in 12 major container ports across the Pacific Rim and North Atlantic, collectively handling over 5,000 vessel calls monthly. Monthly active user growth has averaged 15% over the past two quarters. The company closed a $7 million Series A round in Q1 2023, led by a maritime technology-focused venture fund.
+
+**Team**
+The core team includes CEO Anya Vass, formerly a port operations analyst, CTO Rajesh Menon, who led data science at a logistics startup, and Head of Product Lina Gomez, a specialist in maritime systems integration.
+
+**Competitors**
+Key competitors include NavisPort Scheduler, DockPulse, and BerthSync — all offering berth management but with less emphasis on predictive analytics and live telemetry integration.
+
+**Open Risks**
+- Integration challenges with heterogeneous port IT infrastructures
+- Variability in data availability from smaller terminals
+- Potential regulatory changes affecting data sharing across ports
+- Dependence on quality and frequency of real-time telemetry inputs
+
+Founder: [[people/rhosyn-dunkford]].
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/adaptive-integration-pilot-overview.md b/test/fixtures/ranking-shapes/source-a/concepts/adaptive-integration-pilot-overview.md
new file mode 100644
index 0000000000..b56b1104b1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/adaptive-integration-pilot-overview.md
@@ -0,0 +1,8 @@
+---
+type: "concept"
+title: "Adaptive integration pilot overview"
+---
+
+# Adaptive integration pilot overview
+
+The Adaptive Integration Pilot tests embedding mastery tracking and personalized pathways within existing K-12 learning platforms. It matters because seamless data flow reduces teacher workload and improves real-time intervention accuracy. Key terms include “learning node” (content units), “proficiency checkpoints,” and “dashboard sync.” Typically, the Product Manager for District Solutions leads the pilot, coordinating with engineering, curriculum specialists, and district tech coordinators to ensure alignment with procurement requirements and classroom realities. Success metrics focus on engagement uplift and teacher satisfaction.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/aerial-site-mapping.md b/test/fixtures/ranking-shapes/source-a/concepts/aerial-site-mapping.md
new file mode 100644
index 0000000000..e3a0c48b3e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/aerial-site-mapping.md
@@ -0,0 +1,13 @@
+---
+type: "concept"
+title: "Aerial Site Mapping"
+tags: ["construction-site-robotics"]
+---
+
+# Aerial Site Mapping
+
+Aerial Site Mapping uses drones equipped with high-resolution cameras and LiDAR to capture detailed topographical data of construction zones. Drones fly predetermined paths, collecting overlapping images and sensor readings that software stitches into 3D maps and models. This process speeds up site surveys, improving accuracy compared to manual methods.
+
+Tradeoffs include battery life limiting flight time (typically 20 minutes per drone), weather sensitivity, and data processing requirements. For example, mapping a 5-acre site requires 3 drone flights, producing 3000 images and 15 GB of raw data, processed over 4 hours.
+
+Common failures involve GPS signal loss causing inaccurate positioning, poor lighting affecting image quality, and data stitching errors leading to map distortions. Mitigation requires careful flight planning and robust post-processing algorithms.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/autonomous-rebar-tying.md b/test/fixtures/ranking-shapes/source-a/concepts/autonomous-rebar-tying.md
new file mode 100644
index 0000000000..d4ac70b49a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/autonomous-rebar-tying.md
@@ -0,0 +1,28 @@
+---
+type: "concept"
+title: "Autonomous Rebar Tying"
+tags: ["construction-site-robotics"]
+---
+
+# Autonomous Rebar Tying
+
+Autonomous Rebar Tying refers to robotic systems designed to perform the task of binding steel reinforcement bars (rebar) on construction sites without human intervention. This process is critical for ensuring the structural integrity of concrete elements in buildings and infrastructure.
+
+### How It Works
+These robots combine computer vision, precise robotic arms, and specialized tying tools. Cameras scan the rebar layout, creating a 3D map of intersections. Using this data, the robot aligns its tying mechanism to wrap and secure wire around rebar crosses according to pre-programmed patterns and tension specifications. Advanced models include AI algorithms that adapt to varying bar sizes and spacing in real-time.
+
+### Tradeoffs
+- **Speed vs. Accuracy:** High-speed tying can reduce construction time but may increase error rates in wire tension or knot security. Slower operation improves quality but can delay schedules.
+- **Mobility vs. Payload:** Larger robots carry more wire spools and tool attachments but may struggle on uneven terrain common in early construction phases. Smaller, more agile units have limited working time before reloading.
+- **Setup Complexity:** Initial calibration and programming require skilled technicians, raising upfront costs and setup time. However, this can be offset by reduced labor costs over a project lasting several months.
+
+### Worked Example
+On the Titan Tower project in Westbury, our AV-27 rebar tying robot completed 120 intersections per hour at 95% accuracy compared to manual tying at 60 intersections per hour. Wire consumption was optimized to 0.8 meters per tie, cutting material waste by 12%. The robot operated 8 hours a day, reducing labor costs by approximately $1,200 daily.
+
+### Common Failure Modes
+- Misalignment due to uneven rebar placement or debris interfering with sensors.
+- Wire spool jams causing incomplete ties.
+- Battery depletion when working away from power sources, leading to operational downtime.
+- Software errors in complex rebar configurations requiring manual override.
+
+Continuous field testing and software updates aim to minimize these issues for reliable on-site performance.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/berth-allocation-algorithms.md b/test/fixtures/ranking-shapes/source-a/concepts/berth-allocation-algorithms.md
new file mode 100644
index 0000000000..018c7ff99d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/berth-allocation-algorithms.md
@@ -0,0 +1,35 @@
+---
+type: "concept"
+title: "Berth Allocation Algorithms"
+tags: ["maritime-port-operations"]
+---
+
+# Berth Allocation Algorithms
+
+Berth Allocation Algorithms assign incoming vessels to available dock spaces at a maritime port to optimize operational efficiency and fairness. These computational methods consider factors such as vessel size, arrival time, unloading duration, and priority levels to produce scheduling plans that minimize waiting times and maximize berth utilization.
+
+**How It Works**
+The algorithm receives a list of vessels with attributes: estimated time of arrival (ETA), cargo type, handling time, and priority (e.g., perishable goods). It matches vessels to berths, respecting constraints like berth length and equipment compatibility. Common approaches include:
+- **Greedy heuristics:** Assign vessels sequentially based on earliest arrival or highest priority.
+- **Integer Linear Programming (ILP):** Formulate allocation as an optimization problem minimizing total vessel waiting time under berth length and time-window constraints.
+- **Metaheuristics (e.g., Genetic Algorithms):** Explore multiple allocation scenarios to find near-optimal solutions in complex settings.
+
+**Tradeoffs**
+Simple heuristics run quickly but can cause suboptimal berth usage or unfair delays. ILP offers optimality but may struggle with real-time scale (e.g., >50 vessels). Metaheuristics balance solution quality and computational cost but require parameter tuning.
+
+**Example**
+Given three vessels:
+- V1: ETA 08:00, 300m length, 4 hours handling
+- V2: ETA 09:00, 250m length, 3 hours handling
+- V3: ETA 08:30, 200m length, 5 hours handling
+
+With two berths (Berth A: 350m, Berth B: 250m), the algorithm might schedule:
+- V1 at Berth A from 08:00 to 12:00
+- V3 at Berth B from 08:30 to 13:30
+- V2 waits until Berth B frees at 13:30, causing 4.5 hours delay
+
+**Common Failure Modes**
+- Overlapping schedules causing berth conflicts
+- Inaccurate ETA data leading to idle time or bottlenecks
+- Ignoring priority, resulting in unfair allocation
+- Failing to account for equipment compatibility (e.g., crane types) leading to operational delays
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/berth-coordination-pilot-overview.md b/test/fixtures/ranking-shapes/source-a/concepts/berth-coordination-pilot-overview.md
new file mode 100644
index 0000000000..2ef1295a85
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/berth-coordination-pilot-overview.md
@@ -0,0 +1,8 @@
+---
+type: "concept"
+title: "Berth coordination pilot overview"
+---
+
+# Berth coordination pilot overview
+
+The Berth Coordination Pilot is a trial system designed to optimize berth scheduling and resource allocation at Port Azure. It aims to reduce vessel waiting times by synchronizing crane telemetry data, customs clearance status, and container tracking updates. Key terms include "berth window," "turnaround time," and "dwell time." Typically, the Port Operations Manager owns this pilot, collaborating closely with terminal operators and shipping agents. Its success is measured by improved berth utilization rates and lower operational delays, enhancing overall port efficiency.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/best-practices-for-dosing-systems-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/concepts/best-practices-for-dosing-systems-lessons-from-the-field.md
new file mode 100644
index 0000000000..b0d555b075
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/best-practices-for-dosing-systems-lessons-from-the-field.md
@@ -0,0 +1,52 @@
+---
+type: "concept"
+title: "Best Practices for Dosing Systems: lessons from the field"
+---
+
+# Best Practices for Dosing Systems: lessons from the field
+
+Moderator: Welcome everyone to today’s session on vertical farming innovations. We’re pleased to have Dorrit Marqdale with us, an expert in hydroponic nutrient delivery. Dorrit will be presenting “Best Practices for Dosing Systems: Lessons from the Field.” Dorrit, the floor is yours.
+
+Dorrit Marqdale: Thank you. It’s great to be here. Today I want to share practical insights on optimizing dosing systems in hydroponic grow towers—a critical component for consistent crop yield and quality in indoor agriculture.
+
+Calibration of nutrient dosing must prioritize accuracy, repeatability, and responsiveness. From our work at VerdantGrow Labs, we’ve refined a set of key parameters that define best practices:
+
+- **Flow rate stability**: Dosing pumps should maintain ±2% deviation in flow rate over 24 hours to prevent nutrient imbalances.
+- **Nutrient concentration targets**: Calibrations must align with crop-specific EC (electrical conductivity) and pH setpoints, typically EC 1.2–1.8 mS/cm and pH 5.8–6.2 for leafy greens.
+- **Mixing homogeneity**: Ensure nutrient reservoirs have sufficient agitation to prevent stratification, which can skew dosing accuracy.
+- **Sensor calibration frequency**: EC and pH sensors require recalibration every 72 hours during active growth phases to maintain data fidelity.
+- **Response latency**: Systems should detect and adjust nutrient levels within 5 minutes of deviation to avoid stress on plants.
+- **Redundancy protocols**: Dual dosing lines with automatic failover reduce risk of crop loss from pump failures.
+
+One practical lesson from our trials in the Verdant Tower Facility came from a dosing instability in the romaine lettuce bay. We noticed a yield drop correlated with a 7% drift in flow rate after 10 days without pump recalibration. Implementing a weekly pump verification schedule restored nutrient delivery precision and improved yields by 12% over the next growth cycle.
+
+Another key insight relates to nutrient mixing. Static reservoirs experienced nutrient layering, leading to inconsistent EC readings and underdosing of nitrogen in lower strata. Upgrading to continuous low-speed agitation mixing reduced variance in nutrient concentration by 30% and eliminated crop stress symptoms linked to nitrogen deficiency.
+
+Lastly, integrating real-time sensor data with AI-driven forecasting models enabled preemptive adjustments to dosing schedules based on predicted plant uptake rates. This dynamic dosing approach shortened nutrient response latency from hours to minutes, improving overall resource efficiency by 15%.
+
+To summarize:
+
+- Regular calibration of dosing pumps and sensors is essential.
+- Maintain nutrient stability through effective mixing and reservoir management.
+- Utilize redundancy to safeguard against equipment failure.
+- Leverage data integration to optimize dosing responsiveness.
+
+These best practices have been instrumental in scaling up our grow towers from pilot to commercial scale while keeping nutrient delivery precise and consistent.
+
+Moderator: Thanks, Dorrit. We have time for a few questions.
+
+Audience: You mentioned recalibration every 72 hours for sensors. Is that frequency practical for large commercial setups?
+
+Dorrit Marqdale: Great question. For large-scale operations, automation helps a lot. We employ automated sensor cleaning and calibration stations within the nutrient line, which can process sensors in batches without manual intervention. If that’s not possible, prioritizing sensors in critical growth zones for more frequent calibration is an effective compromise.
+
+Audience: How do you handle variability in source water quality affecting dosing precision?
+
+Dorrit Marqdale: Source water variability is often overlooked but critical. We continuously monitor inflow water parameters and adjust baseline nutrient recipes accordingly. Pre-treatment systems like reverse osmosis help stabilize input quality. Also, feedback loops from nutrient sensors downstream ensure dosing compensates for any detected fluctuations.
+
+Audience: Could you expand on redundancy? How complex or costly is implementing dual dosing lines?
+
+Dorrit Marqdale: While dual lines do increase system complexity and upfront cost by about 18%, the risk mitigation benefits outweigh this, especially in commercial farms where a single dosing failure can cause significant crop loss. Automatic failover controllers switch dosing seamlessly, ensuring uninterrupted nutrient delivery.
+
+Moderator: Excellent insights. Thank you, Dorrit, for sharing your expertise.
+
+Dorrit Marqdale: Thank you for having me. I’m happy to discuss this further offline.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/biopharma-cold-chain-compliance.md b/test/fixtures/ranking-shapes/source-a/concepts/biopharma-cold-chain-compliance.md
new file mode 100644
index 0000000000..a08a6ecfa2
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/biopharma-cold-chain-compliance.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "Biopharma Cold-Chain Compliance"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Biopharma Cold-Chain Compliance
+
+Biopharma Cold-Chain Compliance ensures pharmaceuticals remain within specified temperature ranges from production to administration. It involves continuous monitoring using sensor tags that record temperature, humidity, and location. Data is logged in real time to verify adherence to regulations, such as the PharmaTemp Standard 3.4, which mandates maintaining 2–8°C for vaccines.
+
+Tradeoffs include balancing sensor accuracy against battery life and cost. Overly sensitive sensors may generate false alarms, while cheaper tags risk data loss. Shipping container insulation and route planning also impact compliance reliability.
+
+For example, a vaccine batch of 10,000 doses shipped from Vaulton to Hesperia must stay between 2–8°C for 72 hours. Sensor logs showing a 7.5°C average with no excursions confirm compliance. A 1°C deviation triggers a quarantine review.
+
+Common failures include sensor disconnections, delayed data uploads, and improper pre-cooling, leading to regulatory rejections or product waste.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/calendar-aging-effects.md b/test/fixtures/ranking-shapes/source-a/concepts/calendar-aging-effects.md
new file mode 100644
index 0000000000..a9e535afb5
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/calendar-aging-effects.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "Calendar Aging Effects"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Calendar Aging Effects
+
+Calendar Aging Effects refer to the gradual loss of a battery's capacity purely due to the passage of time, independent of how much it is cycled or used. This degradation results from chemical changes within the battery cells, such as electrolyte breakdown, solid electrolyte interphase growth, or corrosion of electrodes.
+
+Unlike cycling degradation, which depends on charge/discharge patterns, calendar aging occurs even when the battery is idle. Factors accelerating it include higher temperatures and elevated state-of-charge (SoC) levels. The tradeoff in dispatch software is balancing battery availability against minimizing aging—for example, avoiding keeping the battery at 100% SoC or in hot environments for extended periods.
+
+**Example:** A 1 MWh grid battery stored at a constant 95% SoC and 35°C may lose about 3% capacity annually due to calendar aging, translating to 30 kWh lost per year without any cycling. Cooling systems and reduced SoC targets can halve this loss but increase operational costs.
+
+**Common failure modes** include capacity fade beyond usable limits, increased internal resistance, and safety risks from internal short circuits caused by dendrite formation.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/camera-network-sensitivity-calibration-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/concepts/camera-network-sensitivity-calibration-lessons-from-the-field.md
new file mode 100644
index 0000000000..ef5499371b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/camera-network-sensitivity-calibration-lessons-from-the-field.md
@@ -0,0 +1,45 @@
+---
+type: "concept"
+title: "Camera Network Sensitivity Calibration: lessons from the field"
+---
+
+# Camera Network Sensitivity Calibration: lessons from the field
+
+Moderator: Welcome everyone to today’s session. We’re pleased to have Isolde Brindale with us to discuss “Camera Network Sensitivity Calibration: Lessons from the Field.” Isolde is a lead engineer on our wildfire detection camera network project. Please join me in welcoming her.
+
+Isolde Brindale: Thank you for the warm introduction. Today I’ll share insights from our recent work on adjusting detection thresholds in our camera network to reduce false alarms caused by environmental factors like dust and fog—critical for improving utility vegetation management and outage risk mitigation.
+
+Our network of 1,200 cameras spans the high-risk Northern Ridge and Southern Valley zones. These cameras continuously monitor line corridors and vegetation growth, triggering alerts when smoke plumes or heat signatures indicative of wildfire are detected. However, the challenge lies in balancing sensitivity: too low, and we miss early signs of fire; too high, and we drown in false alarms. Dust storms and fog are frequent weather conditions that currently skew sensor readings.
+
+To address this, we embarked on a multi-phase sensitivity calibration project over the past 18 months.
+
+**Phase 1: Baseline Data Collection**
+We collected six months of continuous raw sensor data during the spring dust storm season and early fall fog period. This dataset helped us characterize how particulate matter and moisture interfere with infrared and visible light sensors. We analyzed over 10,000 false positives logged during these months.
+
+**Phase 2: Threshold Adjustment Algorithm Development**
+Using baseline data, we developed a dynamic thresholding algorithm that adjusts detection sensitivity according to environmental inputs. For example, during intense dust events, the algorithm raises smoke detection thresholds by up to 15% to prevent alert flooding. Conversely, during clear conditions, thresholds revert to more sensitive settings.
+
+**Phase 3: Field Deployment and Feedback**
+We deployed the updated algorithm on 300 cameras across two test corridors prone to dust and fog. Over three months, false alarms dropped by 42%, while true fire detections remained consistent with prior performance. Utility line inspection teams reported a 30% reduction in unnecessary dispatches.
+
+One lesson learned is the importance of integrating weather station data with camera telemetry. Cameras alone can’t reliably distinguish dust from smoke, but correlating particulate sensors and humidity readings enables more precise threshold tuning.
+
+Another finding was the need for seasonal recalibration. Dust composition and fog density vary across months, so fixed thresholds degrade accuracy over time. Implementing an automated monthly recalibration schedule based on localized environmental data has improved long-term detection reliability.
+
+In summary, adjusting detection thresholds using real-time environmental data markedly reduces false alarms caused by dust and fog without compromising wildfire detection capability. Our ongoing goal is to scale this adaptive calibration model across the full 1,200-camera network by Q4 2024.
+
+Thank you for your attention. I’m happy to take questions.
+
+Audience Member: How do you ensure the algorithm doesn’t miss real fires during dust storms when thresholds are raised?
+
+Isolde Brindale: Great question. We incorporate multiple data streams including thermal IR signatures which are less affected by dust, and we use conservative threshold increases capped at 15%. We also maintain manual monitoring during peak dust events as a safety net while continuously refining the model.
+
+Audience Member: Has this calibration affected detection latency at all?
+
+Isolde Brindale: Minimal impact. The algorithm runs locally on camera edge processors, so adjustments happen in near real-time. Our tests show detection latency stays within the same 2-second window as before calibration.
+
+Audience Member: Are there plans to incorporate machine learning into the calibration process?
+
+Isolde Brindale: Yes, that’s our next step. We’re piloting ML models that learn from ongoing false alarm patterns and adapt thresholds dynamically beyond rule-based adjustments. Early results are promising but we want to ensure robustness before full rollout.
+
+Moderator: Thank you, Isolde, for sharing these valuable lessons. That concludes our session.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/claim-lifecycle-management.md b/test/fixtures/ranking-shapes/source-a/concepts/claim-lifecycle-management.md
new file mode 100644
index 0000000000..0bb0354d89
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/claim-lifecycle-management.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "Claim Lifecycle Management"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Claim Lifecycle Management
+
+Claim Lifecycle Management refers to overseeing dental insurance claims from submission through final reimbursement. It begins when a clinic submits a claim for services rendered, including codes for procedures, patient details, and billed amounts. The insurer reviews, adjudicates, and either approves or denies the claim. Approved claims proceed to payment; denied claims require follow-up or resubmission.
+
+Tradeoffs include balancing thorough documentation to reduce denials against administrative time spent on claim corrections. Efficient management improves cash flow and chair utilization by minimizing billing delays.
+
+Example: A $500 root canal claim is submitted. The insurer approves $450 after adjustments; $450 is received in 30 days. A $50 denial triggers a resubmission with additional documentation, resolving in 15 more days.
+
+Common failures stem from coding errors, missing info, or untimely submissions causing delays or denials.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/clause-extraction-old.md b/test/fixtures/ranking-shapes/source-a/concepts/clause-extraction-old.md
new file mode 100644
index 0000000000..fe815b4ca0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/clause-extraction-old.md
@@ -0,0 +1,8 @@
+---
+type: "concept"
+title: "Clause Extraction (old)"
+---
+
+# Clause Extraction (old)
+
+This page has been merged into [[concepts/clause-extraction]]
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/clause-extraction.md b/test/fixtures/ranking-shapes/source-a/concepts/clause-extraction.md
new file mode 100644
index 0000000000..20a4816379
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/clause-extraction.md
@@ -0,0 +1,41 @@
+---
+type: "concept"
+title: "Clause Extraction"
+tags: ["legal-contract-automation"]
+---
+
+# Clause Extraction
+
+Clause Extraction is the automated process of identifying, isolating, and classifying specific contractual clauses from large sets of legal documents. It enables faster review, analysis, and comparison of contracts by breaking down complex text into standardized, manageable pieces.
+
+## How Clause Extraction Works
+
+1. **Preprocessing:** The contract text is cleaned and segmented (e.g., by paragraphs, headings).
+2. **Clause Detection:** Using machine learning models or rule-based systems, the tool scans for linguistic patterns and keywords indicative of clause boundaries.
+3. **Classification:** Extracted text segments are assigned clause types such as confidentiality, indemnification, termination, or payment terms.
+4. **Normalization:** Clauses are reformatted or linked to a clause library for easier comparison and redlining.
+
+Modern systems often combine natural language processing (NLP) with custom legal ontologies. For example, a transformer-based model trained on 50,000 sample contracts can achieve 87% accuracy in recognizing termination clauses.
+
+## Tradeoffs
+
+- **Precision vs. Recall:** Increasing recall captures more clauses but may include irrelevant text, while higher precision risks missing unusual clause phrasings.
+- **Generalization vs. Customization:** Pretrained models work broadly but struggle with domain-specific language; customized models require more training data and effort.
+- **Speed vs. Depth:** Lightweight rule-based approaches run quickly but lack nuance; deep learning models provide better context understanding but need more compute.
+
+## Worked Example
+
+A contract with 120 clauses is processed:
+
+- The extractor identifies 110 clauses (recall 91.7%)
+- Of these, 100 are correctly labeled (precision 90.9%)
+- Misclassifications mostly occur in “force majeure” vs. “excusable delay” clauses due to overlapping terminology.
+
+## Common Failure Modes
+
+- Ambiguous clause boundaries when clauses are nested or merged
+- Unseen or rare clause types causing mislabeling
+- Formatting inconsistencies (e.g., scanned PDFs with OCR errors)
+- Legal jargon variations confusing pattern matching
+
+Understanding these limitations helps legal teams decide when to trust automated extraction versus manual review.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/customs-clearance-automation.md b/test/fixtures/ranking-shapes/source-a/concepts/customs-clearance-automation.md
new file mode 100644
index 0000000000..d884c61bce
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/customs-clearance-automation.md
@@ -0,0 +1,21 @@
+---
+type: "concept"
+title: "Customs Clearance Automation"
+tags: ["maritime-port-operations"]
+---
+
+# Customs Clearance Automation
+
+Customs Clearance Automation refers to the use of specialized software to streamline and accelerate compliance checks during maritime port operations. By automating document verification, tariff classification, and duty calculations, these tools reduce the need for manual customs agent intervention, cutting clearance times from days to hours.
+
+**How it works:** The system integrates with berth scheduling and container tracking databases to automatically retrieve shipment details and manifests. It cross-references these against up-to-date regulatory rules and duty schedules. Machine learning models flag anomalies or high-risk cargo for manual review, while straightforward cases proceed automatically. Notifications alert customs officers and terminal operators when clearance is approved or requires intervention.
+
+**Tradeoffs:** While automation significantly improves throughput and reduces human error, initial setup requires extensive rule encoding and data integration, typically taking 3–6 months. Overreliance on automation may miss novel compliance issues, so periodic manual audits remain necessary. Complex or sensitive shipments often still require human review, limiting full automation.
+
+**Worked example:** For a container flagged as electronics valued at $50,000, the software automatically applies a 5% tariff and checks import restrictions. It clears the container in 2 hours, down from an average of 48 hours manually. If the contents were ambiguous or flagged as restricted, manual customs inspection would be triggered.
+
+**Common failure modes:**
+- Outdated regulatory data causing incorrect clearances
+- Poor integration leading to missing shipment details
+- False positives generating workflow bottlenecks
+- Network outages blocking real-time data access
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/district-procurement-workflow.md b/test/fixtures/ranking-shapes/source-a/concepts/district-procurement-workflow.md
new file mode 100644
index 0000000000..4d2e4afb4f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/district-procurement-workflow.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "District Procurement Workflow"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# District Procurement Workflow
+
+District Procurement Workflow refers to the structured process school districts follow to evaluate, approve, and purchase educational software like adaptive tutoring platforms. This typically involves multiple stages: initial needs assessment, vendor demonstrations, pilot testing, budget approval, and final contract negotiation.
+
+How it works: Districts begin by identifying instructional gaps. Next, a selection committee reviews product features, such as mastery tracking and teacher dashboards. A pilot program with 3-5 schools often gauges effectiveness. After feedback, procurement officers negotiate pricing and terms, considering licenses for all students.
+
+Tradeoffs include balancing cost versus feature richness and ensuring scalability without overwhelming teachers. For example, in Riverview District, a $150,000 budget allowed purchasing licenses for 2,000 students at $75 each, after a successful 3-month pilot.
+
+Common failure modes include unrealistic budget expectations, insufficient teacher training, and poor data integration, leading to underutilization or wasted funds.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/dynamic-scheduling-model.md b/test/fixtures/ranking-shapes/source-a/concepts/dynamic-scheduling-model.md
new file mode 100644
index 0000000000..45e518e783
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/dynamic-scheduling-model.md
@@ -0,0 +1,30 @@
+---
+type: "concept"
+title: "Dynamic Scheduling Model"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Dynamic Scheduling Model
+
+Dynamic Scheduling Model
+
+Definition
+The Dynamic Scheduling Model is an adaptive appointment system designed for dental clinics to optimize chair utilization and streamline billing processes by adjusting in real time to patient flow and clinic conditions. Unlike static scheduling, which fixes appointment slots in advance, this model continuously recalibrates appointment lengths, start times, and resource allocation based on live data inputs such as patient arrivals, cancellations, insurance verification status, and staff availability.
+
+How It Works
+The system integrates with clinic management software to monitor ongoing patient check-ins, procedure durations, and insurance claim statuses. Using predictive analytics and queuing theory, it recalculates the optimal schedule every 15 minutes. For example, if a patient cancels last minute or a procedure finishes early, the system shortens gaps or advances waiting patients to earlier slots. Conversely, if insurance claims for upcoming visits are delayed, it adjusts the schedule to prioritize self-pay or insured patients with cleared claims to minimize billing bottlenecks. Notifications are sent automatically to front-desk staff and patients about updated appointment times.
+
+Tradeoffs
+- Flexibility vs. Predictability: Patients appreciate shorter wait times but may find shifting appointment times inconvenient.
+- Complexity vs. Usability: The system’s algorithms require accurate real-time data, increasing reliance on clinic IT infrastructure.
+- Utilization vs. Staff Workload: Optimizing chair use can lead to irregular staff breaks or overtime without proper safeguards.
+
+Worked Example
+At SmileBright Dental, the model predicted a 20% no-show rate for Monday morning. The schedule was created with 10-minute buffers between 8 am and 12 pm. At 9:30 am, after a patient canceled, the system advanced a 10:45 am cleaning appointment to 9:40 am, improving chair utilization from 75% to 90% that morning. Insurance claim delays for two patients at 11 am prompted the system to reassign those slots to walk-in exams, reducing billing delays by 15%.
+
+Common Failure Modes
+- Inaccurate Data: Missing check-in or claim status info leads to poor schedule adjustments.
+- Over-Optimization: Constant rescheduling frustrates patients and staff, resulting in no-shows or errors.
+- System Downtime: Loss of real-time updates forces fallback to static schedules, reducing efficiency.
+
+Understanding these dynamics is crucial for clinics seeking to improve operational efficiency while maintaining patient satisfaction.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/flood-extent-mapping.md b/test/fixtures/ranking-shapes/source-a/concepts/flood-extent-mapping.md
new file mode 100644
index 0000000000..e86023cda0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/flood-extent-mapping.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "Flood Extent Mapping"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Flood Extent Mapping
+
+Flood extent mapping refers to the process of identifying and outlining areas submerged by floodwaters using multispectral satellite imagery. This technique leverages the distinct spectral signatures of water compared to land surfaces to delineate inundated zones, crucial for insurers assessing flood damage and catastrophe response.
+
+How it works: Satellites capture images across various spectral bands including visible and near-infrared (NIR). Water absorbs NIR light strongly, appearing dark in that band, while vegetation and dry land reflect NIR strongly. Algorithms combine bands to generate indices such as the Normalized Difference Water Index (NDWI), highlighting water bodies. By applying threshold values to NDWI maps taken before and after a flood, the change in water coverage is extracted, producing a flood extent map.
+
+Tradeoffs include spatial resolution and revisit frequency. Higher resolution (e.g., 3m pixels) improves boundary accuracy but often reduces coverage area and increases cloud sensitivity. Lower resolution (e.g., 30m pixels) covers larger areas but may miss small inundations.
+
+Example: A 50 km² urban area was analyzed using 10m Sentinel-X data. Pre-flood NDWI averages were 0.1; post-flood NDWI rose to 0.5 in waterlogged zones. Applying a threshold of 0.3 identified 12 km² flooded, matching ground truth within 8% error.
+
+Common failure modes involve cloud cover obscuring imagery, spectral confusion in turbid or shadowed waters, and misclassification of wet soil as water. Validation with ground or UAV data is recommended to ensure accuracy.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/grid-battery-dispatch-old.md b/test/fixtures/ranking-shapes/source-a/concepts/grid-battery-dispatch-old.md
new file mode 100644
index 0000000000..3682931400
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/grid-battery-dispatch-old.md
@@ -0,0 +1,9 @@
+---
+type: "concept"
+title: "Grid Battery Dispatch (old)"
+merged_into: "concepts/grid-battery-dispatch"
+---
+
+# Grid Battery Dispatch (old)
+
+This page has been merged into [[concepts/grid-battery-dispatch]]
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/grid-battery-dispatch.md b/test/fixtures/ranking-shapes/source-a/concepts/grid-battery-dispatch.md
new file mode 100644
index 0000000000..4516536d31
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/grid-battery-dispatch.md
@@ -0,0 +1,35 @@
+---
+type: "concept"
+title: "Grid Battery Dispatch"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Grid Battery Dispatch
+
+Grid Battery Dispatch refers to the real-time control of grid-scale battery systems to optimize their charge and discharge cycles in response to electricity demand, supply conditions, and market signals. The goal is to maximize economic value while maintaining battery health and supporting grid reliability.
+
+## How It Works
+
+Dispatch software continuously monitors grid frequency, electricity prices, and forecasted demand. Using these inputs, it decides when to charge (store excess energy) or discharge (supply energy) the battery. Decisions factor in:
+
+- Current state of charge (SoC)
+- Battery degradation models estimating the impact of cycling and depth of discharge
+- Interconnection constraints such as transmission limits
+- Market rules and dispatch signals from grid operators
+
+## Tradeoffs
+
+- **Economic vs. Degradation**: Aggressive cycling boosts revenue but accelerates battery wear, reducing lifespan.
+- **Energy vs. Power Capacity**: Batteries with high energy capacity can sustain longer discharge but may have slower response times.
+- **Grid Services vs. Arbitrage**: Prioritizing grid stabilization (e.g., frequency regulation) may reduce opportunities for energy price arbitrage.
+
+## Worked Example
+
+Consider a 10 MW / 40 MWh battery with a current SoC of 20 MWh. The dispatch software forecasts peak demand in 2 hours with a high price of $150/MWh and low prices of $30/MWh currently. Charging now at 5 MW for 4 hours costs $30 * 20 MWh = $600, and discharging later earns $150 * 20 MWh = $3,000. After accounting for 90% round-trip efficiency, net revenue is approximately $1,800. The software evaluates this against degradation costs estimated at $50 per cycle to decide to proceed.
+
+## Common Failure Modes
+
+- Overestimating price peaks, leading to missed revenue opportunities
+- Ignoring degradation effects causing premature battery replacement
+- Poor integration with grid signals causing dispatch conflicts
+- Unexpected interconnection bottlenecks limiting battery output
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/insight-on-sensor-tag-battery-life-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/concepts/insight-on-sensor-tag-battery-life-lessons-from-the-field.md
new file mode 100644
index 0000000000..3523fd25b4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/insight-on-sensor-tag-battery-life-lessons-from-the-field.md
@@ -0,0 +1,50 @@
+---
+type: "concept"
+title: "Insight on Sensor Tag Battery Life: lessons from the field"
+---
+
+# Insight on Sensor Tag Battery Life: lessons from the field
+
+Moderator: Welcome everyone to today’s session. We’re pleased to have Ulrika Brinmoor with us to speak on “Insight on Sensor Tag Battery Life: Lessons from the Field.” Ulrika, the floor is yours.
+
+Ulrika Brinmoor: Thank you, and thanks to everyone for joining this discussion on a topic that’s absolutely critical for cold-chain pharmaceutical logistics: sensor tag battery life. I’ll be sharing insights drawn from our recent deployments in multi-day international transit of temperature-sensitive vaccines and biologics.
+
+To set the context: sensor tags monitor crucial environmental parameters like temperature and humidity throughout transit. Their battery life directly influences data reliability and the integrity of the shipment. Extended battery duration means we can track shipments continuously even during long, complex routes crossing multiple countries.
+
+Our internal note titled “Insight on Sensor Tag Battery Life” outlined key findings after analyzing over 3,000 shipments between last June and February. The headline takeaway? Battery life must comfortably exceed the maximum anticipated transit time. For multi-day international routes that often last 7 to 10 days, a minimum sensor tag battery life of 14 days is optimal to account for delays and handling.
+
+One challenge we observed is that battery consumption spikes during periods when tags communicate wirelessly, especially in zones with poor network coverage. This intermittent connectivity causes repeated transmission attempts, draining the battery faster than expected. We recommend tags be configured to optimize transmission intervals and use low-power network protocols.
+
+Another factor influencing battery life is the sensor sampling frequency. While high sampling rates provide granular data, they also increase power draw. Our field data showed that samples taken every 15 minutes strike a good balance between data resolution and battery conservation for vaccine shipments.
+
+During deployments in Southeast Asia, some sensor tags failed before completion of transit, jeopardizing data continuity. Post-analysis revealed that environmental extremes, particularly high humidity and temperature, accelerate battery degradation. We’re now testing ruggedized tags with enhanced sealing and thermal insulation to mitigate these effects.
+
+We also noted the importance of pre-shipment battery health checks. Several failed tags had battery capacities below 80% at dispatch due to prolonged storage. Our new protocol mandates battery capacity verification of all sensor tags within 48 hours of shipment loading.
+
+To summarize the lessons:
+
+- Ensure sensor tag battery life exceeds expected transit time by at least 40%.
+- Optimize wireless transmission to reduce power spikes caused by poor connectivity.
+- Balance sensor sampling frequency to conserve battery without losing critical data.
+- Use ruggedized sensor tags suited for extreme environmental conditions.
+- Conduct battery health checks close to shipment dispatch.
+
+Looking ahead, we’re collaborating with our R&D team to develop smart sensor tags that dynamically adjust sampling and transmission based on detected environmental conditions, further extending battery life.
+
+I hope these insights help teams improve monitoring reliability, ensuring the integrity of temperature-sensitive pharmaceuticals throughout their cold-chain journey.
+
+Moderator: Thank you, Ulrika. We’ll open the floor for questions now.
+
+Audience member: Hi, could you elaborate on how you’re optimizing wireless transmission intervals to save battery life?
+
+Ulrika Brinmoor: Great question. We analyzed network coverage maps on common routes and adjusted transmission schedules so tags only attempt to connect when coverage is strong. Instead of continuous transmission, tags batch data and send in bursts during confirmed good signal periods, dramatically cutting retry attempts.
+
+Audience member: Are there specific sensor tag models you found more reliable in harsh climates?
+
+Ulrika Brinmoor: Yes, we trialed the ThermoSafe X3 and CoolerGuard Pro. CoolerGuard Pro, with its enhanced sealing and thermal insulation, performed better in humid, hot climates, maintaining battery capacity above 90% through 10-day transits.
+
+Audience member: How do you handle unexpected transit delays beyond the sensor tag’s battery life?
+
+Ulrika Brinmoor: We build in a 40% buffer over expected route duration to accommodate delays. In rare cases where delays exceed battery life, we implement mid-route tag swaps or supplementary cold packs with integrated sensors to bridge gaps.
+
+Moderator: Thanks, Ulrika, and thanks everyone for your engaging questions. That concludes our session on sensor tag battery life insights.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/integrated-fire-detection.md b/test/fixtures/ranking-shapes/source-a/concepts/integrated-fire-detection.md
new file mode 100644
index 0000000000..2e31ac270f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/integrated-fire-detection.md
@@ -0,0 +1,35 @@
+---
+type: "concept"
+title: "Integrated Fire Detection"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Integrated Fire Detection
+
+Integrated Fire Detection combines data from multiple sensor types—such as optical cameras, infrared (IR) sensors, and environmental monitors—to provide early, accurate wildfire alerts focused on utility vegetation management and outage risk reduction.
+
+## Definition
+Integrated Fire Detection refers to the fusion of diverse sensor inputs into a unified alert system capable of detecting fire signatures faster and more reliably than any single sensor type alone. It supports proactive line inspections and outage mitigation by pinpointing ignition sources near critical infrastructure.
+
+## How It Works
+- **Optical Cameras** feed real-time video to AI models trained on smoke and flame patterns.
+- **Infrared Sensors** detect heat anomalies below foliage cover, identifying smoldering hotspots invisible to RGB cameras.
+- **Environmental Sensors** measure local temperature, humidity, wind speed, and dryness indexes to contextualize fire likelihood.
+- Data streams converge in a central processing system applying weighted algorithms to generate a confidence score for potential fire events.
+- Alerts are sent to utility crews with geolocation and risk assessments.
+
+## Tradeoffs
+- **Accuracy vs. Cost:** Adding IR and environmental sensors improves detection but raises hardware and maintenance expenses.
+- **False Positives:** Smoke plumes from controlled burns or dust can trigger alarms, requiring sophisticated filtering.
+- **Latency:** Data fusion and AI inference introduce delays; optimizing for real-time warnings is challenging.
+
+## Worked Example
+A camera detects smoke at 7:02 AM, IR registers a 65°C hotspot at 7:03 AM, and humidity drops to 15%. The fusion algorithm assigns a 0.85 confidence score to a fire event near Line 42. Crews receive an alert by 7:05 AM, enabling a 15-minute response ahead of visible flame spread.
+
+## Common Failure Modes
+- Sensor obstruction by foliage or weather reduces detection reliability.
+- Network outages delay sensor data transmission.
+- Miscalibration of sensors skews confidence scoring.
+- Environmental factors like fog or dust cause false alarms requiring manual verification.
+
+Integrated Fire Detection enables utilities to intervene early, minimizing wildfire impact on power infrastructure and public safety.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/interconnection-queue-challenges-overview-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/concepts/interconnection-queue-challenges-overview-lessons-from-the-field.md
new file mode 100644
index 0000000000..1968cfa0b6
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/interconnection-queue-challenges-overview-lessons-from-the-field.md
@@ -0,0 +1,53 @@
+---
+type: "concept"
+title: "Interconnection Queue Challenges Overview: lessons from the field"
+---
+
+# Interconnection Queue Challenges Overview: lessons from the field
+
+Moderator: Welcome everyone to today’s session on grid-scale battery storage. We’re pleased to have Odalys Silvbrook with us to discuss “Interconnection Queue Challenges Overview: Lessons from the Field.” Odalys, the floor is yours.
+
+Odalys Silvbrook: Thank you. I’m excited to share insights from our recent work on grid-scale battery projects, specifically around the interconnection queue challenges that routinely delay battery dispatch software integration and complicate degradation modeling.
+
+To start, the interconnection queue is the primary bottleneck we face in bringing new battery storage projects online. At our company, VoltStor Solutions, we’ve tracked over 140 battery projects stuck in various states of queue limbo across three regional transmission organizations. Common delays include:
+
+- Lengthy feasibility studies, often exceeding 18 months
+- Network upgrade cost allocation disputes
+- Changing interconnection requirements due to evolving grid codes and market rules
+
+These factors create a cascade effect—dispatch software developers can’t finalize control algorithms without confirmed grid parameters, and degradation models remain provisional without firm operational schedules.
+
+One key lesson is the importance of early and continuous engagement with grid operators. When our integration team began collaborating directly with transmission planners during the cluster study phase, we reduced approval times for three pilot projects by nearly 30%. However, this level of interaction isn’t standard practice.
+
+Another area requiring attention is the evolving nature of interconnection criteria. Many grid operators are revising their requirements to better accommodate battery storage’s unique characteristics—fast ramp rates, state-of-charge constraints, and ancillary service capabilities. These revisions often introduce new technical data requests after initial queue studies, forcing software teams to redo modeling efforts.
+
+Additionally, cost allocation disputes over network upgrades are a persistent source of delay. For instance, in one project on the Western Grid, a disagreement about responsibility for substation upgrades added over a year to the timeline. These disputes not only impact project economics but also stall the entire interconnection process.
+
+From a degradation modeling standpoint, the uncertainty in operational profiles due to queue delays means degradation predictions remain hypothetical. Without firm dispatch schedules, estimating cycle depth, state-of-charge ranges, and thermal stress patterns becomes guesswork. This complicates warranty negotiations with manufacturers and long-term asset management.
+
+To summarize, the main interconnection queue challenges affecting grid-scale battery projects are:
+
+- Prolonged feasibility and impact studies
+- Uncertainty stemming from evolving interconnection requirements
+- Network upgrade cost allocation conflicts
+- A knock-on effect delaying dispatch software finalization and accurate degradation modeling
+
+Addressing these requires coordinated efforts among developers, grid operators, and regulators. We’ve advocated for reforms including more transparent queue timelines, earlier technical data sharing, and dispute resolution mechanisms to expedite upgrade cost allocations.
+
+I’d be happy to take questions now.
+
+Moderator: Thank you, Odalys. We have a few questions from the audience.
+
+Audience Member: You mentioned cluster study phases helping reduce delays. Can you elaborate on what that entails and how it helps?
+
+Odalys Silvbrook: Absolutely. Cluster studies group multiple interconnection requests geographically and technically to analyze their combined impact. By engaging early in these studies, our team can proactively identify potential network constraints and communicate with grid planners. This early feedback loop allows us to adjust project designs or prepare for upgrades before detailed impact studies are issued, thus speeding the overall approval process.
+
+Audience Member: How do evolving interconnection requirements affect your dispatch software development?
+
+Odalys Silvbrook: This is a major challenge. When grid codes update, for example by adding new voltage ride-through criteria or frequency response mandates, we often have to revise control logic and even hardware integration plans. Since these changes can come late in the queue process, it creates rework and delays. Having stable, predictable requirements early on would significantly streamline software development and testing.
+
+Audience Member: Are there any promising regulatory efforts to address cost allocation disputes?
+
+Odalys Silvbrook: Yes, some regions are pilot-testing mediation panels specifically for interconnection cost disputes. These panels aim to bring stakeholders together to negotiate solutions faster than traditional litigation or settlement processes. While early, the approach shows promise in reducing queue bottlenecks caused by prolonged disagreements.
+
+Moderator: Great insights. Thank you, Odalys, for an informative session. That concludes our talk on interconnection queue challenges.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/interconnection-queue-management.md b/test/fixtures/ranking-shapes/source-a/concepts/interconnection-queue-management.md
new file mode 100644
index 0000000000..5b34708f10
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/interconnection-queue-management.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "Interconnection Queue Management"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Interconnection Queue Management
+
+Interconnection Queue Management involves overseeing the sequential approval process for grid-scale battery projects seeking connection to the electrical grid. Each project submits a detailed application, which enters a queue managed by the regional grid operator. The operator evaluates technical feasibility, system impact, and available capacity before granting interconnection approval.
+
+The process works on a first-come, first-served basis but requires complex studies to ensure safe, reliable integration. Key tradeoffs include balancing timely approvals with thorough system impact assessments and managing queue congestion, which can delay projects or force costly upgrades.
+
+For example, Project Solaris, a 50 MW/200 MWh battery in the Central Grid Region, submitted its application in Q1 2023. By Q3 2023, it had progressed through initial screening and system impact studies, but a capacity constraint pushed its approval to Q2 2024. This delay risked increased development costs and potential battery degradation due to deferred commissioning.
+
+Common failure modes include underestimated network constraints, inaccurate load forecasts, and coordination gaps between the grid operator and developers, often causing multi-year delays or project cancellations.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/mastery-based-learning.md b/test/fixtures/ranking-shapes/source-a/concepts/mastery-based-learning.md
new file mode 100644
index 0000000000..efb879c5f8
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/mastery-based-learning.md
@@ -0,0 +1,39 @@
+---
+type: "concept"
+title: "Mastery-Based Learning"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Mastery-Based Learning
+
+Mastery-Based Learning (MBL) is an instructional approach centered on ensuring students demonstrate a thorough understanding of a topic before moving on to subsequent material. This method contrasts with traditional models that advance students based on time spent in class rather than mastery of content.
+
+### How It Works
+
+In an MBL system, the curriculum is divided into discrete learning units or skills. Students engage with content and complete assessments designed to measure their proficiency on each unit. Only upon achieving a predefined mastery threshold—often set at 80% or above—can a student progress to the next unit. Teacher dashboards track individual student progress, highlighting areas of struggle, while district procurement focuses on adaptive tutoring tools that facilitate personalized pacing and mastery tracking.
+
+### Tradeoffs
+
+- **Advantages:**
+ - Ensures solid foundational knowledge, reducing gaps.
+ - Personalizes learning pace, accommodating diverse learners.
+ - Provides actionable data for teachers to tailor instruction.
+
+- **Challenges:**
+ - May require more instructional time for some students, affecting pacing.
+ - Curriculum sequencing becomes rigid, potentially limiting exploration.
+ - Requires robust assessment design to accurately measure mastery.
+
+### Worked Example
+
+Consider a 5th-grade math unit with 10 skills. A student scores 6/10 (60%) on the initial assessment. The system identifies 4 skills needing remediation. After targeted tutoring sessions, the student retakes the assessment, scoring 8/10 (80%), thus achieving mastery. The teacher’s dashboard records this progress, unlocking the next unit for the student.
+
+### Common Failure Modes
+
+- **Assessment Misalignment:** Poorly designed assessments may not reflect true understanding, causing premature advancement or unnecessary repetition.
+
+- **Inflexible Pacing:** Strict mastery criteria can demotivate students who struggle with certain topics, leading to frustration.
+
+- **Data Overload:** Without clear visualization, teachers may find mastery data overwhelming, impeding timely interventions.
+
+Implementing MBL requires balancing rigor with flexibility, ensuring assessment quality, and supporting educators with clear, actionable analytics.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/multi-channel-recall-outreach.md b/test/fixtures/ranking-shapes/source-a/concepts/multi-channel-recall-outreach.md
new file mode 100644
index 0000000000..04bcd103af
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/multi-channel-recall-outreach.md
@@ -0,0 +1,35 @@
+---
+type: "concept"
+title: "Multi-Channel Recall Outreach"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Multi-Channel Recall Outreach
+
+Multi-Channel Recall Outreach
+
+Definition
+Multi-Channel Recall Outreach refers to the strategic use of diverse communication methods—such as phone calls, SMS, email, and mailed postcards—to re-engage dental patients who are due or overdue for appointments. Its goal is to maximize patient recall rates, improving chair utilization and timely care.
+
+How It Works
+The system segments patients based on recall status and preference data, then schedules outreach across multiple channels. For instance, an SMS reminder is sent first, followed by an email a week later, and a phone call if no response after two weeks. Automation platforms track responses and update patient status in real time.
+
+Tradeoffs
+- Higher engagement rates vs. increased operational complexity and cost
+- Potential patient annoyance if contacted too frequently or via unwanted channels
+- Data privacy concerns require strict compliance with consent regulations
+- Requires integration between scheduling software and communication tools
+
+Worked Example
+Out of 1,000 patients due for recall, the clinic sends:
+- 1,000 SMS reminders (30% response rate: 300 booked)
+- 700 follow-up emails (20% of remaining 700 respond: 140 booked)
+- 560 phone calls (15% response rate: 84 booked)
+Total bookings: 524 patients (52.4% recall rate)
+Without multi-channel outreach, a single SMS campaign might yield only 30%.
+
+Common Failure Modes
+- Outdated contact information leading to failed deliveries
+- Overlapping messages causing patient confusion or opt-outs
+- Lack of integration causing missed updates and double bookings
+- Ignoring patient communication preferences reducing engagement
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/predictive-outage-modeling.md b/test/fixtures/ranking-shapes/source-a/concepts/predictive-outage-modeling.md
new file mode 100644
index 0000000000..43a813f66b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/predictive-outage-modeling.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "Predictive Outage Modeling"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Predictive Outage Modeling
+
+Predictive outage modeling uses historical outage records combined with real-time sensor inputs—such as temperature, wind speed, and vegetation dryness—to estimate the likelihood of future power interruptions. This approach applies statistical and machine learning techniques to identify patterns that precede outages, enabling proactive maintenance and risk mitigation.
+
+How it works: The model ingests multi-year outage logs alongside continuous sensor streams from camera networks and line inspection drones. Features such as tree proximity alerts and line sag measurements are integrated. The output is a risk score per line segment, updated hourly.
+
+Tradeoffs include balancing model complexity with interpretability. Highly complex models may predict outages more accurately but can be difficult for field teams to trust and act upon. Additionally, data quality issues—such as sensor outages or incomplete historical data—can degrade performance.
+
+Example: For a 10-mile distribution line, the model predicts a 12% probability of outage within 24 hours under current conditions (wind 25 mph, humidity 15%). Field crews prioritize inspections accordingly.
+
+Common failure modes involve false positives during transient sensor anomalies and false negatives when novel weather patterns arise outside historical experience.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/rapid-disaster-analytics.md b/test/fixtures/ranking-shapes/source-a/concepts/rapid-disaster-analytics.md
new file mode 100644
index 0000000000..ea7fbad674
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/rapid-disaster-analytics.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "Rapid Disaster Analytics"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Rapid Disaster Analytics
+
+Rapid Disaster Analytics refers to techniques that leverage satellite imagery and automated algorithms to quickly assess catastrophe impact zones for insurers. Using a combination of high-revisit-rate satellites, pre-trained convolutional neural networks, and cloud-based processing pipelines, these systems produce near-real-time scores on roof condition, flood extent, and other damage indicators.
+
+The process begins with tasking satellites to capture imagery within 1-3 hours post-event. Next, onboard or ground-based AI models segment the images, highlighting damaged structures and flooded areas. Scores such as a roof damage index (0-1 scale) or percent flood coverage are generated per property parcel and delivered to claims teams within 4 hours.
+
+Tradeoffs include balancing resolution and revisit frequency, as higher resolution reduces coverage area and increases latency. False positives arise from shadows or seasonal changes, requiring ongoing model retraining.
+
+For example, after the 2023 Cedar Falls hurricane, Rapid Disaster Analytics processed 120,000 properties in 3.5 hours, identifying 18,000 with >0.7 roof damage scores. Common failure modes include cloud cover obscuring imagery and model drift causing score inaccuracies over time.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/redlining-automation.md b/test/fixtures/ranking-shapes/source-a/concepts/redlining-automation.md
new file mode 100644
index 0000000000..d85625410c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/redlining-automation.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "Redlining Automation"
+tags: ["legal-contract-automation"]
+---
+
+# Redlining Automation
+
+Redlining Automation refers to software-driven processes that identify and visually highlight changes between successive versions of legal contracts, eliminating the need for manual markup. Instead of lawyers manually inserting strikethroughs, underlines, or colored text to indicate edits, the system automatically compares document versions and generates a marked-up draft.
+
+How it works: The software ingests two contract versions, performs clause-level and sentence-level comparisons using natural language processing, and detects insertions, deletions, and modifications. It then produces a redlined output, color-coding changes using customizable schemes. Advanced tools integrate with procurement platforms to flag altered pricing or termination terms automatically.
+
+Tradeoffs: Automation dramatically reduces human error and speeds up review cycles but may struggle with format variations (e.g., scanned PDFs) or interpret nuanced legal language changes. The system usually requires clean, machine-readable input and can miss subtleties like altered clause intent if phrased differently but semantically equivalent.
+
+Example: Comparing Contract A (10,000 words) and Contract B (10,200 words), the tool flags 150 insertions and 70 deletions. It highlights that payment terms changed from Net 30 to Net 45 and identifies a new indemnity clause added in B. Reviewers save approximately 3 hours versus manual redlining.
+
+Common failure modes include false positives on whitespace or formatting shifts, missed changes in tables or embedded exhibits, and inability to parse handwritten or scanned annotations. Regular input standardization and manual spot checks mitigate these issues.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/roof-condition-scoring.md b/test/fixtures/ranking-shapes/source-a/concepts/roof-condition-scoring.md
new file mode 100644
index 0000000000..6751121708
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/roof-condition-scoring.md
@@ -0,0 +1,44 @@
+---
+type: "concept"
+title: "Roof Condition Scoring"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Roof Condition Scoring
+
+Roof Condition Scoring refers to an analytical process where satellite imagery is used to quantitatively assess the severity of damage to building roofs, primarily for property insurers. This technique supports underwriting, claims triage, and catastrophe response by providing rapid, large-scale damage estimates without needing ground visits.
+
+### How it Works
+
+1. **Image Acquisition**: High-resolution satellite images (typically 30cm per pixel) are acquired, ideally within 48 hours of a damaging event.
+2. **Preprocessing**: Images are orthorectified and cloud-obscured areas masked out.
+3. **Feature Extraction**: Algorithms detect roof structures and identify damage indicators such as missing shingles, discoloration, and water pooling.
+4. **Scoring Model**: A machine learning model assigns a damage score from 0 (no damage) to 10 (total loss), based on extracted features.
+5. **Aggregation**: Scores are aggregated by property clusters or postal codes for portfolio-level insights.
+
+### Tradeoffs
+
+- **Resolution vs. Coverage**: Higher resolution images provide more detail but cost more and cover smaller areas.
+- **Timeliness vs. Accuracy**: Rapid image capture may reduce cloud interference but limits the number of usable images.
+- **Model Complexity vs. Interpretability**: Complex models improve accuracy but reduce explainability for adjusters.
+
+### Worked Example
+
+For a hurricane-impacted area of 1,000 properties, satellite imagery reveals:
+
+- 600 roofs scored between 0-2 (minor/no damage)
+- 300 roofs scored between 3-6 (moderate damage)
+- 100 roofs scored above 7 (severe damage)
+
+If each severe damage roof has an average claim of $15,000, moderate damage averages $5,000, and minor damage $500, the estimated total claim exposure is:
+
+(100 × $15,000) + (300 × $5,000) + (600 × $500) = $1.5M + $1.5M + $0.3M = $3.3M
+
+### Common Failure Modes
+
+- Cloud cover obscuring roofs leads to missed damage.
+- Shadows causing false damage detection.
+- Older roofs with wear patterns misclassified as storm damage.
+- Rapid vegetation growth hiding roof defects post-event.
+
+Understanding these factors is critical for calibrating models and setting appropriate confidence thresholds.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/teacher-dashboard-analytics.md b/test/fixtures/ranking-shapes/source-a/concepts/teacher-dashboard-analytics.md
new file mode 100644
index 0000000000..f531e0f099
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/teacher-dashboard-analytics.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "Teacher Dashboard Analytics"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Teacher Dashboard Analytics
+
+Teacher Dashboard Analytics are visual tools designed to give educators clear, actionable insights into student learning progress within adaptive tutoring systems. These dashboards display mastery levels across subjects, highlight skill gaps, and track pacing relative to curriculum standards, enabling timely interventions.
+
+Data is typically aggregated from student interactions with adaptive lessons, quizzes, and exercises. The dashboard updates in near real-time, using color-coded mastery indicators—green for proficient, yellow for developing, and red for struggling—to help teachers prioritize support. Filters allow viewing by class, subgroup, or individual student.
+
+Tradeoffs include balancing detail versus simplicity: too much data can overwhelm, while too little risks missing nuanced learning issues. Additionally, data latency and accuracy depend on the underlying assessment design and student engagement.
+
+For example, in Lincoln Middle School's 7th-grade math class, the dashboard shows 65% of students have mastered fractions (green), 25% are developing (yellow), and 10% are struggling (red). The teacher uses this to schedule targeted group sessions.
+
+Common failures arise from incomplete data due to low student login rates or misaligned assessments failing to capture true mastery.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/temperature-excursion-definition.md b/test/fixtures/ranking-shapes/source-a/concepts/temperature-excursion-definition.md
new file mode 100644
index 0000000000..984793fc42
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/temperature-excursion-definition.md
@@ -0,0 +1,19 @@
+---
+type: "concept"
+title: "Temperature Excursion Definition"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Temperature Excursion Definition
+
+Temperature Excursion Definition
+
+A temperature excursion occurs when a pharmaceutical shipment’s temperature deviates beyond predefined limits during transport or storage. These limits are typically set based on the product’s stability profile, for example, 2°C to 8°C for refrigerated vaccines. Excursions can compromise drug efficacy and safety.
+
+Monitoring is done via sensor tags that record temperature data at intervals, often every 5 minutes. Alerts can be triggered if temperatures exceed thresholds, enabling corrective action.
+
+Tradeoffs include balancing tight temperature ranges—minimizing risk but increasing false alarms and costs—against wider ranges that reduce sensitivity but risk product degradation.
+
+Example: A shipment of 500 vaccine doses requires 2–8°C. A sensor records a 2-hour excursion at 9°C due to vehicle refrigeration failure. This 1°C breach for 120 minutes exceeds allowable excursion time (e.g., max 30 min over 8°C), indicating potential compromise.
+
+Common failures: sensor calibration drift, delayed alert notifications, and improper packaging insulation.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/tiebot-integration-pilot-overview.md b/test/fixtures/ranking-shapes/source-a/concepts/tiebot-integration-pilot-overview.md
new file mode 100644
index 0000000000..2521f73c96
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/tiebot-integration-pilot-overview.md
@@ -0,0 +1,8 @@
+---
+type: "concept"
+title: "TieBot integration pilot overview"
+---
+
+# TieBot integration pilot overview
+
+The TieBot Integration Pilot explores embedding TieBot’s automated rebar tying system into active construction workflows. This pilot evaluates TieBot’s impact on site efficiency, worker safety, and quality control. Key terms include TieBot Unit (the robotic arm), TieCycle (one complete tie operation), and SyncPoint (integration checkpoints with site management software). Typically, the pilot is owned by the Robotics Deployment Lead in collaboration with Site Operations and Safety teams, ensuring alignment between technical deployment and construction site needs.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/wildfire-sensor-pilot-overview.md b/test/fixtures/ranking-shapes/source-a/concepts/wildfire-sensor-pilot-overview.md
new file mode 100644
index 0000000000..c58c05a850
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/wildfire-sensor-pilot-overview.md
@@ -0,0 +1,8 @@
+---
+type: "concept"
+title: "Wildfire sensor pilot overview"
+---
+
+# Wildfire sensor pilot overview
+
+The Wildfire Sensor Pilot evaluates a camera and sensor network designed to identify wildfire risks near utility vegetation corridors. It matters by enabling early detection of sparks, smoke, or heat anomalies that precede outages or fire spread. Key vocabulary includes “sensor nodes” (camera and thermal units), “risk zones” (high-threat vegetation areas), and “alert thresholds” (pre-set triggers for anomalies). Typically, this pilot is owned by the Utility Risk Operations team, collaborating with Field Inspection and Data Analytics groups to refine detection accuracy and response protocols.
diff --git a/test/fixtures/ranking-shapes/source-a/concepts/yield-forecast-modeling.md b/test/fixtures/ranking-shapes/source-a/concepts/yield-forecast-modeling.md
new file mode 100644
index 0000000000..c776d3f3a9
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/concepts/yield-forecast-modeling.md
@@ -0,0 +1,13 @@
+---
+type: "concept"
+title: "Yield Forecast Modeling"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Yield Forecast Modeling
+
+Yield forecast modeling predicts crop quantities in vertical farms using statistical and machine learning methods. It analyzes input variables like nutrient dosing levels, light intensity, temperature, and historical yields to estimate upcoming harvest weights. Models range from linear regressions to complex neural networks, balancing interpretability and accuracy.
+
+For example, a regression model might use past data showing that increasing nitrogen dosing by 5% increases yield by 0.3 kg per grow tower. If the baseline yield is 10 kg, the forecasted yield becomes 10.3 kg.
+
+Tradeoffs include data quality dependence, model complexity, and adaptability to changing conditions. Common failures arise from sensor errors, unmodeled pests, or sudden environmental shifts causing inaccurate predictions. Regular retraining and sensor calibration are essential for reliability.
diff --git a/test/fixtures/ranking-shapes/source-a/images/2024-10-15-img-2726.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2024-10-15-img-2726.jpg.md
new file mode 100644
index 0000000000..8deb84f1fe
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2024-10-15-img-2726.jpg.md
@@ -0,0 +1,12 @@
+---
+type: "image"
+title: "2024-10-15-img-2726.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+Receipt - Torben's Corner Cafe
+Flat white 3.80
+Total 18.40
+Cashier Dorrit Ibbmere
diff --git a/test/fixtures/ranking-shapes/source-a/images/2024-11-19-img-7599.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2024-11-19-img-7599.jpg.md
new file mode 100644
index 0000000000..897cbcadf8
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2024-11-19-img-7599.jpg.md
@@ -0,0 +1,11 @@
+---
+type: "image"
+title: "2024-11-19-img-7599.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+Dorrit Fennmere
+WHITEBOARD: Q3 roadmap
+owner Rune
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-01-03-img-6342.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-01-03-img-6342.jpg.md
new file mode 100644
index 0000000000..808c634edc
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-01-03-img-6342.jpg.md
@@ -0,0 +1,11 @@
+---
+type: "image"
+title: "2025-01-03-img-6342.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+Veda Fennmoor
+WHITEBOARD: Q3 roadmap
+owner Zosia
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-02-23-img-7472.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-02-23-img-7472.jpg.md
new file mode 100644
index 0000000000..4aced36252
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-02-23-img-7472.jpg.md
@@ -0,0 +1,11 @@
+---
+type: "image"
+title: "2025-02-23-img-7472.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+Dorrit Brinhollow
+WHITEBOARD: Q3 roadmap
+owner Tobiah
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-06-23-img-2265.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-06-23-img-2265.jpg.md
new file mode 100644
index 0000000000..2f0538b607
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-06-23-img-2265.jpg.md
@@ -0,0 +1,11 @@
+---
+type: "image"
+title: "2025-06-23-img-2265.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+Marlow Fennford
+WHITEBOARD: Q3 roadmap
+owner Zosia
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-07-15-img-5385.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-07-15-img-5385.jpg.md
new file mode 100644
index 0000000000..65ca58a548
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-07-15-img-5385.jpg.md
@@ -0,0 +1,12 @@
+---
+type: "image"
+title: "2025-07-15-img-5385.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+BADGE
+Saskia Jorvley
+Visitor - Hall B
+No. 5897
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-07-22-img-8976.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-07-22-img-8976.jpg.md
new file mode 100644
index 0000000000..81d3b80afc
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-07-22-img-8976.jpg.md
@@ -0,0 +1,12 @@
+---
+type: "image"
+title: "2025-07-22-img-8976.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+BADGE
+Ysolde Jorvley
+Visitor - Hall B
+No. 3679
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-09-03-img-1181.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-09-03-img-1181.jpg.md
new file mode 100644
index 0000000000..005a6ac2d7
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-09-03-img-1181.jpg.md
@@ -0,0 +1,12 @@
+---
+type: "image"
+title: "2025-09-03-img-1181.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+BADGE
+Lisbet Ulmford
+Visitor - Hall B
+No. 5334
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-09-06-img-9172.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-09-06-img-9172.jpg.md
new file mode 100644
index 0000000000..bd41d1b0f0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-09-06-img-9172.jpg.md
@@ -0,0 +1,12 @@
+---
+type: "image"
+title: "2025-09-06-img-9172.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+BADGE
+Torben Ulmmoor
+Visitor - Hall B
+No. 2014
diff --git a/test/fixtures/ranking-shapes/source-a/images/2025-11-25-img-8418.jpg.md b/test/fixtures/ranking-shapes/source-a/images/2025-11-25-img-8418.jpg.md
new file mode 100644
index 0000000000..99cb8714d3
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/images/2025-11-25-img-8418.jpg.md
@@ -0,0 +1,12 @@
+---
+type: "image"
+title: "2025-11-25-img-8418.jpg"
+ocr: true
+source_kind: "image"
+---
+
+OCR text:
+Receipt - Saskia's Corner Cafe
+Flat white 3.80
+Total 18.40
+Cashier Rhosyn Jorvham
diff --git a/test/fixtures/ranking-shapes/source-a/media/advances-in-automated-line-inspections.md b/test/fixtures/ranking-shapes/source-a/media/advances-in-automated-line-inspections.md
new file mode 100644
index 0000000000..7c1066590b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/advances-in-automated-line-inspections.md
@@ -0,0 +1,27 @@
+---
+type: "media"
+title: "Advances in Automated Line Inspections"
+tags: ["wildfire-detection-and-utility"]
+source_kind: "transcript"
+show: "The Tavley Briefing"
+---
+
+# Advances in Automated Line Inspections
+
+Corvin Talvbrook: Welcome back to The Tavley Briefing. Today, we’re diving into the latest advances in automated line inspections, especially how drones are reshaping wildfire risk management. Joining me is Quillan Heskmoor, lead engineer at AeroVigil, a company pioneering these technologies. Quillan, great to have you here.
+
+Quillan Heskmoor: Thanks, Corvin. Excited to chat about this—it’s a field moving faster than most realize.
+
+Corvin Talvbrook: Let’s start with the big picture. How have drone inspections evolved in the past two years?
+
+Quillan Heskmoor: Well, two years ago, most drones were limited to visual imaging, kind of like birds-eye photos. But now, thanks to breakthroughs in hyperspectral sensors and onboard AI, they’re not just capturing images—they’re analyzing vegetation health, identifying stressed trees near power lines in near real-time. For example, last fall, we flew a 30-drone swarm over the Wexley Ridge corridor. The system flagged 120 high-risk trees that had fungal infections invisible to the naked eye.
+
+Corvin Talvbrook: That’s impressive. How does this impact crew safety and efficiency?
+
+Quillan Heskmoor: Tremendously. Instead of sending line crews into potentially hazardous terrain blindly, we provide precise, data-driven maps. In one pilot project near Lakeford, drone-driven inspections cut line inspection time by 40% and reduced worker exposure to wildfire zones by over 60%. It’s a game changer.
+
+Corvin Talvbrook: Any challenges still holding back widespread adoption?
+
+Quillan Heskmoor: Definitely. Regulatory hurdles remain a big one. Also, integrating data from drone flights with existing utility management platforms is complex. But with ongoing investments and collaborations, I’m optimistic 2025 will see many utilities fully embrace these tools.
+
+Corvin Talvbrook: Thanks, Quillan. Fascinating insights into a technology that’s literally changing the landscape of wildfire prevention.
diff --git a/test/fixtures/ranking-shapes/source-a/media/advances-in-post-flood-damage-mapping.md b/test/fixtures/ranking-shapes/source-a/media/advances-in-post-flood-damage-mapping.md
new file mode 100644
index 0000000000..92ff0bb633
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/advances-in-post-flood-damage-mapping.md
@@ -0,0 +1,43 @@
+---
+type: "media"
+title: "Advances in post-flood damage mapping"
+tags: ["satellite-imagery-analytics-for-insurers"]
+source_kind: "transcript"
+show: "The Tavdra Briefing"
+---
+
+# Advances in post-flood damage mapping
+
+Torben Silvdale: Welcome back to The Tavdra Briefing, everyone. Today we’re diving into some exciting advances in post-flood damage mapping, a crucial area for insurers and disaster response teams alike. I’m joined by Ilsabet Holmmere, lead scientist at StrataVis Analytics, a company pioneering satellite-based roof condition scoring and flood extent analysis. Ilsabet, thanks for joining us.
+
+Ilsabet Holmmere: Thanks for having me, Torben. It’s great to be here.
+
+Torben Silvdale: To kick things off, can you give us a sense of what’s changed in flood damage mapping over the last couple of years? I know satellite imagery has been around for a while, but what’s really new?
+
+Ilsabet Holmmere: Absolutely. So, the biggest shift has been in spatial and temporal resolution — and the integration of AI models that can interpret those images much faster and more precisely. For example, StrataVis recently completed a project with InsurSure that involved scanning a 1,200 square kilometer flood zone in Southern Tavdra. We used a constellation of microsatellites that revisit the area every 45 minutes, compared to the previous 24-hour revisit time.
+
+Torben Silvdale: That’s a huge improvement. How does the frequency of the imagery impact damage assessment?
+
+Ilsabet Holmmere: The near-real-time updates are game-changing. After the floodwaters receded, we had sequential images showing not just static water levels but also the drying patterns, debris accumulation, and critical infrastructure exposure. This enabled adjusters to prioritize claims faster. For instance, one insurer reported reducing their initial damage assessment from six days down to just 18 hours.
+
+Audience member (off mic): Could you share an example where this rapid mapping changed the course of the response?
+
+Ilsabet Holmmere: Sure. In the 2023 flood near Rivermoor, a community hospital’s roof was partially compromised, but it wasn’t obvious from ground reports because access roads were flooded. Our algorithms flagged the roof as “severely damaged” within hours. That triggered emergency reinforcement crews to act before the next storm, preventing further catastrophic damage.
+
+Torben Silvdale: That’s impressive. What about the accuracy of these assessments? Are insurers confident enough to rely on satellite data alone?
+
+Ilsabet Holmmere: Great question. Early on, there was skepticism. But thanks to advances in multispectral imaging and machine learning models trained on tens of thousands of validated roof and terrain samples, accuracy has reached above 92% in recent trials. We do complement satellite data with drone flyovers or on-the-ground photos for high-value assets, but satellite-first approaches drastically reduce costs and speed.
+
+Torben Silvdale: You mentioned machine learning. What kind of data and models are you using?
+
+Ilsabet Holmmere: Our platform ingests visible, near-infrared, and synthetic aperture radar (SAR) data. SAR is especially useful during cloudy or rainy conditions when optical imagery is obscured. We use convolutional neural networks trained on labelled datasets covering different roof materials, flood types, and damage severities. This multi-modal approach helps us distinguish between standing water, mud deposits, and structural damage.
+
+Audience member (off mic): How do you handle false positives, like confusing shadows or wet surfaces for damage?
+
+Ilsabet Holmmere: This was a big challenge initially. We incorporated temporal filters that look at changes over several images, plus contextual cues like proximity to flood zones and roof slope. That reduced false positives by 35% compared to earlier models.
+
+Torben Silvdale: What’s next for post-flood damage mapping? Any upcoming features or research areas you’re excited about?
+
+Ilsabet Holmmere: We’re working on integrating crowd-sourced photos and social media reports for real-time validation. Also, exploring hyperspectral imaging to detect moisture intrusion before visible damage occurs. The goal is to move from reactive to predictive analytics, helping insurers and emergency responders anticipate damage rather than just assess it.
+
+Torben Silvdale: Fascinating. Thanks so much for sharing these insights, Ilsabet. And thanks to our listeners for tuning in to The Tavdra Briefing. We’ll be back next week with another deep dive into the cutting edge of satellite analytics. Take care!
diff --git a/test/fixtures/ranking-shapes/source-a/media/balancing-nutrients-in-vertical-systems.md b/test/fixtures/ranking-shapes/source-a/media/balancing-nutrients-in-vertical-systems.md
new file mode 100644
index 0000000000..f5eabb3e20
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/balancing-nutrients-in-vertical-systems.md
@@ -0,0 +1,29 @@
+---
+type: "media"
+title: "Balancing Nutrients in Vertical Systems"
+tags: ["vertical-farming-and-indoor-agriculture"]
+source_kind: "transcript"
+show: "The Umbdra Review"
+---
+
+# Balancing Nutrients in Vertical Systems
+
+Anwen Quenstead: Welcome back to The Umbdra Review. Today, we’re diving into nutrient optimization for stacked grow towers with Rhosyn Kesphollow from Verdant Sky Farms. Rhosyn, thanks for joining us.
+
+Rhosyn Kesphollow: Thanks, Anwen. Glad to be here.
+
+Anwen: So, nutrient dosing in vertical systems — what’s the biggest challenge you face?
+
+Rhosyn: It’s maintaining balance across multiple layers. For example, we had a batch of basil where the lower tiers were showing magnesium deficiencies while the upper tiers looked fine. Turns out, the nutrient solution was getting diluted unevenly due to flow rate variations.
+
+Anwen: Interesting. How did you fix that?
+
+Rhosyn: We installed real-time sensors at three heights and adjusted dosing pumps accordingly. That reduced magnesium issues by 60% in two months.
+
+Anwen: That’s impressive. Any surprises from yield forecasting when you started tuning nutrients?
+
+Rhosyn: Definitely. We saw yield predictability improve by about 25%, especially for leafy greens. Nutrient consistency really tightens the model accuracy.
+
+Anwen: Great insights, Rhosyn. Thanks for sharing these stories with us today.
+
+Rhosyn: My pleasure, Anwen.
diff --git a/test/fixtures/ranking-shapes/source-a/media/best-practices-for-dosing-systems-lessons-from-the-field-summary.md b/test/fixtures/ranking-shapes/source-a/media/best-practices-for-dosing-systems-lessons-from-the-field-summary.md
new file mode 100644
index 0000000000..36edecd859
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/best-practices-for-dosing-systems-lessons-from-the-field-summary.md
@@ -0,0 +1,15 @@
+---
+type: "media"
+title: "Best Practices for Dosing Systems: lessons from the field (summary)"
+source_kind: "summary"
+---
+
+# Best Practices for Dosing Systems: lessons from the field (summary)
+
+Dorrit Marqdale, an expert in hydroponic nutrient delivery, presented key recommendations for optimizing dosing systems in vertical farming, focusing on accuracy, consistency, and responsiveness to enhance crop yield and quality. She highlighted several practical lessons from VerdantGrow Labs, including the importance of frequent calibration, effective nutrient mixing, system redundancy, and the integration of real-time sensor data with AI forecasting. Dorrit emphasized that these strategies have supported the successful scale-up of grow towers from pilot to commercial operations, improving both nutrient delivery precision and resource efficiency.
+
+- Dosing pumps should maintain flow rate stability within ±2% over 24 hours to prevent nutrient imbalances.
+- Nutrient reservoirs require continuous low-speed agitation to avoid stratification and ensure homogeneous dosing.
+- EC and pH sensors need recalibration every 72 hours during active growth phases for accurate monitoring.
+- Dual dosing lines with automatic failover add redundancy, reducing risks of crop loss despite a roughly 18% increase in system costs.
+- Integration of AI-driven forecasting with real-time sensor data enables quicker dosing adjustments, cutting nutrient response latency to under 5 minutes and improving resource efficiency by 15%.
diff --git a/test/fixtures/ranking-shapes/source-a/media/best-practices-for-dosing-systems-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/media/best-practices-for-dosing-systems-lessons-from-the-field.md
new file mode 100644
index 0000000000..efc1afd1e1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/best-practices-for-dosing-systems-lessons-from-the-field.md
@@ -0,0 +1,53 @@
+---
+type: "media"
+title: "Best Practices for Dosing Systems: lessons from the field"
+source_kind: "transcript"
+---
+
+# Best Practices for Dosing Systems: lessons from the field
+
+Moderator: Welcome everyone to today’s session on vertical farming innovations. We’re pleased to have Dorrit Marqdale with us, an expert in hydroponic nutrient delivery. Dorrit will be presenting “Best Practices for Dosing Systems: Lessons from the Field.” Dorrit, the floor is yours.
+
+Dorrit Marqdale: Thank you. It’s great to be here. Today I want to share practical insights on optimizing dosing systems in hydroponic grow towers—a critical component for consistent crop yield and quality in indoor agriculture.
+
+Calibration of nutrient dosing must prioritize accuracy, repeatability, and responsiveness. From our work at VerdantGrow Labs, we’ve refined a set of key parameters that define best practices:
+
+- **Flow rate stability**: Dosing pumps should maintain ±2% deviation in flow rate over 24 hours to prevent nutrient imbalances.
+- **Nutrient concentration targets**: Calibrations must align with crop-specific EC (electrical conductivity) and pH setpoints, typically EC 1.2–1.8 mS/cm and pH 5.8–6.2 for leafy greens.
+- **Mixing homogeneity**: Ensure nutrient reservoirs have sufficient agitation to prevent stratification, which can skew dosing accuracy.
+- **Sensor calibration frequency**: EC and pH sensors require recalibration every 72 hours during active growth phases to maintain data fidelity.
+- **Response latency**: Systems should detect and adjust nutrient levels within 5 minutes of deviation to avoid stress on plants.
+- **Redundancy protocols**: Dual dosing lines with automatic failover reduce risk of crop loss from pump failures.
+
+One practical lesson from our trials in the Verdant Tower Facility came from a dosing instability in the romaine lettuce bay. We noticed a yield drop correlated with a 7% drift in flow rate after 10 days without pump recalibration. Implementing a weekly pump verification schedule restored nutrient delivery precision and improved yields by 12% over the next growth cycle.
+
+Another key insight relates to nutrient mixing. Static reservoirs experienced nutrient layering, leading to inconsistent EC readings and underdosing of nitrogen in lower strata. Upgrading to continuous low-speed agitation mixing reduced variance in nutrient concentration by 30% and eliminated crop stress symptoms linked to nitrogen deficiency.
+
+Lastly, integrating real-time sensor data with AI-driven forecasting models enabled preemptive adjustments to dosing schedules based on predicted plant uptake rates. This dynamic dosing approach shortened nutrient response latency from hours to minutes, improving overall resource efficiency by 15%.
+
+To summarize:
+
+- Regular calibration of dosing pumps and sensors is essential.
+- Maintain nutrient stability through effective mixing and reservoir management.
+- Utilize redundancy to safeguard against equipment failure.
+- Leverage data integration to optimize dosing responsiveness.
+
+These best practices have been instrumental in scaling up our grow towers from pilot to commercial scale while keeping nutrient delivery precise and consistent.
+
+Moderator: Thanks, Dorrit. We have time for a few questions.
+
+Audience: You mentioned recalibration every 72 hours for sensors. Is that frequency practical for large commercial setups?
+
+Dorrit Marqdale: Great question. For large-scale operations, automation helps a lot. We employ automated sensor cleaning and calibration stations within the nutrient line, which can process sensors in batches without manual intervention. If that’s not possible, prioritizing sensors in critical growth zones for more frequent calibration is an effective compromise.
+
+Audience: How do you handle variability in source water quality affecting dosing precision?
+
+Dorrit Marqdale: Source water variability is often overlooked but critical. We continuously monitor inflow water parameters and adjust baseline nutrient recipes accordingly. Pre-treatment systems like reverse osmosis help stabilize input quality. Also, feedback loops from nutrient sensors downstream ensure dosing compensates for any detected fluctuations.
+
+Audience: Could you expand on redundancy? How complex or costly is implementing dual dosing lines?
+
+Dorrit Marqdale: While dual lines do increase system complexity and upfront cost by about 18%, the risk mitigation benefits outweigh this, especially in commercial farms where a single dosing failure can cause significant crop loss. Automatic failover controllers switch dosing seamlessly, ensuring uninterrupted nutrient delivery.
+
+Moderator: Excellent insights. Thank you, Dorrit, for sharing your expertise.
+
+Dorrit Marqdale: Thank you for having me. I’m happy to discuss this further offline.
diff --git a/test/fixtures/ranking-shapes/source-a/media/camera-network-sensitivity-calibration-lessons-from-the-field-summary.md b/test/fixtures/ranking-shapes/source-a/media/camera-network-sensitivity-calibration-lessons-from-the-field-summary.md
new file mode 100644
index 0000000000..6df4a44cd4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/camera-network-sensitivity-calibration-lessons-from-the-field-summary.md
@@ -0,0 +1,15 @@
+---
+type: "media"
+title: "Camera Network Sensitivity Calibration: lessons from the field (summary)"
+source_kind: "summary"
+---
+
+# Camera Network Sensitivity Calibration: lessons from the field (summary)
+
+Isolde Brindale, lead engineer on the wildfire detection camera network project, presented on improving camera sensitivity calibration to reduce false alarms caused by dust and fog. The network covers 1,200 cameras across high-risk zones, monitoring vegetation and wildfire indicators. Over 18 months, her team executed a three-phase project involving data collection during dust and fog seasons, development of a dynamic threshold algorithm responsive to environmental conditions, and field deployment on 300 cameras with significant false alarm reduction. Key insights include the integration of weather station data for more precise adjustments and the necessity of seasonal recalibration to maintain accuracy. Plans to scale the adaptive calibration across the full network and incorporate machine learning for enhanced threshold tuning were also discussed.
+
+- The project involved 1,200 cameras across Northern Ridge and Southern Valley zones to monitor wildfire risks.
+- A dynamic thresholding algorithm was developed to adjust sensitivity by up to 15% during dust storms and fog events.
+- Field tests on 300 cameras resulted in a 42% reduction in false alarms and a 30% decrease in unnecessary utility dispatches.
+- Integration of weather station data and monthly automated recalibration improved detection precision and long-term reliability.
+- Future plans include deploying machine learning models to refine threshold adjustments beyond current rule-based methods.
diff --git a/test/fixtures/ranking-shapes/source-a/media/camera-network-sensitivity-calibration-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/media/camera-network-sensitivity-calibration-lessons-from-the-field.md
new file mode 100644
index 0000000000..719ea85b3f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/camera-network-sensitivity-calibration-lessons-from-the-field.md
@@ -0,0 +1,46 @@
+---
+type: "media"
+title: "Camera Network Sensitivity Calibration: lessons from the field"
+source_kind: "transcript"
+---
+
+# Camera Network Sensitivity Calibration: lessons from the field
+
+Moderator: Welcome everyone to today’s session. We’re pleased to have Isolde Brindale with us to discuss “Camera Network Sensitivity Calibration: Lessons from the Field.” Isolde is a lead engineer on our wildfire detection camera network project. Please join me in welcoming her.
+
+Isolde Brindale: Thank you for the warm introduction. Today I’ll share insights from our recent work on adjusting detection thresholds in our camera network to reduce false alarms caused by environmental factors like dust and fog—critical for improving utility vegetation management and outage risk mitigation.
+
+Our network of 1,200 cameras spans the high-risk Northern Ridge and Southern Valley zones. These cameras continuously monitor line corridors and vegetation growth, triggering alerts when smoke plumes or heat signatures indicative of wildfire are detected. However, the challenge lies in balancing sensitivity: too low, and we miss early signs of fire; too high, and we drown in false alarms. Dust storms and fog are frequent weather conditions that currently skew sensor readings.
+
+To address this, we embarked on a multi-phase sensitivity calibration project over the past 18 months.
+
+**Phase 1: Baseline Data Collection**
+We collected six months of continuous raw sensor data during the spring dust storm season and early fall fog period. This dataset helped us characterize how particulate matter and moisture interfere with infrared and visible light sensors. We analyzed over 10,000 false positives logged during these months.
+
+**Phase 2: Threshold Adjustment Algorithm Development**
+Using baseline data, we developed a dynamic thresholding algorithm that adjusts detection sensitivity according to environmental inputs. For example, during intense dust events, the algorithm raises smoke detection thresholds by up to 15% to prevent alert flooding. Conversely, during clear conditions, thresholds revert to more sensitive settings.
+
+**Phase 3: Field Deployment and Feedback**
+We deployed the updated algorithm on 300 cameras across two test corridors prone to dust and fog. Over three months, false alarms dropped by 42%, while true fire detections remained consistent with prior performance. Utility line inspection teams reported a 30% reduction in unnecessary dispatches.
+
+One lesson learned is the importance of integrating weather station data with camera telemetry. Cameras alone can’t reliably distinguish dust from smoke, but correlating particulate sensors and humidity readings enables more precise threshold tuning.
+
+Another finding was the need for seasonal recalibration. Dust composition and fog density vary across months, so fixed thresholds degrade accuracy over time. Implementing an automated monthly recalibration schedule based on localized environmental data has improved long-term detection reliability.
+
+In summary, adjusting detection thresholds using real-time environmental data markedly reduces false alarms caused by dust and fog without compromising wildfire detection capability. Our ongoing goal is to scale this adaptive calibration model across the full 1,200-camera network by Q4 2024.
+
+Thank you for your attention. I’m happy to take questions.
+
+Audience Member: How do you ensure the algorithm doesn’t miss real fires during dust storms when thresholds are raised?
+
+Isolde Brindale: Great question. We incorporate multiple data streams including thermal IR signatures which are less affected by dust, and we use conservative threshold increases capped at 15%. We also maintain manual monitoring during peak dust events as a safety net while continuously refining the model.
+
+Audience Member: Has this calibration affected detection latency at all?
+
+Isolde Brindale: Minimal impact. The algorithm runs locally on camera edge processors, so adjustments happen in near real-time. Our tests show detection latency stays within the same 2-second window as before calibration.
+
+Audience Member: Are there plans to incorporate machine learning into the calibration process?
+
+Isolde Brindale: Yes, that’s our next step. We’re piloting ML models that learn from ongoing false alarm patterns and adapt thresholds dynamically beyond rule-based adjustments. Early results are promising but we want to ensure robustness before full rollout.
+
+Moderator: Thank you, Isolde, for sharing these valuable lessons. That concludes our session.
diff --git a/test/fixtures/ranking-shapes/source-a/media/drone-mapping-innovations-in-construction.md b/test/fixtures/ranking-shapes/source-a/media/drone-mapping-innovations-in-construction.md
new file mode 100644
index 0000000000..d49464ff5c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/drone-mapping-innovations-in-construction.md
@@ -0,0 +1,27 @@
+---
+type: "media"
+title: "Drone Mapping Innovations in Construction"
+tags: ["construction-site-robotics"]
+source_kind: "transcript"
+show: "The Xanaly Sessions"
+---
+
+# Drone Mapping Innovations in Construction
+
+Bram Fennton: Welcome back to The Xanaly Sessions. Today, we’re diving into drone mapping innovations in construction sites, specifically how aerial surveying is transforming job site analytics. I’m thrilled to have Odalys Wenkcroft with us. She’s the lead engineer on the SkyGrid project, which has been pushing the envelope in autonomous drone surveys for rebar tying and safety monitoring. Odalys, thanks for joining.
+
+Odalys Wenkcroft: Thanks, Bram. Happy to be here.
+
+Bram Fennton: So, Odalys, can you give us a snapshot of how drone mapping has changed over the last couple of years?
+
+Odalys Wenkcroft: Absolutely. Up until about 2021, most drone surveys were manual or semi-automated, relying heavily on human pilots and post-flight data stitching. SkyGrid introduced real-time 3D mapping algorithms that stitch data as drones fly, cutting survey time by 40%. For example, on a recent high-rise job in Vellum City, we completed full rebar layout scans in under 30 minutes—previously that took over two hours with ground crews.
+
+Bram Fennton: That’s impressive. Any unexpected challenges?
+
+Odalys Wenkcroft: Definitely. Early on, we grappled with varying light conditions. Shadows from nearby cranes distorted the 3D reconstructions. We developed adaptive exposure controls that adjust in milliseconds. It’s a small tweak but made a huge difference in data clarity.
+
+Audience Member (from the back): How does the system handle safety monitoring?
+
+Odalys Wenkcroft: Great question. We’ve integrated thermal imaging and AI to detect unsafe worker postures or unauthorized zone entries. In one case, the drone flagged a worker near an unstable scaffold, prompting a site manager alert that prevented a potential accident.
+
+Bram Fennton: Fascinating stuff. Thanks for sharing these real-world insights, Odalys.
diff --git a/test/fixtures/ranking-shapes/source-a/media/ensuring-vaccine-integrity-in-transit.md b/test/fixtures/ranking-shapes/source-a/media/ensuring-vaccine-integrity-in-transit.md
new file mode 100644
index 0000000000..d3ce5f75b9
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/ensuring-vaccine-integrity-in-transit.md
@@ -0,0 +1,25 @@
+---
+type: "media"
+title: "Ensuring Vaccine Integrity in Transit"
+tags: ["cold-chain-pharmaceutical-logistics"]
+source_kind: "transcript"
+show: "The Pyrlet Hour"
+---
+
+# Ensuring Vaccine Integrity in Transit
+
+Ilsabet Naskmere: Welcome back to The Pyrlet Hour, everyone. Today, we’re diving into a crucial topic—keeping vaccines safe on their journey from factory to pharmacy. I’m joined by Orsin Naskvane, who’s spent the last decade pioneering cold-chain logistics in the pharmaceutical sector. Orsin, great to have you here.
+
+Orsin Naskvane: Thanks, Ilsabet. It’s a pleasure.
+
+Ilsabet Naskmere: Let’s start with why this matters. You once told me about a shipment of a new flu vaccine that arrived spoiled despite strict protocols. What happened there?
+
+Orsin Naskvane: Right, that was in 2021. The shipment was routed through a regional hub that lacked real-time temperature monitoring. The vaccine crates were stored in a container where the cooling system failed overnight, and no alarms were triggered until it was too late. It ultimately cost the company $2.3 million in losses and delayed distribution by weeks.
+
+Ilsabet Naskmere: That’s a huge hit. How have innovations changed the game since then?
+
+Orsin Naskvane: Sensor tags have become smarter and more connected. We now use multi-sensor tags that track not just temperature, but also humidity and shock. They relay data via satellite, so logistics teams get instant alerts. In a recent trial shipping a COVID-19 booster, a damaged pallet was detected immediately, preventing compromised doses from reaching clinics.
+
+Ilsabet Naskmere: Fascinating. So, it’s a blend of tech and vigilant oversight that’s really moving the needle?
+
+Orsin Naskvane: Exactly. The future lies in integrating these systems with AI to predict risks before they happen and optimize routes dynamically. It’s about turning data into actionable insights to protect public health.
diff --git a/test/fixtures/ranking-shapes/source-a/media/innovations-in-dockside-scheduling.md b/test/fixtures/ranking-shapes/source-a/media/innovations-in-dockside-scheduling.md
new file mode 100644
index 0000000000..e802524bf1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/innovations-in-dockside-scheduling.md
@@ -0,0 +1,41 @@
+---
+type: "media"
+title: "Innovations in Dockside Scheduling"
+tags: ["maritime-port-operations"]
+source_kind: "transcript"
+show: "The Embix Review"
+---
+
+# Innovations in Dockside Scheduling
+
+Jessamy Dunkham: Welcome back to The Embix Review, where we explore cutting-edge tech reshaping industries. I’m Jessamy Dunkham, and today’s episode is all about innovations in dockside scheduling—specifically the new algorithms that are shaking up how ports manage their berths. Joining me is Xanthe Peltham, lead systems architect at Navisync, a firm pioneering AI-driven berth management solutions. Xanthe, great to have you here.
+
+Xanthe Peltham: Thanks, Jessamy. Excited to dive into this—it’s a fascinating space right now.
+
+Jessamy Dunkham: To start, could you lay out the core challenges ports face today with berth scheduling? What makes this problem so complex?
+
+Xanthe Peltham: Absolutely. At a glance, it’s about allocating limited dock space to vessels that vary wildly in size, cargo type, and arrival time. But beneath that are layers of unpredictability—weather delays, customs clearance holdups, even crane breakdowns. For example, at Port Everbay, they had a week last July where a single crane failure cascaded, delaying over 20 container ships and causing berth conflicts three times over. Traditional scheduling relied heavily on static timetables and manual adjustments, which just can’t keep pace with real-time disruptions.
+
+Jessamy Dunkham: So that’s where these new algorithms come in?
+
+Xanthe Peltham: Exactly. We’re talking about adaptive systems that incorporate telemetry data from cranes, sensor inputs on container movement, and live customs clearance updates. Navisync’s latest algorithm, HarborFlow, uses a reinforcement learning model to anticipate delays and dynamically reshuffle berth assignments in real time.
+
+Jessamy Dunkham: Can you give us an example of HarborFlow in action?
+
+Xanthe Peltham: Sure! At the Port of Westmoor last December, HarborFlow was trialed during an unusually harsh winter storm. Traditionally, the port would assign berths based on estimated arrival times, but during the storm, many ships were delayed unpredictably. HarborFlow integrated weather forecasts, vessel speed data, and crane availability to continually optimize the schedule. The result? A 15% increase in dock utilization and a 30% reduction in average wait time, even under severe conditions.
+
+Jessamy Dunkham: That’s impressive. It sounds like it also reduces human error?
+
+Xanthe Peltham: Yes, that’s a big plus. One of the anecdotes I like is from the Port of Linos, where a dockmaster told me that before HarborFlow, they’d spend hours each morning juggling spreadsheets and radios to update schedules. Now, the system flags potential conflicts and suggests adjustments instantly, freeing staff to focus on exceptions and on-the-ground issues.
+
+Jessamy Dunkham: Are there any downsides or challenges with deploying these systems?
+
+Xanthe Peltham: Integrating legacy systems is always tricky. Many ports still rely on outdated telemetry or siloed customs databases, so data quality and interoperability can be hurdles. Also, there’s a cultural shift—dock workers and schedulers need training and trust in AI recommendations. But we’re seeing growing acceptance as benefits become clear.
+
+Jessamy Dunkham: Before we wrap up, any predictions on where dockside scheduling will be in five years?
+
+Xanthe Peltham: I expect tighter integration across the entire maritime supply chain—from vessel tracking to inland logistics. Scheduling won’t just optimize berths but entire cargo flows, enabled by blockchain-verified data sharing and even more advanced machine learning. The goal? Near-zero idle time and seamless port operations.
+
+Jessamy Dunkham: Fantastic insights, Xanthe. Thanks so much for sharing your expertise on The Embix Review.
+
+Xanthe Peltham: My pleasure, Jessamy. Thanks for having me.
diff --git a/test/fixtures/ranking-shapes/source-a/media/innovations-in-student-mastery-tracking.md b/test/fixtures/ranking-shapes/source-a/media/innovations-in-student-mastery-tracking.md
new file mode 100644
index 0000000000..ae980fcff9
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/innovations-in-student-mastery-tracking.md
@@ -0,0 +1,45 @@
+---
+type: "media"
+title: "Innovations in Student Mastery Tracking"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+source_kind: "transcript"
+show: "The Rinyra Dispatch"
+---
+
+# Innovations in Student Mastery Tracking
+
+Gideon Wenkbrook: Welcome back to The Rinyra Dispatch, everyone. Today we’re diving into some fascinating advancements in student mastery tracking, especially within K-12 adaptive tutoring. I’m thrilled to have with me Xanthe Vaskmere, lead product strategist at LearnRise, a company pioneering teacher dashboards and mastery analytics. Xanthe, great to have you.
+
+Xanthe Vaskmere: Thanks so much for having me, Gideon. Really excited to discuss where mastery tracking is headed.
+
+Gideon: So, Xanthe, when we say “mastery tracking” these days, it’s not just a simple checklist anymore, right? What’s changed in the last few years?
+
+Xanthe: Absolutely. Five years ago, mastery tracking was mostly about marking whether a student ‘got’ a concept based on a handful of test questions — very static. Now, it’s dynamic and context-aware. For example, at LearnRise, we’ve integrated real-time performance data across multiple modalities — quizzes, interactive simulations, even short-answer responses — to create a continuously updated mastery profile.
+
+Gideon: That sounds powerful. Can you give us a concrete story where this shift made a difference?
+
+Xanthe: Sure! There’s a district in Central Haven that piloted our new dashboard last semester. Their fifth-grade math teachers had long struggled with pinpointing exactly which standards kids were floundering on, especially in fractions and decimals. Using traditional progress reports, teachers felt they were always one step behind.
+
+But with our adaptive mastery tracking, teachers saw granular insights during class. So instead of waiting for a big test result, they could intervene immediately when a student showed hesitation in, say, multiplying fractions. One teacher told me, “It was like having a spotlight on the exact skill a student was wrestling with — I could tailor mini-lessons on the spot.”
+
+Gideon: I love that image, “spotlight on the exact skill.” I imagine this must also ease some of the reporting burden teachers have?
+
+Xanthe: Definitely. Another feature we pushed recently is automated synthesis of mastery data into district-friendly reports. It’s not just numbers — the system generates narrative summaries highlighting trends, strengths, and areas needing support. That cuts down hours of manual work for educators.
+
+Gideon: That must help with procurement decisions too. How do districts respond to these insights?
+
+Xanthe: Good question. In one pilot, the district’s curriculum director used mastery analytics to identify gaps across multiple schools. They realized that a certain vendor’s fractions module wasn’t performing well on deeper skills like reasoning — despite high usage. This led them to reallocate budget towards more effective adaptive content tailored to those gaps.
+
+Gideon: So mastery tracking is not just about individual students, but informing big-picture decisions.
+
+Xanthe: Exactly. And we’re just scratching the surface. We’re exploring predictive mastery modeling — anticipating which concepts a student might struggle with next, based on patterns in their learning journey. This could personalize interventions even further.
+
+Gideon: Sounds like a game-changer. Before we wrap up, any advice for districts thinking of adopting advanced mastery trackers?
+
+Xanthe: Start small, partner closely with teachers, and focus on actionable insights. The tech is there, but success hinges on making the data meaningful and manageable for educators.
+
+Gideon: Wise words. Thanks so much, Xanthe, for sharing these insights on Innovations in Student Mastery Tracking.
+
+Xanthe: My pleasure, Gideon. Looking forward to what’s next.
+
+Gideon: And thanks to our listeners for tuning into The Rinyra Dispatch. Until next time!
diff --git a/test/fixtures/ranking-shapes/source-a/media/insight-on-sensor-tag-battery-life-lessons-from-the-field-summary.md b/test/fixtures/ranking-shapes/source-a/media/insight-on-sensor-tag-battery-life-lessons-from-the-field-summary.md
new file mode 100644
index 0000000000..ebecc32d7c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/insight-on-sensor-tag-battery-life-lessons-from-the-field-summary.md
@@ -0,0 +1,17 @@
+---
+type: "media"
+title: "Insight on Sensor Tag Battery Life: lessons from the field (summary)"
+source_kind: "summary"
+---
+
+# Insight on Sensor Tag Battery Life: lessons from the field (summary)
+
+Ulrika Brinmoor presented key findings on sensor tag battery life critical to the cold-chain logistics of temperature-sensitive pharmaceuticals. Drawing from analysis of over 3,000 multi-day international shipments, she highlighted challenges and best practices to ensure continuous environmental monitoring during transit. Factors affecting battery longevity included wireless communication patterns, sampling frequency, and harsh environmental conditions. Ulrika also discussed new protocols and ongoing developments aimed at extending battery life and improving data reliability.
+
+- Sensor tag battery life should exceed maximum expected transit time by at least 40% to cover delays.
+- Wireless transmission intervals must be optimized to reduce battery drain caused by repeated retries in poor network coverage areas.
+- Sampling every 15 minutes balances data detail with battery conservation for vaccine shipments.
+- Ruggedized sensor tags with enhanced sealing and insulation perform better in extreme humidity and temperature.
+- Pre-shipment battery capacity checks within 48 hours of loading prevent failures due to low battery health.
+
+Overall, the session emphasized the importance of tailored sensor tag configurations and proactive maintenance to maintain shipment integrity in complex, multi-day cold-chain routes. Ulrika also previewed plans for smart sensor tags that adapt operations dynamically based on environmental conditions.
diff --git a/test/fixtures/ranking-shapes/source-a/media/insight-on-sensor-tag-battery-life-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/media/insight-on-sensor-tag-battery-life-lessons-from-the-field.md
new file mode 100644
index 0000000000..ce3e6e6d25
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/insight-on-sensor-tag-battery-life-lessons-from-the-field.md
@@ -0,0 +1,51 @@
+---
+type: "media"
+title: "Insight on Sensor Tag Battery Life: lessons from the field"
+source_kind: "transcript"
+---
+
+# Insight on Sensor Tag Battery Life: lessons from the field
+
+Moderator: Welcome everyone to today’s session. We’re pleased to have Ulrika Brinmoor with us to speak on “Insight on Sensor Tag Battery Life: Lessons from the Field.” Ulrika, the floor is yours.
+
+Ulrika Brinmoor: Thank you, and thanks to everyone for joining this discussion on a topic that’s absolutely critical for cold-chain pharmaceutical logistics: sensor tag battery life. I’ll be sharing insights drawn from our recent deployments in multi-day international transit of temperature-sensitive vaccines and biologics.
+
+To set the context: sensor tags monitor crucial environmental parameters like temperature and humidity throughout transit. Their battery life directly influences data reliability and the integrity of the shipment. Extended battery duration means we can track shipments continuously even during long, complex routes crossing multiple countries.
+
+Our internal note titled “Insight on Sensor Tag Battery Life” outlined key findings after analyzing over 3,000 shipments between last June and February. The headline takeaway? Battery life must comfortably exceed the maximum anticipated transit time. For multi-day international routes that often last 7 to 10 days, a minimum sensor tag battery life of 14 days is optimal to account for delays and handling.
+
+One challenge we observed is that battery consumption spikes during periods when tags communicate wirelessly, especially in zones with poor network coverage. This intermittent connectivity causes repeated transmission attempts, draining the battery faster than expected. We recommend tags be configured to optimize transmission intervals and use low-power network protocols.
+
+Another factor influencing battery life is the sensor sampling frequency. While high sampling rates provide granular data, they also increase power draw. Our field data showed that samples taken every 15 minutes strike a good balance between data resolution and battery conservation for vaccine shipments.
+
+During deployments in Southeast Asia, some sensor tags failed before completion of transit, jeopardizing data continuity. Post-analysis revealed that environmental extremes, particularly high humidity and temperature, accelerate battery degradation. We’re now testing ruggedized tags with enhanced sealing and thermal insulation to mitigate these effects.
+
+We also noted the importance of pre-shipment battery health checks. Several failed tags had battery capacities below 80% at dispatch due to prolonged storage. Our new protocol mandates battery capacity verification of all sensor tags within 48 hours of shipment loading.
+
+To summarize the lessons:
+
+- Ensure sensor tag battery life exceeds expected transit time by at least 40%.
+- Optimize wireless transmission to reduce power spikes caused by poor connectivity.
+- Balance sensor sampling frequency to conserve battery without losing critical data.
+- Use ruggedized sensor tags suited for extreme environmental conditions.
+- Conduct battery health checks close to shipment dispatch.
+
+Looking ahead, we’re collaborating with our R&D team to develop smart sensor tags that dynamically adjust sampling and transmission based on detected environmental conditions, further extending battery life.
+
+I hope these insights help teams improve monitoring reliability, ensuring the integrity of temperature-sensitive pharmaceuticals throughout their cold-chain journey.
+
+Moderator: Thank you, Ulrika. We’ll open the floor for questions now.
+
+Audience member: Hi, could you elaborate on how you’re optimizing wireless transmission intervals to save battery life?
+
+Ulrika Brinmoor: Great question. We analyzed network coverage maps on common routes and adjusted transmission schedules so tags only attempt to connect when coverage is strong. Instead of continuous transmission, tags batch data and send in bursts during confirmed good signal periods, dramatically cutting retry attempts.
+
+Audience member: Are there specific sensor tag models you found more reliable in harsh climates?
+
+Ulrika Brinmoor: Yes, we trialed the ThermoSafe X3 and CoolerGuard Pro. CoolerGuard Pro, with its enhanced sealing and thermal insulation, performed better in humid, hot climates, maintaining battery capacity above 90% through 10-day transits.
+
+Audience member: How do you handle unexpected transit delays beyond the sensor tag’s battery life?
+
+Ulrika Brinmoor: We build in a 40% buffer over expected route duration to accommodate delays. In rare cases where delays exceed battery life, we implement mid-route tag swaps or supplementary cold packs with integrated sensors to bridge gaps.
+
+Moderator: Thanks, Ulrika, and thanks everyone for your engaging questions. That concludes our session on sensor tag battery life insights.
diff --git a/test/fixtures/ranking-shapes/source-a/media/interconnection-queue-challenges-overview-lessons-from-the-field-summary.md b/test/fixtures/ranking-shapes/source-a/media/interconnection-queue-challenges-overview-lessons-from-the-field-summary.md
new file mode 100644
index 0000000000..23dfdb6969
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/interconnection-queue-challenges-overview-lessons-from-the-field-summary.md
@@ -0,0 +1,15 @@
+---
+type: "media"
+title: "Interconnection Queue Challenges Overview: lessons from the field (summary)"
+source_kind: "summary"
+---
+
+# Interconnection Queue Challenges Overview: lessons from the field (summary)
+
+Odalys Silvbrook of VoltStor Solutions presented an overview of the persistent challenges faced in the interconnection queues for grid-scale battery storage projects. She highlighted factors causing significant delays, such as extended feasibility studies, disputes over network upgrade costs, and changing interconnection requirements. These issues create a cascading impact, stalling dispatch software integration and degrading model accuracy due to uncertain operational data. Odalys emphasized the benefits of early collaboration with grid operators during cluster study phases, which helped reduce approval times by nearly 30% in pilot projects. She also noted emerging regulatory pilot programs aimed at resolving cost allocation disputes more efficiently. Overall, coordinated reforms involving developers, grid operators, and regulators are needed to streamline interconnection processes and improve project timelines.
+
+- Over 140 battery projects tracked by VoltStor Solutions face interconnection queue delays across three regional transmission organizations.
+- Common bottlenecks include feasibility studies lasting over 18 months, disputes over network upgrade cost allocation, and evolving grid interconnection requirements.
+- Early engagement in cluster study phases with transmission planners reduced approval times by about 30% for pilot projects.
+- Changing grid codes require repeated dispatch software revisions, causing rework and further delays.
+- Emerging regulatory pilot programs are testing mediation panels to expedite resolution of cost allocation disputes and reduce queue backlogs.
diff --git a/test/fixtures/ranking-shapes/source-a/media/interconnection-queue-challenges-overview-lessons-from-the-field.md b/test/fixtures/ranking-shapes/source-a/media/interconnection-queue-challenges-overview-lessons-from-the-field.md
new file mode 100644
index 0000000000..d1c433a655
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/interconnection-queue-challenges-overview-lessons-from-the-field.md
@@ -0,0 +1,54 @@
+---
+type: "media"
+title: "Interconnection Queue Challenges Overview: lessons from the field"
+source_kind: "transcript"
+---
+
+# Interconnection Queue Challenges Overview: lessons from the field
+
+Moderator: Welcome everyone to today’s session on grid-scale battery storage. We’re pleased to have Odalys Silvbrook with us to discuss “Interconnection Queue Challenges Overview: Lessons from the Field.” Odalys, the floor is yours.
+
+Odalys Silvbrook: Thank you. I’m excited to share insights from our recent work on grid-scale battery projects, specifically around the interconnection queue challenges that routinely delay battery dispatch software integration and complicate degradation modeling.
+
+To start, the interconnection queue is the primary bottleneck we face in bringing new battery storage projects online. At our company, VoltStor Solutions, we’ve tracked over 140 battery projects stuck in various states of queue limbo across three regional transmission organizations. Common delays include:
+
+- Lengthy feasibility studies, often exceeding 18 months
+- Network upgrade cost allocation disputes
+- Changing interconnection requirements due to evolving grid codes and market rules
+
+These factors create a cascade effect—dispatch software developers can’t finalize control algorithms without confirmed grid parameters, and degradation models remain provisional without firm operational schedules.
+
+One key lesson is the importance of early and continuous engagement with grid operators. When our integration team began collaborating directly with transmission planners during the cluster study phase, we reduced approval times for three pilot projects by nearly 30%. However, this level of interaction isn’t standard practice.
+
+Another area requiring attention is the evolving nature of interconnection criteria. Many grid operators are revising their requirements to better accommodate battery storage’s unique characteristics—fast ramp rates, state-of-charge constraints, and ancillary service capabilities. These revisions often introduce new technical data requests after initial queue studies, forcing software teams to redo modeling efforts.
+
+Additionally, cost allocation disputes over network upgrades are a persistent source of delay. For instance, in one project on the Western Grid, a disagreement about responsibility for substation upgrades added over a year to the timeline. These disputes not only impact project economics but also stall the entire interconnection process.
+
+From a degradation modeling standpoint, the uncertainty in operational profiles due to queue delays means degradation predictions remain hypothetical. Without firm dispatch schedules, estimating cycle depth, state-of-charge ranges, and thermal stress patterns becomes guesswork. This complicates warranty negotiations with manufacturers and long-term asset management.
+
+To summarize, the main interconnection queue challenges affecting grid-scale battery projects are:
+
+- Prolonged feasibility and impact studies
+- Uncertainty stemming from evolving interconnection requirements
+- Network upgrade cost allocation conflicts
+- A knock-on effect delaying dispatch software finalization and accurate degradation modeling
+
+Addressing these requires coordinated efforts among developers, grid operators, and regulators. We’ve advocated for reforms including more transparent queue timelines, earlier technical data sharing, and dispute resolution mechanisms to expedite upgrade cost allocations.
+
+I’d be happy to take questions now.
+
+Moderator: Thank you, Odalys. We have a few questions from the audience.
+
+Audience Member: You mentioned cluster study phases helping reduce delays. Can you elaborate on what that entails and how it helps?
+
+Odalys Silvbrook: Absolutely. Cluster studies group multiple interconnection requests geographically and technically to analyze their combined impact. By engaging early in these studies, our team can proactively identify potential network constraints and communicate with grid planners. This early feedback loop allows us to adjust project designs or prepare for upgrades before detailed impact studies are issued, thus speeding the overall approval process.
+
+Audience Member: How do evolving interconnection requirements affect your dispatch software development?
+
+Odalys Silvbrook: This is a major challenge. When grid codes update, for example by adding new voltage ride-through criteria or frequency response mandates, we often have to revise control logic and even hardware integration plans. Since these changes can come late in the queue process, it creates rework and delays. Having stable, predictable requirements early on would significantly streamline software development and testing.
+
+Audience Member: Are there any promising regulatory efforts to address cost allocation disputes?
+
+Odalys Silvbrook: Yes, some regions are pilot-testing mediation panels specifically for interconnection cost disputes. These panels aim to bring stakeholders together to negotiate solutions faster than traditional litigation or settlement processes. While early, the approach shows promise in reducing queue bottlenecks caused by prolonged disagreements.
+
+Moderator: Great insights. Thank you, Odalys, for an informative session. That concludes our talk on interconnection queue challenges.
diff --git a/test/fixtures/ranking-shapes/source-a/media/optimizing-rebar-automation-workflows.md b/test/fixtures/ranking-shapes/source-a/media/optimizing-rebar-automation-workflows.md
new file mode 100644
index 0000000000..f410f43732
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/optimizing-rebar-automation-workflows.md
@@ -0,0 +1,41 @@
+---
+type: "media"
+title: "Optimizing Rebar Automation Workflows"
+tags: ["construction-site-robotics"]
+source_kind: "transcript"
+show: "The Wynley Dispatch"
+---
+
+# Optimizing Rebar Automation Workflows
+
+Rhosyn Holmham: Welcome back to The Wynley Dispatch, everyone. Today we’re diving into the nitty-gritty of rebar automation workflows. I’m joined by Emrys Yarlford, lead robotics engineer at ForgeBots, who’s been pioneering the latest in rebar tying tech. Emrys, great to have you here.
+
+Emrys Yarlford: Thanks, Rhosyn. Happy to be here and geek out on some rebar robotics.
+
+Rhosyn: Let’s start with the basics. What’s the biggest bottleneck in current robot-assisted steel tying on construction sites?
+
+Emrys: Honestly, it’s the variability in rebar layouts and the physical environment. Unlike a factory floor where everything’s rigid and repeatable, construction sites throw curveballs—uneven surfaces, unpredictable bar spacing, sometimes even shifting ground after a rainstorm. So the robots have to be extremely adaptable.
+
+Rhosyn: That makes sense. You mentioned in a recent talk that sensor fusion has been a game changer. Can you explain how you’re using that in ForgeBots’ latest model?
+
+Emrys: Sure. We combine LiDAR with ultra-wideband radio positioning and stereo cameras. The LiDAR builds a 3D map of the immediate surroundings, the stereo cameras identify bar intersections visually, and the radio beacons help counter GPS errors, especially in dense urban areas or under scaffolding. This lets the robot precisely locate where it needs to tie.
+
+Rhosyn: I recall you sharing a story about a recent project in Wexley Heights where the robot had to handle irregular steel spacing. What happened there?
+
+Emrys: Yeah, that was interesting. The site had some custom-designed rebar layouts—bars spaced irregularly to meet specific load criteria. The robot’s initial programming assumed uniform spacing, so it struggled. We quickly implemented an adaptive algorithm on-site. By analyzing the bar intersections in real time, the robot recalibrated its tying sequence. The result? A 30% faster tying rate than the manual crews, even with the complex layout.
+
+Rhosyn: Impressive. What about safety monitoring—how integrated is that with the rebar robots?
+
+Emrys: Increasingly integrated. Our current models have proximity sensors and AI-powered hazard recognition. On Wexley Heights, for example, the robot would pause tying if a human entered its immediate workspace and alert site managers if it detected loose debris or unsafe scaffolding nearby.
+
+Rhosyn: Have you seen any resistance from crews worried about robots taking their jobs?
+
+Emrys: Definitely, but we’ve found that when crews see the robots handling the most tedious and physically taxing tasks, like repetitive tying in cramped spaces, their attitude shifts. The robots become helpers, reducing injuries and fatigue rather than job stealers.
+
+Rhosyn: Before we wrap, what’s next for rebar automation? Any upcoming innovations you’re excited about?
+
+Emrys: We’re working on swarm robotics—multiple smaller bots coordinating to cover larger areas simultaneously. Plus, integrating predictive maintenance using on-board sensors to reduce downtime. It’s an exciting time.
+
+Rhosyn: Fantastic insights, Emrys. Thanks so much for sharing your expertise.
+
+Emrys: My pleasure, Rhosyn. Looking forward to what’s next.
diff --git a/test/fixtures/ranking-shapes/source-a/media/optimizing-teacher-dashboards-for-impact.md b/test/fixtures/ranking-shapes/source-a/media/optimizing-teacher-dashboards-for-impact.md
new file mode 100644
index 0000000000..6ab794da14
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/optimizing-teacher-dashboards-for-impact.md
@@ -0,0 +1,21 @@
+---
+type: "media"
+title: "Optimizing Teacher Dashboards for Impact"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+source_kind: "transcript"
+show: "The Kelova Briefing"
+---
+
+# Optimizing Teacher Dashboards for Impact
+
+Ilsabet Holmbrook: Welcome back to The Kelova Briefing. Today, we're diving into teacher dashboards—how to design them so they truly boost classroom impact. With me is Fenwick Talvhollow, lead UX strategist at Edutech Solutions. Fenwick, what's the biggest misstep you've seen in dashboard design?
+
+Fenwick Talvhollow: Thanks, Ilsabet. One key issue is overloading teachers with data. I remember working with a district in Northbridge—they had dashboards showing 27 different metrics per student. Teachers got overwhelmed and just stopped using them. The fix was trimming down to five critical indicators aligned with curriculum goals.
+
+Ilsabet Holmbrook: So, simplicity wins?
+
+Fenwick Talvhollow: Exactly. But it’s also about actionability. Teachers need clear next steps. In another project, we added color-coded flags plus tailored suggestions, like “schedule a small group” or “assign practice quiz,” which increased intervention rates by 40%.
+
+Ilsabet Holmbrook: That’s impressive. Any final tips for teams building dashboards?
+
+Fenwick Talvhollow: Involve teachers early. Their input on what’s useful and usable is gold. And always test in actual classroom scenarios before full rollout.
diff --git a/test/fixtures/ranking-shapes/source-a/media/reducing-crane-downtime-with-iot.md b/test/fixtures/ranking-shapes/source-a/media/reducing-crane-downtime-with-iot.md
new file mode 100644
index 0000000000..c4bfa5ff1c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/reducing-crane-downtime-with-iot.md
@@ -0,0 +1,23 @@
+---
+type: "media"
+title: "Reducing Crane Downtime with IoT"
+tags: ["maritime-port-operations"]
+source_kind: "transcript"
+show: "The Brilet Sessions"
+---
+
+# Reducing Crane Downtime with IoT
+
+Amadeo Ibbwick: Welcome back to The Brilet Sessions, everyone. Today, we’re diving into a critical topic—how IoT tech is cutting crane downtime at maritime ports. Jessamy Silvmoor, PortTech Innovations’ lead engineer, joins us. Jessamy, what was the turning point that made you champion telemetry sensors on cranes?
+
+Jessamy Silvmoor: Thanks, Amadeo. It was actually last summer at Southgate Port. We had a massive backlog—over 300 containers delayed because one crane’s gearbox failed unexpectedly. That sparked the idea: what if the crane could tell us it was struggling before breaking down?
+
+Amadeo: Makes sense. So, how did IoT sensors change the game?
+
+Jessamy: We installed vibration and temperature sensors on all twenty cranes. The system flags anomalies in real time. For example, last month, one crane showed abnormal heat spikes in a motor bearing. The maintenance team was dispatched immediately—no downtime, no backlog.
+
+Amadeo: Impressive. Has this improved overall port efficiency?
+
+Jessamy: Absolutely. Crane downtime has dropped by 40% in six months, saving the port roughly $500,000 monthly in operational costs.
+
+Amadeo: Incredible impact. Thanks for sharing, Jessamy.
diff --git a/test/fixtures/ranking-shapes/source-a/media/revolutionizing-contract-review-processes.md b/test/fixtures/ranking-shapes/source-a/media/revolutionizing-contract-review-processes.md
new file mode 100644
index 0000000000..b905dd7d40
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/media/revolutionizing-contract-review-processes.md
@@ -0,0 +1,27 @@
+---
+type: "media"
+title: "Revolutionizing Contract Review Processes"
+tags: ["legal-contract-automation"]
+source_kind: "transcript"
+show: "The Cavmere Sessions"
+---
+
+# Revolutionizing Contract Review Processes
+
+Isolde Heskcroft: Welcome back to The Cavmere Sessions. Today, we’re diving into how automation is shaking up contract review—specifically clause extraction and redlining in procurement. With me is Rune Fennstead, lead engineer at LexiCore, a company pioneering legal AI tools. Rune, thanks for joining us.
+
+Rune Fennstead: Thanks for having me, Isolde. Excited to unpack this.
+
+Isolde Heskcroft: So, Rune, the technology’s moving fast. Walk us through a recent breakthrough LexiCore made in clause extraction.
+
+Rune Fennstead: Sure thing. Last quarter, we launched “ClauseSnap,” which leverages deep learning to not just identify standard contract clauses but also to flag unusual language that could pose risks. For example, we had a client in manufacturing whose supplier contracts included a rare warranty clause that shifted liability oddly. ClauseSnap caught it instantly—something a human reviewer might’ve missed in a batch of hundreds.
+
+Isolde Heskcroft: That’s impressive. How does the automated redlining fit into this picture?
+
+Rune Fennstead: We developed “RedlineFlow,” which integrates with ClauseSnap outputs. It suggests precise edits to align contracts with company policies, and it learns from user corrections. One procurement team I worked with reported a 40% reduction in review time after six weeks.
+
+Audience member (off-mic): Are there challenges around trust? Like, do lawyers feel comfortable relying on these tools?
+
+Rune Fennstead: Absolutely, it’s a big hurdle. We emphasize that our tech is an assistant, not a replacement. Transparency in how decisions are made helps build trust. Plus, seeing consistent accuracy over many contracts reassures users.
+
+Isolde Heskcroft: Fascinating stuff. Thanks, Rune, for shining a light on where contract tech is headed.
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-02-03-optimizing-nutrient-flow-rates.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-02-03-optimizing-nutrient-flow-rates.md
new file mode 100644
index 0000000000..411c66a798
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-02-03-optimizing-nutrient-flow-rates.md
@@ -0,0 +1,491 @@
+---
+type: "meeting"
+title: "Optimizing Nutrient Flow Rates"
+tags: ["vertical-farming-and-indoor-agriculture"]
+date: "2023-02-03"
+attendees: ["Ysolde Fennford","Linnea Marqmoor","Fiora Velkbrook"]
+---
+
+# Optimizing Nutrient Flow Rates
+
+Date: 2023-02-03
+
+Attendees: Ysolde Fennford, Linnea Marqmoor, Fiora Velkbrook
+
+Attendee pages: [[people/ysolde-fennford]], [[people/linnea-marqmoor]], [[people/fiora-velkbrook]]
+
+## Introduction and Objectives
+
+The meeting commenced at 9:03 AM in the Aerofarmers Inc. conference room, with Ysolde Fennford initiating the quarterly review. “Good morning, team. Today’s focus is on optimizing nutrient flow rates throughout our grow towers, a critical lever to improve both yield and sustainability. Before diving into data, I’d like to revisit the overarching objective of Project Hydra-9, which remains central to our nutrient management strategy.”
+
+Linnea Marqmoor nodded. “Right, Ysolde. As you all recall, Project Hydra-9 launched six months ago with the explicit goal of reducing nutrient solution waste from our grow towers by at least 25% by Q4 2024. This is crucial because our current runoff rate averages 17.3 liters per tower per day, which doesn’t just drive up costs but also impacts our environmental footprint.”
+
+Fiora Velkbrook added, “Exactly, and since nutrients represent roughly 15% of operational expenses in our vertical farms, even a marginal improvement in flow optimization can translate into substantial savings. In last quarter’s trials with the Hydra-9 dosing controllers, we saw an initial 12% drop in nutrient runoff at the Greenfield facility, which is promising but clearly leaves room for refinement.”
+
+Ysolde interjected, “Agreed, Fiora. Our aim today is to align on the next steps that can accelerate these gains and to refine our yield forecasting models based on updated flow data. Linnea, could you please summarize the key learnings from the latest Hydra-9 sensor calibration tests?”
+
+Linnea pulled up the quarterly sensor calibration report on the screen. “Certainly. Over Q1, we recalibrated 42 Hydra-9 dosing units across four grow towers, adjusting flow rates to target a 4.2 mL per minute nutrient delivery per plant cluster, down from the previous 5.0 mL. This adjustment was based on recent leaf tissue analysis indicating over-fertilization in some zones. Post-calibration, we measured a 9.8% reduction in total nutrient use per tower, with no statistically significant drop in crop biomass.”
+
+Ysolde leaned forward. “That’s substantial. Linnea, how confident are we in the accuracy of the flow meters after recalibration? I recall there were some discrepancies in flow readings last year.”
+
+Linnea responded, “Good question. We cross-validated the Hydra-9 flow meters against gravimetric measurements and ultrasonic sensors. The margin of error is now within ±0.3%, an improvement from ±1.1% before recalibration. This gives us stronger confidence that our dosing volumes are precise.”
+
+Fiora looked thoughtful. “On the topic of waste reduction, the current system returns about 8.5 liters of runoff per tower per day back to the nutrient reservoir, but this fluid contains between 20 to 35% residual nutrients. If we can improve uptake efficiency so that the runoff has less than 10% residual nutrients, we could recycle a far greater volume without compromising plant health.”
+
+Ysolde nodded. “That dovetails into the next phase of Hydra-9, which integrates real-time nutrient uptake sensors. Fiora, the prototype field tests last month suggested uptake rates varied significantly over the diurnal cycle. Can you expand?”
+
+Fiora pulled up time-series data. “Yes. Uptake rates peak between 10 AM and 2 PM, coinciding with photosynthetically active radiation peaks inside the grow towers. During this window, absorption efficiency reaches 87%, but outside these hours, it falls to around 62%. Optimizing dosing schedules to match this uptake curve is a key opportunity to reduce nutrient loss.”
+
+Linnea chimed in, “We also need to consider plant developmental stages. Seedlings absorb nutrients differently than mature clusters. I propose that we stratify nutrient flow rates across growth stages using Hydra-9’s modular control units. This could reduce waste by up to 18% based on our preliminary models.”
+
+Ysolde agreed. “Excellent point. Our previous blanket dosing approach likely contributed to overfeeding in certain zones. The modular, stage-specific flow control is a winning refinement. Let’s task the R&D team with developing a prototype dosing schedule matrix that factors in plant age and diurnal uptake spikes.”
+
+Fiora added, “I’d also recommend incorporating environmental data like humidity and root zone temperature, as these variables influence nutrient absorption rates. The latest Hydra-9 firmware update makes this integration feasible.”
+
+Linnea nodded. “From the operational side, we’ve been tracking nutrient solution temperature stability, maintaining a tight range of 21 to 22 degrees Celsius. Fluctuations outside this band, especially drops below 20°C, correlate with a 15% decline in uptake efficiency, so thermal regulation remains critical.”
+
+Ysolde summarized, “To encapsulate our objectives: 1) Reduce nutrient runoff volume by at least 25% via Hydra-9 enhanced dosing and recycling; 2) Align nutrient flow dynamically with diurnal and developmental uptake patterns; 3) Integrate environmental sensor data for real-time flow adjustments; 4) Update yield forecasting models to incorporate refined nutrient efficiency metrics.”
+
+Fiora spoke up, “Regarding yield forecasts, preliminary analysis shows that optimized nutrient flow could improve lettuce yield per grow tower by 7 to 9%, translating into an incremental 18 metric tons per month across our four main facilities.”
+
+Linnea smiled, “That yield increase, coupled with 25% nutrient savings, should improve our nutrient cost per kilogram of produce from $0.48 to $0.38, assuming current market prices.”
+
+Ysolde concluded, “These figures validate the strategic importance of Hydra-9. Our next meeting will review prototype dosing schedules and sensor integration results. Please ensure all data feeds are updated in the internal dashboard by April 30th. Any final thoughts?”
+
+Linnea added, “Just a reminder that we will need to coordinate with the supply chain team to ensure electrolyte mixes are adjusted accordingly, especially as dosing volumes decrease.”
+
+Fiora finished, “And the agronomy team has requested a training session on interpreting the new sensor data once the updates are fully deployed.”
+
+Ysolde acknowledged, “Noted. I will coordinate training with HR. Thanks for the great discussion. Let’s keep the momentum on Hydra-9’s development; the environmental and economic stakes are high. Meeting adjourned at 10:15 AM.”
+
+## Current System Performance Analysis
+
+Ysolde Fennford opened the session by directing attention to the data visualizations displayed on the shared screen, which detailed nutrient dosing rates across the Bellamy Grow Tower stacks for the past six weeks. “If you look closely at the nutrient injection logs alongside the yield data, we can see a subtle but consistent decline in dosing accuracy starting around week 19,” she said. “The cumulative error ratio has crept from 1.2% up to nearly 5.8%, with the largest discrepancies emerging in the lower tower layers, specifically levels 14 through 20.”
+
+Linnea Marqmoor nodded thoughtfully. “These discrepancies align closely with what our Drift Factor Delta-3 calibration flagged last quarter,” she remarked, pointing to a graph overlay that tracked the drift coefficients over time. “Delta-3 was intended to catch deviations beyond a 2% threshold, but as of week 18, the factor began to consistently exceed 3.5%, and in some nodes, it spiked to 6.1%. That spike corresponds almost perfectly with the uptick in nutrient under-delivery reported.”
+
+Fiora Velkbrook interjected, “To put that into perspective, the affected zones are receiving about 15-18% less nitrate and potassium than the prescribed optimal doses, which in turn is showing up as an estimated 12% reduction in leaf biomass accumulation for the basil varieties grown at those levels.”
+
+Ysolde added, “It’s important to highlight that the dosing pumps themselves haven’t reported any mechanical faults. Our pump flow meters confirm volumetric consistency within ±0.5%. So, the issue seems to be more about sensor calibration and feedback control than hardware failure.”
+
+Linnea pulled up the nutrient concentration sensor logs. “If you examine the EC sensor data in the recirculation lines feeding the lower stack levels, you’ll notice a gradual downward drift in reported salinity values over the same period. This drift means the system’s closed-loop controller is instructing the dosing pumps to reduce input, under the mistaken belief that nutrient concentrations are too high.”
+
+Fiora frowned. “This would imply our sensor calibration protocols aren’t catching slow drift effectively. The drift could be due to membrane degradation in the EC sensors or biofilm accumulation, especially since these lower-level sensors have a higher exposure to root exudates and microbial activity.”
+
+Ysolde agreed, “Exactly, and that’s the crux of the Drift Factor Delta-3 issue. The current calibration schedule is every 30 days, but we see that the sensor performance degrades significantly within that window, particularly under the higher feeding cycles of the summer growth phase.”
+
+Linnea suggested, “We might consider shortening the calibration interval to 15 days for these most affected sensors or exploring a predictive recalibration model that uses real-time sensor drift metrics rather than fixed intervals.”
+
+Fiora looked at the yield projections chart. “If we implement either of these approaches, the model predicts a 7-9% increase in fresh herb yields over the next growth cycle, which for the Bellamy stacks translates to approximately 2.3 metric tons of additional produce.”
+
+Ysolde highlighted another datapoint. “Also, the nutrient solution’s pH sensors showed minor but consistent drift in the same zones, skewing the controller’s acid dosing adjustments. That has likely exacerbated nutrient uptake inefficiencies, particularly impacting calcium and magnesium availability.”
+
+Linnea remarked, “That’s a good point. The pH controllers reacted by adding an average of 0.1 mL/min more acid than necessary, raising acidity beyond the optimal 5.8-6.2 pH range for basil. Over time, this could inhibit root nutrient uptake and compound the yield issues.”
+
+Fiora suggested cross-referencing the root zone EC and pH data with the aerial imaging leaf chlorophyll indices we collected. “Preliminary analysis showed a 3% lower chlorophyll density in the affected tower levels, which corresponds with observed nutrient stress symptoms.”
+
+Ysolde summarized, “In short, the Drift Factor Delta-3 is a multi-sensor calibration drift phenomenon impacting both EC and pH sensors, primarily in the mid-to-lower levels of the stacked grow towers, leading to under-dosing of key nutrients and suboptimal acid-base balance.”
+
+Linnea asked, “Is there a way to isolate whether membrane aging or microbial fouling is the principal cause?”
+
+Fiora responded, “We have microbial load assays from the last root zone wash at tower 7 level 16. The bacterial counts were 2.7x higher than baseline, which strongly suggests biofilm formation is a significant factor. Membrane aging likely contributes, but fouling appears dominant.”
+
+Ysolde nodded. “That aligns with sensor maintenance logs showing that cleaning frequencies have not been sufficient for high microbial load zones. Perhaps increasing cleaning cycles or implementing automated sensor self-flushing could mitigate fouling.”
+
+Linnea proposed, “Would replacing the EC sensor membranes with the new antifouling polymer-based membranes we trialed in pilot tower Gamma-4 be feasible for the Bellamy stacks?”
+
+Fiora answered, “Based on compatibility tests, those membranes perform 40% better in resisting biofilm buildup. Retrofitting could reduce drift-related errors by up to 60%, effectively keeping EC readings within ±1% accuracy for twice as long as current membranes.”
+
+Ysolde cautioned, “The retrofit cost is non-trivial—an estimated $8,500 per tower stack in material and labor, plus a two-day downtime per tower for sensor replacement. We’d need to balance that expense against projected yield gains.”
+
+Linnea suggested, “Could we phase the retrofit, starting with the four stacks exhibiting the worst drift metrics in the downtown vertical farm? That would confine initial costs to approximately $34,000, with expected yield improvements of roughly 9 metric tons collectively per quarter.”
+
+Fiora noted, “That incremental approach also gives us time to monitor whether the antifouling membranes meet performance expectations at scale before committing to a full rollout.”
+
+Ysolde agreed, “Alongside that, we should adjust the calibration schedule to biweekly for all EC and pH sensors in the Bellamy stacks, paired with enhanced cleaning protocols—potentially increasing cleaning frequency from once every 12 days to every 6 days for the lower tower sensors.”
+
+Linnea added, “Additionally, updating our drift detection algorithms to incorporate multi-sensor anomaly correlation could preemptively flag sensor faults before they impact dosing.”
+
+Fiora summarized the action points:
+
+- Initiate a phased retrofit of antifouling EC sensor membranes starting with the four most affected Bellamy grow towers.
+
+- Increase EC and pH sensor calibration intervals from 30 days to 15 days in Bellamy stacks.
+
+- Double cleaning frequency for sensors in the lower tower layers, emphasizing biofilm-prone zones.
+
+- Deploy enhanced drift detection algorithms incorporating cross-sensor correlation metrics.
+
+- Monitor yield impact and sensor performance metrics weekly to assess retrofit effectiveness.
+
+Ysolde closed the discussion with, “These measures, taken collectively, should restore nutrient dosing precision and optimize plant health. We’ll reconvene in four weeks to review updated sensor drift statistics and yield data, calibrate our further action plan accordingly.”
+
+Linnea confirmed, “Agreed. I will coordinate with the maintenance team to adjust calibration and cleaning schedules starting next Monday.”
+
+Fiora added, “I’ll oversee the procurement process for the antifouling membranes and draft the installation timeline.”
+
+Ysolde concluded, “Excellent. Let’s prioritize minimizing downtime and maintain close communication during the rollout. Our goal remains consistent: to push nutrient dosing accuracy below 1% drift, unlocking the full yield potential of our vertical farms.”
+
+## Calibration Protocol Enhancements
+
+Ysolde Fennford opened the discussion, referencing the recent data from the Hydra-9 feedback loops integrated into the dosing systems. “Our primary objective is to tighten the calibration tolerances from ±3% to ±1.5% across all nutrient channels. The Hydra-9 sensors have demonstrated the capability to provide real-time concentration readings every 10 seconds, which is a significant improvement from the previous 60-second intervals. This increased granularity should allow us to implement dynamic calibration adjustments rather than static baselines.”
+
+Linnea Marqmoor nodded thoughtfully. “Right, and with that frequency, we’re looking at roughly six times the data density, which means our software must be suitably robust to process and react without lag. I reviewed the initial Hydra-9 test runs from Tower 17 on the west farm—within the first 48 hours, the system detected a gradual drift in potassium dosing that would have gone unnoticed for up to an hour before. The system adjusted the flow rate by 0.22 mL/min autonomously, restoring optimal levels.”
+
+Fiora Velkbrook chimed in, “I’m glad you mentioned Tower 17. The successful autonomous correction is promising, but we need to evaluate how this affects our overall nutrient balance. Remember, we’re not just calibrating for individual elements but the full N-P-K matrix and micronutrients. If one element’s flow is corrected in isolation, it can throw off the downstream absorption efficiency.”
+
+Ysolde agreed, “Absolutely, Fiora. Our next step should be to map tighter integration between the Hydra-9’s potassium readings and the nitrogen and phosphorus channels. The current calibration protocol treats each dosing channel independently. With this real-time data, we can introduce a multi-point calibration matrix that recalibrates based on composite readings every 15 minutes rather than once daily.”
+
+Linnea raised a concern. “Implementing a multi-point calibration requires validating the cross-channel interactions. The calibration multipliers for nitrogen and phosphorus will need to compensate dynamically for any potassium adjustments. That means we must model inter-channel nutrient uptake kinetics more precisely. Otherwise, we risk overcorrecting and creating oscillations.”
+
+Fiora pulled up the latest simulation outputs on her tablet. “Exactly. The preliminary nutrient uptake model, developed under Project Verdant Spring, predicts that an isolated potassium flow correction of 0.25 mL/min can cause a downstream nitrogen uptake variance of up to 4.2% within 30 minutes if left unaccounted for. To counteract that, nitrogen dosing adjustments of approximately 0.10 mL/min are necessary within the same adjustment window. We need to embed this logic into the Hydra-9 control software.”
+
+Ysolde made a note. “So, in terms of calibration protocol enhancements, I propose the following: (1) Reduce manual baseline calibrations from once daily to once weekly, (2) Implement real-time multi-channel feedback loops with Hydra-9 sensor data streams, recalibrating the entire nutrient mix every 15 minutes, (3) Define safe adjustment thresholds—no more than ±0.3 mL/min per nutrient per adjustment cycle to avoid system shock.”
+
+Linnea added, “And for monitoring, we’ll need to enhance log retention. The current system only stores 72 hours of dosing data. To properly analyze the impact of these real-time adjustments, we should extend storage to 30 days. That will help us identify longer-term trends or calibration drifts.”
+
+Fiora agreed. “Agreed. Also, I recommend introducing hourly anomaly detection alerts based on deviation from nutrient absorption baselines established per crop cycle. For example, if calcium levels fluctuate more than 2% beyond expected ranges despite dosing corrections, the system should flag it for manual review.”
+
+Ysolde nodded. “One operational question: Are we confident the Hydra-9 sensors maintain calibration themselves? The sensors, after all, are the foundation of this entire feedback loop. If they drift, our dosing corrections could be compromised.”
+
+Linnea replied, “Good point. The Hydra-9 units include a self-calibration routine using built-in reference standards every 72 hours. During tests on Tower 12, sensor drift was limited to 0.4% between calibrations. However, that assumes stable temperature and pH conditions, which can vary in certain microclimates within the farm.”
+
+Fiora suggested, “To mitigate sensor drift risk, I propose integrating a secondary validation layer—periodic manual sampling of nutrient solution to cross-verify Hydra-9 readings. We could schedule these checks biweekly, or more frequently if anomaly alerts spike.”
+
+Ysolde summarized, “So, we’ll modify the calibration protocol as follows: real-time dosing adjustments every 15 minutes based on Hydra-9 data, with multi-nutrient interdependencies modeled; sensor self-calibration every 72 hours; manual validation sampling every two weeks; extension of data log storage to 30 days; and anomaly detection with actionable alerts.”
+
+Linnea raised another operational concern. “One challenge is how to handle transient anomalies during the calibration adjustments. For instance, if a sensor briefly reports spurious potassium spikes due to microfluidic bubbles or electrical noise, the system might overcorrect unnecessarily.”
+
+Fiora responded, “We should incorporate data smoothing filters. The Hydra-9 firmware team suggested a rolling average over three 10-second readings before triggering adjustments. That smooths out short-term noise. Plus, we can set minimum correction thresholds—say, adjustments only trigger when deviations exceed 1% threshold sustained for at least 30 seconds.”
+
+Ysolde agreed. “Right, that balance between responsiveness and stability is crucial. We want to avoid oscillatory behavior or ‘ping-pong’ corrections.”
+
+Linnea added, “We’ll need to update the operator training manuals as well. The new calibration protocol’s complexity requires that technicians understand the rationale behind the dynamic adjustments and how to interpret anomaly alerts.”
+
+Fiora noted, “I’ve drafted a training outline focusing on interpreting Hydra-9 sensor data streams and troubleshooting calibration alerts. I’ll circulate that by next Tuesday.”
+
+Ysolde concluded, “Excellent. To move forward, I’ll task the control software team with coding the multi-nutrient feedback algorithms by April 15. Linnea, please oversee the data retention infrastructure updates. Fiora, continue refining the nutrient interaction models and the training materials. We’ll pilot the updated calibration protocol in Tower 21 starting May 1, with a full-scale rollout scheduled for June.”
+
+Linnea asked, “Do we want to set quantitative success metrics for the pilot? Perhaps target a 30% reduction in nutrient variance and a 10% increase in yield efficiency?”
+
+Ysolde answered, “Yes, those are good targets. Also, let’s measure system downtime attributable to dosing errors—aiming for zero in the pilot phase.”
+
+Fiora added, “I suggest tracking crop-specific crop yield improvements as well, especially for the basil and chard varieties, which are sensitive to potassium and nitrogen fluctuations.”
+
+Ysolde wrapped up, “Great input all around. This new calibration protocol marks a significant step in optimizing nutrient flow rates with precision dosing. The real-time Hydra-9 feedback loops, combined with enhanced modeling and operational safeguards, should elevate both our efficiency and crop consistency.”
+
+## Waste Reduction Strategies
+
+Ysolde Fennford opened the discussion by summarizing recent efforts to curtail nutrient runoff in the GrowTower units. “We’ve been closely monitoring the FlowSync v2.1 beta test results,” she noted, “and the preliminary data suggests we can reduce nutrient loss by approximately 17% compared to the previous algorithm baseline.” She shared a slide showing comparative runoff volumes across four pilot sites, with the updated flow control syncing the dosing pumps more precisely to plant uptake cycles.
+
+Linnea Marqmoor leaned forward, tapping her tablet. “That’s promising, but I want to dig into how we’re measuring the nutrient balance in these tests,” she said. “Are we accounting for micro-variances in pH and electrical conductivity (EC) fluctuations during peak growth phases? In Tower 7, for example, we noticed that despite a 12% reduction in measured runoff volume, EC levels spiked unpredictably in early morning cycles.”
+
+Fiora Velkbrook nodded. “Linnea’s point is critical because a spike in EC indicates localized oversaturation, which can stress roots even if the total runoff volume decreases. During the beta, we observed in Tower 3 that the nutrient concentration gradient shifted by as much as 0.15 mS/cm within a 30-minute window during the 5 am dosing phase. This suggests the flow algorithm needs tighter feedback loops on real-time nutrient sensing.”
+
+Ysolde responded, “Right, the current model in FlowSync v2.1 updates pump speeds every 10 minutes based on sensor input, but that may be too coarse. Our data from the beta run in the Greenfield location showed that a 5-minute interval could improve synchrony and reduce oversaturation events by an estimated 9%. However, that places a heavier computational load on the PLCs.”
+
+Linnea mused, “Would upgrading the PLCs across all towers to handle 5-minute adaptive controls be operationally feasible? From our last audit, there were budget constraints, but with a potential 26% reduction in nutrient runoff when combining finer control intervals and improved nutrient sensing, it could be justified.”
+
+Fiora interjected, “Alongside hardware upgrades, we should also consider refining the nutrient dosing curves themselves. The beta test benchmarked FlowSync v2.1 against the legacy v1.7 dosing profiles, which used a linear increase model from seedling through harvest. However, plants actually uptake nutrients in a sigmoidal pattern. By aligning dosing rates more closely with these biological curves, we could potentially minimize excess nutrient delivery during low uptake phases.”
+
+Ysolde nodded thoughtfully. “Agreed. In fact, integrating growth stage forecasting into FlowSync’s control logic was a key enhancement we trialed. For instance, in Tower 9, using growth stage-adjusted dosing reduced total nitrogen runoff by 22% over six weeks. Linnea, you worked closely with the agronomy team on that trial, right?”
+
+“Yes,” Linnea confirmed. “We used leaf area index (LAI) measurements combined with chlorophyll fluorescence data to predict nutrient demand dynamically. However, the challenge was sensor drift after prolonged use in high-humidity conditions—up to 5% measurement error after four weeks—which could have skewed dosing. We need a maintenance schedule or sensor recalibration protocol to ensure accuracy.”
+
+Fiora added, “To address sensor drift, we experimented with redundant sensing arrays in Towers 4 and 8 during the beta. Utilizing paired sensors for cross-validation improved measurement fidelity by around 12%, allowing for more reliable dosing decisions. Although it raises upfront costs by approximately 8%, the reduction in nutrient waste and improved crop uniformity may offset this.”
+
+Ysolde summarized the trade-offs. “So we’re looking at these possible upgrades: shortening control intervals from 10 to 5 minutes, implementing redundant sensors to reduce drift, and refining dosing curves based on plant growth models. Each comes with costs but demonstrable benefits.”
+
+Linnea proposed, “For the next phase, I suggest a controlled pilot integrating all three upgrades. Selecting a representative sample of towers—perhaps Towers 2, 5, and 11—for a 12-week study could provide robust comparative data. We can measure runoff volumes, nutrient concentrations, crop yields, and compute cost-benefit analytics.”
+
+Fiora concurred. “That’s strategic. We should also include cyclical flushing protocols prompted by runoff sensor thresholds. The beta showed that purposive flushing at nutrient concentration plateaus can prevent salt buildup without excessive water use. A 4% increase in water use efficiency was recorded when implementing these pulse flushes.”
+
+Ysolde reminded, “Currently, FlowSync v2.1 triggers flushing based on timed intervals, not dynamic runoff metrics. Incorporating real-time thresholds will require some coding revisions and additional sensor integration, but it aligns well with our waste reduction goals.”
+
+Linnea asked, “What about integrating machine learning to predict runoff events hours in advance? If we could forecast nutrient accumulation patterns based on environmental and plant growth data, we might preemptively adjust flows to minimize waste.”
+
+Fiora replied, “We’ve laid groundwork during the beta with a basic predictive model trained on seven weeks of environmental and nutrient data. Early results indicated a 70% accuracy in anticipating runoff spikes 2 hours ahead. Enhancing this model with longer data series and more diverse conditions could improve predictive capabilities.”
+
+Ysolde noted, “However, deploying ML models at scale requires robust infrastructure and data pipelines. The beta used batch processing on cloud servers, but for real-time control, we need edge computing capabilities embedded in the local controllers. That’s a significant architecture change.”
+
+Linnea raised a concern, “Given current timelines and resource allocations, would this be feasible before the next harvest cycle? We don’t want to disrupt ongoing production.”
+
+Fiora suggested, “We can phase it. First, finalize flow interval and sensor upgrades in a pilot. Second, develop and validate the ML predictive module offline using the pilot data. Lastly, integrate predictive control once the model achieves >85% precision in forecasting. This staged approach mitigates operational risk.”
+
+Ysolde agreed, “Good plan. Also, we must document the impacts rigorously. For example, in Tower 5 during the beta, we observed an 18% decrease in nitrate runoff with synchronized dosing but also a 4% yield increase, possibly due to reduced root stress. Capturing these correlations helps build the business case.”
+
+Linnea added, “From the cost perspective, reducing nutrient waste translates directly into material savings. Our nutrient solution costs average $1,200 per month per tower. A 20% reduction equals roughly $240 in monthly savings per unit. Across our 50 GrowTowers, that’s $12,000 per month, or $144,000 annually.”
+
+Fiora concluded, “Plus, there’s the environmental benefit. Lower nutrient runoff reduces risk of contaminating recirculation systems, which maintains water quality and prolongs infrastructure life. We should factor these indirect cost savings into future ROI calculations.”
+
+Ysolde wrapped up the discussion with action items:
+
+- Implement a pilot on Towers 2, 5, and 11 integrating: 5-minute dosing control intervals, redundant nutrient sensors, and growth stage-based dosing curves.
+
+- Develop dynamic flushing triggers based on nutrient runoff thresholds.
+
+- Expand data collection for enhanced machine learning models to predict runoff events.
+
+- Conduct cost-benefit analyses including material savings, yield impacts, and environmental benefits.
+
+- Plan phased ML integration starting with offline validation before real-time deployment.
+
+She assigned Linnea and Fiora to co-lead the pilot design and sensor upgrade procurement with a target kickoff in six weeks. The team agreed to reconvene after initial pilot data at the 8-week mark to assess progress and recalibrate strategies. This structured approach aims to systematically minimize nutrient runoff while optimizing yield and operational efficiency across the vertical farm network.
+
+## Integration with Yield Forecasting Models
+
+Ysolde Fennford opened the discussion by emphasizing the critical need to better align nutrient dosing data with the existing yield forecasting model, YieldScope X. “Our last quarter’s projections missed the mark by roughly 12%, primarily because the nutrient flow variables weren’t dynamically integrated,” Ysolde noted. “If we can incorporate real-time optimized dosing data, we should push forecasting accuracy above 90% confidence for the next growth cycle.”
+
+Linnea Marqmoor nodded in agreement. “YieldScope X currently pulls historical fertilizer usage as static inputs, but dosing adjustments from our new twin-tower nutrient control systems aren’t feeding in. The variable dosing—especially our adaptive nitrate and potassium flows—has shown a 15% boost in crop biomass in trials, but this hasn’t translated into forecast model improvements yet.” She suggested, “We’ll need to build a data bridge that streams hourly dosing metrics into YieldScope X’s simulation layers.”
+
+Fiora Velkbrook, who leads the nutrient analytics team, shared some preliminary analyses. “When we overlay optimized dosing records from the last eight weeks with the yield outputs, the correlation coefficients for nitrate flow rates versus biomass yield jumped from 0.52 to 0.78 after applying the tuning algorithms. Potassium showed a similar trend, moving from 0.44 to 0.71 correlation. This confirms that more granular nutrient data can materially improve forecasting accuracy.”
+
+Ysolde pressed further: “That’s encouraging, Fiora. But how granular is the dosing data we can realistically feed into YieldScope X without creating noise? The model already juggles multiple environmental inputs—temperature, humidity, CO₂, and light intensity. How do we maintain model parsimony?”
+
+Linnea replied, “Good question. Our proposal is to aggregate nutrient dosing into hourly averages per tower rather than raw per-minute values. The key compounds—nitrate, potassium, phosphorus—will each be represented as three separate time series. This limits dimensionality while preserving responsiveness.” She added, “Given our twin-tower setup, that’s six nutrient variables per hour streaming into YieldScope X, in addition to existing environmental data.”
+
+Fiora chimed in, “From the analytics side, even 30-minute aggregation could suffice, but we’re erring on the side of hourly to balance data volume and model stability. Also, we plan to tag dosing events when adaptive feedback loops trigger increases or decreases beyond 10% thresholds, so YieldScope X can weight those periods differently.”
+
+Ysolde asked, “What about the latency between dosing changes and observable yield effects? YieldScope X’s current simulations assume a roughly 14-day response window for nutrient adjustments. Can we align with that?”
+
+Linnea replied, “Yes, the model’s phenology module will need recalibration to account for the faster nutrient response times enabled by our new dosing systems. Recent growth chamber experiments showed certain lettuce varieties responding as early as 7 days post-adjustment, rather than 14. We’ll update the delay parameters accordingly.”
+
+Fiora added, “We’ll also integrate a confidence interval adjustment into YieldScope X’s Bayesian layer to reflect the reduced lag uncertainty. This should tighten forecast error margins by about 3-5%, based on initial model runs.”
+
+Ysolde turned to next steps. “So to summarize, we’re targeting: (1) establishing an hourly nutrient dosing data pipeline from the twin towers, (2) revising YieldScope X’s phenology parameters to reflect faster nutrient response, and (3) incorporating dosing event flags into the model’s weighting system. Are we aligned on timelines?”
+
+Linnea responded, “The data pipeline prototype is slated for delivery within three weeks. We have the APIs mostly designed, pending some security vetting from the IT team. The phenology recalibration model update will take approximately five weeks, as it requires retraining on recent growth datasets. The event flag integration can proceed in parallel, estimated at two weeks post-data pipeline completion.”
+
+Fiora suggested, “To validate the integration, we propose running a side-by-side test over the next growth cycle, comparing YieldScope X’s usual outputs with the enhanced nutrient-aware model. We should target at least 500 data points covering multiple crop types and environmental conditions.”
+
+Ysolde agreed. “Let’s formalize that test plan. Fiora, your team can define the data sample criteria and QC measures. Linnea, coordinate with YieldScope X’s modeling team to set up dual-run capabilities. We’ll reconvene in six weeks to review results.”
+
+Linnea raised a potential complication. “There’s one caveat with real-time dosing feed integration: occasional sensor calibration drift in our nutrient probes causes transient spikes or drops. These outliers could mislead YieldScope X if unfiltered.”
+
+Fiora responded, “We’re deploying an anomaly detection algorithm at the ingestion layer. It flags and smooths values exceeding three standard deviations from typical flows within a moving 12-hour window. Early tests reduced false dosing outliers by 87%.”
+
+Ysolde requested, “Please document the anomaly filtering logic in the integration specs. Additionally, can you provide a confidence metric alongside the dosing data, so the forecasting model can weigh uncertain inputs less heavily?”
+
+Fiora confirmed, “Yes, we added a ‘data quality index’ on a 0-1 scale per time point, derived from probe health diagnostics and anomaly scores. YieldScope X’s Bayesian weighting can utilize this index.”
+
+Linnea noted, “From a systems perspective, the new data stream will add roughly 4.3 GB daily to the data warehouse. We’ve provisioned a dedicated nutrient data bucket optimized for fast retrieval to minimize latency.”
+
+Ysolde summarized the resource impacts. “That’s acceptable within current budgets for cloud storage and compute. Please track actual usage closely during the pilot phase to flag any overages.”
+
+Linnea added, “We’re also designing dashboards within the GrowOps portal for operators to visualize live nutrient dosing trends alongside forecast output discrepancies. This will improve operational transparency.”
+
+Ysolde smiled, “Excellent. Having growers see real-time feedback loops will help identify issues faster and foster trust in the model’s recommendations.”
+
+Fiora concluded, “One final note: after the pilot, we should explore machine learning techniques to allow YieldScope X to suggest optimal nutrient dosing schedules, closing the loop between forecasting and dosing.”
+
+Ysolde responded, “Agreed. That’s the logical next step in evolving from predictive to prescriptive analytics. Let’s focus first on delivering this integration successfully, then we’ll scope that future phase.”
+
+The group collectively committed to the outlined integration roadmap with clear milestones and ownership. They scheduled a follow-up technical review meeting for March 15, coinciding with the mid-growth cycle data collection point. The integration with YieldScope X was recognized as a pivotal advancement toward increasing yield predictability and maximizing resource efficiency in the farm’s controlled environment agriculture systems.
+
+## Challenges and Risk Mitigation
+
+Ysolde Fennford opened the discussion by emphasizing the criticality of addressing risks associated with the dosing units in the Sentinel project. “We’ve seen a 2.7% hardware failure rate in the beta units over the last quarter, which sounds low until you consider that each failure directly impacts nutrient delivery for 24 to 48 hours. Across 1,200 active towers, that scales to roughly 32 towers with suboptimal dosing at any given time. Our system tolerances don’t currently handle that gracefully.”
+
+Linnea Marqmoor nodded, pulling up the quarterly reliability report. “The failure points are mostly in the microfluidic valves and the pump thrusters. The valves’ solenoid components tend to degrade after 4500 hours of operation, which for our continuous dosing units translates to roughly six months. Meanwhile, pump thruster drifts cause dosage inaccuracies escalating from ±1.5% at deployment to ±5% after 4 months.”
+
+Fiora Velkbrook jumped in, “Beyond hardware, software glitches have caused sporadic misrouting of nutrient flows. Last month, we identified two incidents where firmware bugs in the dosing control algorithm led to overdosing nitrogen by up to 18% for 14 hours. Even though the plants tolerated it temporarily, these anomalies could reduce crop yields by up to 6% in the long term if unaddressed.”
+
+Ysolde agreed, “Exactly. Codename Sentinel’s value proposition hinges on precision nutrient flow. Every failure mode chips away at that promise. We need a multi-layered mitigation strategy.”
+
+Linnea proposed, “For hardware failures, we must implement real-time redundancy. Each dosing module should have a backup microvalve and a parallel pump line. If the primary line’s sensors detect pressure anomalies or flow irregularities exceeding 3 standard deviations from baseline within 10 minutes, the module should auto-switch to the backup line and trigger an alert.”
+
+Fiora added, “To support this, the firmware needs a robust watchdog mechanism. Right now, our error detection log only updates every 60 seconds. Reducing that to a 5-second heartbeat would enable rapid detection and response. We could also embed predictive diagnostics that use machine learning models trained on sensor drift patterns to forecast valve failures at least 48 hours in advance.”
+
+Ysolde emphasized, “I'm particularly interested in that forecasting model. What level of accuracy are we seeing?”
+
+Fiora responded, “Preliminary tests on a dataset of 300 valve units showed a true positive rate around 82%, with a 9% false positive rate. By integrating temperature, humidity, and vibration sensor data, we can improve predictions to approximately 88% accuracy after two more iterations.”
+
+Linnea suggested, “Great. We should start deploying these predictive modules in parallel to the current units, initially in 100 towers in the North Ridge facility for a controlled trial. That’ll provide real-world data to further refine the algorithms.”
+
+Ysolde agreed, “Agreed. We’ll earmark $150k from the R&D budget in Q3 for this pilot. On the hardware front, what’s the cost implication for adding redundancy?”
+
+Linnea answered, “Adding a secondary microvalve and pump line per module ups the BOM cost by roughly $38 per unit, plus an estimated $7 per unit in assembly labor. Scaling to 2,400 modules for fleet-wide coverage, that’s approximately $108k additional upfront capital.”
+
+Fiora assessed, “Considering the potential crop loss risk, that’s a justifiable investment. An unmitigated valve failure can cost us up to $1,200 in lost yield per tower per month. Even a 30% reduction in failure downtime would offset the additional capital within the first harvest cycle.”
+
+Ysolde shifted to software risks. “Regarding firmware bugs, do we have a formalized rollback strategy?”
+
+Fiora replied, “Currently, firmware updates are atomic but lack version staging safeguards. We propose implementing a dual-bank firmware architecture, allowing immediate rollback to the previous stable image upon detection of anomalies post-update.”
+
+Linnea nodded, “This dovetails with continuous integration pipelines we’re establishing. Automated regression tests will cover all dosing scenarios before deployment. Additionally, we should introduce staged rollouts—updating no more than 10% of units at a time, monitoring telemetry for 48 hours before proceeding.”
+
+Ysolde summarized, “To recap:
+
+- Hardware redundancy via parallel microvalve and pump lines, auto-failover triggered within 10 minutes of anomalies.
+
+- Predictive maintenance using ML models forecasting valve failures 48 hours in advance with 88% accuracy.
+
+- Firmware upgrades adopting dual-bank architecture with staged rollouts and rollback capability.
+
+- Enhanced telemetry heartbeat intervals reduced from 60 to 5 seconds for faster fault detection.
+
+Linnea, could your team draft a detailed implementation plan for the hardware redundancy by July 15? Fiora, please prepare the ML model deployment roadmap and firmware update framework by July 22. We’ll then review together.”
+
+Linnea agreed, “Yes, we’ll also liaise with the supply chain to secure additional microvalves and pumps, considering a 20% buffer stock due to anticipated increased replacement rates during rollout.”
+
+Fiora added, “On telemetry, we’ll need firmware patches to optimize sensor data aggregation without impacting processing latency or power consumption. Initial tests suggest that a 5-second heartbeat could increase CPU load by about 12%, so we might need to adjust energy management protocols.”
+
+Ysolde responded, “Good catch. Let’s include energy impact evaluation in your July 22 deliverable. Also, we need to align with Operations on the contingency response protocols. For instance, what’s the manual override capability if the auto-failover system fails?”
+
+Linnea noted, “Currently, manual override requires a certified technician onsite—response times average 6 hours. We’re exploring remote override capabilities but security concerns and connectivity reliability pose challenges.”
+
+Fiora suggested, “Could we empower local growers with a simplified override app secured with multi-factor authentication? Training them to perform basic resets or switch to backup dosing profiles might reduce downtime.”
+
+Ysolde considered, “Potentially. But we must ensure this doesn’t introduce risks of misconfiguration. Perhaps a tiered permission model? Growers get limited controls; technicians retain advanced ones.”
+
+Linnea agreed, “That balances usability and safety. We’ll pilot this approach in the Eastfield facility, which has a higher density of grower staff.”
+
+Ysolde shifted tone, “Finally, on supply chain risk—given the increased component usage, have we identified alternative suppliers for critical parts?”
+
+Linnea replied, “Yes. We currently source microvalves from two vendors domestically and one overseas. To mitigate shipping delays, we plan to expand local inventory to cover three months’ average usage, up from one month now. Additionally, we’re qualifying two new suppliers for pumps in case of shortage.”
+
+Fiora emphasized, “We should integrate component lead-time variance into the ML failure prediction models. If parts are delayed, we could preemptively adjust maintenance schedules or ration usage.”
+
+Ysolde concurred, “Excellent idea. Let’s incorporate that. To close, the Codename Sentinel risk mitigation package is shaping well, but we must monitor key metrics closely as we expand deployment. I want monthly risk dashboards with hardware failure rates, software incident counts, response times, and yield impact estimates starting August.”
+
+Linnea and Fiora collectively committed, “Understood. We’ll coordinate data pipelines to deliver those dashboards.”
+
+Ysolde concluded, “Thanks, everyone. This comprehensive approach will safeguard our nutrient dosing precision and maintain growers’ confidence in Sentinel’s promise.”
+
+## Next Steps and Action Items
+
+Ysolde Fennford opened the final segment of the meeting by summarizing the key outcomes of the previous discussions. "We've made significant progress on understanding the variable nutrient flow rates in Hydra-9," she said, "but now it’s time to lock down our next steps to turn theory into practice."
+
+Linnea Marqmoor, glancing at her notes on the tablet, nodded. "Agreed. The calibration variance we saw in the last batch was around 3.8%, which is above our target of under 1.5%. That tells me we need more controlled testing and better staff training on the new techniques."
+
+Fiora Velkbrook leaned forward, fingers steepled over the conference table. "I propose we initiate a detailed testing protocol focused exclusively on the Hydra-9 dosing subsystem. We should run at least 10 full cycles per tower, measuring nutrient consistency and flow rates every hour for 72 hours straight. That will give us a robust data set to analyze."
+
+Ysolde tapped the table pensively. "Ten cycles per tower sounds intensive but necessary. We have 12 Hydra-9 towers in the central bay. That’s 120 cycles total. Do we have the bandwidth for that in the current schedule?"
+
+Linnea answered without hesitation. "If we stagger testing to two towers at a time, we can manage it over a 6-week period. We’ll need to reassign some maintenance personnel temporarily, but the operations team is on board."
+
+"Good," Ysolde acknowledged. "Fiora, will you lead the design of this testing protocol?"
+
+"Yes. I'll coordinate with the analytics team to ensure we capture every variable — nutrient concentration, temperature, pH, flow rate, and electrical conductivity — every 15 minutes during cycles."
+
+Linnea added, "And I’ll arrange the logistics for the maintenance staff reassignment and the scheduling with the operations coordinators."
+
+Ysolde marked the first action item on the whiteboard: "Detailed Hydra-9 system testing — Lead: Fiora, Support: Linnea, Timeline: Start July 3, complete by August 14."
+
+"Next," Ysolde continued, "we need to address the staff training on updated calibration techniques. The Hydra-9 calibration module was upgraded two months ago, but uptake has been uneven."
+
+Linnea spoke up. "I reviewed the feedback from the recent calibration sessions. About 40% of the participants reported some confusion with the new interface, specifically with the adaptive flow adjustment slider. We need a refresher workshop that’s hands-on and scenario-based."
+
+"Do we have trainers available?" Ysolde asked.
+
+"Yes," Linnea said. "I've spoken with the in-house trainers. We can conduct two sessions per week, each accommodating 8 trainees, over four weeks. That covers our 64 maintenance and operations staff."
+
+Fiora raised a concern. "We should also prepare a short video tutorial that employees can reference after the sessions. Sometimes the hands-on instruction isn’t enough, and refresher videos help."
+
+"Excellent idea," Ysolde approved. "Linnea, can you draft a curriculum and oversee the video production?"
+
+"I’ll get right on it," Linnea confirmed. "We’ll aim to have the first training session by July 10, so the video should be ready by then."
+
+Ysolde summarized the second action item: "Calibration training sessions and tutorial video — Lead: Linnea, Timeline: Sessions from July 10 to August 5, Video ready by July 8."
+
+Fiora then suggested a supplementary measure. "Alongside training, let's implement a weekly calibration audit for the first two months post-training. Randomly select three Hydra-9 towers to verify calibration accuracy and provide immediate feedback."
+
+Linnea agreed. "That way, we’ll catch any drifting parameters early before they impact yield projections."
+
+"Good," Ysolde concurred. "Let's add that as a third action item: 'Weekly Hydra-9 calibration audits post-training — Lead: Fiora, Timeline: August 6 to September 30.'"
+
+There was a brief pause as the team reflected on the workload.
+
+"I'm confident this plan is manageable," Linnea said. "But we’ll need clear communication with the operations team to prevent disruptions, especially during peak growth cycles."
+
+Ysolde replied, "We’ll coordinate with tower managers weekly. And Fiora, the data from the detailed testing should inform whether the new calibration techniques actually reduce variance to below 1.5%."
+
+"Exactly," Fiora confirmed. "If we don’t see improvements by mid-August, we will need to revisit the system settings or even consider hardware tweaks."
+
+Linnea added, "On that note, I also put in a request for spare parts for the Hydra-9 dosing pumps. We should have at least 20% spare inventory ready by August, to avoid downtime during testing and calibration phases."
+
+Ysolde smiled. "Proactive as always, Linnea. Let’s set a procurement checkpoint for July 25 to confirm the parts arrival."
+
+"Noted," Linnea said.
+
+Ysolde then opened the floor for any other suggestions.
+
+Fiora proposed, "One last point — integrating the yield forecasting model with the nutrient flow data. If we link these systems, we can predict how calibration variance impacts expected yields in near real-time."
+
+Linnea nodded thoughtfully. "That aligns well with the upcoming version 3.2 of our forecasting software, scheduled for release in September."
+
+Ysolde concluded, "Let’s prepare a proposal for that integration after August, once testing and training are complete. For now, our focus is Hydra-9 optimization."
+
+She looked around the table. "To recap: Fiora leads the detailed system testing starting July 3; Linnea runs the staff training sessions and tutorial video starting July 10; post-training calibration audits led by Fiora starting August 6; spare parts procurement checkpoint on July 25. We’ll meet again August 20 to review progress and decide on the next phase."
+
+Linnea and Fiora both confirmed the plan with nods.
+
+Ysolde wrapped up, "Thank you both for your commitment. Let’s maintain tight coordination and keep data flowing. The success of Hydra-9’s nutrient dosing directly impacts our yield and quality goals."
+
+Meeting adjourned at 11:45 AM.
+
+## Closing Remarks and Q&A
+
+Ysolde Fennford took a deep breath and leaned forward, signaling the start of the meeting’s closing segment. “Before we wrap up,” she began, “I want to underscore the strategic significance of the nutrient flow optimizations we’ve been discussing. These changes aren’t minor tweaks—they represent a foundational shift in our approach to maximizing yield and resource efficiency.”
+
+She clicked to a slide summarizing the latest figures. “First, the laboratory tests indicate a 12.5% increase in biomass accumulation per grow cycle compared to our previous nutrient flow protocols. This translates to an estimated additional 1.8 metric tons of produce per week across the Bristlecone Tower facility at full operational capacity. Remember, that’s without increasing the input of raw materials—just smarter dosing and flow regulation.”
+
+Linnea Marqmoor nodded thoughtfully. “That’s a significant jump,” she commented. “If we consider the current market price for our premium greens—around 15 credits per kilogram—that’s roughly 27,000 credits in additional weekly revenue. Over a quarter, the impact compounds impressively.”
+
+“Yes,” Ysolde agreed, “and the economic implications go beyond revenue. The optimizations reduce nutrient waste by about 8%, which lowers our overall costs by approximately 5,500 credits monthly in chemicals alone. Given the tight margins we face, these savings help solidify our financial footing.”
+
+Fiora Velkbrook chimed in, “I’d like to add that the forecasting models we’ve enhanced with these flow variables have improved yield prediction accuracy from ±8% variance to ±3%. This means our inventory planning and logistics teams can operate with greater confidence, reducing overstock and spoilage.”
+
+Ysolde gave a slight smile. “Exactly. The strategic impact affects every link in the chain—from upstream nutrient procurement to downstream distribution and sales. By better aligning nutrient delivery with plant uptake curves, we’re effectively closing the loop on system inefficiencies that have plagued us for years.”
+
+Linnea raised a hand. “To clarify, Ysolde, will these protocol changes require significant retraining for the tower operators? My team has flagged some concerns about the new dosing schedules.”
+
+Ysolde nodded. “Good point. We’ve accounted for that. Training sessions are scheduled for next week, focused on hands-on adjustments and monitoring via the updated FlowMaster control interface. The learning curve should be minimal; the system automates much of the dosing adjustments once operators input the initial parameters. Our goal is to have the new protocols fully implemented by the start of Cycle 47.”
+
+Fiora added, “Regarding the interface, we’ve incorporated user feedback on alert thresholds. Operators will receive proactive notifications if nutrient concentrations deviate beyond 3% from target values, allowing immediate correction before plants show stress symptoms.”
+
+Linnea smiled, “That should increase confidence on the ground. Another question: Are we anticipating any challenges scaling these optimizations from the Bristlecone Tower to the Nimbrel Grow Complex, which has a different hydroponic system?”
+
+Ysolde replied, “The Nimbrel system does present some variables—especially given its flow dynamics and differing reservoir volumes. However, preliminary simulations suggest the core principles of our dosing algorithm apply. We’re planning a pilot test there during Cycle 49 to validate and calibrate parameters specific to Nimbrel.”
+
+Fiora nodded approvingly. “We’ve also drafted a plan to incorporate sensor arrays for nitrate and phosphorus concentrations in real time at Nimbrel. This will improve feedback loops, enabling adaptive nutrient modulation.”
+
+Linnea then raised a broader strategic question. “From a company-wide perspective, how do these optimizations align with our sustainability targets? Specifically, the carbon footprint reduction goals for 2030?”
+
+Ysolde leaned back thoughtfully. “Good question. By reducing nutrient waste and improving uptake efficiency, we anticipate cutting the embedded carbon in our hydroponic inputs by roughly 14% per grow cycle at Bristlecone. When scaled across all facilities, that contributes significantly toward our broader goal of a 30% reduction by 2030. Moreover, less nutrient runoff means lower environmental impact on adjacent urban zones, supporting our corporate responsibility commitments.”
+
+Fiora added, “We’re also collaborating with the Materials team to explore bio-based nutrient formulations compatible with the dosing schedules, further enhancing sustainability.”
+
+Linnea smiled. “To wrap up that thread, it sounds like we’re on track to use these optimizations as a case study for integrating operational efficiency with environmental stewardship. That’s compelling for our investors.”
+
+Ysolde nodded in agreement. “Indeed. I’ll be preparing a briefing for the Executive Board next month outlining these outcomes and next steps.”
+
+Seeing the nods around the virtual table, Ysolde opened the floor to questions. “Let’s take any concerns or suggestions from the team.”
+
+Linnea spoke first. “One operational note: in last week’s dry run of the new dosing schedules, we observed a slight lag in pump calibration responsiveness during peak nutrient cycling hours. It caused a 0.2 mL/min flow deviation for about 15 minutes. Are there plans to address hardware calibration?”
+
+Fiora responded promptly. “Yes, the Engineering team is investigating firmware updates for the FlowMaster pumps. The anticipated fix will reduce latency by approximately 60%, aiming for near-instantaneous response times. We expect a patch rollout before Cycle 46 begins.”
+
+Ysolde added, “We’ll monitor that closely. These performance details matter when margins are tight.”
+
+Linnea then asked, “On the data analysis side, will the yield forecasting models incorporate weather variations inside the grow tower, like microclimate fluctuations?”
+
+Fiora answered, “We’ve integrated localized temperature and humidity sensors into the model inputs. Initial trials show that accounting for these microclimate factors reduces forecasting error margins by 1.5 percentage points. We plan to expand sensor coverage next quarter to enhance this further.”
+
+Ysolde nodded. “That’s an excellent enhancement. Better data granularity equals better operational decisions.”
+
+Another voice joined in—though off screen, Ysolde recognized it as a junior analyst’s. “Regarding nutrient cost fluctuations, is there a plan to dynamically adjust dosing to optimize cost efficiency during market price swings?”
+
+Ysolde smiled warmly. “Great question. We’re exploring algorithms that integrate real-time commodity pricing for nutrient components, allowing the system to modulate concentrations within agronomic optimums while minimizing input costs. This is slated for development in Q3, after we stabilize the current protocol rollouts.”
+
+Linnea chimed in, “That capability would add a powerful layer of cost control.”
+
+As the questions tapered off, Ysolde concluded, “Thank you all for the robust discussion. The progress here reflects the collective dedication of the entire team—engineering, agronomy, data science, and operations. Our next steps are clear: finalize operator training, implement the firmware update, and begin pilot testing at Nimbrel. We’ll reconvene in two weeks to review initial Cycle 46 data and address any emerging issues.”
+
+Fiora gave a final affirmation, “Looking forward to seeing these improvements in action.”
+
+Linnea nodded. “Agreed. Thanks, Ysolde.”
+
+With that, Ysolde closed the session. “If no other questions, I’ll end the meeting. Please reach out offline if anything else comes up. Let’s keep pushing the frontier of precision agriculture.”
+
+The virtual meeting faded as everyone signed off, energized by the clear path forward and the promise of enhanced productivity and sustainability.
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-03-08-line-inspection-drone-deployment-planning.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-03-08-line-inspection-drone-deployment-planning.md
new file mode 100644
index 0000000000..a17adf3fc7
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-03-08-line-inspection-drone-deployment-planning.md
@@ -0,0 +1,33 @@
+---
+type: "meeting"
+title: "Line Inspection Drone Deployment Planning"
+tags: ["wildfire-detection-and-utility"]
+date: "2023-03-08"
+attendees: ["Eilis Holmstead","Zephyra Yarlvane"]
+---
+
+# Line Inspection Drone Deployment Planning
+
+Date: 2023-03-08
+Attendees: Eilis Holmstead, Zephyra Yarlvane
+
+**Agenda**
+- Review operational rollout plan for automated drone inspections on feeder lines
+- Finalize number of drone units and deployment zones
+- Discuss integration with existing camera networks and outage risk monitoring
+- Assign action items for pilot phase launch
+
+**Discussion**
+Eilis presented the detailed rollout plan aiming to deploy 24 drones across 6 high-risk feeder line zones by Q2 2023. Each zone covers approximately 150 miles of line. The drones are equipped with infrared and visual cameras optimized for vegetation encroachment detection and hotspot identification. Zephyra highlighted the importance of syncing drone data with the current camera network to enable unified outage risk analytics. They agreed that drone flights will be scheduled twice monthly per zone, increasing to weekly during peak fire season (July-September). Battery swap stations will be installed at 3 substations to maintain continuous operations. The pilot phase will focus on zones 3 and 5, covering 300 miles total and involving 8 drones.
+
+**Decisions**
+- Deploy 24 drones in 6 zones by Q2 2023
+- Pilot phase limited to zones 3 and 5 with 8 drones starting April 1st
+- Integrate drone data feeds into the existing outage risk platform by pilot start
+
+**Action Items**
+- Eilis to finalize drone deployment schedule and battery swap logistics by March 15
+- Zephyra to coordinate data integration with outage risk team, target March 25
+- Both to prepare pilot phase briefing for operations team by March 20
+
+Attendee pages: [[people/eilis-holmstead]], [[people/zephyra-yarlvane]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-03-10-surveywing-data-workflow-review.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-03-10-surveywing-data-workflow-review.md
new file mode 100644
index 0000000000..0735cef5e2
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-03-10-surveywing-data-workflow-review.md
@@ -0,0 +1,36 @@
+---
+type: "meeting"
+title: "SurveyWing Data Workflow Review"
+tags: ["construction-site-robotics"]
+date: "2023-03-10"
+attendees: ["Dorrit Lornley","Zosia Jorvley","Yorick Talvwick"]
+---
+
+# SurveyWing Data Workflow Review
+
+Date: 2023-03-10
+Attendees: Dorrit Lornley, Zosia Jorvley, Yorick Talvwick
+
+## Agenda
+- Review current SurveyWing drone data processing pipelines
+- Compare throughput and accuracy metrics
+- Identify bottlenecks impacting site survey efficiency
+- Decide next steps for optimization
+
+## Discussion
+Dorrit presented the latest benchmarking results for the SurveyWing drone data workflows. The primary pipeline using the GeoMapper v2.1 software processed 5,000 images per survey with an average completion time of 4 hours and positional accuracy within 12 cm. An alternative pipeline employing the AeroScan proprietary software processed the same amount of data in 3.5 hours but showed a degradation in accuracy to 18 cm.
+
+Zosia highlighted that current site turnover times require survey data within 3 hours to support same-day rebar tying adjustments. Yorick noted that the bottleneck occurs during the image stitching phase, consuming 45% of total processing time in the GeoMapper pipeline and 35% in AeroScan.
+
+Dorrit suggested exploring parallel processing to reduce stitching time and testing hybrid pipelines combining the mapping accuracy of GeoMapper with AeroScan’s faster image preprocessing.
+
+## Decisions
+- Pilot a hybrid pipeline combining GeoMapper’s stitching with AeroScan’s preprocessing
+- Target overall processing time reduction to under 3 hours with positional accuracy ≤15 cm
+
+## Action Items
+- Dorrit to coordinate development of the hybrid pipeline by 2023-04-15
+- Zosia to arrange field tests at the East Ridge project site starting 2023-04-20
+- Yorick to investigate cloud-based parallel processing options and report by 2023-04-10
+
+Attendee pages: [[people/dorrit-lornley]], [[people/zosia-jorvley]], [[people/yorick-talvwick]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-05-03-kickoff-for-insurance-claim-automation.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-05-03-kickoff-for-insurance-claim-automation.md
new file mode 100644
index 0000000000..5ccbf42ac5
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-05-03-kickoff-for-insurance-claim-automation.md
@@ -0,0 +1,33 @@
+---
+type: "meeting"
+title: "Kickoff for Insurance Claim Automation"
+tags: ["dental-clinic-scheduling-and-billing"]
+date: "2023-05-03"
+attendees: ["Veda Ravnby","Tobiah Naskley","Dorrit Ibbmere"]
+---
+
+# Kickoff for Insurance Claim Automation
+
+Date: 2023-05-03
+Attendees: Veda Ravnby, Tobiah Naskley, Dorrit Ibbmere
+
+**Agenda:**
+- Overview of ClaimTrackr functionality
+- Integration approach into existing billing workflows
+- Expected impact on chair utilization and claim processing times
+- Next steps and ownership
+
+**Discussion:**
+Veda reviewed ClaimTrackr’s automated insurance claim submission and status tracking features, noting a current benchmark of reducing claim processing from 15 to 7 days in similar clinics. Tobiah emphasized the need for seamless integration with our DentrixPro scheduling system to avoid double entry and maintain chair utilization targets of 85%. Dorrit highlighted the importance of automating claim denials follow-up to reduce revenue leakage, estimating a potential 12% improvement in claim recovery rates.
+
+**Decisions:**
+- Proceed with phased integration, starting with submission automation only.
+- Maintain manual review for denied claims initially to assess impact.
+- Target go-live date: 2023-07-01.
+
+**Action Items:**
+- Tobiah to lead technical integration design by 2023-05-20.
+- Dorrit to prepare training materials for billing staff by 2023-06-10.
+- Veda to coordinate pilot testing with front desk and billing teams in June.
+
+Attendee pages: [[people/veda-ravnby]], [[people/tobiah-naskley]], [[people/dorrit-ibbmere]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-05-16-clause-extraction-algorithm-review.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-05-16-clause-extraction-algorithm-review.md
new file mode 100644
index 0000000000..9f5b831972
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-05-16-clause-extraction-algorithm-review.md
@@ -0,0 +1,45 @@
+---
+type: "meeting"
+title: "Clause Extraction Algorithm Review"
+tags: ["legal-contract-automation"]
+date: "2023-05-16"
+attendees: ["Torben Fennmere","Amadeo Ibbdale","Dorrit Ravnham"]
+---
+
+# Clause Extraction Algorithm Review
+
+Date: 2023-05-16
+Attendees: Torben Fennmere, Amadeo Ibbdale, Dorrit Ravnham
+
+**Agenda:**
+- Review current clause extraction algorithm performance
+- Identify bottlenecks in clause identification accuracy
+- Propose improvements and enhancements to the ML models
+- Assign action items for next development sprint
+
+**Discussion:**
+
+Torben opened the meeting by presenting the latest evaluation metrics of the clause extraction algorithm used in the ContractIQ platform. Current accuracy sits at 82.4% overall clause identification, with a precision of 85.1% and recall of 79.8%, based on the 10,000-contract benchmark set from Q1 2023.
+
+Amadeo highlighted that certain clause types—specifically indemnity, confidentiality, and termination—showed uneven model performance. Indemnity clauses had the lowest recall at 71.2%, while termination clauses had the highest precision at 89.4%. Dorrit pointed out that this variability is impacting procurement teams’ trust in automated redlining suggestions, leading to increased manual intervention.
+
+The team reviewed error analysis reports from the last sprint. Patterns showed frequent misclassification of clauses with overlapping language, especially within multi-purpose sections combining payment terms and liability. The ML model struggles with long, nested sentences common in those contract templates from the manufacturing sector.
+
+Torben proposed integrating a domain-specific syntactic parser to better handle complex sentence structures. Amadeo suggested augmenting the training dataset with an additional 5,000 annotated contract segments focusing on those problematic clause types and sectors. Dorrit recommended adding a confidence score threshold filter to flag ambiguous clauses for human review instead of automatic extraction.
+
+The team agreed to prioritize improving recall on indemnity clauses to at least 78% by the end of Q2, while maintaining precision above 84%. They also discussed expanding the clause taxonomy to include emerging procurement terms that have appeared in recent contracts.
+
+**Decisions:**
+- Integrate domain-specific syntactic parser module by June 15, 2023. (Owner: Torben)
+- Expand annotated training data by 5,000 segments focused on indemnity, confidentiality, and termination clauses. (Owner: Amadeo)
+- Develop confidence score threshold and human-in-the-loop review workflow for ambiguous clause identifications. (Owner: Dorrit)
+- Set target recall improvement for indemnity clauses to 78% with precision above 84% for next release.
+- Update clause taxonomy to include 12 new procurement-related clause categories identified in last quarter’s contracts. (Owner: Dorrit)
+
+**Action Items:**
+- Torben to research and select syntactic parser tools compatible with current ML pipeline by May 30.
+- Amadeo to coordinate annotation team for expanded training dataset; initial batch due June 10.
+- Dorrit to draft confidence threshold parameters and design review workflow; present prototype June 5.
+- All to meet again on June 16 for progress review and integration planning.
+
+Attendee pages: [[people/torben-fennmere]], [[people/amadeo-ibbdale]], [[people/dorrit-ravnham]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-08-02-next-gen-packaging-materials-discussion.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-08-02-next-gen-packaging-materials-discussion.md
new file mode 100644
index 0000000000..2ed21622c4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-08-02-next-gen-packaging-materials-discussion.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Next-Gen Packaging Materials Discussion"
+tags: ["cold-chain-pharmaceutical-logistics"]
+date: "2023-08-02"
+attendees: ["Saskia Fennmoor","Tobiah Ulmford"]
+---
+
+# Next-Gen Packaging Materials Discussion
+
+Date: 2023-08-02
+Attendees: Saskia Fennmoor, Tobiah Ulmford
+
+### Agenda
+- Review performance of current insulation materials
+- Evaluate new composite samples for extended cold-chain duration
+- Discuss cost implications and integration challenges
+
+### Discussion
+Saskia presented data on the existing foam-based insulation, noting reliable temperature maintenance for up to 48 hours but degradation beyond 60 hours in high-humidity conditions. Tobiah introduced three new composite materials sourced from Lumitech Labs showing potential for 72-hour temperature stability at -20°C. Sample #2, a multi-layer aerogel hybrid composite, demonstrated a 30% improvement in thermal retention over current standards during tests in the Windmere warehouse. However, its cost is approximately 18% higher per unit volume. Integration concerns were raised regarding sensor tag compatibility due to material density differing from current foam packaging. Tobiah suggested a pilot run using the #2 composite on select vaccine shipments in September 2023 to gather real-world data.
+
+### Decisions
+- Proceed with limited pilot deployment of composite #2 in September
+- Maintain current foam insulation for shipments under 48 hours
+- Initiate cost-benefit analysis to be completed by 2023-09-20
+
+### Action Items
+- Tobiah: Coordinate pilot logistics and sensor tag calibration by 2023-08-15
+- Saskia: Prepare cost-benefit analysis framework by 2023-08-10
+- Both: Schedule follow-up review meeting for 2023-09-25
+
+Attendee pages: [[people/saskia-fennmoor]], [[people/tobiah-ulmford]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-09-16-wildfire-early-warning-system-strategy.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-09-16-wildfire-early-warning-system-strategy.md
new file mode 100644
index 0000000000..58d1a19414
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-09-16-wildfire-early-warning-system-strategy.md
@@ -0,0 +1,48 @@
+---
+type: "meeting"
+title: "Wildfire Early Warning System Strategy"
+tags: ["wildfire-detection-and-utility"]
+date: "2023-09-16"
+attendees: ["Eilis Holmstead","Zephyra Yarlvane"]
+---
+
+# Wildfire Early Warning System Strategy
+
+Date: 2023-09-16
+Attendees: Eilis Holmstead (Project Lead), Zephyra Yarlvane (Data Science Manager)
+
+Agenda:
+- Official kickoff of the Wildfire Sensor Pilot
+- Integration approach for camera-based sensors with existing utility vegetation management data
+- Defining success metrics and timelines
+- Assigning ownership and next steps
+
+Discussion:
+Eilis opened the meeting by formally announcing the start of the Wildfire Sensor Pilot as of today, September 16, 2023. She will serve as the pilot’s project owner, overseeing coordination between the sensor deployment team and utility data analysts. The pilot aims to validate the effectiveness of camera-networked wildfire early warning sensors in detecting potential ignition sources near high-risk electrical infrastructure.
+
+Zephyra presented an overview of the current utility vegetation management (UVM) database, which contains line inspection records and outage risk assessments for over 12,000 miles of distribution lines in Northern Cascadia Region. She emphasized the importance of integrating live sensor data streams with this existing UVM data to enable real-time risk scoring and alert prioritization.
+
+They discussed the proposed integration architecture: camera networks installed on 50 critical line segments will feed continuous video and thermal imaging data to the central Wildfire Early Warning System (WEWS) platform. This data will be cross-referenced with vegetation density, historical trimming schedules, and outage risk zones in the UVM database. The goal is to identify early signs of vegetation encroachment or ignition, enabling preemptive utility response.
+
+Eilis highlighted key performance indicators (KPIs) for the pilot, including:
+- Detection accuracy of fire ignition or smoke events at a minimum of 85% within the sensor coverage area
+- Reduction of vegetation-related outage incidents by at least 15% in pilot zones over the next 12 months
+- System latency from sensor detection to alert issuance below 5 minutes
+
+Zephyra proposed an initial evaluation period of 6 months post-deployment, during which the sensor data will be collected and cross-validated with ground truth observations and line patrol reports. This timeline aligns with the end of the high-fire-risk season in March 2024.
+
+They agreed to conduct monthly progress reviews to monitor data quality, sensor health, and integration challenges. The first installation of camera units is scheduled for October 10, 2023, targeting the highest priority risk segment in Pine Valley.
+
+Decisions:
+- Eilis Holmstead confirmed as pilot owner responsible for overall project delivery and coordination.
+- Integration approach to proceed as described, combining camera sensor feeds with UVM data for risk scoring.
+- KPIs and 6-month evaluation timeline approved.
+- Monthly progress reviews to begin October 20, 2023.
+
+Action Items:
+- Zephyra to finalize data integration pipeline design and share detailed architecture diagram by September 30, 2023.
+- Eilis to coordinate with field ops team for camera unit installation prep by October 5, 2023.
+- Both to draft pilot communication plan for internal stakeholders, targeting completion by September 25, 2023.
+- Data engineering team to begin sensor data ingestion framework development immediately, with initial test data feed by October 1, 2023.
+
+Attendee pages: [[people/eilis-holmstead]], [[people/zephyra-yarlvane]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-11-22-kickoff-for-roof-analytics-integration.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-11-22-kickoff-for-roof-analytics-integration.md
new file mode 100644
index 0000000000..113dd6c20a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-11-22-kickoff-for-roof-analytics-integration.md
@@ -0,0 +1,39 @@
+---
+type: "meeting"
+title: "Kickoff for roof analytics integration"
+tags: ["satellite-imagery-analytics-for-insurers"]
+date: "2023-11-22"
+attendees: ["Marlow Jorvvane","Bram Holmmoor","Oriel Zelkdale"]
+---
+
+# Kickoff for roof analytics integration
+
+Date: 2023-11-22
+Attendees: Marlow Jorvvane, Bram Holmmoor, Oriel Zelkdale
+Meeting subject: Initiated internal collaboration to embed satellite roof scoring into claims workflow
+
+---
+
+### Agenda
+- Overview of current satellite roof condition scoring capabilities
+- Review of integration goals with claims workflow
+- Define key metrics and performance targets
+- Outline initial project timeline and responsibilities
+
+### Discussion
+
+Marlow opened the meeting by summarizing the roof condition scoring model's accuracy at 87.3% based on the latest validation set of 15,000 roofs across Midwestern states. Bram emphasized the importance of reducing claim processing time by at least 25% through early detection of roof damage using satellite imagery. Oriel highlighted that flood extent analytics had already improved catastrophe response speed by 18% and expressed optimism about similar gains for roof analytics.
+
+The team discussed integration points: Marlow proposed embedding roof scores as an additional attribute in the existing claims dashboard, aiming for a rollout in Q1 2024. Bram requested the system accommodate real-time roof condition updates, with data refresh intervals no longer than 48 hours. Oriel stressed the need to validate the scoring model specifically on regions with frequent hail storms, suggesting an additional 5,000 annotated samples.
+
+### Decisions
+- Proceed with phased integration starting with pilot in Central Plains region
+- Target claim processing time reduction of 25% by end of Q2 2024
+- Prioritize data refresh frequency at 48 hours or less
+
+### Action Items
+- Marlow to prepare detailed data schema and API specs by 2023-12-08
+- Bram to coordinate with claims IT team for dashboard modifications, deadline 2023-12-15
+- Oriel to organize acquisition of hail storm region data samples, target 5,000 by 2023-12-22
+
+Attendee pages: [[people/marlow-jorvvane]], [[people/bram-holmmoor]], [[people/oriel-zelkdale]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-12-10-kickoff-for-automated-berth-coordination.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-12-10-kickoff-for-automated-berth-coordination.md
new file mode 100644
index 0000000000..344a40de54
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-12-10-kickoff-for-automated-berth-coordination.md
@@ -0,0 +1,44 @@
+---
+type: "meeting"
+title: "Kickoff for Automated Berth Coordination"
+tags: ["maritime-port-operations"]
+date: "2023-12-10"
+attendees: ["Odalys Naskdale","Oriel Fennvane","Nadezhda Ibbton"]
+---
+
+# Kickoff for Automated Berth Coordination
+
+Date: 2023-12-10
+Attendees: Odalys Naskdale, Oriel Fennvane, Nadezhda Ibbton
+
+## Agenda
+- Introduce the Automated Berth Coordination pilot project
+- Define ownership and responsibilities
+- Review data integration requirements for vessel tracking and berth assignments
+- Set initial targets and timelines
+
+## Discussion
+The kickoff meeting officially launched the Automated Berth Coordination pilot on 2023-12-10. Odalys Naskdale was assigned as the project owner and will oversee all phases through the initial deployment. The pilot aims to integrate real-time vessel tracking telemetry with berth scheduling to reduce average berth wait times by 15% within the first 3 months.
+
+Nadezhda Ibbton presented preliminary data from the vessel tracking system, showing that average ship arrival deviations currently vary up to ±45 minutes. The pilot will prioritize improving berth assignment accuracy by leveraging vessel ETA updates every 10 minutes. Oriel Fennvane highlighted the need to incorporate crane telemetry data for better synchronization between berth availability and container handling readiness.
+
+Key data points identified:
+- Vessel position updates every 10 minutes via AIS telemetry feed
+- Current berth occupancy rate averaging 87% during peak hours (06:00–18:00)
+- Target berth turnaround reduction from 48 hours to 41 hours per vessel
+
+The team agreed that the pilot scope will cover two terminals: East Bay Terminal and Harbor Central Pier. Both terminals handle an average of 25 vessels per week.
+
+## Decisions
+- Odalys Naskdale appointed as pilot project owner
+- Pilot start date confirmed as 2023-12-10
+- Scope limited to East Bay Terminal and Harbor Central Pier initially
+- Integration to include vessel tracking and crane telemetry data streams
+
+## Action Items
+- Odalys: Draft detailed project plan and milestone schedule by 2023-12-15
+- Nadezhda: Prepare data ingestion pipeline for vessel tracking telemetry by 2023-12-20
+- Oriel: Coordinate with crane operations to enable telemetry integration by 2023-12-22
+- All: Schedule weekly check-in meetings starting 2023-12-17 to monitor progress
+
+Attendee pages: [[people/odalys-naskdale]], [[people/oriel-fennvane]], [[people/nadezhda-ibbton]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2023-12-24-battery-degradation-data-review.md b/test/fixtures/ranking-shapes/source-a/meetings/2023-12-24-battery-degradation-data-review.md
new file mode 100644
index 0000000000..2717d6cea2
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2023-12-24-battery-degradation-data-review.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Battery Degradation Data Review"
+tags: ["grid-scale-battery-storage"]
+date: "2023-12-24"
+attendees: ["Kestrel Gwilham","Rune Ulmmoor","Lisbet Brinhollow"]
+---
+
+# Battery Degradation Data Review
+
+Date: 2023-12-24
+Attendees: Kestrel Gwilham, Rune Ulmmoor, Lisbet Brinhollow
+
+**Agenda:**
+- Review latest lithium-ion battery degradation data from field tests
+- Compare observed degradation rates to model predictions
+- Discuss implications for dispatch software accuracy
+- Define next steps for data integration and model refinement
+
+**Discussion:**
+Kestrel presented degradation data from 120 grid-scale units monitored over 18 months in the Triwyn region. Average capacity fade was 11.7% ± 0.9%, slightly higher than the 10.2% predicted by the current degradation model for similar usage cycles. Rune noted that temperature variance in the Triwyn climate (+7°C deviation) likely accelerated aging beyond model assumptions. Lisbet suggested the interconnection queue’s projected dispatch patterns might need adjustment to incorporate these findings. The team agreed the model underestimates degradation during frequent high-rate charge cycles observed in peak-demand periods.
+
+**Decisions:**
+- Update degradation model parameters to include temperature variance effects and cycling intensity
+- Prioritize integration of revised degradation curves into dispatch algorithms before Q1 2024
+
+**Action Items:**
+- Kestrel to run sensitivity analysis on temperature impact by Jan 15 (Owner: Kestrel)
+- Rune to draft updated model parameters by Jan 22 (Owner: Rune)
+- Lisbet to coordinate with dispatch software team for integration planning by Jan 29 (Owner: Lisbet)
+
+Attendee pages: [[people/kestrel-gwilham]], [[people/rune-ulmmoor]], [[people/lisbet-brinhollow]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-03-23-customs-clearance-workflow-update.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-03-23-customs-clearance-workflow-update.md
new file mode 100644
index 0000000000..ef3b463937
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-03-23-customs-clearance-workflow-update.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Customs Clearance Workflow Update"
+tags: ["maritime-port-operations"]
+date: "2024-03-23"
+attendees: ["Oriel Fennvane","Odalys Naskdale","Nadezhda Ibbton"]
+---
+
+# Customs Clearance Workflow Update
+
+Date: 2024-03-23
+Attendees: Oriel Fennvane, Odalys Naskdale, Nadezhda Ibbton
+
+## Agenda
+- Review current customs clearance documentation verification process
+- Analyze risk assessment model accuracy and false positive rates
+- Propose enhancements to improve clearance throughput and reduce delays
+
+## Discussion
+Oriel presented current verification metrics: average processing time per container is 18 minutes, with a 4.6% documentation rejection rate due to incomplete or inconsistent paperwork. Odalys highlighted that the risk assessment model flags 12% of shipments as high risk, but only 2.8% of those actually require additional inspection, indicating a 76% false positive rate. Nadezhda suggested that incorporating real-time crane telemetry data could cross-validate container contents, potentially reducing manual inspection workload. The team debated prioritizing automation of document verification vs. refining risk scoring thresholds.
+
+## Decisions
+- Pilot integration of crane telemetry into risk assessment starting April 1, targeting a 25% reduction in false positives
+- Update document submission portal to include mandatory real-time validation checks by May 15
+- Maintain manual override option during pilot
+
+## Action Items
+- Oriel to coordinate with telemetry team for data integration (due 2024-03-31)
+- Odalys to draft updated risk model parameters and testing plan (due 2024-04-10)
+- Nadezhda to oversee document portal enhancements with IT (due 2024-05-10)
+
+Attendee pages: [[people/oriel-fennvane]], [[people/odalys-naskdale]], [[people/nadezhda-ibbton]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-04-13-quarterly-adaptive-tools-strategy-review.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-04-13-quarterly-adaptive-tools-strategy-review.md
new file mode 100644
index 0000000000..9e1ad4015a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-04-13-quarterly-adaptive-tools-strategy-review.md
@@ -0,0 +1,39 @@
+---
+type: "meeting"
+title: "Quarterly Adaptive Tools Strategy Review"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+date: "2024-04-13"
+attendees: ["Rhosyn Jorvham","Dorrit Peltdale","Saskia Silvhollow"]
+---
+
+# Quarterly Adaptive Tools Strategy Review
+
+Date: 2024-04-13
+Attendees: Rhosyn Jorvham, Dorrit Peltdale, Saskia Silvhollow
+
+**Agenda:**
+- Review of mastery tracking enhancements roadmap
+- Teacher dashboard improvement updates
+- Official launch of the adaptive integration pilot
+- Next steps and ownership assignments
+
+**Discussion:**
+Rhosyn opened the meeting by presenting the updated roadmap for mastery tracking enhancements. The team reviewed the planned rollout of version 2.4, which includes a new adaptive assessment engine expected to increase accuracy of skill mastery identification by 18%, based on internal benchmark simulations. The projected release date remains June 15, 2024.
+
+Dorrit shared progress on teacher dashboard improvements. The planned interface redesign will integrate real-time student progress alerts and customizable report widgets. Early usability tests with 12 pilot teachers at Maplewood District showed a 22% reduction in time spent navigating to key metrics. The updated dashboard version 3.1 is targeted for deployment on July 30, 2024.
+
+Saskia announced that the adaptive integration pilot officially launched today, April 13, 2024. The pilot is focused on integrating mastery tracking data directly into the district procurement process to allow quicker resource allocation based on student needs. Saskia owns the pilot project and will coordinate with three participating districts—Eastbridge, Greystone, and Fairmont—to monitor progress. Early pilot goals include reducing textbook order turnaround by 25% and increasing adaptive resource utilization by 30% within the first quarter.
+
+The team reviewed feedback loops to be established with district coordinators and teacher leads. They agreed on biweekly status meetings and a shared dashboard to track key pilot metrics including student engagement and teacher satisfaction.
+
+**Decisions:**
+- Proceed with mastery tracking version 2.4 rollout as scheduled
+- Prioritize dashboard widget customization features for upcoming release
+- Formalize adaptive integration pilot reporting cadence with key stakeholders
+
+**Action Items:**
+- Saskia to circulate pilot kickoff communication to district partners by 04/16/2024
+- Rhosyn to update product specs with feedback from pilot kickoff by 04/20/2024
+- Dorrit to begin next phase of teacher dashboard usability testing by 04/25/2024
+
+Attendee pages: [[people/rhosyn-jorvham]], [[people/dorrit-peltdale]], [[people/saskia-silvhollow]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-06-04-cold-chain-data-integration-strategy.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-06-04-cold-chain-data-integration-strategy.md
new file mode 100644
index 0000000000..4233bbdc49
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-06-04-cold-chain-data-integration-strategy.md
@@ -0,0 +1,545 @@
+---
+type: "meeting"
+title: "Cold-Chain Data Integration Strategy"
+tags: ["cold-chain-pharmaceutical-logistics"]
+date: "2024-06-04"
+attendees: ["Tobiah Ulmford","Saskia Fennmoor"]
+---
+
+# Cold-Chain Data Integration Strategy
+
+Date: 2024-06-04
+
+Attendees: Tobiah Ulmford, Saskia Fennmoor
+
+Attendee pages: [[people/tobiah-ulmford]], [[people/saskia-fennmoor]]
+
+## Introduction and Objectives
+
+Tobiah Ulmford opened the meeting at precisely 9:02 AM with a brief overview of the agenda, emphasizing the critical nature of aligning cold-chain sensor data across disparate platforms to improve the real-time visibility of pharmaceutical shipments. “Our objective today,” Tobiah stated firmly, “is to ensure that every stakeholder—whether it’s the warehouse team in Glenhaven or the distribution partners in East Redding—can rely on a unified data stream from sensor tags, regardless of manufacturer or protocol.”
+
+Saskia Fennmoor nodded, then added, “With the upcoming vaccine batch rollouts slated for Q3, the margin for error is razor-thin. We need to finalize Project Frostbyte 42’s scope and milestones so we can hit the ground running. The data inconsistencies we saw in the pilot last quarter—such as the 14% timestamp misalignment on the ColdSense tags—can’t recur.”
+
+Tobiah pulled up the latest dashboard metrics on the shared screen. “For context, our last cross-platform integration test—conducted over a 2-week period in April—showed that while temperature readings were generally consistent within a ±0.3°C variance, humidity data was all over the map. The HumidTrack units from Polaris Logistics underreported dew point by an average of 2.1 percentage points compared to our baseline.”
+
+Saskia interjected, “That’s actually our greatest pain point: the humidity readings directly affect the risk models for vaccine efficacy. Without harmonized data, our predictive flags will either over-alert or worse, miss critical threshold breaches. Frostbyte 42’s core deliverable must include a robust normalization algorithm.”
+
+Tobiah agreed. “Exactly. To that end, we’re proposing a three-pronged approach. First, standardize timestamp synchronization using Precision Time Protocol (PTP) across all sensor devices. Second, develop a middleware normalization layer that ingests raw data from each vendor’s API and outputs standardized JSON packets aligned to our schema. Third, implement a continuous feedback loop from our QA analysts to refine the normalization parameters.”
+
+Saskia raised a hand. “Have we finalized which vendors will participate in this first phase? I recall Polara and Nutech had tentative agreements, but HumidTrack was hesitating due to proprietary concerns.”
+
+Tobiah nodded. “Good point. Currently, Polara Sensors and Nutech Technologies are onboard with full API access. As for HumidTrack, we just concluded a nondisclosure framework as of May 18. They agreed to limited data sharing under strict data governance policies. We can start with anonymized humidity vectors and incrementally increase access based on compliance audits.”
+
+Saskia glanced at her notes. “That’s encouraging. Regarding scale, our pilot tested on 120 shipments. How many cold-chain assets are we targeting in Frostbyte 42’s initial rollout?”
+
+Tobiah responded, “Our goal is to integrate sensor data from at least 1,500 active shipments per month within the next 90 days. This includes shipments routed through Glenhaven, East Redding, and the new Midwest Pharma Hub. For context, that represents roughly 18% of our total cold-chain volume but accounts for approximately 34% of our critical vaccine payloads.”
+
+Saskia smiled slightly. “Ambitious, but doable. We’ll need to ensure the data pipelines can handle the increased telemetry. Have we settled on the cloud infrastructure for Frostbyte 42’s middleware?”
+
+“Yes,” Tobiah confirmed. “We chose the AuroraFlex platform for its scalable ingestion and real-time analytics capabilities. Initial testing shows it can process up to 250,000 sensor events per hour with under 150 milliseconds latency, which is well within our 500 ms SLA. The cost estimates run about $12,500 per month, including data storage and compute, which fits within the allocated budget.”
+
+Saskia made a note. “Speaking of budgets, the finance team approved a Phase 1 allocation of $375,000 over the next six months, mainly covering development, vendor liaison, and increased QA staffing. We have the headcount to deploy two additional data engineers—all earmarked to Frostbyte 42—and one project manager.”
+
+Tobiah indicated the next slide showing the project timeline. “We’ll kick off development on May 29, targeting a functional middleware prototype by July 15. August will focus on vendor API integration and data validation cycles. We want to execute an end-to-end live trial by September 5. Does that align with your expectations?”
+
+Saskia replied thoughtfully, “It does, but I want a contingency buffer built in for unexpected vendor delays. In the last pilot, HumidTrack’s API changes forced a two-week postponement. I suggest allocating two weeks post-September 5 for rapid bug fixes and final calibration before the full operational rollout.”
+
+“Agreed,” Tobiah said. “We can define that as a ‘stabilization window’ through September 19. After that, we shift to monitoring mode with weekly performance reviews.”
+
+Saskia then raised an important compliance point. “We must ensure all data handling aligns with the Cold-Chain Data Privacy Directive 2022, especially regarding patient-level batch information embedded in shipment metadata. Has the legal team signed off on our planned anonymization protocols?”
+
+Tobiah responded, “Yes, the Legal and Compliance teams reviewed our data model last week. They approved the methods for pseudonymization and established protocols to restrict access via role-based permissions. This will be integral to the middleware layer.”
+
+Saskia nodded approvingly. “Good. On the topic of middleware, have we decided on the normalization algorithm baseline?”
+
+“Yes,” Tobiah answered. “We are baselining with the Multivariate Adaptive Regression Splines (MARS) model combined with Kalman filtering to smooth sensor outputs. Early lab tests show a 10% improvement in data fidelity over raw readings, notably correcting for drift in HumidTrack sensors.”
+
+Saskia added, “We should also plan for manual overrides in exceptional cases flagged by our QA team. The system should be flexible enough to ingest expert corrections as feedback.”
+
+Tobiah agreed. “That’s incorporated. The middleware dashboard will include a ‘QA Feedback’ module allowing analysts to annotate or recalibrate sensor streams in near real-time. These adjustments will retrain the normalization model via continuous learning.”
+
+Saskia glanced at the clock. “Lastly, what are the communication protocols with the field teams? Will they receive alerts from the unified data platform directly?”
+
+Tobiah replied, “Yes, we’re implementing an integrated alerting system. The middleware will push standardized notifications via SMS and email, based on pre-set thresholds for temperature excursions, humidity spikes, or sensor malfunctions. These will be customizable per shipment priority.”
+
+Saskia concluded, “Excellent. To summarize, we are aligned on Frostbyte 42’s primary objectives: unify sensor data through timestamp synchronization and normalization; onboard at least three key vendors with staged API integration; develop middleware on AuroraFlex with a July prototype; and conduct a live pilot by early September with a stabilization phase. Plus, ensure compliance and robust QA feedback loops.”
+
+Tobiah smiled. “I’ll circulate detailed minutes and next steps by end of day. Thanks for the focused discussion, Saskia.”
+
+The meeting adjourned at 9:52 AM with clear consensus on the project framework and a shared commitment to meet the aggressive timeline.
+
+## Current Sensor Data Discrepancies
+
+Tobiah Ulmford opened the discussion by noting, “We continue to observe troubling discrepancies in the temperature data reported by our primary carriers. Specifically, VaccineSafe codename shipments are showing variance margins upwards of 2.7 degrees Celsius when comparing sensor logs from different sources on the same consignment.” He emphasized that this level of inconsistency was unacceptable given the stringent regulatory thresholds—typically ±0.5 degrees Celsius—for vaccine cold-chain management.
+
+Saskia Fennmoor responded, “I have reviewed the recent batch of VaccineSafe shipments from the last quarter. Out of 172 temperature logs across four major carriers, about 13% exhibited at least one data point outside the approved range. However, what’s more concerning is that when we cross-reference the carrier’s onboard sensor data against the independent third-party temperature tags, discrepancies exceed 1.5 degrees Celsius in over 40% of cases.”
+
+Tobiah leaned forward, “The 40% figure aligns with what our in-house analytics revealed. More strikingly, data from Carrier Delta’s shipments to the Northridge distribution hub routinely report temperature highs that are 2.1 to 2.4 degrees Celsius above what the pre-delivery sensor tags indicate. This isn’t a random fluctuation — it suggests systemic issues with Carrier Delta’s data calibration or sensor placement.”
+
+Saskia nodded. “Indeed, and the problem worsens during transit segments involving last-mile delivery. For example, during the April vaccine batch delivery to the Glenvale clinics, we saw that last-mile GPS-tracked temperature sensors reported averages of 3.8 degrees Celsius, while onboard cold box sensors indicated averages closer to 2.9 degrees. A nearly 1 degree delta in such critical final legs is a red flag.”
+
+Tobiah added, “To quantify, the Glenvale discrepancy resulted in at least nine vaccine vials being flagged as compromised post-delivery, with an estimated replacement cost of $12,600. Beyond direct losses, there’s the reputational risk to consider if such data ambiguities continue.”
+
+Saskia suggested, “We need to examine the sensor hardware versions and software firmware differences across carriers. Our records show that Carrier Sigma uses SensorTag model STX-3, with firmware version 2.1.4, while Carrier Delta uses SensorTag STX-2 at firmware 1.9.8. Historical logs indicate that STX-2 units have calibration drifts of up to ±1.2 degrees after 90 days, particularly under high humidity conditions typical in the Glenvale region.”
+
+Tobiah agreed, “That is a salient point. We must enforce firmware upgrades to the latest stable version 2.3.1 across all carrier sensors. Additionally, it would be prudent to introduce a mandatory recalibration protocol every 60 days rather than the current 90-day schedule for STX-2 and STX-3 units.”
+
+Saskia raised a procedural concern, “However, enforcing recalibration on third-party carriers has proven difficult. Carrier Delta, for instance, cited logistical constraints and budget limitations when we proposed earlier sensor maintenance mandates.”
+
+Tobiah responded, “That’s where contract renewals become leverage. We should propose a Sensor Data Integrity Clause that mandates adherence to our recalibration and firmware standards as a condition for continued partnership. Without compliance, we push future shipments toward carriers with higher data fidelity.”
+
+Saskia agreed, “I support that approach. In parallel, we could pilot our own overlay sensor system on critical shipments. By installing independent data loggers with embedded blockchain timestamps, we create tamper-evident, immutable temperature records. This can serve as a ground truth to audit carrier-reported data.”
+
+Tobiah said, “Excellent. For the pilot, I recommend starting with VaccineSafe codenamed shipments destined for the Northridge and Glenvale hubs, given the high impact of prior discrepancies. We can equip 50 shipments over the next quarter and analyze the differential data.”
+
+Saskia noted, “Based on initial cost modeling, the overlay sensor system will add approximately $15 per shipment. However, considering the average vaccine batch replacement cost of $1,400 per compromised shipment, the ROI seems favorable if it reduces false positives and data uncertainty.”
+
+Tobiah added, “Beyond hardware, we need to address data syncing frequency. Currently, carriers batch-upload sensor data at end-of-route, leading to potential data loss or unreported temperature excursions during stopovers. If we move towards real-time or near-real-time streaming, anomalies can be detected and mitigated sooner.”
+
+Saskia responded, “Agreed. However, network connectivity challenges in rural hubs like Glenvale cause intermittent upload failures. We should explore hybrid models where data buffers locally but attempts automatic retransmission every five minutes when connectivity resumes.”
+
+Tobiah proposed, “Let’s task the Cold-Chain Technology team to develop a robust data transmission protocol that supports intermittent connectivity and generates alerts on missed uploads exceeding 15 minutes. This visibility will enable prompt intervention.”
+
+Saskia emphasized, “A recurring issue with Carrier Sigma is their sensor-placement protocol. Field audits revealed that sensors are often mounted inside cargo bays near vents rather than centrally within the cooled compartments, leading to skewed temperature readings by as much as 1.4 degrees.”
+
+Tobiah reflected, “This points to the need for standardized sensor placement guidelines across all carriers, reinforced by periodic audits. We could implement a quarterly compliance verification with random spot checks.”
+
+Saskia added, “Also, training carrier staff on the criticality of precise sensor installation and handling will be crucial. Missteps here compromise data integrity and ultimately vaccine efficacy.”
+
+Tobiah concluded, “To summarize, our immediate action items are: one, initiate firmware upgrades and stricter recalibration schedules for all sensor hardware; two, develop and pilot overlay independent sensors with blockchain logging on the highest-risk shipments; three, mandate real-time or near-real-time data transmission protocols with robust buffering; and four, standardize sensor placement procedures with audit and training requirements. Let’s reconvene in four weeks to review progress and pilot results.”
+
+Saskia concurred, “I will coordinate with the Technology and Carrier Liaison teams to draft updated compliance clauses and training modules. Additionally, I will prepare a detailed report on the April Glenvale shipment discrepancies to serve as a case study for carrier workshops.”
+
+Tobiah added, “I will oversee negotiations with Carrier Delta and Sigma regarding compliance clauses and firmware upgrades. We must ensure these measures are contractually binding before the next VaccineSafe batch cycle starting mid-July.”
+
+The discussion ended with both agreeing on the criticality of resolving sensor data discrepancies to safeguard vaccine integrity and uphold Cold-Chain Logistics Inc.’s reputation for reliable pharmaceutical distribution.
+
+## Carrier Data Formats and Protocols
+
+Tobiah Ulmford opened the discussion by summarizing the initial findings from the data format analysis performed over the past three weeks. “We’ve gathered sensor tag data packages from both TransportX and ChillFleet for a total of 127 shipments—78 from TransportX and 49 from ChillFleet, spanning vaccine batches and temperature-sensitive biologics,” he said. “At first glance, the variety in file structures and transmission protocols poses the biggest hurdle for seamless integration into our ColdChain Hub platform.”
+
+Saskia Fennmoor nodded, pulling up the side-by-side data format comparison. “Right, Tobiah. To break it down,” she said, pointing at the matrix on the shared screen, “TransportX uses a proprietary JSON schema that encapsulates temperature, humidity, GPS location updates, and shock events with timestamps, all nested under a ‘shipmentEvent’ object. Their typical payloads average 23KB per hour of transit data for a single sensor tag.”
+
+“Meanwhile,” Tobiah added, “ChillFleet’s tags output data in a binary-encoded TLV (Type-Length-Value) format, optimized for low bandwidth via their LoRaWAN network. Their data packets are much smaller—around 4KB per hour—but require a custom decoder to convert them into human-readable format.”
+
+Saskia leaned forward, highlighting a critical point. “The challenge is twofold. First, the schema disparity means our ETL pipeline needs two distinct parsers. Second, TransportX pushes data in near real-time every 10 minutes, while ChillFleet uploads batched data once every 2 hours due to their satellite link constraints.”
+
+Tobiah pulled up a timeline graph. “Here, you can see the contrasting data arrival frequencies. For TransportX routes, we’re dealing with 6 data points per hour per shipment, whereas ChillFleet provides only one batch with aggregated readings every two hours.”
+
+“And that temporal resolution difference,” Saskia continued, “impacts how we handle temperature excursion alerts. For example, if a critical threshold breach lasts less than 15 minutes, ChillFleet’s data might miss it entirely, whereas TransportX captures it in fine detail.”
+
+Tobiah nodded. “TransportX’s schema also includes sensor calibration metadata with each data point, something ChillFleet omits entirely.”
+
+“That’s a big concern,” Saskia said. “Without calibration data, we can’t verify sensor drift, which puts our compliance reporting at risk for NHRA-mandated cold-chain audits.”
+
+Tobiah agreed. “We need to discuss how to mitigate that risk—maybe by requesting ChillFleet to add periodic calibration snapshots or by implementing statistical drift detection algorithms downstream.”
+
+Saskia made a note. “Action Item: Propose sensor calibration metadata addition to ChillFleet in next carrier alignment meeting.”
+
+They then examined the protocols used for data transmission. Tobiah explained, “TransportX’s sensor tags connect over 4G LTE with MQTT messaging, using TLS-encrypted channels. It’s stable but we noticed occasional packet loss during networks handoffs, about 2.7% on average over 20 shipments monitored last month.”
+
+“In contrast,” Saskia said, “ChillFleet relies on LoRaWAN for sensor uplink, then aggregates data on edge gateways before forwarding over satellite uplinks. Satellite introduces latency spikes—up to 15 seconds per packet—and periodic blackouts during solar flare events.”
+
+Tobiah added, “In terms of end-to-end delivery success, TransportX achieves roughly 97.3%, while ChillFleet is at 94.8%, largely due to those environmental disruptions.”
+
+Saskia interjected, “Given these factors, our ColdChain Hub ingestion layer needs to be resilient, supporting replay mechanisms and handling out-of-order packets.”
+
+Tobiah nodded. “We’ve prototyped a buffering module supporting a 24-hour window for delayed ChillFleet data to arrive and be reconciled.”
+
+Saskia asked, “What about identifying unique sensor IDs and correlating them across carriers? Are there differences there?”
+
+“Yes,” Tobiah responded. “TransportX uses a 16-character alphanumeric device ID embedded in the payload, while ChillFleet’s IDs are numeric, with a 12-digit format padded with leading zeros. Our system currently normalizes them into a standard 20-character string padded with carrier prefixes, but it adds processing overhead.”
+
+Saskia suggested, “If this becomes a bottleneck, we might consider pushing normalization upstream, maybe via carrier-side adapters.”
+
+Tobiah reflected, “True, but that would require carrier cooperation and potentially firmware updates, which could delay rollout.”
+
+They reviewed sensor tag firmware versions next. “TransportX tags are currently running firmware v3.4.2, which supports over-the-air (OTA) updates and enhanced event logging,” Tobiah said. “ChillFleet’s tags are on v2.9.7, which lacks OTA capability, meaning field updates require physical retrieval.”
+
+“That’s another point favoring TransportX for rapid feature deployment,” Saskia remarked. “We should factor this into carrier selection and contractual discussions.”
+
+Tobiah summarized, “To mitigate the ChillFleet constraints, our integration plan should include:
+
+- Building a robust TLV decoder for ChillFleet data with error correction.
+
+- Designing ETL pipelines capable of handling asynchronous, batched data arrival.
+
+- Requesting sensor calibration metadata be incorporated into ChillFleet’s data feed.
+
+- Implementing buffering and replay mechanisms accommodating satellite link delays.
+
+- Normalizing device IDs with the option for upstream carrier adapters.
+
+- Preparing contingency processes for firmware version discrepancies.
+
+Does that cover our integration pain points?”
+
+Saskia agreed. “Comprehensive. Also, for tracking purposes, we should document known data loss patterns—like ChillFleet’s solar flare blackout windows. Having that logged helps contextualize missing data during analysis.”
+
+Tobiah added, “Good point. We’ll create a shared knowledge base entry listing typical environmental factors affecting each carrier’s data.”
+
+They shifted to discussing security considerations. “TransportX’s TLS encryption is industry standard,” Tobiah noted, “but ChillFleet’s LoRaWAN uses AES-128 keys. The key management process there is less transparent, which raises audit flags.”
+
+Saskia said, “We had one audit with our compliance team where the ChillFleet security documentation was insufficient. For our benchmark’s credibility, we’ll need to push for clearer key management policies.”
+
+Tobiah suggested, “Maybe a staged approach: highlight TransportX’s encryption robustness in presentations, but emphasize ChillFleet’s ongoing improvements to investors and regulators.”
+
+Saskia concurred. “Transparency about each carrier’s strengths and limitations is essential.”
+
+Wrapping up, Tobiah proposed next steps. “We’ll finalize the dual parser modules by end of Q2 2024, followed by a pilot with live data streams from both carriers in July. Simultaneously, I’ll draft the official sensor calibration metadata request for ChillFleet and begin security documentation reviews.”
+
+Saskia added, “I’ll coordinate with the ColdChain Hub DevOps team to prepare the buffering infrastructure and logging framework. Also, I’ll arrange a joint workshop with carrier technical leads for mid-June to align integration efforts.”
+
+They agreed to document all these points in the ColdChain Integration Tracker and schedule biweekly syncs to monitor progress.
+
+Before closing, Tobiah emphasized, “This carrier data format and protocol analysis is foundational. If we get this right, the rest of our cold-chain transparency and analytics rollout gains a solid backbone.”
+
+Saskia smiled. “Absolutely. Let’s ensure our ColdChain Hub becomes the gold standard for multi-carrier pharmaceutical logistics data integration.”
+
+## Unified Data Reporting Framework
+
+Tobiah Ulmford opened the discussion by emphasizing the critical nature of uniform data reporting in streamlining cold-chain logistics. “Our current patchwork of sensor outputs is creating a fog around temperature data that handicaps real-time decision-making," he said. "We need a standardized protocol that can aggregate data from diverse sensor tags, irrespective of manufacturer or data format."
+
+Saskia Fennmoor nodded in agreement. “Absolutely, Tobiah. The IceLink protocol, codenamed 7E3, as we’ve tentatively branded it, should define core data schemas, transmission standards, and validation checks. To achieve this, we must first identify the key parameters that all stakeholders agree upon. Temperature is the obvious one, but we also need timestamps, geolocation, sensor ID, battery health, and maybe even shock or humidity metrics.”
+
+Tobiah replied, “Right, Saskia. During the pilot with the North Valmont distribution hub, we observed that the different sensor manufacturers output time in various formats — UNIX epoch, ISO8601 strings, or relative counters. IceLink should normalize this with an agreed timestamp format. I propose ISO8601 extended format with UTC offset, since it's human-readable and machine-parsable.”
+
+Saskia took notes and added, “Good point. For temperature, we should standardize units to Celsius with decimals to one-tenth precision; that suffices for pharmaceutical thresholds. We also need a standard for error margins or sensor precision metadata, perhaps as a separate data field.”
+
+Tobiah then outlined the envisioned data structure for IceLink: “I suggest a JSON-based object with nested fields. For example:
+
+```json
+{
+ "sensor_id": "ABC123",
+ "timestamp": "2024-07-15T14:38:00Z",
+ "temperature_c": 2.7,
+ "temp_precision": 0.1,
+ "location": {
+ "lat": 40.7128,
+ "lon": -74.0060
+ },
+ "battery_status": 87,
+ "shock_event": false
+}
+```
+
+Each transmission packet would be atomic, covering one measurement event. The use of JSON allows extensibility for new sensor data types.”
+
+Saskia looked intrigued but raised a concern. “JSON is verbose, Tobiah. For remote nodes transmitting over intermittent cellular connections or low-power LPWAN networks, the payload size might be prohibitive. Should we consider a binary serialization alternative, perhaps CBOR or Protocol Buffers, to reduce bandwidth?”
+
+Tobiah agreed, “Yes, that’s a valid concern. IceLink could define multiple serialization formats, with JSON as the default for ease of integration and CBOR for constrained devices. The protocol negotiation phase can let devices declare their preferred formats.”
+
+Saskia then shifted the focus to security, “How do we ensure data integrity and prevent tampering? End-to-end encryption is a must, but we need lightweight cryptographic options that won’t drain sensor batteries.”
+
+Tobiah responded, “I recommend incorporating payload signing with HMAC-SHA256, using pre-shared keys during device provisioning. While encryption at the transport layer—TLS or DTLS—will protect data in transit, signing ensures the data authenticity even if intercepted. The key management system will be handled centrally through our provisioning server with role-based access for logistics operators.”
+
+Saskia noted, “On error handling: if a sensor fails or transmits out-of-spec data, IceLink should include status codes or flags. Maybe a 'data_quality' metric per reading, flagged ‘good’, ‘suspect’, or ‘invalid’. This will help downstream services filter anomalies.”
+
+Tobiah concurred. “During the recent cold-chain audit, nearly 7% of readings were flagged ‘suspect’ due to sensor glitches. Embedding this directly in the protocol will standardize anomaly handling.”
+
+They reviewed the current vendor landscape. “We’ve onboarded four major sensor manufacturers, but each uses proprietary data formats. The IceLink initiative must be vendor-neutral,” Saskia stressed. “Also, the protocol should support forward compatibility; as new sensor types emerge, they can define new data fields without breaking existing parsers.”
+
+Tobiah added, “A versioning system inside the protocol header will help. Each data packet includes a ‘protocol_version’ field. Devices can advertise supported versions during handshake. We should target version 1.0 formal release by Q4 2024, with a beta rollout in midsummer.”
+
+Saskia pulled up the draft project timeline. “To meet Q4, we need rapid prototyping. The IceLink Working Group will start drafting the schema next week, followed by two rounds of internal testing at the Valmont hub and the Kendrew Pharma distribution center in early September. Concurrently, we’ll initiate partnerships with sensor vendors to obtain sample data streams for validation.”
+
+Tobiah agreed, “Perfect. We also must produce comprehensive developer documentation and open-source reference implementations in Python and JavaScript to encourage adoption.”
+
+Saskia pressed on, “Regarding data aggregation: how will IceLink packets be collected and stored? Are we standardizing on a streaming ingestion approach or batch uploads?”
+
+Tobiah explained, “IceLink supports both. For high-volume shipments, gateways will aggregate packets in real-time and forward them to our central data lake via MQTT or HTTPS APIs. Smaller shipments may upload log batches post-delivery. The protocol header will flag ‘transmission_mode’ to indicate the type.”
+
+Saskia raised a final point, “What about error correction or retransmission mechanics? Sensor transmission can be unreliable over long routes.”
+
+Tobiah responded, “IceLink will specify sequence numbers per sensor and acknowledgments at the gateway level. Retransmission requests can be triggered if gaps appear in the sequence. For LPWAN devices with limited downlink, retry logic will be limited but documented.”
+
+In closing, Saskia summarized: “So, to recap the IceLink protocol 7E3 core specs:
+
+- Data format: JSON by default, CBOR optional
+- Timestamp: ISO8601 UTC
+- Temperature: Celsius, one decimal precision
+- Additional fields: location, battery, shock, data_quality flag
+- Security: end-to-end encryption with HMAC-SHA256 signing
+- Versioning: protocol_version field mandatory
+- Transmission modes: real-time streaming and batch upload
+- Error handling: sequence numbers and retransmission logic
+
+We aim for a beta spec by August 1, production-ready 1.0 by November.”
+
+Tobiah concluded, “This is an ambitious roadmap, but essential to unify cold-chain data flows. I’ll coordinate with the software leads to kick off development next week. Saskia, please confirm vendor outreach plans.”
+
+“I’ll send vendor engagement briefs tomorrow,” Saskia confirmed. “Let’s reconvene in two weeks for a progress check.”
+
+The meeting adjourned with both agreeing that IceLink 7E3 would be the linchpin for enhanced cold-chain visibility and regulatory compliance across the pharmaceutical supply network.
+
+## Integration with Existing Logistics Systems
+
+Tobiah Ulmford opened the discussion by summarizing the core objective of the integration efforts. “Our primary concern is ensuring that IceLink 7E3 sensor data can flow uninterrupted into both PharmaTrack and ColdRoute platforms without any manual intervention. Currently, PharmaTrack consumes data via JSON over REST APIs, while ColdRoute relies on a proprietary MQTT setup. We’re looking at a unified approach to handle both.”
+
+Saskia Fennmoor nodded. “Right, Tobiah. We’ve seen a lot of duplication in the ingestion layer with the current methods. We’re effectively maintaining two separate pipelines for what should be a single source of truth. The question is — can the IceLink 7E3’s telemetry feed be structured so it satisfies the schema requirements of both platforms with minimal transformation?”
+
+Tobiah referenced the technical specifications. “IceLink 7E3 streams temperature, humidity, GPS location, and battery metrics every five minutes. That’s about 288 data points per sensor per day. The raw payload size averages 1.2 KB. PharmaTrack’s ingestion endpoint expects a strict JSON schema with the timestamp in ISO 8601 format, sensor ID as a UUID, and nested objects for sensor readings. ColdRoute’s MQTT topic format is ‘coldroute/sensor/{sensorID}/data’ and messages are binary encoded using Protocol Buffers, which are then unpacked internally.”
+
+Saskia queried, “Have we benchmarked the data throughput we’d need to sustain for both platforms simultaneously? I recall PharmaTrack handles roughly 10,000 sensors daily, and ColdRoute is at about 7,500. With IceLink7E3 deployments ramping by 20% monthly, the volumes will surge.”
+
+Tobiah had those figures at hand. “Yes, based on current deployments, we project by Q3 2024, PharmaTrack will ingest data from approximately 12,000 IceLink sensors, and ColdRoute about 9,000. At 288 messages per sensor daily, that’s approximately 3.46 million messages per day for PharmaTrack and 2.59 million for ColdRoute. Our ingestion infrastructure must support roughly 6 million messages per day combined, not counting overhead or retries.”
+
+Saskia suggested, “If we adopt a one-to-many broadcast model from IceLink’s sensor hubs, we could publish a single canonical event stream, then have adapters at each platform handle their transformations. This would reduce upstream complexity.”
+
+Tobiah agreed cautiously. “The hubs can output a generic JSON event stream. However, ColdRoute’s binary ProtoBuf encoding is optimized for bandwidth and parsing speed. They have strict latency requirements, especially for geofencing alerts. The conversion from JSON would need to be carried out in a low-latency edge layer near the hubs or within ColdRoute’s ingestion cluster.”
+
+Saskia dug into the specifics. “Could the firmware on the IceLink 7E3 sensor itself generate dual-format messages? That would offload the transformation. Or is that too resource-intensive at the device level?”
+
+Tobiah replied, “We’ve evaluated this. The 7E3’s ARM Cortex-M4 microcontroller has limited RAM and flash. Supporting both JSON and ProtoBuf serialization onboard would increase code size by approximately 45%, impacting battery life. Current firmware aims for a 90-day operational lifespan per charge; adding dual serialization would reduce that by an estimated 15%. Not ideal.”
+
+Saskia proposed an alternative. “Then perhaps a gateway edge device approach? The sensor data streams to local IceLink EdgeHubs within the shipment containers or transport vehicles. These EdgeHubs can handle serialization into both formats, then push data downstream. This preserves sensor battery life and provides protocol flexibility.”
+
+Tobiah noted, “That matches existing IceLink architecture. Each EdgeHub can maintain persistent MQTT connections with ColdRoute brokers and periodic REST API calls to PharmaTrack’s ingestion endpoints. The challenge is provisioning these EdgeHubs at scale and ensuring failover if connectivity drops.”
+
+Saskia agreed. “We’ll need an orchestrated deployment plan for EdgeHubs. For PharmaTrack, the REST API rate limits at 5,000 calls per minute could become a bottleneck. We must batch messages from sensors into aggregated payloads without losing temporal granularity.”
+
+Tobiah added, “ColdRoute’s MQTT cluster can handle sustained high throughput with QoS level 2, ensuring exactly-once delivery. We should leverage that for alert-critical messages like temperature excursions. PharmaTrack’s system currently exposes a 1-second lag tolerance window; our batching strategy must respect that.”
+
+Saskia summarized the action items. “1) Define a canonical IceLink 7E3 event schema in JSON compatible with PharmaTrack. 2) Develop EdgeHub firmware update to enable flexible serialization and batching. 3) Implement adapter microservices within ColdRoute ingestion clusters to decode EdgeHub ProtoBuf messages. 4) Establish clear SLAs on message latency and delivery guarantees between all components.”
+
+Tobiah concurred. “We’ll also need to monitor end-to-end data integrity. In the last pilot, we saw occasional mismatches in timestamp alignment between ColdRoute and PharmaTrack datasets, leading to inconsistent cold-chain audit trails.”
+
+Saskia recalled, “That was mostly due to clock skew between EdgeHubs and server ingestion timestamps. Let’s mandate NTP synchronization on all EdgeHub devices, with fallback to GPS-derived time where possible.”
+
+Tobiah responded, “Agreed. Additionally, we must version-control the IceLink event schema. Both PharmaTrack and ColdRoute teams should receive updated schemas at least 30 days prior to deployment changes, to allow downstream parsing logic updates.”
+
+Saskia suggested building a joint developer portal for schema distribution and API documentation. “We could call it the ‘ColdChain Integration Hub’ — a central repository where partners can access specifications, SDKs, and test data.”
+
+Tobiah liked the idea. “That will improve cross-team transparency. Also, let’s conduct a comprehensive load test simulating 15,000 sensors streaming simultaneously through EdgeHubs to both platforms. The last stress test capped at 8,000 sensors.”
+
+Saskia offered, “We should schedule a workshop in late March with the integration engineers from PharmaTrack and ColdRoute to align on error handling protocols and backpressure strategies.”
+
+Tobiah concluded, “Every minute of delay or data loss could compromise vaccine efficacy monitoring. Precision and reliability are paramount. Let’s finalize the integration design document by February 28 and commence EdgeHub firmware development in Q1.”
+
+Saskia committed, “I’ll coordinate with firmware and systems teams. I estimate 8 weeks for the initial EdgeHub dual-serialization prototype. We’ll aim to release an MVP for internal testing by mid-April.”
+
+Tobiah added a final note, “We’ll also need to engage with the quality assurance team to develop end-to-end validation scenarios, including simulated cold chain failures to verify alert propagation across both platforms.”
+
+Saskia wrapped up, “With coordinated effort, we can deliver a seamless IceLink 7E3 integration that supports PharmaTrack and ColdRoute’s operational demands, ensuring cold chain integrity for our pharmaceutical clients.”
+
+## Security and Compliance Considerations
+
+Tobiah Ulmford began the discussion by outlining the critical importance of security within the Frostbyte 42 framework. “Our temperature data streams, if compromised, not only risk patient safety but could also lead to massive regulatory penalties,” he said. “We need airtight encryption from sensor to server, with compliance baked in at every step. Let’s start by reviewing our current encryption methods.”
+
+Saskia Fennmoor nodded, pulling up the latest draft of the integration architecture on the shared screen. “Currently, our sensor tags use AES-128 encryption for onboard data at rest, then TLS 1.2 for data in transit. However, Frostbyte 42 mandates AES-256 for all cold-chain pharmaceutical data. This is a significant upgrade requirement,” she explained. “We’re looking at a roughly 60% increase in computational overhead on the sensor microcontrollers by moving to AES-256, which could impact battery life by an estimated 15-20% based on our simulations.”
+
+“Battery life is always a constraint, but we can't compromise security,” Tobiah responded. “Is the overhead linear across all sensors, or can we selectively enable AES-256 for higher-risk shipments?”
+
+“Good question,” Saskia said. “Our current plan is uniform encryption to reduce complexity and attack vectors. However, we could consider a tiered approach: AES-256 for vaccine payloads and AES-128 for less sensitive biological materials. Still, this raises compliance concerns under Frostbyte 42 since it specifies 256-bit minimum encryption for all regulated temperature data.”
+
+Tobiah weighed the options. “The compliance risk of nonuniform encryption may outweigh the operational benefits. Let’s assume full AES-256, but explore hardware acceleration to mitigate battery impact. Are there sensor models with built-in AES acceleration?”
+
+“Yes, our testing shows that the CryoTag X3 sensors have dedicated AES coprocessors that reduce encryption time by approximately 70%, dropping power usage from 12 mW to 4 mW per encryption cycle,” Saskia confirmed. “If we prioritize these units for high-value shipments, we can maintain both compliance and efficiency.”
+
+“Perfect—that might be our path forward,” Tobiah agreed. “Moving on to data in transit: our current TLS 1.2 implementation is strong but Frostbyte 42 pushes for TLS 1.3 to address known vulnerabilities. Can our gateways and platform handle TLS 1.3?”
+
+Saskia pulled up the network security audit. “Our edge gateways run on legacy hardware, limiting TLS 1.3 support. Upgrading will require a hardware refresh estimated at $350,000 for deployment across our five main hubs. This is a major capital expenditure but aligns with the recommended Frostbyte 42 timeline of Q4 2024.”
+
+“Is there a software workaround, such as TLS 1.2 with additional cipher suites or mutual authentication, that can serve as an interim solution?” Tobiah asked.
+
+“Our interim report suggests enabling mutual TLS authentication with 4096-bit RSA keys on TLS 1.2 offers enhanced security, but won’t fully meet Frostbyte 42's requirement for forward secrecy provided in TLS 1.3’s key exchange algorithms,” Saskia responded. “We could operate in a hybrid mode where sensors and platform endpoints support TLS 1.3, and gateways act as protocol translators temporarily, but this adds latency around 50 ms per transaction.”
+
+Tobiah considered the latency impact. “Fifty milliseconds is acceptable given data volumes, but the translation layer adds complexity and potential attack surfaces. Let’s document this as a risk and plan the hardware upgrade to eliminate it by the end of next year.”
+
+“Understood. Another aspect is data storage compliance,” Saskia said, switching slides to the data retention policy. “Frostbyte 42 requires encrypted storage with key rotation every 90 days and comprehensive audit trails for access control. Our current data lake uses AES-256 encryption at rest but key rotation is on a 180-day schedule.”
+
+“That’s a critical gap,” Tobiah noted. “What changes are needed for 90-day key rotation?”
+
+“Our key management system must integrate with the new Hardware Security Modules (HSMs) capable of automated key lifecycle management. We’ve identified three vendors that meet Frostbyte 42 specs, with pricing ranging from $120,000 to $165,000 annually. Integrating one will also require a 6-week dev cycle for API connection and validation testing,” Saskia explained.
+
+Tobiah asked, “Do we have capacity for the dev work next quarter?”
+
+Saskia replied, “With some resource reallocation from the ColdTrack Analytics team, yes. But it will delay several feature improvements in the pipeline.”
+
+Tobiah sighed, “Security and compliance must take priority. Please coordinate with ColdTrack leads to minimize impact. Also, we need to enhance logging capabilities to capture all user and system access with immutable timestamps—Frostbyte 42 mandates tamper-evident audit trails. How far are we from that?”
+
+“We have preliminary logging infrastructure using blockchain-inspired hash chaining for record verification, but it currently only covers high-level platform events,” Saskia said. “Extending this to sensor data access logs will require firmware updates and backend support, estimated at 2 developer-months for each.”
+
+“Let’s commission a proof of concept for the sensor log chaining module and deploy it on a pilot batch of 500 devices by August 1,” Tobiah instructed. “We’ll evaluate performance impacts and compliance readiness.”
+
+Saskia agreed, “I’ll schedule the engineering kickoff.”
+
+Tobiah then brought up the topic of user authentication. “Frostbyte 42 demands multifactor authentication (MFA) for any operator accessing live temperature data. Currently, we support MFA for the platform UI but not for API access used by field technicians.”
+
+“That is a shortfall,” Saskia admitted. “Implementing MFA for API keys requires an OAuth 2.0 based token exchange with time-limited tokens and device binding. It’s complex but feasible. Our security team estimates a 4-month implementation with testing.”
+
+“Can we roll out partial MFA? For example, require MFA for access above certain privilege levels?”
+
+“Yes,” Saskia said. “We can segment API scopes and enforce MFA on critical endpoints first, then expand gradually.”
+
+Tobiah nodded, “Good. Prioritize MFA for shipment modification and temperature alert acknowledgment endpoints. All other access can remain under standard token validation temporarily.”
+
+Regarding physical security, Tobiah asked, “Are there compliance expectations for storage and transport facilities? Frostbyte 42 mentions tamper-evident seals and GPS geo-fencing.”
+
+Saskia confirmed, “Yes, and our integration plan includes GPS-enabled tags that trigger alerts if shipments deviate outside geofenced zones. Our current seal technology supports tamper evidence but we’re exploring digital seals with embedded NFC chips for remote verification.”
+
+“What’s the cost delta?” Tobiah inquired.
+
+“Digital seals are approximately $15 per unit versus $3 for standard tamper-evident tape. Given the Frostbyte 42 mandate to remotely verify seals for all vaccine shipments, we project an increase of $120,000 annually on seal costs alone.”
+
+Tobiah was thoughtful. “Budget allowances should be reviewed, but given the mandate, this is non-negotiable. Ensure procurement priorities are aligned.”
+
+Saskia summarized the key decisions:
+
+- Upgrade all sensor encryption to AES-256 leveraging CryoTag X3 hardware acceleration.
+
+- Implement TLS 1.3 on platform and sensor endpoints; maintain TLS 1.2 with mutual authentication on gateways during transition; plan hardware upgrades at five main hubs by Q4 2024.
+
+- Reduce key rotation interval to 90 days via HSM integration with top vendor selected by end of Q2.
+
+- Extend blockchain-based logging to sensor access logs; pilot on 500 devices by August 1.
+
+- Enforce MFA on high privilege API endpoints starting immediately; full rollout to follow.
+
+- Deploy GPS geo-fencing with alerting on all shipments; adopt NFC-enabled digital tamper seals for vaccine shipments.
+
+- Coordinate resource reallocation to accommodate security upgrades without delaying core feature roadmap unduly.
+
+Tobiah closed the session by emphasizing, “Security and compliance are the foundation of trust for our customers and regulators alike. We cannot afford shortcuts. Let’s meet biweekly on this to track progress and mitigate any risks early. Thank you, Saskia, for the thorough review.”
+
+Saskia replied, “Thank you, Tobiah. I’ll circulate detailed timelines and draft the updated compliance impact analysis by next week.”
+
+The meeting adjourned with clear action items and a reinforced commitment to meeting Frostbyte 42’s stringent security requirements while balancing operational realities.
+
+## Pilot Testing and Timeline
+
+Tobiah Ulmford leaned forward, tapping his stylus against the digital pad displaying the preliminary timeline for Project Frostbyte 42’s pilot phase. “Alright, Saskia, to confirm: we’re looking to initiate the pilot testing with ChillFleet’s cold-chain data sets starting July 15th, 2024, correct?”
+
+Saskia Fennmoor nodded firmly. “Yes, Tobiah. We’ve locked down Q3 2024 for the pilot kickoff. ChillFleet has given us a firm commitment to provide live data streams from their active shipments beginning mid-July. This aligns with their peak vaccine distribution cycle, which should stress-test our algorithms effectively.”
+
+“Good,” Tobiah replied. “Let’s talk scope and scale. The data volume ChillFleet expects to generate during the pilot is about 3 terabytes over three months, yes?”
+
+“Precisely. To break that down,” Saskia said, pulling up a slide from the shared screen, “they anticipate approximately 12,000 individual shipment logs per month, each with temperature sensor readings every 5 minutes. That’s roughly 2.5 million data points monthly just for temperature.”
+
+Tobiah grimaced. “That’s substantial but manageable. Our ingestion pipeline’s been benchmarked at 1 million sensor points per hour, so continuous flow should be okay. The challenge is ensuring data fidelity and synchronization across geographies. ChillFleet’s shipments span 17 countries in North America and Europe.”
+
+“Right,” Saskia agreed. “Our localization scripts need to handle time zone normalization accurately. We’ve allocated two weeks in July for testing that component before ingesting full data streams. Those tests will run parallel with onboarding ChillFleet’s IT team to our platform.”
+
+Tobiah tapped a note. “Onboarding. That’s critical. What’s the current engagement status with their technical contacts?”
+
+Saskia scrolled through her notes. “The primary point of contact on ChillFleet’s side is Rajiv Menon, their Senior Systems Architect. He has committed a dedicated liaison, Embley Gopal, who will coordinate daily syncs during pilot setup. We have bi-weekly calls scheduled through June to iron out data formatting issues.”
+
+“And those formatting issues?” Tobiah pushed.
+
+“Mostly schema alignment,” Saskia replied. “ChillFleet uses a proprietary tagging format for their sensor metadata, not entirely compatible with our JSON schema v3.2. We’ve developed a translation adapter slated for deployment by June 30th. Rajiv has reviewed the first draft and approved the approach.”
+
+Tobiah exhaled. “Sounds promising. Now, about the pilot’s metrics — how will we define success?”
+
+Saskia brought up a slide titled “Pilot Success Criteria.” “We’re targeting three key performance indicators (KPIs):
+
+- Data ingestion completeness at or above 99.5%
+
+- Real-time alerts generated with less than 2-minute latency from out-of-range sensor readings
+
+- Ranking algorithm accuracy to detect shipment integrity anomalies with a precision of 93% or higher based on ChillFleet’s historical incident logs
+
+We’ll also monitor system uptime, aiming for 99.9% availability.”
+
+Tobiah nodded thoughtfully. “Those are ambitious but necessary. What about user feedback? Will ChillFleet’s logistics managers be able to review outputs during the pilot?”
+
+“Yes, we’ve configured a dashboard prototype tailored for their operations team,” Saskia said. “Access will be granted two weeks before pilot launch, starting July 1st, to facilitate training sessions. We’re scheduling three live workshops with their logistics supervisors in the last week of June.”
+
+Tobiah’s eyes brightened. “Interactive feedback loops are crucial. We should capture qualitative input alongside KPI metrics. Have we allocated resources for that?”
+
+“Absolutely,” Saskia confirmed. “We assigned two UX researchers, Jortun Glimtun and Luis Alvarez, to conduct weekly interviews and collect usability data throughout the pilot. They’ll report findings every Friday to the project steering committee.”
+
+“Excellent. Now, let’s talk contingency plans. What if data volume spikes beyond projections or if ChillFleet’s live feeds encounter outages?”
+
+Saskia flipped to the risk management slide. “We have three contingency measures:
+
+1. Elastic cloud storage scaling enabled to expand capacity by up to 50% automatically if data surges exceed thresholds.
+
+2. Failover ingestion nodes distributed across Skycloud regions eu-west-1 and us-east-2 to mitigate regional outages.
+
+3. Buffer queueing with a 24-hour retention window to allow delayed data ingestion and replay.”
+
+Tobiah said, “Sounds robust. And what about the data security protocols during pilot? We’re handling sensitive pharmaceutical logistic data after all.”
+
+“Our platform maintains end-to-end AES-256 encryption at rest and in transit,” Saskia reassured. “Additionally, we’ve implemented role-based access controls restricting ChillFleet’s data visibility to authorized project personnel only. We’ll also undergo a third-party penetration test scheduled for late June.”
+
+Tobiah made a note, “Let’s ensure the pen test report lands before pilot launch to allow remediation time.”
+
+“Agreed,” Saskia said. “We’ve contracted Cybershield Labs for that, with a preliminary report expected by July 10th.”
+
+They moved next to the pilot timeline week-by-week. Tobiah summarized: “So, June is heavy on onboarding, adapter testing, security validation, and dashboard rollout prep. July 1st, dashboard access granted. July 15th, live data ingestion begins. Then we monitor through September 30th with weekly status reviews. By October 7th, deliver a pilot performance report and recommendation.”
+
+“That’s the plan,” Saskia confirmed. “We have internal checkpoints on July 22nd and August 20th to assess progress and pivot if needed.”
+
+Tobiah asked, “Do we foresee any dependencies that could derail this schedule?”
+
+Saskia considered. “Potentially, if ChillFleet’s API updates are delayed. They’re currently deploying a systems upgrade in late June, which may introduce temporary data feed instability. Rajiv indicated a risk window of June 25th to July 5th.”
+
+“Hmm. We might want to pause adapter testing during that window,” Tobiah proposed. “Or at least monitor closely for anomalies.”
+
+“Exactly,” Saskia agreed. “We’ve planned for a dry run ingest on July 8th using archived ChillFleet datasets to verify pipeline readiness before live streams hit.”
+
+“Good contingency,” Tobiah said. Then, “What about internal resource allocation? Are all critical roles confirmed for this phase?”
+
+“Yes. Our data engineers — Tavon Reid and Elaine Park — are fully dedicated to ingest pipeline and schema work. The analytics team, including lead scientist Dr. Farah Kim, will focus on anomaly detection model fine-tuning. UX researchers are scheduled through September. Project management support comes from Janelle Morgan.”
+
+Tobiah smiled. “Excellent. Finally, have we prepared the communication plan to update stakeholders at PharmaLogiX and ChillFleet during the pilot?”
+
+Saskia nodded. “Bi-weekly email newsletters plus monthly all-hands video conferences. We also agreed with ChillFleet on immediate escalation protocols for any critical incident impacting data integrity.”
+
+Tobiah stood, signaling the end of the section. “Great work, Saskia. To recap: Pilot testing with ChillFleet data sets under Project Frostbyte 42 launches mid-July 2024, running through September. Clear KPIs, robust contingency plans, tight stakeholder coordination. Let’s lock these commitments in the project charter updated today.”
+
+Saskia smiled. “On it. I’ll send the updated timeline and success criteria summary to the team by end of day.”
+
+“Perfect. Next step, finalize adapter deployment and pen test scheduling. After that, full steam ahead into July.”
+
+With mutual nods, they closed their tablets, confident in the path forward for this critical phase of their cold-chain data integration strategy.
+
+## Next Steps and Action Items
+
+Tobiah Ulmford initiated the wrap-up of the meeting with a clear summary: “To keep momentum on IceLink 7E3, we need to lock down specific responsibilities for the development milestones and set a firm date for the next comprehensive progress review.” Saskia Fennmoor nodded, “Agreed. The last quarter’s delays highlighted the risks of vague ownership. Let’s be precise this time.”
+
+Tobiah began by outlining the proposed division of labor. “First, the IoT sensor integration. Given the complexity of the new multi-sensor array for temperature and humidity, I propose that the hardware team under Dramere Dorow take point. They’ve already done the preliminary firmware work in 6D9, and have twelve engineers allocated.” Saskia responded, “Dramere has the bandwidth right now, but we should confirm he can dedicate at least four full-time equivalents (FTEs) through July to ensure steady progress. Can you send him a note today?”
+
+“Already drafting something,” Tobiah assured. “Next is the cloud data aggregation pipeline. The new requirements for real-time analytics and anomaly detection push beyond our current 5-minute batch processing. I suggest Tessyra Parlet's team spearhead the cloud-side enhancements, with an emphasis on scaling the Kafka clusters and optimizing the Spark jobs.”
+
+Saskia flagged a potential concern: “Tessyra’s group just closed the AtlasSync project and have three people transitioning off. That frees about 2.5 FTEs. Do we need more?” Tobiah answered, “We estimated seven engineers total, so that’s a shortfall of about two. I recommend temporarily borrowing two engineers from the legacy system support team, led by Lumik Mendoza. They have bandwidth because the 4G rollout slowed last quarter.” Saskia made a note, “I’ll check availability with Lumik and ensure alignment on priorities. We can’t afford resource conflicts.”
+
+Tobiah continued, “On the front end, for the new dashboard visualizations and alerting UI, we want to leverage the new design system Liz Warner rolled out last month. That should reduce implementation time by about 20%. I think a dedicated pair of front-end developers from the UX team, plus some part-time input from the design team, will suffice.” Saskia concurred, “Let’s scope that as two FTEs full-time from UX, plus 0.5 FTE from design for the next eight weeks.”
+
+Discussing the testing phase, Tobiah emphasized the importance of early integration testing given the increased complexity of IceLink 7E3. “We need to assign QA lead by June 5, so that automated test suites can be developed alongside the feature work, not as an afterthought.” Saskia volunteered, “I’ll reach out to Helena Crowley in QA. She’s shown great initiative on IceLink 6D9 and should be available to take the lead with a small team immediately.”
+
+They agreed that the test strategy must include environmental simulation for temperature extremes and intermittent connectivity scenarios, “like the rural vaccine shipments in the Northern Territories,” Saskia added. Tobiah said, “Right, we can’t miss those edge cases. That means coordinating with the field ops team to get real sensor logs for baseline data.” Saskia noted, “I’ll arrange a data pull from the field ops group by May 28.”
+
+On the topic of documentation and compliance requirements, Tobiah stressed, “IceLink 7E3 must meet the new PharmaCompliance 4.1 standards which go into effect August 1. That means updating both the regulatory documentation and the internal SOPs by July 15.” Saskia affirmed, “Regulatory Affairs has assigned a liaison, Martin Bexley, to support us. I’ll ensure he’s looped in by end of this week to set deadlines for document drafts.”
+
+They pivoted to project management tools and communication cadence. Tobiah said, “We should establish a single source of truth for all development artifacts. I propose using the new IceLink Confluence space dedicated to 7E3, with daily check-ins on Slack in the #ice7e3-dev channel.” Saskia agreed, “Also, let’s schedule bi-weekly video stand-ups at 10 a.m. Tuesdays starting June 7, so all teams can align and highlight blockers promptly.”
+
+Tobiah then moved to scheduling the next major review meeting. “Given we want to catch the mid-development status, I suggest a formal all-hands review on July 17. That’s exactly six weeks after today’s meeting, allowing time for at least three development sprints and preliminary test results.” Saskia approved, “July 17 works. I’ll reserve the main conference room and send calendar invites to all stakeholders by May 29.”
+
+They discussed the agenda for this progress review. Tobiah proposed, “We want status reports from hardware, cloud, front end, QA, and compliance. Plus, a demo of the integrated sensor data pipeline. It’s essential for the product management team to see the end-to-end flow to prepare customer-facing materials.” Saskia added, “I’ll ask product marketing to prepare an updated risk register and deployment plan for that meeting as well.”
+
+Finally, Tobiah addressed risk management and contingency planning. “If the hardware sensor integration lags by more than one sprint, we need a fallback plan to ship IceLink 7E3 with the previous sensor model, with limited functionality but full compliance.” Saskia agreed, “Let’s build that contingency into the project roadmap explicitly. I’ll draft a risk mitigation section and circulate it by next Monday, May 29.”
+
+To summarize and assign immediate next steps, Tobiah recapped:
+
+- “I’ll notify Dramere’s hardware team and draft the resource confirmation email today.”
+
+- “Saskia will check with Lumik Mendoza on borrowing two cloud engineers by tomorrow, May 26.”
+
+- “You’ll arrange the field ops data pull by May 28.”
+
+- “I’ll reach out to Tessyra Parlet for cloud pipeline kickoff by May 31.”
+
+- “Saskia will confirm QA lead Helena Crowley’s availability by June 1.”
+
+- “You’ll connect with Martin Bexley in Regulatory Affairs this week.”
+
+- “I’ll set up the IceLink 7E3 Confluence space and Slack channel by May 27.”
+
+- “We’ll both ensure calendar invites are sent for July 17 review by May 29.”
+
+Saskia affirmed her understanding, “This is a solid plan. I’ll draft a shared project tracker with these action items and responsibilities so we can monitor progress transparently.”
+
+Tobiah concluded, “Great. Let’s keep close communication, especially through the first sprint. I expect we’ll learn a lot and may need to adjust allocations. But this commitment to clear ownership and scheduled checkpoints is the best way to avoid the pitfalls of IceLink 6D9.”
+
+Saskia smiled, “Agreed, Tobiah. I’m optimistic IceLink 7E3 will set a new standard for our cold-chain data integration.”
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-07-02-district-procurement-coordination-session.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-07-02-district-procurement-coordination-session.md
new file mode 100644
index 0000000000..e5305296d4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-07-02-district-procurement-coordination-session.md
@@ -0,0 +1,41 @@
+---
+type: "meeting"
+title: "District Procurement Coordination Session"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+date: "2024-07-02"
+attendees: ["Dorrit Peltdale","Rhosyn Jorvham","Saskia Silvhollow"]
+---
+
+# District Procurement Coordination Session
+
+Date: 2024-07-02
+Attendees: Dorrit Peltdale, Rhosyn Jorvham, Saskia Silvhollow
+
+**Agenda:**
+- Review current procurement processes across districts
+- Align vendor selection criteria for adaptive tutoring platforms
+- Establish coordinated timeline for RFP releases and evaluations
+
+**Discussion:**
+Dorrit reported that District A currently employs a three-stage procurement process, taking approximately 120 days from RFP release to contract award. District B’s process is shorter, averaging 85 days, but lacks formal vendor scoring rubrics. District C uses a hybrid model with a 100-day timeline and incorporates teacher feedback in vendor evaluations.
+
+The group agreed on the need to harmonize vendor selection criteria to improve comparability. Rhosyn proposed a standardized rubric focusing on:
+- Platform adaptability (weight 30%)
+- Data privacy and compliance (25%)
+- Teacher dashboard usability (20%)
+- Cost-effectiveness (15%)
+- Vendor support and training (10%)
+
+Saskia recommended coordinating RFP release dates to avoid vendor overload and suggested a staggered schedule starting October 1, 2024, with District A going first, followed by B and C at two-week intervals.
+
+**Decisions:**
+- Adopt Rhosyn’s vendor selection rubric across all three districts
+- Implement a coordinated RFP release schedule beginning October 1, 2024
+- Incorporate teacher feedback systematically into final vendor evaluations
+
+**Action Items:**
+- Dorrit to draft unified procurement process documentation by July 20 (Owner: Dorrit)
+- Saskia to create and distribute standardized vendor rubric templates by July 15 (Owner: Saskia)
+- Rhosyn to coordinate with district procurement officers to finalize RFP schedule by July 25 (Owner: Rhosyn)
+
+Attendee pages: [[people/dorrit-peltdale]], [[people/rhosyn-jorvham]], [[people/saskia-silvhollow]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-07-08-tiebot-deployment-strategy-discussion.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-07-08-tiebot-deployment-strategy-discussion.md
new file mode 100644
index 0000000000..8f32b18ff9
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-07-08-tiebot-deployment-strategy-discussion.md
@@ -0,0 +1,58 @@
+---
+type: "meeting"
+title: "TieBot Deployment Strategy Discussion"
+tags: ["construction-site-robotics"]
+date: "2024-07-08"
+attendees: ["Yorick Talvwick","Dorrit Lornley","Zosia Jorvley"]
+---
+
+# TieBot Deployment Strategy Discussion
+
+Date: 2024-07-08
+Attendees: Yorick Talvwick, Dorrit Lornley, Zosia Jorvley
+Meeting subject: Outlined phased rollout plans for the autonomous rebar tying system
+
+---
+
+### Agenda
+- Overview of TieBot integration pilot launch
+- Discussion of phased deployment schedule
+- Site selection and resource allocation
+- Safety and performance metrics
+- Next steps and ownership assignment
+
+---
+
+### Discussion
+
+The meeting opened with Yorick Talvwick announcing the official start of the TieBot integration pilot on 2024-07-08. Yorick emphasized that this pilot will be critical for validating the autonomous rebar tying system’s efficiency and safety in active construction environments. Yorick will serve as the pilot owner and primary point of contact.
+
+Dorrit Lornley presented a phased rollout plan to systematically deploy TieBot units across selected construction sites over the next six months. The plan includes three phases:
+
+- **Phase 1 (July–August):** Deploy 3 TieBot units on the East Ridge residential complex site. Focus on collecting baseline data on tying speed and error rate compared to manual tying. Target tying speed is 150 bars/hour, with a maximum acceptable error rate of 2%.
+- **Phase 2 (September–October):** Expand to 5 units at the Westbrook commercial tower site. Introduce integration with drone surveys for real-time progress tracking.
+- **Phase 3 (November–December):** Full deployment of up to 10 units across both sites and begin safety monitoring integration.
+
+Zosia Jorvley highlighted the importance of integrating safety monitoring from Phase 3 onwards, noting recent industry stats show a 12% reduction in site accidents when autonomous systems with hazard detection were used. She proposed setting up weekly safety performance reviews starting in November.
+
+Resource allocation was discussed. The East Ridge site will receive 3 TieBots, each supported by 2 technicians during initial deployment. Dorrit noted technician availability will limit expansion speed, advocating for recruiting 2 additional technicians by end of August.
+
+There was consensus on key performance indicators (KPIs) to track: tying speed (bars/hour), error rate (%), downtime (hours/week), and number of safety incidents.
+
+---
+
+### Decisions
+- TieBot integration pilot officially starts today (2024-07-08), owned by Yorick Talvwick.
+- Follow the three-phase rollout plan as outlined, with deployment milestones tied to July, September, and November.
+- Prioritize recruitment of 2 technicians by 2024-08-31 to support scaling in Phase 2.
+- Begin weekly safety reviews starting 2024-11-04.
+
+---
+
+### Action Items
+
+- **Yorick Talvwick:** Oversee pilot progress, coordinate with site managers; provide weekly status updates starting 2024-07-15.
+- **Dorrit Lornley:** Finalize detailed deployment schedule; lead technician recruitment efforts; deliver Phase 1 deployment report by 2024-09-10.
+- **Zosia Jorvley:** Develop safety monitoring protocols; prepare safety KPI dashboard; schedule first safety review meeting for 2024-11-04.
+
+Attendee pages: [[people/yorick-talvwick]], [[people/dorrit-lornley]], [[people/zosia-jorvley]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-09-27-outage-risk-analytics-review.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-09-27-outage-risk-analytics-review.md
new file mode 100644
index 0000000000..9f45687526
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-09-27-outage-risk-analytics-review.md
@@ -0,0 +1,35 @@
+---
+type: "meeting"
+title: "Outage Risk Analytics Review"
+tags: ["wildfire-detection-and-utility"]
+date: "2024-09-27"
+attendees: ["Zephyra Yarlvane","Eilis Holmstead"]
+---
+
+# Outage Risk Analytics Review
+
+Date: 2024-09-27
+Attendees: Zephyra Yarlvane, Eilis Holmstead
+
+**Agenda:**
+- Review results from the latest vegetation-related outage risk predictive models
+- Discuss model accuracy and feature impact from camera network data
+- Plan next steps for integrating line inspection inputs
+
+**Discussion:**
+Zephyra presented the updated predictive model outcomes from the Q3 run covering the Pinegrove and Silverleaf districts. The model achieved an AUC of 0.87 on the validation set, showing a 5-point improvement over the Q2 baseline of 0.82. Key contributors included normalized line inspection frequency and NDVI values derived from the camera network images.
+
+Eilis noted that the model’s false positive rate decreased from 12% to 8%, which should reduce unnecessary inspection dispatches by an estimated 15% annually. However, the false negative rate remained at 9%, suggesting potential missed outages. The attendees discussed possibilities for incorporating weather forecast data to improve sensitivity, especially during high-risk wind events.
+
+The team also reviewed the vegetation encroachment alerts from the latest infrared image processing iteration. Zephyra highlighted an 18% increase in early detection of high-risk vegetation zones compared to manual reports.
+
+**Decisions:**
+- Proceed with including short-term wind forecast variables in the next model training cycle
+- Pilot integration of line inspection logs from the Redwood substation area by mid-November
+
+**Action Items:**
+- Zephyra to coordinate with data engineering for weather data ingestion by 2024-10-15
+- Eilis to lead the Redwood area pilot design and resource allocation by 2024-11-05
+- Both to reconvene on 2024-11-20 to review pilot progress and preliminary results
+
+Attendee pages: [[people/zephyra-yarlvane]], [[people/eilis-holmstead]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-10-01-queue-optimization-strategy-session.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-10-01-queue-optimization-strategy-session.md
new file mode 100644
index 0000000000..e351ab2986
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-10-01-queue-optimization-strategy-session.md
@@ -0,0 +1,53 @@
+---
+type: "meeting"
+title: "Queue Optimization Strategy Session"
+tags: ["grid-scale-battery-storage"]
+date: "2024-10-01"
+attendees: ["Kestrel Gwilham","Lisbet Brinhollow","Rune Ulmmoor"]
+---
+
+# Queue Optimization Strategy Session
+
+Date: 2024-10-01
+Attendees: Kestrel Gwilham, Lisbet Brinhollow, Rune Ulmmoor
+Subject: Reviewed new algorithms to prioritize battery projects in congested interconnection queues
+
+---
+
+### Agenda
+- Review current state of interconnection queue for grid-scale batteries
+- Analyze performance of new prioritization algorithms
+- Discuss integration of degradation modeling into queue ranking
+- Decide next steps for pilot deployment
+
+### Discussion
+
+**Current Queue Overview**
+- The interconnection queue for the Northridge grid segment currently holds 142 battery storage projects totaling 3.5 GW capacity.
+- Average queue wait time has increased from 14 months to 22 months over the last 6 months due to congestion and network upgrades.
+- Delays predominantly impact projects below 50 MW, which comprise 68% of total queued projects.
+
+**Algorithm Performance**
+- Rune presented results from the new multi-factor prioritization algorithm that weighs project size, expected degradation rates, and interconnection feasibility scores.
+- In simulation, this algorithm improved average dispatch readiness time by 18% compared to the baseline FIFO (first-in-first-out) approach.
+- Lisbet highlighted that incorporating degradation modeling reduced the risk of early project retirement by 12%, improving long-term reliability forecasts.
+
+**Degradation Modeling Integration**
+- Kestrel emphasized the need to integrate real-time degradation data to continuously update project rankings.
+- Current degradation models rely on static assumptions; the proposed dynamic model updates weekly based on field sensor data.
+- This approach is projected to improve queue prioritization accuracy by up to 25%, especially for projects utilizing advanced lithium-titanate chemistries.
+
+**Decisions**
+- Approve pilot deployment of the multi-factor prioritization algorithm with integrated degradation updates on the Northridge queue.
+- Limit pilot to the 42 projects between 20 MW and 50 MW to better manage complexity.
+- Run pilot for a 6-month period with monthly reporting on queue movement and project readiness metrics.
+
+### Action Items
+
+- **Rune Ulmmoor:** Lead pilot implementation; coordinate with grid operations to enable weekly degradation data feeds. Deadline: 2024-11-15
+- **Lisbet Brinhollow:** Develop dashboard for real-time queue ranking visualization incorporating new algorithm outputs. Deadline: 2024-11-30
+- **Kestrel Gwilham:** Draft communication plan for stakeholders explaining pilot goals and expected impacts. Deadline: 2024-10-15
+
+Next meeting scheduled for 2024-11-20 to review initial pilot results.
+
+Attendee pages: [[people/kestrel-gwilham]], [[people/lisbet-brinhollow]], [[people/rune-ulmmoor]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2024-12-10-teacher-feedback-roundtable-on-dashteach.md b/test/fixtures/ranking-shapes/source-a/meetings/2024-12-10-teacher-feedback-roundtable-on-dashteach.md
new file mode 100644
index 0000000000..03f3f4ac8d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2024-12-10-teacher-feedback-roundtable-on-dashteach.md
@@ -0,0 +1,41 @@
+---
+type: "meeting"
+title: "Teacher Feedback Roundtable on DashTeach"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+date: "2024-12-10"
+attendees: ["Saskia Silvhollow","Rhosyn Jorvham","Dorrit Peltdale"]
+---
+
+# Teacher Feedback Roundtable on DashTeach
+
+Date: 2024-12-10
+Attendees: Saskia Silvhollow, Rhosyn Jorvham, Dorrit Peltdale
+
+**Agenda:**
+- Review current DashTeach dashboard usability based on teacher feedback
+- Discuss reporting feature enhancements to improve district-level procurement insights
+- Identify priority improvements for Q1 2025 release
+
+**Discussion:**
+Saskia opened with a summary of survey results from 125 teachers across three pilot districts using DashTeach. Key pain points highlighted were:
+- Over 40% found mastery tracking graphs confusing, especially for multi-subject classes
+- Nearly 30% requested more customizable alert thresholds for student performance dips
+- Requests for exportable summary reports increased by 25% since last quarter
+
+Rhosyn shared feedback from two district procurement officers:
+- They value dashboard analytics but want clearer visuals that aggregate student mastery at grade and school levels
+- Suggested adding benchmark comparisons against district averages to guide resource allocation
+
+Dorrit demonstrated a prototype dashboard update incorporating conditional color-coding and simplified navigation tabs. Early reactions from 15 teachers in a closed trial were positive, with 87% saying it improved usability.
+
+**Decisions:**
+- Prioritize redesign of mastery tracking charts to include multi-subject filters and clearer legends
+- Develop exportable district summary reports with benchmark comparisons by March 2025
+- Implement customizable alert thresholds customizable per teacher by April 2025
+
+**Action Items:**
+- Saskia to coordinate additional teacher usability tests on prototype by 2025-01-15
+- Rhosyn to draft detailed requirements for district summary reports by 2024-12-20
+- Dorrit to begin development on alert threshold customization feature starting 2025-01-10
+
+Attendee pages: [[people/saskia-silvhollow]], [[people/rhosyn-jorvham]], [[people/dorrit-peltdale]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2025-01-06-crane-telemetry-data-review-session.md b/test/fixtures/ranking-shapes/source-a/meetings/2025-01-06-crane-telemetry-data-review-session.md
new file mode 100644
index 0000000000..f91221f942
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2025-01-06-crane-telemetry-data-review-session.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Crane Telemetry Data Review Session"
+tags: ["maritime-port-operations"]
+date: "2025-01-06"
+attendees: ["Nadezhda Ibbton","Odalys Naskdale","Oriel Fennvane"]
+---
+
+# Crane Telemetry Data Review Session
+
+Date: 2025-01-06
+Attendees: Nadezhda Ibbton, Odalys Naskdale, Oriel Fennvane
+
+**Agenda:**
+- Review of crane telemetry sensor data from December 2024
+- Identification of maintenance trends and abnormal readings
+- Plan updates for scheduled maintenance and sensor recalibration
+
+**Discussion:**
+Nadezhda presented the aggregated data collected from the ten active quay cranes over December 2024, highlighting an increase in vibration anomalies on Crane #7 at Berth 3. The vibration amplitude exceeded the threshold of 4.5 mm/s on 18 separate days, compared to the average of 5 days for other cranes. Odalys noted a corresponding 12% drop in container handling efficiency on that crane during the same timeframe.
+
+Oriel reviewed temperature sensor logs, reporting that Crane #4 exhibited a steady temperature increase of 6°C above baseline during night shifts, suggesting potential cooling system issues. The data flagged this deviation starting December 15th.
+
+The team agreed that Crane #7 requires an urgent mechanical inspection and that Crane #4 should have its cooling units recalibrated before the next cargo cycle starting January 12th. Additionally, the telemetry calibration schedule will be advanced by one month for all cranes to validate sensor accuracy.
+
+**Decisions and Action Items:**
+- Maintenance team to perform mechanical inspection on Crane #7 by January 10th (Owner: Odalys Naskdale)
+- Calibration of cooling system sensors on Crane #4 by January 8th (Owner: Oriel Fennvane)
+- Reschedule telemetry sensor calibration for all cranes from February to January (Owner: Nadezhda Ibbton)
+- Next telemetry review session set for February 3rd, 2025
+
+Attendee pages: [[people/nadezhda-ibbton]], [[people/odalys-naskdale]], [[people/oriel-fennvane]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2025-01-07-procurement-redlining-workflow-kickoff.md b/test/fixtures/ranking-shapes/source-a/meetings/2025-01-07-procurement-redlining-workflow-kickoff.md
new file mode 100644
index 0000000000..2f540713cd
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2025-01-07-procurement-redlining-workflow-kickoff.md
@@ -0,0 +1,35 @@
+---
+type: "meeting"
+title: "Procurement Redlining Workflow Kickoff"
+tags: ["legal-contract-automation"]
+date: "2025-01-07"
+attendees: ["Dorrit Ravnham","Amadeo Ibbdale","Torben Fennmere"]
+---
+
+# Procurement Redlining Workflow Kickoff
+
+Date: 2025-01-07
+Attendees: Dorrit Ravnham, Amadeo Ibbdale, Torben Fennmere
+Subject: Initiated project to automate vendor contract revision processes and approval routing
+
+**Agenda:**
+- Overview of current procurement redlining challenges
+- Definition of project scope and goals
+- Initial task assignments and timelines
+
+**Discussion:**
+Dorrit outlined that the current manual redlining process for vendor contracts averages 5 days per review cycle, contributing to procurement delays of up to 20%. Amadeo presented a preliminary analysis showing that automating clause extraction and redline suggestions could reduce review time by at least 40%, targeting a 3-day cycle. Torben emphasized the importance of integrating the workflow with existing contract management tools used by the Legal Ops team, estimated at 15,000 active contracts yearly.
+
+The team agreed the initial focus should be on automating the redlining of standard procurement clauses—specifically termination, confidentiality, and payment terms—comprising roughly 60% of all contracts reviewed. A phased approach will enable iterative testing and feedback.
+
+**Decisions:**
+- Project codename: “ProcureLine”
+- Target go-live for Phase 1: 2025-06-30
+- Use existing clause taxonomy for extraction (approx. 120 standard clauses)
+
+**Action Items:**
+- Dorrit to draft detailed workflow specs by 2025-01-21
+- Amadeo to prototype clause extraction module by 2025-02-15
+- Torben to coordinate integration requirements with Legal Ops by 2025-01-28
+
+Attendee pages: [[people/dorrit-ravnham]], [[people/amadeo-ibbdale]], [[people/torben-fennmere]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2025-02-24-vaccine-temperature-compliance-review.md b/test/fixtures/ranking-shapes/source-a/meetings/2025-02-24-vaccine-temperature-compliance-review.md
new file mode 100644
index 0000000000..231706a438
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2025-02-24-vaccine-temperature-compliance-review.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Vaccine Temperature Compliance Review"
+tags: ["cold-chain-pharmaceutical-logistics"]
+date: "2025-02-24"
+attendees: ["Saskia Fennmoor","Tobiah Ulmford"]
+---
+
+# Vaccine Temperature Compliance Review
+
+Date: 2025-02-24
+Attendees: Saskia Fennmoor, Tobiah Ulmford
+
+**Agenda:**
+- Review of temperature deviations in January vaccine shipments
+- Assessment of current sensor tag performance
+- Updates to cold-storage protocols
+
+**Discussion:**
+Saskia reported that 7 out of 120 shipments last month experienced temperature excursions exceeding the 2°C–8°C range, with 5 of these occurring during last-mile delivery. The average duration of excursions was 38 minutes, up from 22 minutes in December. Tobiah noted that the current sensor tags, model TempTrack-5, have a battery life of 72 hours, which is approaching expiration for some units on longer routes. He suggested exploring tags with at least 120-hour battery capacity for improved reliability. Both agreed that alerts were sometimes delayed due to intermittent network coverage in rural zones.
+
+**Decisions:**
+- Increase minimum sensor tag battery life requirement to 120 hours starting March 1
+- Implement secondary cold-storage checks at distribution hubs to catch deviations earlier
+- Pilot low-power wide-area network (LPWAN) connectivity in the North Bay delivery region to improve real-time alerting
+
+**Action Items:**
+- Tobiah to source and test extended-life sensor tags by 2025-03-10
+- Saskia to revise cold-storage SOPs incorporating dual checkpoint protocol by 2025-02-28
+- Tobiah to coordinate LPWAN pilot setup with network provider by 2025-03-15
+
+Attendee pages: [[people/saskia-fennmoor]], [[people/tobiah-ulmford]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2025-06-04-dispatch-software-feature-planning.md b/test/fixtures/ranking-shapes/source-a/meetings/2025-06-04-dispatch-software-feature-planning.md
new file mode 100644
index 0000000000..ce924f41ed
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2025-06-04-dispatch-software-feature-planning.md
@@ -0,0 +1,33 @@
+---
+type: "meeting"
+title: "Dispatch Software Feature Planning"
+tags: ["grid-scale-battery-storage"]
+date: "2025-06-04"
+attendees: ["Rune Ulmmoor","Lisbet Brinhollow","Kestrel Gwilham"]
+---
+
+# Dispatch Software Feature Planning
+
+Date: 2025-06-04
+Attendees: Rune Ulmmoor, Lisbet Brinhollow, Kestrel Gwilham
+
+**Agenda:**
+- Review performance gaps in current dispatch software under peak load variability
+- Prioritize feature improvements for next iteration
+- Assign development and testing responsibilities
+
+**Discussion:**
+Rune opened the meeting by presenting data from May 2025, showing a 12% increase in forecast error during peak load hours between 5-8 PM, contributing to suboptimal battery utilization. Lisbet noted that the degradation model currently underestimates capacity fade by 3% monthly under heavy cycling, skewing dispatch decisions. Kestrel proposed integrating a dynamic load forecasting module leveraging real-time grid signals, expecting to reduce forecast error by at least 7%. All agreed that incorporating adaptive degradation modeling would better align dispatch outputs with actual battery health.
+
+They debated prioritizing interconnection queue updates but concluded these could wait to focus on improving dispatch accuracy, given a backlog of 1,200 queued projects nationwide.
+
+**Decisions:**
+- Prioritize development of dynamic load forecasting and adaptive degradation modeling for the Q3 2025 release.
+- Defer interconnection queue module updates to Q1 2026.
+
+**Action Items:**
+- Rune to lead the load forecasting module design, due by 2025-07-15.
+- Lisbet to update degradation modeling parameters and test scenarios, due by 2025-07-30.
+- Kestrel to coordinate integration testing and performance validation, deliver results by 2025-08-20.
+
+Attendee pages: [[people/rune-ulmmoor]], [[people/lisbet-brinhollow]], [[people/kestrel-gwilham]].
diff --git a/test/fixtures/ranking-shapes/source-a/meetings/2025-07-13-forecasting-yield-accuracy-improvements.md b/test/fixtures/ranking-shapes/source-a/meetings/2025-07-13-forecasting-yield-accuracy-improvements.md
new file mode 100644
index 0000000000..c1f7e94ed0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/meetings/2025-07-13-forecasting-yield-accuracy-improvements.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Forecasting Yield Accuracy Improvements"
+tags: ["vertical-farming-and-indoor-agriculture"]
+date: "2025-07-13"
+attendees: ["Linnea Marqmoor","Fiora Velkbrook","Ysolde Fennford"]
+---
+
+# Forecasting Yield Accuracy Improvements
+
+Date: 2025-07-13
+Attendees: Linnea Marqmoor, Fiora Velkbrook, Ysolde Fennford
+
+**Agenda:**
+- Review latest yield prediction models for grow towers
+- Analyze accuracy improvements from recent nutrient dosing updates
+- Plan next steps for model validation and deployment
+
+**Discussion:**
+Linnea presented results from the new yield forecasting model version 4.3, showing a 12.7% reduction in mean absolute error compared to version 4.1, bringing MAE down from 3.8 kg/m² to 3.3 kg/m². The improved nutrient dosing algorithm, integrated last month, contributed an estimated 7.5% of the accuracy gains. Fiora highlighted the need to test the model across different crop varieties, noting that performance for leafy greens improved by 15%, but vine crops showed only a 5% increase. Ysolde recommended expanding the data set by including sensor data from the new east-side grow tower in Riverside, which began operations last quarter.
+
+**Decisions:**
+- Deploy version 4.3 in pilot mode on two farm sites starting July 20
+- Prioritize data collection for vine crops to enhance model calibration
+- Begin integration of additional environmental sensors by August 5
+
+**Action Items:**
+- Linnea to coordinate pilot deployment and monitor initial outcomes
+- Fiora to lead data expansion efforts focusing on vine crop sensors
+- Ysolde to manage sensor integration project and report progress weekly
+
+Attendee pages: [[people/linnea-marqmoor]], [[people/fiora-velkbrook]], [[people/ysolde-fennford]].
diff --git a/test/fixtures/ranking-shapes/source-a/notes/best-practices-for-dosing-systems.md b/test/fixtures/ranking-shapes/source-a/notes/best-practices-for-dosing-systems.md
new file mode 100644
index 0000000000..874e387d3e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/best-practices-for-dosing-systems.md
@@ -0,0 +1,37 @@
+---
+type: "note"
+title: "Best Practices for Dosing Systems"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Best Practices for Dosing Systems
+
+Working Note: Nutrient Dosing Calibration Observations
+Author: Ephik L., Agronomy Tech Team
+Date: 2024-06-09
+
+---
+
+Over the past two weeks, I’ve been focusing on the calibration of nutrient dosing systems in our hydroponic grow towers, specifically in the Bayview test lab. The goal is to optimize the delivery of nutrients to maximize yield while minimizing waste and system wear.
+
+**Key Parameters Observed**
+- **Flow Rate Consistency:** Using the inline flow sensors, we noted that the dosing pumps vary by up to ±4% from their set target flow after 12 hours of continuous operation. This is slightly higher than the ±2% tolerance we originally aimed for.
+- **Nutrient Concentration Stability:** Sample analysis at the mixing chamber shows nutrient concentrations fluctuate by about 3.5% throughout a 24-hour cycle, likely due to small delays in the feedback loop between sensors and dosing valves.
+- **pH and EC Response Lags:** There is a measurable lag (~5 minutes) between nutrient dosing adjustments and stabilized pH/EC readings downstream. This impacts our ability to do rapid correction cycles during peak growth phases.
+
+**Measurements Summary**
+- Pump calibration runs (3 replicates) at setpoints of 50, 100, 150 mL/min
+- Nutrient sample tests every 3 hours for 24 hours (N=8 per run)
+- Environmental conditions: stable at 22°C ±1°C, humidity 60% ±5%
+
+**Open Questions**
+- Can we reduce the dosing pump drift through hardware tweaks or better self-calibration routines?
+- Is it practical to implement predictive dosing based on growth stage forecasts to compensate for the observed lag?
+- How much nutrient fluctuation is tolerable before impacting plant growth metrics negatively?
+
+**Next Steps**
+- Run a controlled experiment adjusting pump motor voltage to see if flow stability improves.
+- Develop a simulation model incorporating the 5-minute lag to test predictive dosing algorithms.
+- Coordinate with the Plant Biology group to correlate dosing variability with plant health data from the last 3 growth cycles.
+
+Will update with preliminary results by end of next week. Open to suggestions or requests for additional parameter monitoring.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/camera-network-sensitivity-calibration.md b/test/fixtures/ranking-shapes/source-a/notes/camera-network-sensitivity-calibration.md
new file mode 100644
index 0000000000..9ecdfcb903
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/camera-network-sensitivity-calibration.md
@@ -0,0 +1,40 @@
+---
+type: "note"
+title: "Camera Network Sensitivity Calibration"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Camera Network Sensitivity Calibration
+
+Camera Network Sensitivity Calibration – Working Note
+Author: Rajesh K., Vision Systems Analyst
+Date: 2024-06-12
+
+---
+
+**Observations:**
+Over the past three weeks, the Red River Valley camera cluster has shown a significant uptick in false positives triggered by environmental noise, specifically dust storms and intermittent fog patches. Our current detection thresholds, which were initially set during dry season conditions, are proving too sensitive under these variable atmospheric conditions.
+
+- On June 3 and June 7, we recorded 47 false alarms attributed to dust plumes from nearby agricultural activity.
+- On June 9 and June 11, fog-induced glare led to 32 false positives, especially on cameras 12 through 18.
+- These false alarms are causing unnecessary dispatches and sensor recalibrations, increasing operational costs by an estimated 15% in the last week alone.
+
+**Measurements:**
+To quantify the issue, I ran comparative analytics on pixel intensity variance and motion detection patterns in flagged events versus confirmed wildfire events from the last month. Key metrics:
+
+- Dust events typically show a rapid onset of high-frequency pixel noise but lack the sustained thermal signature we expect from fire sources.
+- Fog events produce a more diffuse, low-contrast haze, raising baseline luminance but without sharp edges or movement patterns typical of flames.
+- Current threshold settings for motion detection are at 0.15 variance units; false positives consistently fall between 0.12 and 0.16, overlapping with genuine events between 0.14 and 0.22.
+
+**Open Questions:**
+- Should we implement an adaptive threshold model that adjusts based on local weather sensor data (humidity, particulate levels)?
+- Can combining thermal and optical feeds enhance discrimination between smoke/fog/dust and fire?
+- What is the acceptable trade-off between missed detections and false positives for risk tolerance in this region?
+
+**Next Steps:**
+- Propose a pilot on cameras 10–20 to test dynamic thresholding using real-time meteorological inputs starting June 15.
+- Collaborate with hardware team to explore integration of low-cost particulate sensors near cameras prone to dust interference.
+- Update anomaly classification scripts to incorporate temporal persistence filters to reduce transient noise-triggered alarms.
+- Schedule a review meeting with field operations on June 20 to discuss impact on dispatch protocols.
+
+I'll update this note with progress and any new findings. Feedback welcome, especially from the data science and field teams.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/catastrophe-response-data-latency.md b/test/fixtures/ranking-shapes/source-a/notes/catastrophe-response-data-latency.md
new file mode 100644
index 0000000000..7a8d57c3b5
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/catastrophe-response-data-latency.md
@@ -0,0 +1,11 @@
+---
+type: "note"
+title: "Catastrophe response data latency"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Catastrophe response data latency
+
+Yesterday’s sync focused on cutting down the latency from satellite image capture to issuing alerts during catastrophes. Right now, our average delay is about 6 hours—too long for flood or hurricane response teams. We measured pipeline segments: data ingestion takes roughly 1.5 hours due to satellite downlink schedules and ground station availability. Preprocessing and roof condition scoring add another 2 hours, and alert generation/dispatch about 2.5 hours.
+
+Key bottlenecks identified: satellite revisit frequency, file transfer bandwidth, and cloud processing queue delays. Open questions: Can we prioritize catastrophe-area tiles in the ingestion queue? Would edge computing near ground stations be feasible? Next steps: run a pilot with prioritized ingest for last week’s Markley flood event, and investigate partnerships for dedicated bandwidth with the TerraSat network.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/chair-utilization-optimization-tips.md b/test/fixtures/ranking-shapes/source-a/notes/chair-utilization-optimization-tips.md
new file mode 100644
index 0000000000..818ececef5
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/chair-utilization-optimization-tips.md
@@ -0,0 +1,41 @@
+---
+type: "note"
+title: "Chair Utilization Optimization Tips"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Chair Utilization Optimization Tips
+
+Chair Utilization Optimization Tips — Working Note
+Author: Ephik Lin, Scheduling Analyst
+Date: 2024-05-15
+
+---
+
+**Observations:**
+- Current average chair utilization across our four clinics is 68%, varying widely by location: Downtown Clinic hits 75%, while Eastside lags at 60%.
+- Peak appointment requests happen T/Th mornings and Friday afternoons, but these periods also coincide with the longest average appointment durations (55 mins vs. 40 mins weekday mid-afternoon).
+- Patient no-show rates are around 12% system-wide, spiking to 18% in the Eastside clinic.
+- Recall campaign effectiveness varies: 38% recall completion at Downtown but only 25% at Westgate.
+- Insurance claim processing delays sometimes lead to billing errors, impacting cash flow and patient satisfaction.
+
+**Measurements:**
+- Average chair downtime between appointments is roughly 15 minutes, primarily due to cleaning and room prep.
+- Around 20% of appointment slots are booked for emergency or walk-in patients, who often disrupt planned schedules.
+- Appointment length variance within the same treatment type ranges up to ±10 minutes, suggesting inconsistent scheduling guidelines or provider habits.
+
+**Open Questions:**
+- Can we tighten appointment duration estimates without pressuring providers or reducing care quality?
+- Would implementing staggered shift start times for hygienists and dentists reduce bottlenecks?
+- How much can automated reminders and easier rescheduling reduce no-show rates?
+- Is it feasible to introduce “fast-track” slots for minor treatments during peak hours?
+- What insurance claim errors most impact billing speed and how can we proactively flag them?
+
+**Next Steps:**
+- Pilot a revised scheduling template at Downtown Clinic with 5-minute reduced buffer times between appointments and track impact over 6 weeks.
+- Survey providers about appointment time expectations and potential for standardization.
+- Coordinate with IT to analyze top 3 insurance claim error types from last quarter.
+- Test enhanced SMS reminder campaigns and simple online rescheduling at Eastside Clinic to see if no-shows drop below 10%.
+- Explore potential for setting specific “express care” slots to ease peak loads without compromising patient satisfaction.
+
+Will report back with initial data by July 1.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/challenges-in-mastery-tracking-implementation.md b/test/fixtures/ranking-shapes/source-a/notes/challenges-in-mastery-tracking-implementation.md
new file mode 100644
index 0000000000..184c7a37ff
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/challenges-in-mastery-tracking-implementation.md
@@ -0,0 +1,25 @@
+---
+type: "note"
+title: "Challenges in Mastery Tracking Implementation"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Challenges in Mastery Tracking Implementation
+
+During the recent rollout of mastery tracking across three districts (Hillside, Maple Valley, and Riverview), we noticed several recurring challenges. First, inconsistent data entry by teachers led to gaps in student progress timelines—about 18% of entries from Hillside were missing key fields. Secondly, integration with district SIS systems proved more variable than expected; Riverview’s older SIS required custom middleware, adding 2 extra weeks to deployment. Third, many teachers expressed confusion over dashboard metrics, with 42% requesting additional training.
+
+Common obstacles:
+- Data entry inconsistencies
+- SIS integration variability
+- Dashboard usability concerns
+
+Proposed solutions include:
+- Introducing mandatory data validation with inline prompts
+- Developing standardized API connectors for top 5 SIS platforms
+- Creating role-specific dashboard tutorials and quick reference guides
+
+Open questions:
+- How to best incentivize consistent teacher usage?
+- What’s the optimal frequency for mastery updates to balance accuracy with workload?
+
+Next steps: pilot data validation in Maple Valley starting 8/14; coordinate with engineering on middleware standardization; draft training materials for teacher feedback sessions.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/container-tracking-system-overview.md b/test/fixtures/ranking-shapes/source-a/notes/container-tracking-system-overview.md
new file mode 100644
index 0000000000..4eef036f9f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/container-tracking-system-overview.md
@@ -0,0 +1,32 @@
+---
+type: "note"
+title: "Container Tracking System Overview"
+tags: ["maritime-port-operations"]
+---
+
+# Container Tracking System Overview
+
+Container Tracking System Overview – Working Note
+
+Date: 2024-06-15
+Author: Lina M., Operations Tech Analyst
+
+Observations:
+Our current system integrates GPS-based trackers on each container, supplemented by RFID scans at gate entries and exits. Real-time location updates push every 30 seconds via 4G modems, which generally maintain 95% uptime in the port area. Crane telemetry feeds also tag container moves, enhancing positional accuracy within ±2 meters. Customs clearance statuses are linked via API to our middleware, updating container clearance flags instantly.
+
+Measurements:
+- Average container position update latency: 45 seconds
+- Data packet loss during peak hours: ~8%
+- RFID scan accuracy: 98.7% at entry/exit points
+- Crane telemetry uptime: 99.2%
+- Customs API response time: 1.2 seconds on average
+
+Open Questions:
+- Can we reduce update latency to under 20 seconds with edge computing?
+- How to handle data gaps more effectively during 4G outages?
+- Is there a viable alternative to RFID for more accurate gate scanning?
+
+Next Steps:
+- Trial edge processing modules on a small container subset next month
+- Investigate integration of LoRaWAN sensors for redundancy
+- Coordinate with Customs IT for enhanced API robustness testing
diff --git a/test/fixtures/ranking-shapes/source-a/notes/degradation-modeling-best-practices.md b/test/fixtures/ranking-shapes/source-a/notes/degradation-modeling-best-practices.md
new file mode 100644
index 0000000000..695b3d913a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/degradation-modeling-best-practices.md
@@ -0,0 +1,23 @@
+---
+type: "note"
+title: "Degradation Modeling Best Practices"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Degradation Modeling Best Practices
+
+Degradation Modeling Best Practices — Working Note
+
+From recent modeling runs on the Helios 2MWh battery in the East Valley project, a few observations have emerged regarding accurately predicting lifespan under frequent grid cycling:
+
+- **Cycle Counting Method:** Using rainflow counting on power dispatch profiles yields a much tighter correlation to observed capacity fade than simple calendar time or throughput metrics. The stress from depth-of-discharge swings is clearly nonlinear and must be captured.
+- **Temperature Effects:** Ambient temperature variation during cycling contributes significantly to degradation rates. Including hourly temperature data from the microclimate sensor improved model fit by about 15%.
+- **Rest Periods:** Incorporating rest-time degradation—modeling open-circuit voltage relaxation during idle hours—further refined capacity fade estimates, especially during low-utilization periods.
+
+Open questions and next steps:
+
+- How to best calibrate calendar fade parameters vs cycle fade for batteries under irregular, grid-scale dispatch profiles? Current lab data is from steady, repetitive cycling.
+- Can adding impedance spectroscopy data from periodic field tests improve parameter identification?
+- Planning to run a controlled 6-month test with varied SoC windows, simulating peak vs off-peak dispatch, to isolate cycle stress effects.
+
+Overall, the combined approach of rainflow cycle counting + temperature + rest modeling seems promising for next-gen degradation forecasts. Feedback welcome!
diff --git a/test/fixtures/ranking-shapes/source-a/notes/dispatch-software-user-feedback.md b/test/fixtures/ranking-shapes/source-a/notes/dispatch-software-user-feedback.md
new file mode 100644
index 0000000000..ecbdbfe9bf
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/dispatch-software-user-feedback.md
@@ -0,0 +1,31 @@
+---
+type: "note"
+title: "Dispatch Software User Feedback"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Dispatch Software User Feedback
+
+Dispatch Software User Feedback – Working Note
+
+Date: 2024-06-15
+Author: Ephik T., Product Analyst
+
+Summary:
+Collected feedback during the last two weeks from 7 grid storage operators using the DispatchPro v2.3 platform. Overall usability is rated at 7.8/10, with specific pain points around the forecasting interface and real-time adjustment capabilities.
+
+Key observations:
+- Operators appreciate the clear visualization of state-of-charge and degradation estimates but report that the interface lags during high-frequency data updates (notably between 5-7 PM local peak hours).
+- The manual override feature, introduced in v2.2, is praised but lacks granularity; operators want finer control over charge/discharge ramp rates.
+- Several users requested an integrated alert system for interconnection queue status changes, as many manage multiple projects simultaneously and are currently tracking this externally.
+- Degradation modeling outputs are considered accurate but could benefit from scenario comparisons (e.g., stress testing under different cycling profiles).
+
+Open questions:
+- Can we optimize data refresh intervals without sacrificing accuracy, especially during peak dispatch periods?
+- What UI designs could better accommodate the manual ramp rate adjustments without clutter?
+- How feasible is integrating real-time queue updates from the grid operator’s API?
+
+Next steps:
+- Schedule a UX workshop focused on ramp control improvements (tentative July 2).
+- Coordinate with the grid operator team to explore API access for queue status.
+- Prototype a scenario comparison dashboard for degradation models by end of Q3.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/dynamic-redlining-benefits.md b/test/fixtures/ranking-shapes/source-a/notes/dynamic-redlining-benefits.md
new file mode 100644
index 0000000000..80d346a8a4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/dynamic-redlining-benefits.md
@@ -0,0 +1,17 @@
+---
+type: "note"
+title: "Dynamic Redlining Benefits"
+tags: ["legal-contract-automation"]
+---
+
+# Dynamic Redlining Benefits
+
+Working Note: Dynamic Redlining Benefits
+
+Over the past month, I’ve been digging into how our dynamic redlining feature impacts legal contract review cycles. Initial observations confirm that automating change tracking significantly speeds up the process. In our pilot with the Procurement Dept, review times dropped from an average of 5.2 days to 2.8 days per contract—a 46% improvement. Lawyers report fewer back-and-forths since every edit is automatically highlighted and contextualized, reducing miscommunication.
+
+Error rates also appear to decline. Our QA audits found that contracts processed with dynamic redlining had 30% fewer overlooked changes compared to manual reviews. This suggests the tool not only speeds things up but also improves accuracy.
+
+Open questions remain around edge cases, such as how the system handles simultaneous edits from multiple users on deeply nested clauses. We also want to measure the impact on downstream teams, like compliance and finance, which might spot issues earlier now.
+
+Next steps: coordinate with the UX team to refine multi-user editing flows, and set up analytics to track end-to-end contract lifecycle times across teams. Gathering quantitative data will help us build a stronger business case for wider rollout.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/improving-clause-extraction-precision.md b/test/fixtures/ranking-shapes/source-a/notes/improving-clause-extraction-precision.md
new file mode 100644
index 0000000000..d9cc313aa9
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/improving-clause-extraction-precision.md
@@ -0,0 +1,32 @@
+---
+type: "note"
+title: "Improving Clause Extraction Precision"
+tags: ["legal-contract-automation"]
+---
+
+# Improving Clause Extraction Precision
+
+Working Note: Improving Clause Extraction Precision
+
+Date: 2024-06-10
+Author: Kelmere (NLP Engineer)
+
+Observations:
+- Current clause detection models achieve ~82% precision, but false positives remain an issue, especially with boilerplate language and nested clauses.
+- Most false positives stem from generic language patterns that overlap with non-clause text, e.g., introductory phrases or definitions sections.
+- Our baseline uses a BiLSTM-CRF on token sequences with standard legal embeddings (trained on 2M contracts).
+
+Measurements:
+- On the latest test batch (1,000 contracts), about 15% of extracted clauses are either partial or incorrectly flagged segments.
+- False positives are clustered in “indemnity” and “termination” categories, suggesting category-specific tuning might help.
+- Using stricter token-level thresholds reduces false positives but cuts recall by ~7%.
+
+Open questions:
+- Would integrating syntactic parsing or dependency trees help disambiguate clause boundaries?
+- Can we leverage contract metadata (contract type, jurisdiction) to contextualize extraction?
+- How feasible is adding a secondary classifier to filter out borderline cases post-extraction?
+
+Next steps:
+- Prototype a dependency parser-based approach on a subset of contracts.
+- Experiment with a lightweight binary classifier on extracted clauses to re-score confidence.
+- Discuss with legal SMEs about common clause variations to inform model features.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/improving-flood-extent-accuracy.md b/test/fixtures/ranking-shapes/source-a/notes/improving-flood-extent-accuracy.md
new file mode 100644
index 0000000000..9ef8cce6ca
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/improving-flood-extent-accuracy.md
@@ -0,0 +1,36 @@
+---
+type: "note"
+title: "Improving flood extent accuracy"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Improving flood extent accuracy
+
+Since last week’s update, I’ve been focusing on the flood extent model, especially around urban flood zones where false positives have been a persistent issue. The new adjustments we rolled out in version 4.3.2 seem promising but also raise a few questions.
+
+**Observations:**
+
+- False positive detections in dense urban areas dropped by roughly 28% compared to v4.3.1 when we applied the new urban land masking combined with adjusted NDWI thresholds.
+- The adjusted threshold for the Normalized Difference Water Index (NDWI) was lowered from 0.35 to 0.28 in these zones, which aligns better with the observed spectral signatures during minor floods.
+- However, in some mixed residential-commercial zones, we noticed occasional underestimation of flood extent, particularly in areas with reflective rooftop materials that confuse the model.
+- Visual comparison against ground truth data from the March 2024 Pinecrest flood event shows improved precision but a slight dip in recall (approximately 5%).
+
+**Measurements:**
+
+- Current precision in urban flood zones: 82.3% (up from 64.5%)
+- Recall in same zones: 75.1% (down from 79.6%)
+- Overall F1 score for urban zones: 78.5% (previously 71.2%)
+
+**Open Questions:**
+
+- Could incorporating additional spectral bands (e.g., short-wave infrared) help differentiate reflective surfaces from open water more reliably?
+- Are there specific urban materials or roofing types that disproportionately cause false negatives?
+- Should we explore dynamic thresholding based on land use classification instead of static NDWI thresholds?
+
+**Next Steps:**
+
+- Set up a focused experiment adding SWIR bands to the input features for a subset of urban flood scenes.
+- Pull building and roofing material metadata from our partner insurers to analyze correlation with misclassification.
+- Consider collaborating with the geospatial feature team to prototype a land use-aware thresholding method by next sprint.
+
+Will circle back with preliminary results by end of next week. Overall, the adjustments are moving the needle in the right direction but fine-tuning remains critical.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/insight-on-sensor-tag-battery-life.md b/test/fixtures/ranking-shapes/source-a/notes/insight-on-sensor-tag-battery-life.md
new file mode 100644
index 0000000000..07107ea31d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/insight-on-sensor-tag-battery-life.md
@@ -0,0 +1,38 @@
+---
+type: "note"
+title: "Insight on Sensor Tag Battery Life"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Insight on Sensor Tag Battery Life
+
+Insight on Sensor Tag Battery Life
+
+Date: March 14, 2024
+Author: Ephik Lin, Logistics Tech Team
+
+---
+
+**Background:**
+We’re currently evaluating sensor tags used in the ArcticChill vaccine shipments for maintaining real-time temperature monitoring during transit. The tags track temperature, humidity, and location, crucial for cold-chain integrity. With the new multi-day routes extending up to 10 days internationally (e.g., from Norvalley to Southeast Trinica), battery life has become a bottleneck.
+
+**Observations & Measurements:**
+- Current sensor tags (Model: ChillTrack-X5) advertise 7-8 days of continuous operation at 10-minute ping intervals. Our field tests show about 6.5 days before battery depletion under typical shipment conditions (ambient temp ~4°C inside the insulated containers).
+- Extended trips lasting 8-10 days risk losing data coverage during the last 1-3 days, increasing the risk of unnoticed temperature excursions.
+- Reducing ping frequency to 15 minutes extends battery life to ~9 days but delays anomaly detection, which is unacceptable for vaccine safety.
+- Tags with larger batteries (prototype ChillTrack-X6) show promise—lasting 11-12 days at 10-minute intervals during lab tests—but are 25% heavier and cost ~40% more. Impact on packaging and shipping weight capacity is a concern.
+- Data transmission attempts over satellite networks during ocean transit consume more power than anticipated, contributing to quicker battery drain.
+
+**Open Questions:**
+- Can we optimize firmware to reduce power consumption during transmission bursts without compromising data accuracy?
+- Are there alternative low-power communication protocols compatible with our current infrastructure?
+- What is the cost-benefit of upgrading to ChillTrack-X6 versus investing in enhanced container insulation to reduce sensor activity frequency?
+- Is there a feasible mid-route battery swap or recharge strategy for the tags in transit hubs like Trinica Port?
+
+**Next Steps:**
+- Schedule a deep dive with firmware engineers next week to review power management algorithms.
+- Run a controlled shipment with ChillTrack-X6 tags on an 8-day route to evaluate real-world weight and cost impact.
+- Liaise with the packaging team to assess feasibility of optimizing container insulation.
+- Initiate a feasibility study on in-transit battery swap logistics by end of Q2.
+
+Staying ahead on battery life is critical as we scale international vaccine distribution. Will update once we have firmware test results.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/interconnection-queue-challenges-overview.md b/test/fixtures/ranking-shapes/source-a/notes/interconnection-queue-challenges-overview.md
new file mode 100644
index 0000000000..b2487cccf6
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/interconnection-queue-challenges-overview.md
@@ -0,0 +1,44 @@
+---
+type: "note"
+title: "Interconnection Queue Challenges Overview"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Interconnection Queue Challenges Overview
+
+Interconnection Queue Challenges Overview – Working Note
+
+Date: 2024-06-12
+Author: Ephik L., Grid Analytics Team
+
+---
+
+**Observations**
+
+Over the last 6 months, we’ve tracked interconnection queue progress for 58 battery storage projects across the Northridge and Central Plains grids. The average queue time has ballooned from 14 months to nearly 27 months, with some projects stuck over 3 years. This delay drastically impacts our dispatch optimization and revenue forecasting models because project timelines become unpredictable.
+
+Key bottlenecks identified so far:
+
+- **Network Stability Studies:** About 40% of projects are delayed awaiting completed stability impact assessments. The complexity of battery inverter interactions with local grid controls is causing repeated study revisions.
+- **Upgrade Cost Allocations:** Developers face protracted negotiations over who pays for grid upgrades. This has led to several projects pausing their applications or withdrawing entirely.
+- **Queue Backlogs:** The Northeast Interconnect Authority has a backlog exceeding 250GW, with battery projects making up ~35%. Their processing capacity has not scaled with submission growth.
+
+**Measurements**
+
+- Average interconnection delay: 26.8 months (target was 12 months)
+- Withdrawal rate: 18% of proposed battery projects in queues last year (up from 7% two years ago)
+- Studies re-submission frequency: On average 2.7 rounds per project for stability impacts
+
+**Open Questions**
+
+- How does increasing frequency of re-submissions correlate with project size or battery chemistry type?
+- Can predictive degradation models help prioritize which projects are less likely to change specs and thus reduce re-work?
+- What impact do interconnection delays have on our market bidding algorithms when project commissioning shifts unpredictably?
+
+**Next Steps**
+
+- Collaborate with the Grid Planning team to get detailed timelines on stability assessment steps.
+- Analyze queue withdrawal cases to identify common financial or technical thresholds triggering them.
+- Run simulations incorporating varying queue delay scenarios to assess sensitivity of dispatch schedules and degradation cost forecasts.
+
+Keeping these insights updated will be critical as we refine our dispatch software to better accommodate real-world interconnection realities.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/machine-learning-model-updates.md b/test/fixtures/ranking-shapes/source-a/notes/machine-learning-model-updates.md
new file mode 100644
index 0000000000..5877b53a91
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/machine-learning-model-updates.md
@@ -0,0 +1,29 @@
+---
+type: "note"
+title: "Machine Learning Model Updates"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Machine Learning Model Updates
+
+Since last sprint, the updated yield forecasting models have shown promising gains in accuracy, particularly with the integration of new nutrient dosing data streams from Tower 3 and 5. Preliminary results from the April batch show RMSE dropping from 12.4% to 8.7%, which is a noticeable improvement though still shy of our 6% target.
+
+Key observations:
+- Incorporating real-time EC (electrical conductivity) fluctuations helped reduce noise in the input features.
+- The newer LSTM variant captures complex temporal patterns better than the previous GRU-based models.
+- However, there are still sporadic outliers when unexpected lighting adjustments occur, especially during maintenance windows.
+
+Measurements:
+- Model A (baseline GRU): 12.4% RMSE on validation set.
+- Model B (new LSTM + EC data): 8.7% RMSE.
+- Yield variance explained improved from 72% to 85%.
+
+Open questions:
+- How do we best handle rare events like manual light overrides? Should these be excluded or modeled explicitly?
+- Is there enough historical data from Tower 5 to justify a dedicated model or fine-tuning?
+- How stable is performance when scaling from one crop cycle to another?
+
+Next steps:
+- Explore anomaly detection to flag maintenance-induced lighting changes.
+- Test transfer learning approaches for Tower 5 using limited data.
+- Set up weekly retraining pipeline to keep models current with evolving nutrient profiles.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/maintenance-checklist-for-grow-towers.md b/test/fixtures/ranking-shapes/source-a/notes/maintenance-checklist-for-grow-towers.md
new file mode 100644
index 0000000000..91ab752b0e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/maintenance-checklist-for-grow-towers.md
@@ -0,0 +1,30 @@
+---
+type: "note"
+title: "Maintenance Checklist for Grow Towers"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Maintenance Checklist for Grow Towers
+
+Maintenance Checklist for Grow Towers – Working Note
+
+Date: 2024-06-15
+Technician: Lina M.
+
+Observations:
+- Humidity sensors in Tower A3 showed fluctuations between 70-85% over last 48 hours, exceeding the target 75±5%. Possible sensor drift or localized airflow issues.
+- Nutrient dosing pumps on Tower B1 are delivering slightly less volume than programmed—measured output at 9.1 ml/min vs. 10 ml/min expected. No alarms triggered yet.
+- LED light intensity readings stable across all zones, averaging 380 µmol/m²/s, matching setpoint.
+
+Measurements:
+- pH levels in Tower A tanks steady at 6.0-6.2, within optimal range for lettuce crops.
+- Air temperature varies minimally, 22.5-23.0°C, no hotspots detected.
+
+Open Questions:
+- Are the humidity sensor anomalies due to hardware degradation or microclimate effects?
+- Should we recalibrate nutrient dosing pumps or replace worn parts preemptively?
+
+Next Steps:
+- Schedule sensor recalibration for Tower A3 by next week.
+- Inspect and test dosing pump seals on Tower B1 by end of this week.
+- Monitor crop leaf turgor daily to correlate with environmental data.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/reducing-claim-denial-rates.md b/test/fixtures/ranking-shapes/source-a/notes/reducing-claim-denial-rates.md
new file mode 100644
index 0000000000..252bfb019d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/reducing-claim-denial-rates.md
@@ -0,0 +1,26 @@
+---
+type: "note"
+title: "Reducing Claim Denial Rates"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Reducing Claim Denial Rates
+
+Observations:
+We've noticed that claim denial rates have crept up from 8.3% in Q1 to 11.7% in April and May, which is worrying given our usual benchmark of under 9%. Most denials seem tied to miscoding of procedure codes and missing pre-authorization details. The billing team spends around 3 hours daily rechecking these claims, slowing down the billing cycle from an average of 5 days to nearly 8 days.
+
+Measurements:
+- 62% of denied claims are due to coding errors (mostly incorrect CDT codes)
+- 23% are due to missing or expired insurance pre-authorizations
+- Average resolution time per claim denial is 4.2 days
+- Denials impact chair utilization indirectly by delaying payment cycles and follow-up scheduling
+
+Open Questions:
+- Can we integrate a coding validation tool directly into our scheduling and billing software?
+- How feasible is a daily automated report flagging high-risk claims before submission?
+- What training refreshers or quick reference guides might reduce human error in code selection?
+
+Next Steps:
+- Schedule a brainstorming session with billing and coding leads next Wednesday
+- Pilot a spreadsheet-based pre-submission checklist for high-volume procedures starting Monday
+- Reach out to software vendor about API options for real-time code validation
diff --git a/test/fixtures/ranking-shapes/source-a/notes/safety-monitoring-algorithm-tuning.md b/test/fixtures/ranking-shapes/source-a/notes/safety-monitoring-algorithm-tuning.md
new file mode 100644
index 0000000000..f81eafe732
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/safety-monitoring-algorithm-tuning.md
@@ -0,0 +1,37 @@
+---
+type: "note"
+title: "Safety Monitoring Algorithm Tuning"
+tags: ["construction-site-robotics"]
+---
+
+# Safety Monitoring Algorithm Tuning
+
+Over the past two weeks, I've been running a series of tests on the latest iteration of our safety monitoring AI, specifically the hazard detection module used on the North Ridge Bridge project. The improvements we integrated in version 3.4.1, mainly the additional training on edge-case construction scenarios and the updated thermal imaging data pipeline, seem to be paying off.
+
+Observations:
+
+- Detection accuracy for fall hazards has increased from a baseline of 78.3% to 87.6% in controlled test environments. This is based on about 1200 annotated video frames collected last month.
+- Near-miss events flagged by the system have reduced false positives by roughly 12%, improving overall alert precision.
+- The AI struggles more with detecting hazards related to loose debris on uneven terrain, especially during low-light conditions. False negatives in these cases remain around 15%.
+- Drone footage processed through the updated algorithm shows improved hazard identification on scaffold platforms, with a 9% boost in true positive rates.
+
+Measurements:
+
+- The precision-recall curve for fall hazard detection has shifted, with an AUC increase from 0.81 to 0.89 after the latest tuning.
+- Thermal imaging integration contributes about a 6% boost in detection accuracy where visual cues are partially occluded (verified on 450 clips).
+- Processing latency remains within our target of 200ms per frame, averaging 185ms on the current embedded GPU hardware.
+
+Open questions:
+
+- How can we better handle low-light and debris-related hazards? Would integrating alternative sensor data (e.g., lidar) help, or should we gather more diverse thermal imaging samples?
+- Given the modest increase in processing load, is there room to expand the model size or complexity without exceeding real-time constraints?
+- Should we consider retraining with synthetic data to cover rare hazard scenarios identified from recent site incident reports?
+
+Next steps:
+
+- Schedule a 3-day data collection run on the East Valley site focusing on low-light hazard conditions and debris presence.
+- Prototype a lidar data fusion module and evaluate impact on detection accuracy in parallel.
+- Review model pruning techniques to balance improved sensitivity with latency budgets.
+- Prepare updated documentation and retraining pipeline for version 3.5 milestone, aiming for deployment in mid-May.
+
+Overall, these incremental improvements feel promising but highlight the complexity of real-world conditions on active construction sites. Open to feedback on the proposed next steps or alternative tuning strategies.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/shipment-delay-impact-analysis.md b/test/fixtures/ranking-shapes/source-a/notes/shipment-delay-impact-analysis.md
new file mode 100644
index 0000000000..64d4862c43
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/shipment-delay-impact-analysis.md
@@ -0,0 +1,26 @@
+---
+type: "note"
+title: "Shipment Delay Impact Analysis"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Shipment Delay Impact Analysis
+
+Shipment Delay Impact Analysis – Working Note
+
+Over the past quarter, we’ve noticed a consistent pattern: shipments delayed more than 24 hours show a significantly higher rate of temperature excursions beyond the 2-8°C safe range. Our data from 420 vaccine shipments across the Midwest cluster indicates a 35% excursion rate for these delayed shipments, compared to just 8% for on-time deliveries.
+
+Key observations:
+- Delays often occur at regional sorting hubs, especially the Cedar Springs facility.
+- Sensor tags reveal that the temperature begins drifting within 12 hours of delay onset, suggesting cold packs start losing efficacy sooner than expected.
+- Excursions mostly happen during the last-mile leg, where transport conditions are less controlled.
+
+Open questions:
+- Are current insulation materials adequate for delays exceeding 24 hours?
+- Does handling at sorting hubs contribute to temperature rise, or is it purely due to time?
+- How effective are our contingency protocols when delays occur?
+
+Next steps:
+- Run a controlled test with extended delay simulations using new gel pack formulations.
+- Collaborate with the Cedar Springs hub team to review handling procedures.
+- Update risk models to include delay duration as a critical factor for excursion prediction.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/training-protocol-for-cold-chain-handlers.md b/test/fixtures/ranking-shapes/source-a/notes/training-protocol-for-cold-chain-handlers.md
new file mode 100644
index 0000000000..1989161248
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/training-protocol-for-cold-chain-handlers.md
@@ -0,0 +1,27 @@
+---
+type: "note"
+title: "Training Protocol for Cold-Chain Handlers"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Training Protocol for Cold-Chain Handlers
+
+Working Note: Training Protocol for Cold-Chain Handlers
+Author: Ephik Tran
+Date: 2024-06-12
+
+Over the past three weeks, I’ve been shadowing cold-chain handlers at the MedTemp Logistics hub in Bayview. Initial observations confirm that inconsistent handling during pallet transfers correlates with minor temperature spikes in 10% of monitored vaccine shipments. Most notably, episodes of brief lid openings—averaging 12 seconds longer than SOPs allow—occur during sorting, potentially increasing contamination risk.
+
+Using the new TempSense sensor tags, we tracked container temperature variations tied directly to handling times. Data shows that shipments where handlers follow the scripted “Quick Seal” routine maintain stable temps within ±0.5°C, compared to a ±1.2°C variance otherwise. This supports the value of strict procedural adherence.
+
+Open questions:
+- Can we simplify the “Quick Seal” steps further without compromising safety to improve compliance?
+- What’s the minimum retraining frequency to maintain skill levels, given high staff turnover (~22% quarterly)?
+- How do different glove materials affect handling times and contamination risks?
+
+Next steps:
+- Pilot a revised training video emphasizing the “Quick Seal” routine next month.
+- Collaborate with Quality Assurance on glove trials starting July 5th.
+- Extract and analyze TempSense data post-training for measurable improvements.
+
+Overall, standardizing handling procedures looks promising to reduce temp deviations and contamination risk, but fine-tuning training content and frequency is critical.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/vegetation-growth-seasonal-trends.md b/test/fixtures/ranking-shapes/source-a/notes/vegetation-growth-seasonal-trends.md
new file mode 100644
index 0000000000..10d23ee24b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/vegetation-growth-seasonal-trends.md
@@ -0,0 +1,13 @@
+---
+type: "note"
+title: "Vegetation Growth Seasonal Trends"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Vegetation Growth Seasonal Trends
+
+In reviewing the past three years of camera network data from the Sierra Ridge and Pine Valley zones, we’ve observed clear seasonal vegetation growth patterns impacting line clearance priorities. Growth rates peak sharply from early April through late June, with an average green-up velocity of about 2.7 cm per day on dominant brush species like sage scrub and manzanita. This rapid growth coincides with rising temperatures and the onset of the spring rains.
+
+Our line inspection drones’ LiDAR scans show maximum canopy encroachment reaching 1.2 meters into clearance corridors during this period, significantly increasing outage risk. Conversely, from October through February, growth nearly halts, aligning with the dry season and cooler temps.
+
+Open questions remain about how microclimates within the ranges alter these patterns—some valley bottoms show delayed green-up by 2–3 weeks compared to ridges. Next steps involve deploying additional ground sensors in these microzones to refine our vegetation growth models and optimize inspection scheduling accordingly. Also, integrating these seasonal trends into risk scoring algorithms could sharpen outage predictions.
diff --git a/test/fixtures/ranking-shapes/source-a/notes/vendor-contract-compliance-tips.md b/test/fixtures/ranking-shapes/source-a/notes/vendor-contract-compliance-tips.md
new file mode 100644
index 0000000000..577c0a19d0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/notes/vendor-contract-compliance-tips.md
@@ -0,0 +1,45 @@
+---
+type: "note"
+title: "Vendor Contract Compliance Tips"
+tags: ["legal-contract-automation"]
+---
+
+# Vendor Contract Compliance Tips
+
+Vendor Contract Compliance Tips — Working Note by Kelmere, Contract Analyst
+
+Date: 2024-06-15
+
+—
+
+**Observations:**
+
+- In the last 30 vendor contracts reviewed through Project Redline, we noticed a 22% rate of clauses that deviate from our standard procurement policies—mostly around indemnity and payment terms.
+- Clause extraction models perform well on standard templates but struggle with variations in language, especially in vendor-specific addendum sections.
+- The current automated redlining tool flags an average of 15 potential compliance issues per contract, but manual review confirms about 40% are false positives, leading to reviewer fatigue.
+- Procurement policy updates from April 2024 introduced stricter data privacy requirements, but only 60% of contracts in the last quarter reflect those changes.
+
+**Measurements:**
+
+- Accuracy of clause extraction for indemnity clauses: 87%
+- Accuracy for data privacy clauses: 72%
+- Average time for manual review per contract post-automation: 45 minutes (down from 75 minutes before automation)
+- Percentage of contracts with non-compliant termination clauses: 18%
+
+**Open Questions:**
+
+- Can we improve clause extraction accuracy by fine-tuning models specifically on vendor addenda and non-standard language?
+- How to reduce false positives in automated redlining without sacrificing the detection of critical compliance issues?
+- Should we implement a mandatory checklist for reviewers focusing on newly updated procurement policies to ensure completeness?
+- What is the best way to integrate procurement policy updates into the clause extraction model’s training data promptly?
+
+**Next Steps:**
+
+- Coordinate with the ML team to run a focused training cycle on 50 recent vendor addenda to improve clause extraction recall.
+- Propose a pilot of an enhanced filtering algorithm for redlining alerts to reduce false positives, targeting a 25% reduction.
+- Draft a standardized reviewer checklist outlining key procurement rules, especially data privacy and termination clauses.
+- Schedule a cross-team meeting with procurement and legal to discuss rapid policy update integration workflows by end of Q3 2024.
+
+—
+
+This note is a snapshot toward refining how we ensure vendor contracts strictly follow our evolving procurement policies while balancing automation efficiency and human oversight. Further iterations will be needed as models and policies evolve.
diff --git a/test/fixtures/ranking-shapes/source-a/people/amadeo-ibbdale.md b/test/fixtures/ranking-shapes/source-a/people/amadeo-ibbdale.md
new file mode 100644
index 0000000000..bb8d0bf2bc
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/amadeo-ibbdale.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Amadeo Ibbdale"
+tags: ["legal-contract-automation"]
+---
+
+# Amadeo Ibbdale
+
+Amadeo Ibbdale is a Procurement Review Analyst at Tesstun Works, an AI-driven platform specializing in automating clause extraction and redlining for procurement teams. Joining Tesstun Works in early 2023, Amadeo focuses on streamlining vendor contract compliance workflows by integrating advanced automation with practical procurement oversight.
+
+Amadeo began his career in 2015 at VendorSync Corp., where he played a pivotal role in the development and implementation of the dynamic approval routing system known as Project FluxPath. This innovation reduced vendor contract review times by 40%, allowing procurement teams to handle increased volumes without sacrificing compliance rigor. His expertise in contract lifecycle management and workflow optimization has been instrumental in shaping efficient review processes.
+
+Notable projects at Tesstun Works include the CodexRed initiative, which enhanced clause extraction accuracy by 15% through iterative machine learning model adjustments, and the SwiftReview pilot program, focusing on reducing manual redlining efforts.
+
+Known for his collaborative working style, Amadeo regularly partners with cross-functional teams, including AI engineers, procurement managers, and compliance officers. His approach emphasizes clear communication and iterative feedback to ensure solutions align with both legal standards and operational needs.
+
+Current employer: [[companies/tesstun-works]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/bram-holmmoor.md b/test/fixtures/ranking-shapes/source-a/people/bram-holmmoor.md
new file mode 100644
index 0000000000..f24dfcbd62
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/bram-holmmoor.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Bram Holmmoor"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Bram Holmmoor
+
+Bram Holmmoor is a Geospatial Analyst at Nexlet Robotics, a company specializing in automated roof condition scoring to accelerate insurance claims processing. Since joining Nexlet in 2018, Bram has focused on interpreting post-event satellite imagery to assess structural damage, enabling faster, more accurate claims decisions.
+
+Before Nexlet, Bram worked from 2014 to 2018 at SkyTrace Analytics, where he contributed to flood extent modeling and catastrophe response projects. Notably, he played a key role in deploying rapid-response mapping tools during the 2017 Hurricane Orion impact simulation, codenamed Project TempestEye, which improved damage detection turnaround by 30%.
+
+Bram’s specialties include multi-spectral image analysis, change detection algorithms, and integrating satellite data with ground-truth reports. His working style emphasizes close collaboration with data scientists, claims adjusters, and field response teams to refine model outputs and prioritize critical areas for inspection.
+
+At Nexlet, Bram frequently partners with the AI development team and emergency response coordinators, ensuring that satellite insights translate into actionable intelligence during disaster recovery efforts.
+
+Current employer: [[companies/nexlet-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/dorrit-ibbmere.md b/test/fixtures/ranking-shapes/source-a/people/dorrit-ibbmere.md
new file mode 100644
index 0000000000..9051242e05
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/dorrit-ibbmere.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Dorrit Ibbmere"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Dorrit Ibbmere
+
+Dorrit Ibbmere is the Recall Campaign Manager at Vorrel Cloud, a leading provider of automation solutions for insurance claim submissions and real-time approval monitoring in dental practices. Since joining Vorrel Cloud in 2020, Dorrit has focused on designing targeted marketing strategies that enhance patient recall and improve appointment adherence.
+
+Her career began in 2014 in healthcare marketing, where she specialized in patient engagement and retention. Dorrit’s expertise centers on leveraging data-driven insights to optimize outreach efforts. Notably, she led the “Project EchoPulse” initiative at Vorrel Cloud, implementing a multi-channel recall outreach program that increased appointment bookings by 25% within the first year.
+
+Dorrit collaborates closely with the data analytics team, software developers, and client success managers to tailor campaigns that align with specific clinic workflows. Her working style emphasizes iterative testing, clear communication, and responsiveness to real-time feedback, ensuring campaigns remain effective and patient-focused.
+
+Current employer: [[companies/vorrel-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/dorrit-lornley.md b/test/fixtures/ranking-shapes/source-a/people/dorrit-lornley.md
new file mode 100644
index 0000000000..b3f81c1454
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/dorrit-lornley.md
@@ -0,0 +1,27 @@
+---
+type: "person"
+title: "Dorrit Lornley"
+tags: ["construction-site-robotics"]
+---
+
+# Dorrit Lornley
+
+Dorrit Lornley is a Robotics Integration Engineer currently employed at Umbaly Cloud, a leading provider of autonomous rebar tying systems designed to improve speed and consistency on construction sites. Since joining Umbaly Cloud in 2020, Dorrit has focused on developing advanced autonomous controllers specifically tailored for rebar tying robots, a critical component in the broader domain of construction site robotics.
+
+Career History
+
+Dorrit began her career in 2014 as a robotics technician at BuildTech Innovations, where she contributed to early-stage prototypes of drone survey systems. In 2017, she transitioned to Titan Scaffold Corp., a major scaffold manufacturing and installation company, where she was promoted to lead engineer and spearheaded the company’s automation upgrade project. This initiative, internally codenamed Project IronClad, involved retrofitting existing scaffold assembly lines with robotic automation, cutting assembly time by 30% and reducing human errors significantly. Her work on Project IronClad earned her recognition among the company’s technical leadership for blending practical engineering solutions with scalable automation.
+
+Specialties
+
+Dorrit’s specialty lies in the design and tuning of autonomous control systems for mechanical arms used in rebar tying. She combines expertise in motion planning algorithms, sensor integration, and real-time feedback control to create systems that adapt dynamically to varying site conditions. Her proficiency with embedded systems and machine learning techniques also enables the robots to improve performance over time through data-driven adjustments.
+
+Notable Projects at Umbaly Cloud
+
+At Umbaly Cloud, Dorrit led the development of the Autotie Controller, a next-generation control platform that increased tying speed by 25% while maintaining a 99.8% tie accuracy rate. She also contributed to Project SkySurvey, integrating drone-based site scanning data to optimize robot paths in real time. Her collaboration with the safety monitoring team helped ensure robots operate safely alongside human workers.
+
+Working Style and Collaborations
+
+Known for a methodical and data-driven approach, Dorrit emphasizes iterative testing and cross-disciplinary teamwork. She frequently collaborates with software developers, mechanical engineers, and site safety officers to ensure the autonomous systems meet both operational and regulatory requirements. Her clear communication and hands-on leadership style foster a productive environment in the rapidly evolving field of construction robotics.
+
+Current employer: [[companies/umbaly-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/dorrit-peltdale.md b/test/fixtures/ranking-shapes/source-a/people/dorrit-peltdale.md
new file mode 100644
index 0000000000..4b868dcef2
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/dorrit-peltdale.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Dorrit Peltdale"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Dorrit Peltdale
+
+Dorrit Peltdale is currently the Data Analytics Manager at Umbix Dynamics, an adaptive tutoring platform that personalizes learning pathways and tracks student mastery. Since joining in 2018, Dorrit has led the development of advanced teacher dashboard metrics and predictive student modeling algorithms that enhance instructional decision-making.
+
+Before Umbix, Dorrit spent five years creating early proficiency trackers at EduMetrics Solutions, which are now adopted by over 50 K-12 districts nationwide. Her work on Project Beacon introduced real-time mastery insights that helped educators tailor lessons dynamically.
+
+Dorrit specializes in translating complex student data into actionable insights, blending statistical rigor with user-centered design. She collaborates closely with product managers, curriculum specialists, and district procurement teams to align analytics with educational goals. Her methodical yet adaptable working style emphasizes prototyping and iterative feedback to refine models and dashboards.
+
+Current employer: [[companies/umbix-dynamics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/dorrit-ravnham.md b/test/fixtures/ranking-shapes/source-a/people/dorrit-ravnham.md
new file mode 100644
index 0000000000..87fce887c4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/dorrit-ravnham.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Dorrit Ravnham"
+tags: ["legal-contract-automation"]
+---
+
+# Dorrit Ravnham
+
+Dorrit Ravnham is a Legal Tech Product Manager currently at Tesstun Works, a leading AI-powered platform specializing in automating clause extraction and redlining for procurement teams. Since joining Tesstun Works in 2021, Dorrit has overseen the product roadmap for their flagship contract lifecycle management solutions, driving innovation to streamline procurement review processes for enterprise clients.
+
+Dorrit began her career in 2014 at Contractica, where she played a pivotal role in launching ClauseSense, an advanced redlining tool designed to accelerate negotiation cycles. Her experience there sharpened her expertise in integrating AI capabilities with user-friendly contract automation workflows. Between 2014 and 2021, she held progressively senior roles focusing on contract analytics and automation technologies.
+
+Her specialties include guiding cross-functional teams in developing scalable contract lifecycle management products, with a strong emphasis on AI-driven clause extraction and collaborative redlining features. Notable projects under her leadership at Tesstun Works include “Project Atlas,” an initiative to enhance multi-party contract collaboration, and “Codex,” designed to improve procurement risk scoring through machine learning insights.
+
+Dorrit is known for her data-driven, iterative working style and typically partners closely with data scientists, UX designers, and procurement domain experts to align product development with evolving market needs.
+
+Current employer: [[companies/tesstun-works]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/eilis-holmstead.md b/test/fixtures/ranking-shapes/source-a/people/eilis-holmstead.md
new file mode 100644
index 0000000000..7fbedecd5e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/eilis-holmstead.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Eilis Holmstead"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Eilis Holmstead
+
+Eilis Holmstead is currently a Wildfire Sensor Engineer at Glimow Studio, a cutting-edge firm specializing in AI-driven camera networks that identify wildfire ignition points in real time. Since joining Glimow Studio in 2021, Eilis has led the refinement of the Studio’s flagship smart sensor suite, elevating detection speed and accuracy under challenging environmental conditions.
+
+Eilis began her career in 2013 at PyroTrack Networks, where she spent seven years developing next-generation sensor algorithms. During her tenure there, she designed a proprietary smoke detection module — codenamed Project EmberEye — that significantly reduced false positives in early wildfire alerts. This innovation became a core component of PyroTrack’s sensor product line and was credited with improving response times by an average of 18%.
+
+Her specialties include computer vision, sensor fusion, and machine learning techniques tailored to complex outdoor environments. Eilis is known for her hands-on, data-driven working style and her proactive collaboration with cross-disciplinary teams, including hardware engineers, field technicians, and utility vegetation managers.
+
+At Glimow Studio, she partners closely with the R&D Lead and the Field Operations team to deploy and calibrate sensor arrays across wildfire-prone regions in the western Uplands territory, contributing directly to mission-critical wildfire mitigation efforts.
+
+Current employer: [[companies/glimow-studio]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/fiora-velkbrook.md b/test/fixtures/ranking-shapes/source-a/people/fiora-velkbrook.md
new file mode 100644
index 0000000000..1dcbed9544
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/fiora-velkbrook.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Fiora Velkbrook"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Fiora Velkbrook
+
+Fiora Velkbrook currently serves as the Vertical Farm Operations Manager at Nexvane Networks, where she oversees multi-tower crop cycles and environmental monitoring within their PhytaTrack project. Since joining Nexvane in 2021, Fiora has played a key role in integrating sensor data with AI algorithms to optimize nutrient dosing schedules, directly contributing to improved crop yields and resource efficiency.
+
+Prior to Nexvane, Fiora managed a pilot vertical farming facility, where she successfully scaled operations from 5 grow towers to 20 towers over two years (2018–2020). This expansion included implementation of precise atmospheric control systems and streamlined harvest logistics, which became foundational for her expertise in large-scale indoor agriculture environments.
+
+Fiora’s specialties encompass nutrient dosing optimization, environmental sensor calibration, and crop cycle synchronization across multiple grow towers. She is known for her methodical working style—combining data-driven decision-making with hands-on adjustments on the farm floor.
+
+In her role, Fiora collaborates closely with the R&D team developing AI models, the engineering group maintaining sensor networks, and the agronomists refining crop protocols. This cross-functional partnership ensures operational excellence and continuous innovation at Nexvane’s vertical farms.
+
+Current employer: [[companies/nexvane-networks]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/gideon-marqvane.md b/test/fixtures/ranking-shapes/source-a/people/gideon-marqvane.md
new file mode 100644
index 0000000000..89d66efe6a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/gideon-marqvane.md
@@ -0,0 +1,23 @@
+---
+type: "person"
+title: "Gideon Marqvane"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Gideon Marqvane
+
+Gideon Marqvane is the founder and CEO of Umbix Dynamics, the creator of MasteryMap, an adaptive tutoring platform designed specifically for K-12 public education. With over 15 years of experience in educational technology and instructional design, Gideon has been a driving force behind personalized learning innovations that support mastery tracking and data-driven teaching.
+
+Gideon conceived the idea for MasteryMap in 2016 while working as a curriculum specialist in the Millgrove School District. Frustrated with one-size-fits-all digital tools that ignored individual student progress, he envisioned a system that would dynamically adapt learning pathways based on each student’s demonstrated mastery of skills and standards. This vision led him to found Umbix Dynamics in early 2017, focusing on building a scalable platform that integrates real-time assessment data with teacher dashboards for actionable insights.
+
+MasteryMap launched its pilot program in 2018 with three public school districts in the Midwestern region, collectively serving over 12,000 students from grades 3 through 8. The platform uses an adaptive algorithm that personalizes lessons and practice activities based on ongoing mastery metrics, allowing students to progress at their own pace through state-aligned curricula. Teachers can view comprehensive dashboards that highlight individual and class-wide mastery levels, identify skill gaps, and tailor interventions accordingly.
+
+One of MasteryMap’s core features is its mastery tracking engine, which continuously models student proficiency on discrete learning objectives and updates personalized learning pathways in real time. This contrasts with traditional platforms that offer fixed learning sequences or rely solely on periodic summative assessments. The system also supports district procurement processes by providing transparent reporting on student progress and usage analytics to inform purchasing decisions.
+
+Umbix Dynamics experimented with various pricing models in its early years. Initially, they offered a per-student subscription at $25 annually, but feedback from district administrators prompted a shift to a tiered enterprise pricing model based on total enrollment and feature access. By 2022, MasteryMap secured contracts with over 50 districts nationwide, serving approximately 250,000 students and generating $3.8 million in annual recurring revenue.
+
+Looking ahead, Gideon has outlined a roadmap for MasteryMap that includes integrating AI-driven predictive analytics to forecast mastery trajectories and recommend targeted interventions before students fall behind. Upcoming releases will also expand teacher dashboard capabilities with collaborative tools and district-level reporting enhancements. Additionally, Umbix Dynamics plans to explore partnerships with content providers to broaden subject coverage beyond math and literacy.
+
+Gideon’s leadership continues to shape MasteryMap as a market-leading adaptive tutoring solution, emphasizing mastery-based progression, actionable insights, and scalable deployment for public education systems. His background in curriculum design and deep commitment to personalized learning inform both product strategy and customer engagement at Umbix Dynamics.
+
+Founder of [[companies/umbix-dynamics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/halvard-talvley.md b/test/fixtures/ranking-shapes/source-a/people/halvard-talvley.md
new file mode 100644
index 0000000000..0c0400533b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/halvard-talvley.md
@@ -0,0 +1,48 @@
+---
+type: "person"
+title: "Halvard Talvley"
+tags: ["construction-site-robotics"]
+---
+
+# Halvard Talvley
+
+Halvard Talvley is the founder and CEO of Umbaly Cloud, a pioneering company in construction site robotics specializing in automation solutions for rebar tying, drone surveys, and safety monitoring. With over 15 years of experience in robotics and construction technology, Talvley spearheaded the development of TieBot, an autonomous rebar tying system that has significantly impacted commercial construction workflows.
+
+**Career History**
+
+Prior to founding Umbaly Cloud in 2018, Talvley spent eight years as a senior robotics engineer at BuildTek Innovations, where he led multiple automation projects focused on heavy machinery and site safety. Between 2010 and 2018, he gained deep insight into manual labor bottlenecks on construction sites, especially in reinforced concrete work. Talvley holds a master’s degree in robotics engineering from the Northbridge Institute of Technology (graduated 2009).
+
+**Genesis of TieBot**
+
+TieBot was conceived in 2017 after Talvley observed repetitive strain injuries and inefficiencies among rebar tying crews at a large commercial project in Westbridge City. He realized that automating the tying process could improve both speed and consistency without compromising safety or site integration. He began prototyping TieBot as a side project, blending advanced computer vision, robotic arms calibrated for varying rebar sizes, and proprietary tying algorithms. In early 2018, Talvley left BuildTek Innovations to launch Umbaly Cloud and focus full time on TieBot development.
+
+**Product Overview: TieBot**
+
+TieBot is an autonomous robotic system designed specifically for tying rebar in commercial construction projects. Key capabilities include:
+
+- **Automated knot tying:** TieBot uses precise robotic manipulators to tie rebar intersections, reducing manual labor by up to 70%.
+- **Speed and consistency:** Early field tests demonstrated a 2x increase in tying speed compared to human crews, with uniform knot tension and placement.
+- **Site adaptability:** The system integrates with existing construction workflows, capable of handling varying rebar diameters (from #3 to #8 bars) and complex geometries.
+- **Real-time quality monitoring:** TieBot’s onboard sensors detect misalignments or incomplete knots immediately, ensuring higher quality assurance.
+- **Safety enhancements:** By automating hazardous repetitive tasks, TieBot reduces site injuries related to back strain and hand fatigue.
+
+**Early Customers and Pilot Programs**
+
+Umbaly Cloud launched TieBot’s pilot program in late 2019 with three commercial contractors focused on mid-rise office buildings in the Metrovale region. Feedback highlighted TieBot’s reliability and ease of integration. Contractor OmegaBuild reported a 35% reduction in tying labor costs within the first six months of TieBot deployment on their flagship project.
+
+**Pricing Experiments and Business Model**
+
+Initial pricing for TieBot was approached through equipment leasing plus a per-square-foot tying fee, reflecting variable project sizes. Early pilots tested monthly leasing fees from $4,500 to $6,000 with tying charges of $0.15 to $0.25 per square foot. Based on customer feedback, Umbaly Cloud is transitioning towards a subscription model with tiered usage packages, aiming to simplify budgeting for contractors of all sizes.
+
+**Product Roadmap**
+
+Halvard Talvley is currently directing Umbaly Cloud’s roadmap to enhance TieBot’s capabilities, including:
+
+- Expanding tie pattern libraries to support specialty rebar configurations by Q3 2024.
+- Integrating real-time data upload for site management dashboards by Q1 2025.
+- Developing a lightweight drone-compatible version for rapid deployment in tight spaces.
+- Broadening the system’s compatibility with global rebar standards to enter international markets by late 2025.
+
+Through his leadership and technical vision, Halvard Talvley has positioned Umbaly Cloud and TieBot at the forefront of construction automation, driving productivity gains and safety improvements across the commercial building sector.
+
+Founder of [[companies/umbaly-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/kestrel-gwilham.md b/test/fixtures/ranking-shapes/source-a/people/kestrel-gwilham.md
new file mode 100644
index 0000000000..44ec3a8d44
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/kestrel-gwilham.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Kestrel Gwilham"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Kestrel Gwilham
+
+Kestrel Gwilham is an Interconnection Queue Analyst at Zordra Robotics, specializing in the management and approval of large-scale battery storage projects within complex grid interconnection processes. Since joining Zordra in early 2022, Kestrel has contributed to the FluxCore dispatch software, which automates battery dispatch decisions to optimize both asset lifespan and revenue streams.
+
+Prior to Zordra, Kestrel worked for three years at GridLink Solutions (2018–2021), where they led a key initiative to streamline queue prioritization for projects exceeding 500MW capacity. This involved developing a proprietary risk scoring model under the internal codename “Project FalconEye,” which reduced average approval times by 30% and improved forecast accuracy for interconnection timelines.
+
+Kestrel’s expertise lies at the intersection of grid-scale battery storage technology, regulatory compliance, and data-driven decision-making within interconnection queues. They are particularly skilled in navigating the complex interdependencies between battery degradation modeling and dispatch optimization to ensure projects meet stringent operational and financial criteria.
+
+Known for a meticulous, analytical working style, Kestrel collaborates closely with system operators, regulatory analysts, and software engineers. Their work has been integral to cross-team projects like “PulseTrack,” a collaborative effort to integrate real-time queue data into dispatch algorithms, enhancing the overall efficiency of large battery deployments on the grid.
+
+Current employer: [[companies/zordra-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/linnea-marqmoor.md b/test/fixtures/ranking-shapes/source-a/people/linnea-marqmoor.md
new file mode 100644
index 0000000000..129f87604b
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/linnea-marqmoor.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Linnea Marqmoor"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Linnea Marqmoor
+
+Linnea Marqmoor is currently a Yield Forecast Analyst at Nexvane Networks, where she specializes in applying machine learning techniques to predict harvest volumes within vertical farming systems. Since joining Nexvane in 2021, Linnea has focused on advancing PhytaTrack, the company’s flagship platform that integrates real-time environmental sensor data with AI algorithms to optimize nutrient dosing schedules and improve crop yield consistency.
+
+Before Nexvane, Linnea worked from 2017 to 2020 at Agrolytix Solutions, where she led the "Project VerdantEye," a data-driven yield prediction initiative that increased forecasting accuracy by 18% through novel ensemble models and sensor fusion methods. Her expertise centers on time-series analysis, sensor data integration, and deploying scalable machine learning pipelines specifically tailored for controlled-environment agriculture.
+
+Linnea approaches her work with a collaborative and iterative style, valuing continuous feedback loops between data scientists, agronomists, and hardware engineers. She frequently partners with Nexvane’s crop nutrition team and sensor hardware division to refine PhytaTrack’s algorithms in field-like grow towers located at the company’s Redwood facility. Known for her attention to detail and pragmatic problem-solving, Linnea thrives in cross-disciplinary teams focused on advancing the precision and reliability of indoor farming operations.
+
+Current employer: [[companies/nexvane-networks]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/lisbet-brinhollow.md b/test/fixtures/ranking-shapes/source-a/people/lisbet-brinhollow.md
new file mode 100644
index 0000000000..6385bfe791
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/lisbet-brinhollow.md
@@ -0,0 +1,21 @@
+---
+type: "person"
+title: "Lisbet Brinhollow"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Lisbet Brinhollow
+
+Lisbet Brinhollow is a Battery Dispatch Engineer at Zordra Robotics, where she focuses on optimizing grid-scale battery output to adapt to fluctuating power demand and maximize both lifespan and revenue. At Zordra, she contributes to the FluxCore project—a sophisticated automation platform that dynamically manages battery dispatch decisions across multiple interconnection points, balancing degradation modeling with market signals.
+
+Lisbet joined Zordra Robotics in early 2021 following an impactful tenure at VoltStor Inc., where she worked from 2015 to 2020. At VoltStor, she was instrumental in leading the real-time dispatch software upgrade dubbed Project VectorShift. This initiative enhanced VoltStor’s ability to respond to rapid changes in grid demand and incorporated novel predictive degradation algorithms. Project VectorShift improved battery cycle efficiency by an estimated 15% and reduced unexpected wear events by over 20% during its first year of deployment.
+
+Her expertise lies at the intersection of control algorithms, predictive modeling, and grid market integration. She has a particular specialty in developing software that coordinates battery assets within crowded interconnection queues, ensuring seamless dispatch decisions that account for both technical constraints and market economics. Lisbet has worked extensively with grid operators, software developers, and integration engineers to test and refine these systems in live environments.
+
+Notable projects at Zordra include FluxCore’s “Adaptive Pulse” module, which uses machine learning to dynamically adjust charge-discharge patterns based on short-term demand forecasts and degradation risk. Lisbet collaborates closely with data scientists who provide advanced forecasting models, as well as product managers who align technical capabilities with customer needs in utility-scale deployments.
+
+Lisbet is known for a collaborative and iterative working style, favoring frequent cross-disciplinary feedback sessions to refine algorithms and user interfaces. Her approach emphasizes transparency and modularity, which has helped accelerate FluxCore’s development roadmap by nearly six months compared to initial projections. She regularly mentors junior engineers on best practices for integrating hardware constraints into dispatch software.
+
+In summary, Lisbet Brinhollow combines deep technical knowledge with practical project leadership to advance grid-scale battery dispatch technologies, positioning Zordra Robotics as a leader in automated battery lifecycle optimization.
+
+Current employer: [[companies/zordra-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/marlow-jorvvane-1.md b/test/fixtures/ranking-shapes/source-a/people/marlow-jorvvane-1.md
new file mode 100644
index 0000000000..70edbc3264
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/marlow-jorvvane-1.md
@@ -0,0 +1,8 @@
+---
+type: "person"
+title: "Marlow Jorvvane"
+---
+
+# Marlow Jorvvane
+
+This page has been merged into [[people/marlow-jorvvane]]
diff --git a/test/fixtures/ranking-shapes/source-a/people/marlow-jorvvane.md b/test/fixtures/ranking-shapes/source-a/people/marlow-jorvvane.md
new file mode 100644
index 0000000000..ad1906afc2
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/marlow-jorvvane.md
@@ -0,0 +1,19 @@
+---
+type: "person"
+title: "Marlow Jorvvane"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Marlow Jorvvane
+
+Marlow Jorvvane is a Satellite Data Scientist currently employed at Nexlet Robotics, a company specializing in automating roof condition scoring to accelerate insurers’ claims processing. Since joining Nexlet Robotics in 2021, Marlow has focused on developing advanced algorithms for assessing roof damage using multispectral satellite imagery, significantly enhancing the accuracy and speed of post-catastrophe evaluations.
+
+Prior to joining Nexlet Robotics, Marlow worked from 2017 to 2021 as a Remote Sensing Analyst at AeroDyne Solutions, where they led the optimization of flood mapping models for inland water bodies using high-resolution drone data. Marlow’s work there involved integrating multispectral and thermal data streams to improve detection of flood extents and water depth estimations, resulting in the project codenamed “BlueCurrent,” which helped local governments reduce flood response times by an estimated 30%.
+
+Marlow’s specialties include designing machine learning pipelines for multispectral data preprocessing, feature extraction, and damage classification tailored to the insurance industry’s needs. Their expertise in combining multispectral bands with topographic and weather data enables robust roof condition scoring models that can differentiate between minor wear and catastrophic damage. A key project at Nexlet Robotics, internally named “SkyGuard,” utilized these techniques to automatically flag high-risk properties within 24 hours after major storms, reducing manual inspection workloads by 45%.
+
+Known for a collaborative and methodical working style, Marlow emphasizes clear communication of complex data science concepts to cross-functional teams. They regularly partner with software engineers, catastrophe modelers, and claims adjusters to ensure algorithm outputs meet operational requirements. Marlow is also proactive in mentoring junior data scientists, fostering a culture of continuous learning within the satellite analytics team.
+
+Marlow holds a Master’s degree in Geospatial Analytics and Remote Sensing from the University of Ellenton and has published multiple white papers on multispectral data fusion techniques. Their blend of field experience and academic research contributes to Nexlet Robotics’ leadership in satellite-based insurance analytics.
+
+Current employer: [[companies/nexlet-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/marlow-thrumbrook.md b/test/fixtures/ranking-shapes/source-a/people/marlow-thrumbrook.md
new file mode 100644
index 0000000000..f499fc1057
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/marlow-thrumbrook.md
@@ -0,0 +1,48 @@
+---
+type: "person"
+title: "Marlow Thrumbrook"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Marlow Thrumbrook
+
+Marlow Thrumbrook is the founder and CEO of Nexlet Robotics, a satellite imagery analytics company specializing in solutions for the property insurance sector. With over 18 years of experience in geospatial technology and artificial intelligence, Marlow has led Nexlet Robotics since its inception in 2016. He is best known for creating RoofSight, a flagship product that automates roof condition scoring to accelerate claims processing for insurers.
+
+### Early Career and Inspiration for RoofSight
+
+Before founding Nexlet Robotics, Marlow spent a decade in aerospace data analytics, focusing on remote sensing applications. He identified a gap in how insurers rapidly assess roof damage after catastrophic weather events. Traditional methods relied heavily on manual inspection and customer reports, resulting in significant delays and inconsistent evaluations.
+
+In 2015, Marlow conceptualized RoofSight as a way to leverage high-resolution satellite imagery combined with AI-driven analytics to offer standardized, objective roof condition scoring. His vision was to enable insurers to triage claims more quickly, reduce fraud, and optimize field crew deployments.
+
+### RoofSight Product Overview
+
+RoofSight automates the analysis of satellite imagery to deliver quantitative roof condition scores within 24 hours of image capture. The system uses proprietary convolutional neural networks trained on over 500,000 labeled roof images from diverse geographies and roofing materials. It detects damage types such as shingle loss, discoloration, structural deformations, and debris accumulation.
+
+Key features of RoofSight include:
+
+- **Immediate assessment:** RoofSight processes new satellite images in under six hours, providing near real-time condition reports.
+- **Damage categorization:** Separates damage into five severity classes aligned with insurer underwriting guidelines.
+- **Geotagged visualization:** Interactive maps allow claims adjusters to zoom into specific properties and compare historical roof states.
+- **Integration APIs:** RoofSight connects seamlessly with leading claims management platforms, automating data flow.
+- **Flood and catastrophe overlays:** Combines roof damage scores with flood extent maps for holistic catastrophe response.
+
+### Early Adoption and Customer Feedback
+
+Nexlet Robotics launched RoofSight commercially in mid-2017. Initial pilot programs involved three regional insurers in the Midwest U.S., covering 45,000 residential policies. Early feedback emphasized significant time savings: average claims processing time dropped from 21 to 8 days. One insurer reported a 30% reduction in field visits by adjusters due to reliable RoofSight assessments.
+
+However, early adopters requested more granular scoring categories and better differentiation between weather-related versus wear-and-tear damage, leading to iterative model retraining in 2018.
+
+### Pricing Experiments and Roadmap
+
+Nexlet Robotics initially experimented with subscription tiers based on policies covered: a basic plan at $0.18 per policy per month, scaling to enterprise pricing with volume discounts. Feedback indicated that per-claim pricing yielded better alignment with insurer workflows, so in late 2019, Nexlet moved to a hybrid model combining base subscription fees with per-claim surcharges.
+
+Looking forward, Marlow’s roadmap for RoofSight includes:
+
+- Expanding roof material classification to include solar panels and green roofs.
+- Integrating drone imagery data for hybrid assessments.
+- Developing predictive models for roof failure risk over five-year horizons.
+- Enhancing catastrophe response modules with AI-driven resource allocation suggestions.
+
+Under Marlow Thrumbrook’s leadership, RoofSight remains a cornerstone product in the property insurance space, pioneering faster, more accurate roof condition analytics that transform claims processing.
+
+Founder of [[companies/nexlet-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/nadezhda-ibbton.md b/test/fixtures/ranking-shapes/source-a/people/nadezhda-ibbton.md
new file mode 100644
index 0000000000..3c3afcd4ba
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/nadezhda-ibbton.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Nadezhda Ibbton"
+tags: ["maritime-port-operations"]
+---
+
+# Nadezhda Ibbton
+
+Nadezhda Ibbton currently serves as Berth Scheduling Coordinator at Zorrel Analytics, a leading provider of advanced berth scheduling software that predicts optimal vessel docking times. Since joining Zorrel in 2019, Nadezhda has specialized in coordinating vessel arrivals with dock availability and tide forecasts to maximize port efficiency and minimize delays.
+
+Her career began in 2012 at Silverline Port Authority, where she managed daily berth assignments and coordinated closely with crane operations and customs teams. In 2016, she transitioned to OceanGate Logistics, focusing on integrating real-time telemetry data into scheduling workflows.
+
+A notable achievement during her time at Zorrel was leading the implementation of the ML-Align project in 2021, a machine learning system designed to reduce berth conflicts by 35%. This involved cross-team collaboration with data scientists, tide analysts, and terminal operators.
+
+Nadezhda’s working style combines meticulous planning with adaptive problem-solving. She frequently partners with crane telemetry engineers and customs clearance coordinators to ensure seamless handoffs and maintain vessel throughput targets.
+
+Current employer: [[companies/zorrel-analytics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/niamh-marqley.md b/test/fixtures/ranking-shapes/source-a/people/niamh-marqley.md
new file mode 100644
index 0000000000..162bbb3c95
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/niamh-marqley.md
@@ -0,0 +1,39 @@
+---
+type: "person"
+title: "Niamh Marqley"
+tags: ["legal-contract-automation"]
+---
+
+# Niamh Marqley
+
+Niamh Marqley is the founder and CEO of Tesstun Works, the company behind ClauseSense, an AI-powered platform that automates clause extraction and redlining specifically tailored for procurement teams in manufacturing and retail sectors. With over 15 years in legal technology and contract management, Niamh has become a recognized leader in applying AI to streamline complex contract workflows.
+
+### Early Career and Inspiration for ClauseSense
+
+Niamh began her career as a contract analyst at a multinational manufacturing firm, where she spent nearly a decade manually reviewing thousands of procurement contracts annually. Frustrated by the inefficiencies and high error rates in manual redlining and clause extraction, she envisioned a tool that could reduce time spent on contract review from days to hours without sacrificing accuracy. This vision led her to found Tesstun Works in 2017, focusing on developing ClauseSense.
+
+The initial concept for ClauseSense was born from Niamh’s deep domain expertise combined with her passion for AI. She collaborated with data scientists and procurement experts to build a platform that uses natural language processing to identify critical clauses across diverse contract templates, highlight deviations, and suggest standardized language improvements automatically.
+
+### Product Overview: ClauseSense Capabilities
+
+ClauseSense is designed to automate key contract review tasks for procurement teams in manufacturing and retail, where contracts often vary widely and contain complex, high-risk clauses. Its core functionalities include:
+
+- **Automated Clause Extraction:** ClauseSense scans contracts to identify and extract key procurement clauses such as delivery terms, payment schedules, liability limits, and warranty conditions.
+- **AI-Powered Redlining:** The platform automatically marks changes, flags risky language, and proposes alternative phrasing to align contracts with company policies.
+- **Standardization and Compliance Checks:** ClauseSense compares clauses against a centralized legal playbook, ensuring procurement teams maintain compliance with internal and regulatory standards.
+- **Multi-Format Support:** The system processes Word documents, PDFs, and scanned contracts, accommodating the varied formats typical in manufacturing and retail procurement.
+- **Dashboard Analytics:** Users can track contract review times, common redline issues, and vendor risk profiles through a real-time analytics dashboard.
+
+### Early Adoption and Pricing
+
+ClauseSense’s first major customer was a Fortune 500 electronics manufacturer, which reported a 40% reduction in contract review time within three months. Following this success, Tesstun Works secured deals with several national retail chains, validating the product’s utility across different procurement contexts.
+
+Initially, Tesstun Works experimented with a subscription pricing model based on the volume of contracts reviewed, offering tiered packages from $5,000 to $25,000 per month. In 2022, Niamh led a shift to consumption-based pricing, charging per contract page processed to better align costs with customer usage patterns.
+
+### Roadmap and Future Vision
+
+Niamh’s current roadmap for ClauseSense includes expanding AI capabilities to handle international contract clauses, integrating with procurement software suites, and introducing voice-activated contract review features. Tesstun Works is also exploring partnerships to embed ClauseSense into supplier onboarding workflows.
+
+Niamh Marqley continues to drive Tesstun Works toward making ClauseSense the benchmark AI solution for legal contract automation in procurement, helping manufacturing and retail companies reduce risk and accelerate deal cycles.
+
+Founder of [[companies/tesstun-works]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/odalys-naskdale.md b/test/fixtures/ranking-shapes/source-a/people/odalys-naskdale.md
new file mode 100644
index 0000000000..5b779ec9f3
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/odalys-naskdale.md
@@ -0,0 +1,21 @@
+---
+type: "person"
+title: "Odalys Naskdale"
+tags: ["maritime-port-operations"]
+---
+
+# Odalys Naskdale
+
+Odalys Naskdale is the Crane Operations Manager at Zorrel Analytics, a leading provider of advanced berth scheduling software known for predicting optimal vessel docking times. Since joining Zorrel Analytics in 2019, Odalys has played a pivotal role in integrating crane telemetry data with predictive scheduling algorithms to enhance overall terminal efficiency.
+
+Her career spans over 12 years in maritime port operations, beginning as a junior logistics coordinator at Westport Container Services (2008–2013), where she first gained hands-on experience with container tracking and customs clearance processes. From 2013 to 2017, she served as the Crane Efficiency Supervisor at Blue Harbor Terminal, focusing on optimizing container loading sequences to reduce berth occupation times and cut down turnaround delays.
+
+In 2017, Odalys joined HarborGate Terminal as Senior Operations Lead and spearheaded the automation upgrade project codenamed Project Waveform. This initiative involved deploying real-time crane telemetry integration and AI-driven load sequencing, which reduced average container loading times by 15% and improved crane utilization rates by 22%. Her leadership on Project Waveform was widely regarded as a benchmark within port operations circles.
+
+Odalys specializes in optimizing container loading sequences to maximize crane throughput while minimizing vessel idle times. She is known for a data-driven, detail-oriented working style that balances operational pragmatism with innovative technology adoption. She is adept at translating complex telemetry outputs and berth scheduling predictions into actionable workflows for crane operators and terminal supervisors.
+
+Within Zorrel Analytics, Odalys collaborates closely with the berth scheduling algorithm team, software engineers, and terminal operations analysts. She also maintains strong working relationships with customer terminal managers and crane equipment manufacturers to ensure seamless integration of hardware telemetry with scheduling software.
+
+Odalys continues to advance port operations efficiency through her combined expertise in crane telemetry, container logistics, and scheduling prediction technologies.
+
+Current employer: [[companies/zorrel-analytics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/oriel-fennvane.md b/test/fixtures/ranking-shapes/source-a/people/oriel-fennvane.md
new file mode 100644
index 0000000000..5819d5a9dd
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/oriel-fennvane.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Oriel Fennvane"
+tags: ["maritime-port-operations"]
+---
+
+# Oriel Fennvane
+
+Oriel Fennvane is currently a Customs Clearance Analyst at Zorrel Analytics, a leader in advanced berth scheduling software that predicts optimal vessel docking times. Since joining Zorrel in 2021, Oriel has specialized in navigating complex international import-export regulations, ensuring compliance while minimizing delays in cargo processing.
+
+Oriel’s career began in 2015 at Mariscan Logistics, where they supported container tracking operations and developed early frameworks for integrating customs data into shipment tracking. In 2018, Oriel joined Portline Services as a Regulatory Compliance Specialist, focusing on streamlining customs clearance protocols across multiple global ports. During this period, Oriel led the “Project Nautilus” initiative, designing a proprietary risk scoring model that enabled expedited customs processing for low-risk shipments, reducing average clearance time by 22%.
+
+At Zorrel Analytics, Oriel has contributed to the “CraneSight” project, coordinating data integration between crane telemetry and customs documentation to improve real-time cargo status visibility. Oriel’s working style emphasizes meticulous regulation analysis combined with proactive collaboration; they regularly liaise with berth schedulers, crane operators, and customs officers to align operational priorities.
+
+Known for clear communication and a data-driven approach, Oriel works closely with Zorrel’s software engineers and port operations managers to continuously refine customs workflows in alignment with evolving international trade regulations.
+
+Current employer: [[companies/zorrel-analytics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/oriel-zelkdale.md b/test/fixtures/ranking-shapes/source-a/people/oriel-zelkdale.md
new file mode 100644
index 0000000000..9adabce959
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/oriel-zelkdale.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Oriel Zelkdale"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Oriel Zelkdale
+
+Oriel Zelkdale is a Product Manager at Nexlet Robotics, focusing on automating roof condition scoring to accelerate insurers’ claims processing. Since joining Nexlet Robotics in 2021, Oriel has spearheaded the integration of the company’s catastrophe response platform into core insurance workflows, significantly enhancing real-time decision-making during flood and storm events.
+
+Before Nexlet, Oriel led the rollout of the industry’s first cloud-based flood extent analytics system, dubbed Project Torrent, from 2017 to 2020. This system provided risk assessment teams with unprecedented rapid access to flood impact data, reducing exposure uncertainty by 30%.
+
+Oriel specializes in bridging satellite imagery analytics with practical insurance applications, combining technical acumen with user-centric product design. Known for a collaborative and data-driven working style, Oriel partners closely with data scientists, field engineers, and customer success teams to ensure seamless deployment of solutions like the CatResponse integration tool.
+
+Current employer: [[companies/nexlet-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/rhosyn-dunkford.md b/test/fixtures/ranking-shapes/source-a/people/rhosyn-dunkford.md
new file mode 100644
index 0000000000..2d591ae797
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/rhosyn-dunkford.md
@@ -0,0 +1,25 @@
+---
+type: "person"
+title: "Rhosyn Dunkford"
+tags: ["maritime-port-operations"]
+---
+
+# Rhosyn Dunkford
+
+Rhosyn Dunkford is the founder and CEO of Zorrel Analytics, a maritime technology company specializing in advanced software for port terminal operations. With over 18 years of experience in logistics technology and maritime systems integration, Dunkford has been a pivotal figure in modernizing berth scheduling and container management workflows.
+
+The flagship product Dunkford developed under Zorrel Analytics is DockFlow, an advanced berth scheduling software that predicts optimal vessel docking times to maximize terminal throughput and minimize vessel waiting periods. DockFlow integrates real-time crane telemetry, vessel position data, and customs clearance processes to deliver a comprehensive scheduling solution tailored for complex, multi-berth terminals.
+
+Dunkford conceived the idea for DockFlow during her tenure as a systems engineer at a major port operator from 2006 to 2013. She identified that existing berth scheduling relied heavily on manual spreadsheets and static rules, which often led to inefficient usage of berths and costly delays. Using her background in operations research and predictive modeling, Dunkford began prototyping algorithms that could dynamically adjust berth assignments based on live data feeds and predictive analytics.
+
+In 2014, Dunkford founded Zorrel Analytics with an initial team of five engineers. The company’s early pilot deployments of DockFlow were with the Port of Lancorrin and the Eastshore Terminal Consortium, both critical hubs with complex vessel traffic patterns. These initial customers reported a 12-18% reduction in average vessel waiting times within the first six months of using DockFlow. Feedback from these pilots led to rapid iteration and incorporation of features such as berth conflict resolution alerts and integration with customs clearance workflows.
+
+DockFlow employs a proprietary predictive engine that evaluates factors including vessel ETA variability, crane availability, and customs clearance windows. It then simulates multiple scheduling scenarios to recommend the optimal docking sequence that maximizes berth utilization and minimizes idle crane time. The software’s dashboard provides terminal operators with real-time visibility and adjustment controls, allowing manual overrides when necessary.
+
+Regarding pricing, Zorrel Analytics experimented through 2017-2019 with both license-based and subscription models. After extensive market research and customer feedback, DockFlow is now offered primarily as a SaaS subscription with tiered plans based on terminal size and throughput volume. Entry-level plans start at $8,000 per month for terminals handling up to 50 vessel calls, while large-scale enterprise licenses for terminals with over 200 vessel calls run upwards of $45,000 monthly.
+
+The DockFlow roadmap under Dunkford’s guidance includes expanded machine learning capabilities to predict customs clearance delays, enhanced integration with crane telemetry systems for fine-grained scheduling, and a mobile interface for terminal supervisors. Planned future releases will also incorporate blockchain-based container tracking modules to further streamline container handoffs and clearance.
+
+Rhosyn Dunkford remains actively involved in product design and strategic partnerships, steering DockFlow’s evolution as a transformational tool in maritime terminal operations worldwide. Her blend of technical expertise and frontline maritime operations insight continues to shape Zorrel Analytics’ growth and innovation trajectory.
+
+Founder of [[companies/zorrel-analytics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/rhosyn-jorvham.md b/test/fixtures/ranking-shapes/source-a/people/rhosyn-jorvham.md
new file mode 100644
index 0000000000..174619226c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/rhosyn-jorvham.md
@@ -0,0 +1,21 @@
+---
+type: "person"
+title: "Rhosyn Jorvham"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Rhosyn Jorvham
+
+Rhosyn Jorvham serves as a Curriculum Integration Specialist at Umbix Dynamics, a leading provider of adaptive tutoring solutions tailored for K-12 schools. Since joining Umbix in 2019, Rhosyn has specialized in designing mastery-based lesson plans and assessments that seamlessly integrate with Umbix’s adaptive learning platform, enabling personalized learning pathways and real-time mastery tracking for students.
+
+Before her current role, Rhosyn spent five years (2014–2019) as an Instructional Designer at Edvanta Systems, where she focused on creating competency-aligned curricula for middle and high school levels. There, she contributed to the development of the “Project Helix” initiative, which introduced formative assessment templates now widely used in blended learning environments. Her work emphasized scaffolding concepts to support mastery learning, laying the groundwork for her later specialization.
+
+One of Rhosyn’s most notable projects at Umbix Dynamics was leading the district-wide rollout of adaptive learning modules in the Ridgewood School District during the 2020–2021 school year. Code-named “Operation Evergreen,” this initiative involved collaborating closely with district curriculum coordinators, lead teachers, and IT staff to customize lesson pathways in math and science, develop teacher dashboards tailored to district needs, and train over 150 educators in adaptive instructional strategies. The success of Operation Evergreen increased student mastery rates by 18% on average in participating schools within the first academic year.
+
+Rhosyn’s approach to her work is highly collaborative and data-driven. She maintains an active partnership with product managers, data analysts, and educational researchers at Umbix Dynamics to continually refine lesson plans based on student performance metrics. She values feedback loops with teachers and district administrators, often leading focus groups to gather insights that inform iterative curriculum improvements.
+
+Her day-to-day responsibilities include designing mastery-aligned assessments, developing teacher dashboard features that highlight student progress gaps, and coordinating cross-functional workshops to align curriculum goals with Umbix’s adaptive platform capabilities. Rhosyn typically works closely with the Client Success team and regional district education officers to ensure smooth implementation and ongoing support.
+
+Known for her meticulous attention to detail and emphasis on practical classroom application, Rhosyn is a key contributor to Umbix Dynamics’ mission of enhancing personalized learning outcomes through mastery tracking and adaptive instruction.
+
+Current employer: [[companies/umbix-dynamics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/rune-ulmmoor.md b/test/fixtures/ranking-shapes/source-a/people/rune-ulmmoor.md
new file mode 100644
index 0000000000..dbf64d6b98
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/rune-ulmmoor.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Rune Ulmmoor"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Rune Ulmmoor
+
+Rune Ulmmoor is currently a Degradation Modeling Scientist at Zordra Robotics, where he focuses on enhancing lithium-ion battery longevity through advanced predictive analytics. At Zordra, Rune contributes to the FluxCore project, an automated dispatch software designed to optimize battery usage schedules, balancing revenue generation with lifespan preservation.
+
+Rune’s career began in 2015 at EnerCell Labs, where he pioneered the company’s first high-accuracy calendar aging model for lithium-ion cells under heavy cycling conditions. This model significantly improved lifespan predictions, influencing battery management strategies across several utility-scale storage deployments. From 2019 to 2022, Rune expanded his expertise at Voltix Systems, working on dynamic degradation models integrated into grid interconnection queue simulations.
+
+Specializing in battery chemistry behavior under intense charge-discharge cycles, Rune combines empirical data with machine learning techniques to forecast degradation pathways. His notable projects include “Project PulseWave,” which refined cycle aging estimation, and “EndureGrid,” a simulation suite for long-term performance under variable dispatch scenarios.
+
+Rune’s working style is deeply collaborative and data-driven. He partners closely with the software engineers and field operations teams at Zordra, ensuring that degradation models translate effectively into dispatch algorithms. Known for clear communication and iterative validation, Rune fosters cross-disciplinary innovation between modeling, software development, and product deployment.
+
+Current employer: [[companies/zordra-robotics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/saskia-fennmoor.md b/test/fixtures/ranking-shapes/source-a/people/saskia-fennmoor.md
new file mode 100644
index 0000000000..1a1c4f490c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/saskia-fennmoor.md
@@ -0,0 +1,21 @@
+---
+type: "person"
+title: "Saskia Fennmoor"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Saskia Fennmoor
+
+Saskia Fennmoor is the Cold-Chain Operations Manager at Nuvix Systems, a company specializing in real-time temperature monitoring tags designed for vaccine shipments and other sensitive pharmaceutical products. Since joining Nuvix in early 2021, Saskia has been instrumental in refining the integration of sensor data into cold-chain logistics workflows, ensuring tighter controls and improved reliability in temperature-sensitive shipping.
+
+Her career in pharmaceutical logistics spans over 12 years, beginning in 2011 with GlacioTherm Logistics, where she focused on refrigerated cargo coordination. From 2015 to 2019, Saskia served as the Senior Transport Specialist at CryoPack Inc., a leading provider of ultra-cold storage packaging. During her tenure, she led the development and rollout of the company’s groundbreaking Subzero Shipment Protocol, codenamed Project FrostGuard. This initiative reduced temperature excursions by 40% during winter shipments across the Northern Hemisphere and set new industry standards for subzero vaccine transport.
+
+In 2020, Saskia transitioned to a consulting role to advise cold-chain providers on sensor integration and logistics optimization before accepting her current position at Nuvix Systems. Her specialties include optimizing vaccine transport logistics by leveraging sensor data, predictive cold-chain modeling, and the operational deployment of IoT-enabled temperature tags.
+
+Among her notable projects at Nuvix is Operation IceStream, a successful pilot program that deployed Nuvix’s latest sensor tags across a multi-national vaccine distribution network. This project generated a 25% improvement in real-time temperature anomaly detection, enabling proactive rerouting and minimizing product loss.
+
+Saskia is known for a methodical and data-driven working style. She emphasizes cross-functional collaboration, regularly coordinating with hardware engineers, software developers, and field logistics teams to align sensor capabilities with operational needs. Her approach values clear communication, iterative testing, and rapid feedback loops.
+
+She works closely with Nuvix’s Product Development lead, the Field Operations director, and several external logistics partners specializing in cold-chain freight. Saskia also mentors junior logistics analysts and participates in industry consortia focused on cold-chain best practices and standards development.
+
+Current employer: [[companies/nuvix-systems]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/saskia-silvhollow.md b/test/fixtures/ranking-shapes/source-a/people/saskia-silvhollow.md
new file mode 100644
index 0000000000..ed3a0d6799
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/saskia-silvhollow.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Saskia Silvhollow"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Saskia Silvhollow
+
+Saskia Silvhollow currently serves as the Procurement Strategy Lead at Umbix Dynamics, an adaptive tutoring platform specializing in personalized learning pathways and mastery tracking for K-12 schools. Since joining Umbix in 2021, Saskia has focused on streamlining district-level acquisition processes, ensuring that schools can efficiently adopt cutting-edge educational technology.
+
+Before Umbix, Saskia spent six years in educational technology procurement, most notably negotiating a pioneering multi-state contract for mastery tracking software licenses that enabled over 300 school districts to standardize their adaptive learning tools. This initiative, internally codenamed Project Pathfinder, reduced onboarding time by 40% and increased district adoption rates by 25%.
+
+Saskia’s specialties include contract negotiation, cross-district procurement alignment, and optimizing purchase workflows to meet tight budget constraints. She is known for her methodical working style, combining data-driven decision making with close collaboration. At Umbix, she partners closely with product managers, district IT leads, and implementation teams to ensure seamless integration of new platforms within existing school infrastructures.
+
+Current employer: [[companies/umbix-dynamics]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/tobiah-naskley.md b/test/fixtures/ranking-shapes/source-a/people/tobiah-naskley.md
new file mode 100644
index 0000000000..67819ef221
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/tobiah-naskley.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Tobiah Naskley"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Tobiah Naskley
+
+Tobiah Naskley is a Billing Analyst at Vorrel Cloud, where he specializes in managing insurance claims processing and streamlining reimbursement workflows for dental clinics. Joining Vorrel Cloud in 2021, Tobiah has been instrumental in advancing the company’s flagship platform, Project ClearClaim, which automates insurance submissions and tracks approval status in real time.
+
+Prior to Vorrel Cloud, Tobiah worked from 2016 to 2021 at MedFinance Systems, focusing on billing data integrity and denial management. There, he developed an error reduction protocol during Project ClaimGuard that decreased claim denials by 20%, significantly improving revenue cycle efficiency for client clinics.
+
+Tobiah’s working style emphasizes data-driven analysis combined with close collaboration across billing, clinical, and IT teams to identify bottlenecks. He regularly partners with the product managers, insurance liaison officers, and software engineers to implement iterative workflow enhancements and training initiatives.
+
+Current employer: [[companies/vorrel-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/tobiah-ulmford.md b/test/fixtures/ranking-shapes/source-a/people/tobiah-ulmford.md
new file mode 100644
index 0000000000..cc467125dc
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/tobiah-ulmford.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Tobiah Ulmford"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Tobiah Ulmford
+
+Tobiah Ulmford is a Pharmaceutical Supply Data Analyst at Nuvix Systems, a leader in real-time temperature monitoring solutions for vaccine shipments. Since joining Nuvix in 2020, Tobiah has specialized in analyzing temperature variance during transit by interpreting large datasets generated from IoT sensor tags embedded in cold-chain shipments.
+
+Before Nuvix, Tobiah spent three years (2017–2020) at CryoLogix Analytics, where he developed foundational expertise in sensor data normalization and anomaly detection. During this time, he contributed to the project ColdTrack, which enhanced cold-chain visibility across multiple pharmaceutical clients.
+
+At Nuvix, Tobiah’s major accomplishment includes spearheading the predictive model project "FrostGuard," which improved cold-chain integrity by 12% by forecasting potential temperature excursions before they occur. This model uses machine learning algorithms trained on historical sensor data coupled with transit route variables.
+
+Tobiah’s working style is data-driven and collaborative; he regularly partners with Nuvix’s logistics coordinators, software engineers, and product managers to translate analytic insights into actionable operational improvements. He is known for his meticulous attention to data quality and his ability to present complex findings in clear, practical terms to both technical and non-technical stakeholders.
+
+Current employer: [[companies/nuvix-systems]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/torben-fennmere.md b/test/fixtures/ranking-shapes/source-a/people/torben-fennmere.md
new file mode 100644
index 0000000000..2f9bc1841e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/torben-fennmere.md
@@ -0,0 +1,25 @@
+---
+type: "person"
+title: "Torben Fennmere"
+tags: ["legal-contract-automation"]
+---
+
+# Torben Fennmere
+
+Torben Fennmere is a Contract Automation Engineer at Tesstun Works, a leading AI-powered platform specializing in automating clause extraction and redlining for procurement teams. Since joining Tesstun Works in 2021, Torben has played a pivotal role in advancing the company’s core AI models that enable precise identification and extraction of contractual clauses across diverse legal documents.
+
+Career History
+Torben began his career in 2014 as a software developer focusing on machine learning applications in document analysis. From 2017 to 2021, he was a senior engineer at ClearLex Solutions, where he led the deployment of their neural redlining system, codenamed “Project Crimson Slate.” This system revolutionized how procurement and legal teams reviewed contracts by enabling real-time, AI-driven redline suggestions. Under his direction, Crimson Slate improved contract review speeds by over 35% in pilot deployments.
+
+Specialties
+Torben’s expertise centers around developing and fine-tuning deep learning models specifically designed for clause extraction and contract comparison tasks. He is skilled in natural language processing techniques tailored to legal text, including transformer-based architectures and domain adaptation strategies. His work emphasizes model explainability to ensure legal professionals can trust the AI’s recommendations.
+
+Notable Projects
+- “Project Onyx Extractor”: A proprietary clause extraction model launched at Tesstun Works that improved recall rates by 18% over previous benchmarks.
+- “Rapid Redline”: A module integrated into the Tesstun platform that offers near-instantaneous contract redlining suggestions with high accuracy.
+- “ProcureVision Analytics”: An internal analytics suite co-developed by Torben to visualize clause trends and flag high-risk provisions during procurement reviews.
+
+Working Style and Collaboration
+Known for a collaborative approach, Torben works closely with data scientists, legal experts, and product managers to align AI capabilities with user needs. He actively mentors junior engineers and regularly contributes to cross-functional workshops aimed at bridging legal domain knowledge with technical development. His problem-solving style is methodical, emphasizing iterative testing and user feedback integration to refine models continuously.
+
+Current employer: [[companies/tesstun-works]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/veda-ravnby-1.md b/test/fixtures/ranking-shapes/source-a/people/veda-ravnby-1.md
new file mode 100644
index 0000000000..23c9efa9b3
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/veda-ravnby-1.md
@@ -0,0 +1,9 @@
+---
+type: "person"
+title: "Veda Ravnby"
+merged_into: "people/veda-ravnby"
+---
+
+# Veda Ravnby
+
+This page has been merged into [[people/veda-ravnby]]
diff --git a/test/fixtures/ranking-shapes/source-a/people/veda-ravnby.md b/test/fixtures/ranking-shapes/source-a/people/veda-ravnby.md
new file mode 100644
index 0000000000..fddfcbe648
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/veda-ravnby.md
@@ -0,0 +1,19 @@
+---
+type: "person"
+title: "Veda Ravnby"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Veda Ravnby
+
+Veda Ravnby is currently the Scheduling Coordinator at Vorrel Cloud, a company specializing in automating insurance claim submissions and providing real-time monitoring of approval statuses. Since joining Vorrel Cloud in 2021, Veda has become a key contributor to the clinic scheduling and billing domain, focusing on improving chair utilization through dynamic patient flow analysis.
+
+Before joining Vorrel Cloud, Veda spent five years (2016–2021) working at Brightsmile Dental Services, where she honed her expertise in optimizing appointment scheduling to maximize operational efficiency. During her tenure there, she led the "Recall Boost" project, a targeted recall campaign that increased patient retention rates by 15% over 12 months. This initiative combined data-driven patient segmentation with personalized outreach strategies, significantly reducing no-show rates and enhancing long-term patient engagement.
+
+Veda’s specialty lies in leveraging data analytics to balance patient demand with resource availability, ensuring that dental chairs are used effectively throughout the day while minimizing downtime. She integrates scheduling software insights with real-time clinic capacity, enabling dynamic adjustments that accommodate last-minute cancellations or emergency appointments. Her approach has consistently contributed to improved daily chair utilization rates, often exceeding 85%, a key performance metric for dental clinics aiming to maximize revenue and patient access.
+
+A methodical yet adaptable planner, Veda prefers working collaboratively with clinical staff and billing teams. At Vorrel Cloud, she regularly coordinates with the Insurance Claims Operations group to synchronize patient appointment schedules with insurance authorization timelines, reducing billing delays. She also partners closely with the Recall Campaigns team, sharing insights from patient flow data to optimize outreach timing and content.
+
+Veda’s working style combines analytical rigor with empathetic communication, allowing her to navigate the complex interplay of patient needs, clinical capacity, and insurance requirements. Her contributions continue to support Vorrel Cloud’s mission to streamline dental clinic workflows and enhance financial performance through smarter scheduling and billing automation.
+
+Current employer: [[companies/vorrel-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/yorick-talvwick.md b/test/fixtures/ranking-shapes/source-a/people/yorick-talvwick.md
new file mode 100644
index 0000000000..7cd153c7c6
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/yorick-talvwick.md
@@ -0,0 +1,17 @@
+---
+type: "person"
+title: "Yorick Talvwick"
+tags: ["construction-site-robotics"]
+---
+
+# Yorick Talvwick
+
+Yorick Talvwick is currently a Safety Systems Analyst at Umbaly Cloud, a leading developer of autonomous rebar tying robotics that enhance construction speed and consistency. In this role, Yorick focuses on designing AI-driven hazard detection systems to improve on-site safety monitoring across complex construction environments.
+
+Before joining Umbaly Cloud in 2022, Yorick spent seven years at UrbanBuild Group, where he led the implementation of predictive safety alert solutions that reduced on-site incidents by 18%. His work at UrbanBuild included the development of the “Sentinel Watch” project—an AI module that leveraged real-time sensor data to forecast potential hazards hours in advance, allowing proactive intervention.
+
+Yorick specializes in integrating machine learning algorithms with field hardware to create adaptive, context-aware safety systems. His expertise spans computer vision, sensor fusion, and anomaly detection tailored to dynamic construction settings. He is known for a collaborative approach, frequently working alongside robotics engineers, field safety officers, and data scientists to refine system accuracy and usability.
+
+Notable recent projects at Umbaly include “IronEye,” a drone-based hazard reconnaissance initiative that complements the rebar tying robots by providing aerial site risk assessments. Yorick’s analytical rigor and hands-on field testing underpin the ongoing enhancement of Umbaly Cloud’s autonomous safety capabilities.
+
+Current employer: [[companies/umbaly-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/ysolde-fennford.md b/test/fixtures/ranking-shapes/source-a/people/ysolde-fennford.md
new file mode 100644
index 0000000000..a15413d0d5
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/ysolde-fennford.md
@@ -0,0 +1,23 @@
+---
+type: "person"
+title: "Ysolde Fennford"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Ysolde Fennford
+
+Ysolde Fennford is currently a Nutrient Solution Engineer at Nexvane Networks, a leading innovator in vertical farming technologies headquartered in Cyrellis City. Since joining Nexvane in early 2021, Ysolde has been instrumental in advancing PhytaTrack, the company’s flagship system that integrates environmental sensors with AI-driven analytics to dynamically optimize nutrient dosing schedules for hydroponic crops.
+
+Ysolde’s career in indoor agriculture began over a decade ago, following her graduation in Agricultural Chemistry. From 2012 to 2017, she worked at AgriSynth Labs, a boutique R&D firm specializing in plant nutrient formulations. During this period, she developed and patented an ion-exchange dosing system, codename “IonWeave,” which significantly enhanced nutrient uptake efficiency by fine-tuning ion balance tailored to specific crop species. IonWeave remains a foundational technology in modern nutrient delivery systems used across the industry.
+
+In 2017, Ysolde transitioned to Biostratec Innovations, where she led a team focused on nutrient solution automation and precision feeding regimens for leafy greens and microgreens. Her project “NutrifyPulse” introduced adaptive nutrient cycling protocols that reduced fertilizer waste by 18% while maintaining yield quality. This work deepened her expertise in integrating sensor feedback loops with complex dosing algorithms.
+
+At Nexvane Networks, Ysolde’s focus is on the convergence of sensor data streams—such as pH, electrical conductivity, ambient humidity, and temperature—with AI models that forecast crop nutrient requirements. PhytaTrack’s real-time nutrient scheduling not only boosts yield consistency but also minimizes environmental impact, aligning with Nexvane’s sustainability goals.
+
+Ysolde is known for methodical experimentation combined with a collaborative approach. She frequently coordinates with software engineers, agronomists, and data scientists to prototype and validate new formulations and dosing strategies. Her design philosophy emphasizes modular, scalable solutions that can be adapted for a variety of crops and controlled environment agriculture setups.
+
+Her notable contributions to Nexvane include leading the “NexusBloom” initiative, which optimized nutrient profiles for flowering crops in multi-level grow towers, resulting in a 12% increase in bloom uniformity metrics across pilot farms. She also champions knowledge-sharing forums within the company, mentoring junior engineers and contributing to quarterly technical briefings.
+
+Within the vertical farming ecosystem, Ysolde works closely with product managers, hardware teams responsible for sensor integration, and field specialists who oversee pilot site deployments. Her multidisciplinary expertise and hands-on leadership continue to drive innovation at the intersection of plant nutrition science and AI-enabled precision agriculture technologies.
+
+Current employer: [[companies/nexvane-networks]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/zephyra-yarlvane.md b/test/fixtures/ranking-shapes/source-a/people/zephyra-yarlvane.md
new file mode 100644
index 0000000000..8c93fafa1d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/zephyra-yarlvane.md
@@ -0,0 +1,28 @@
+---
+type: "person"
+title: "Zephyra Yarlvane"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Zephyra Yarlvane
+
+Zephyra Yarlvane is a Vegetation Risk Analyst at Glimow Studio, where she specializes in assessing and mitigating electrical line outage risks caused by vegetation growth. Since joining Glimow Studio in 2021, Zephyra has leveraged AI-driven camera network data to evaluate foliage encroachment patterns and predict outage probabilities with enhanced precision, supporting rapid decision-making for utility vegetation management teams.
+
+Before Glimow Studio, Zephyra spent six years at ArborGuard Systems (2015–2021). There, she notably led the network-wide OutageShield Initiative, a project aimed at reducing outages through optimized vegetation trimming schedules and predictive risk modeling. Under her leadership, the initiative achieved a 30% reduction in annual line outages over three years, earning recognition from multiple regional utilities.
+
+Zephyra’s specialties include:
+
+- Risk quantification of electrical line outages due to foliage intrusion
+- Integration of AI image analytics with environmental data for vegetation monitoring
+- Development of predictive growth models to schedule proactive line inspections
+
+Her work style is collaborative and data-driven. She emphasizes cross-disciplinary communication and works closely with AI research teams, field inspection crews, and utility operations managers to ensure that risk assessments translate into actionable field strategies. Zephyra is known for meticulous data validation and thoughtful scenario analysis, often proposing contingency plans based on seasonal growth patterns and weather forecasts.
+
+Key projects she contributed to at Glimow Studio include:
+
+- Project EmberTrace: Early detection algorithms identifying wildfire ignition points near high-risk vegetation zones
+- VerdantGuard: A pilot program integrating camera analytics with drone surveys to map tree species and growth rates around critical infrastructure
+
+Zephyra frequently collaborates with the AI Systems Lead, field operations analysts, and external utility partners to refine detection technologies and enhance outage risk forecasting models. Her deep expertise in vegetation risk assessment and her leadership on outage reduction projects continue to drive innovative approaches within Glimow Studio’s wildfire prevention and utility protection efforts.
+
+Current employer: [[companies/glimow-studio]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/zosia-brinbrook.md b/test/fixtures/ranking-shapes/source-a/people/zosia-brinbrook.md
new file mode 100644
index 0000000000..e851c5663a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/zosia-brinbrook.md
@@ -0,0 +1,21 @@
+---
+type: "person"
+title: "Zosia Brinbrook"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Zosia Brinbrook
+
+Zosia Brinbrook is the founder and CEO of Vorrel Cloud, the company behind ClaimTrackr—a leading software platform for automating insurance claim submissions and monitoring approval status in real time in dental clinic billing services. With over 15 years of experience in health tech and dental practice management, Brinbrook’s vision for ClaimTrackr grew from firsthand encounters with the inefficiencies and delays dental offices face during insurance billing.
+
+Early in her career, Zosia worked as a dental office manager in a mid-sized metropolitan practice. She quickly identified that manual claim submissions were error-prone and time-consuming, often requiring multiple follow-ups to verify approval status. This bottleneck directly impacted chair utilization and revenue realization. Drawing on her background in software development and operational analytics, she began developing the initial prototype of ClaimTrackr in 2015, aiming to streamline the entire insurance claims workflow.
+
+ClaimTrackr automates submission of dental insurance claims by integrating with practice management systems and insurance provider portals. The software validates claim data, flags errors before filing, and transmits claims electronically, reducing manual entry by up to 85%. Its real-time monitoring dashboard provides staff instant updates on claim status—whether pending, approved, or rejected—cutting average reimbursement cycles from 45 days to under 15 days in many cases. ClaimTrackr also generates detailed reports on claim performance, helping clinics optimize billing processes and reduce denials.
+
+Vorrel Cloud’s first customers came from local dental groups in the greater Centara region, attracted by ClaimTrackr’s promise to simplify billing and improve cash flow. Early adopters noted a 20% increase in chair utilization due to the faster turnaround on claims and fewer billing-related disruptions. To encourage wider adoption, Zosia led several pricing experiments, including a subscription model with tiered volume limits and a “pay-per-claim” option targeting smaller practices. The current pricing package, launched in late 2022, combines a base monthly fee of $499 with $2.50 per claim, balancing affordability with scalability.
+
+Zosia’s roadmap for ClaimTrackr focuses on expanding integration capabilities with emerging dental practice management platforms and insurance networks, enhancing AI-driven error detection to preempt common claim rejections, and launching predictive analytics tools to forecast reimbursement trends. Planned features include a patient-facing portal that allows patients to track claim progress and expected payments, further reducing administrative overhead.
+
+Under Zosia Brinbrook’s leadership, ClaimTrackr has become a cornerstone solution in dental clinic scheduling and billing, addressing critical pain points with automation and real-time insights. Her blend of operational expertise and product innovation continues to drive Vorrel Cloud’s growth and the ongoing evolution of ClaimTrackr’s capabilities.
+
+Founder of [[companies/vorrel-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/people/zosia-jorvley.md b/test/fixtures/ranking-shapes/source-a/people/zosia-jorvley.md
new file mode 100644
index 0000000000..b8253e1c29
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/people/zosia-jorvley.md
@@ -0,0 +1,15 @@
+---
+type: "person"
+title: "Zosia Jorvley"
+tags: ["construction-site-robotics"]
+---
+
+# Zosia Jorvley
+
+Zosia Jorvley is currently a Drone Operations Specialist at Umbaly Cloud, where she focuses on executing precise aerial surveys for construction site topography. Since joining Umbaly Cloud in late 2021, Zosia has played a critical role in integrating drone survey data with the company’s autonomous rebar tying systems, helping to enhance site mapping accuracy and streamline robotic deployment.
+
+Prior to Umbaly Cloud, from 2017 to 2021, Zosia managed the drone fleet for Skylark Infrastructure’s large-scale urban redevelopment projects. There, she led the “SkyMap Initiative,” developing optimized flight patterns that reduced survey times by 30% while improving 3D mapping resolution. She also contributed to the “EagleEye Program,” which combined drone data with AI analytics to monitor site safety hazards in real-time.
+
+Zosia specializes in coordinating drone flight operations under challenging conditions, ensuring comprehensive data capture with minimal site disruption. She is known for a methodical working style that emphasizes meticulous flight planning and cross-disciplinary collaboration. At Umbaly Cloud, Zosia works closely with the robotics engineering team, site surveyors, and safety officers to align aerial insights with on-the-ground construction workflows.
+
+Current employer: [[companies/umbaly-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-a/writing/balancing-longevity-and-dispatch-performance.md b/test/fixtures/ranking-shapes/source-a/writing/balancing-longevity-and-dispatch-performance.md
new file mode 100644
index 0000000000..79debc6edb
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/balancing-longevity-and-dispatch-performance.md
@@ -0,0 +1,18 @@
+---
+type: "writing"
+title: "Balancing Longevity and Dispatch Performance"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Balancing Longevity and Dispatch Performance
+
+**Balancing Longevity and Dispatch Performance in Grid-Scale Battery Storage**
+*By Erin Locke, Senior Energy Systems Analyst*
+
+In late 2023, the Arcadia Grid Lab deployed its flagship 100 MW battery storage unit. Early operational data revealed a stark trade-off: aggressive dispatch strategies maximized short-term revenue but accelerated battery degradation beyond initial projections. This experience highlights a critical challenge in grid-scale storage: how to balance battery longevity with the imperative to meet dynamic grid demands.
+
+Battery degradation is primarily driven by depth of discharge, charge/discharge rates, and operating temperature. Dispatch software that prioritizes immediate grid needs often pushes batteries to cycle deeply and frequently, shortening lifespan. Conversely, overly conservative operation preserves battery health but risks missing lucrative dispatch opportunities and failing to provide essential grid services during peak stress.
+
+To navigate this tension, we recommend a hybrid approach combining degradation modeling with adaptive dispatch algorithms. Our benchmarking project at Arcadia developed a predictive degradation module integrated with real-time grid signals. This software dynamically adjusts battery utilization limits based on forecasted grid volatility and economic signals, thereby optimizing total value over the battery’s life rather than focusing solely on daily revenue.
+
+In practical terms, this means sometimes accepting lower dispatch today to preserve capacity for critical events tomorrow. For operators and software developers, embracing this holistic view is vital. As grid storage scales, prioritizing longevity alongside agility will ensure sustainable, cost-effective energy solutions for decades to come.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/challenges-in-automating-procurement-contracts.md b/test/fixtures/ranking-shapes/source-a/writing/challenges-in-automating-procurement-contracts.md
new file mode 100644
index 0000000000..28019e83f1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/challenges-in-automating-procurement-contracts.md
@@ -0,0 +1,20 @@
+---
+type: "writing"
+title: "Challenges in Automating Procurement Contracts"
+tags: ["legal-contract-automation"]
+---
+
+# Challenges in Automating Procurement Contracts
+
+**Challenges in Automating Procurement Contracts**
+*by Kelmere Trent, Legal Tech Analyst*
+
+When our team at LexiCore first piloted an automated tool for procurement contract reviews, we faced unexpected roadblocks. The model struggled to accurately extract and compare clauses across the diverse range of supplier agreements. This experience revealed key challenges in automating procurement contracts that practitioners must anticipate.
+
+Procurement contracts, unlike standard NDAs or employment agreements, vary widely in structure and terminology. One supplier’s “delivery schedule” might appear as “shipment timeline” elsewhere. Automated clause extraction models, trained on more uniform legal texts, often fail to capture these nuances. This leads to missed risks or false positives in redlining suggestions.
+
+Additionally, procurement processes involve multi-layered approvals and compliance checks. Embedding automation requires integration with existing contract lifecycle management systems and accommodating business rules that vary by department or region. This procedural complexity can stall deployment and diminish user trust.
+
+To overcome these hurdles, we recommend a hybrid approach. Begin with a baseline automated extraction tailored to your organization’s contract templates. Then, involve contract managers early to review and refine outputs, feeding corrections back into model training. Parallelly, invest in flexible software architecture that supports dynamic rules and workflows.
+
+Automating procurement contracts is not a plug-and-play exercise. Success demands a careful balance between machine learning capabilities, domain expertise, and process adaptation. With deliberate design, the promise of faster, more consistent contract reviews can be realized.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/data-driven-vegetation-management-strategies.md b/test/fixtures/ranking-shapes/source-a/writing/data-driven-vegetation-management-strategies.md
new file mode 100644
index 0000000000..40f4aaae21
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/data-driven-vegetation-management-strategies.md
@@ -0,0 +1,15 @@
+---
+type: "writing"
+title: "Data-Driven Vegetation Management Strategies"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Data-Driven Vegetation Management Strategies
+
+By Dana Lister, Data Science Lead, PyroGuard Analytics
+
+In 2023, our team faced a daunting challenge: a utility client in the Sierra Verde region was overwhelmed by the sheer volume of vegetation encroaching on their power lines. Traditional line clearance efforts were reactive and resource-intensive, often missing critical risk areas. This experience underscored for me the transformative potential of data-driven vegetation management.
+
+By integrating remote camera feeds with historical outage and weather data, we developed a risk-scoring model that dynamically prioritized sections of the grid. Areas with dense canopy growth, combined with high wind forecasts and past fire incidents, received higher clearance priority. The model was tested over six months, leading to a 35% reduction in vegetation-related outages compared to the previous year.
+
+My recommendation for utilities struggling with similar challenges is to move beyond static schedules and invest in analytics platforms that fuse diverse data streams. Prioritizing based on quantifiable risk enables targeted resource deployment, reducing costs and enhancing safety. The key is not just collecting data but deriving actionable insights that align with environmental and operational realities. With wildfire seasons growing longer and more intense, embracing these data-driven approaches is no longer optional—it is essential for resilience.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/data-driven-yield-forecasting-benefits.md b/test/fixtures/ranking-shapes/source-a/writing/data-driven-yield-forecasting-benefits.md
new file mode 100644
index 0000000000..bcda85fbc0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/data-driven-yield-forecasting-benefits.md
@@ -0,0 +1,19 @@
+---
+type: "writing"
+title: "Data-Driven Yield Forecasting Benefits"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Data-Driven Yield Forecasting Benefits
+
+By Lina Kovak, Data Scientist, Verdant Heights Indoor Farms
+
+When Verdant Heights first installed our grow towers three years ago, we relied heavily on manual observation and historical averages to estimate weekly yields. Although this approach worked reasonably well, it often led to unexpected shortages or surpluses that challenged our distribution teams. It was only after we integrated predictive yield models into our operations that we saw a transformational improvement.
+
+Predictive models use continuous sensor data—like nutrient dosing levels, temperature, humidity, and light cycles—combined with historical harvest records to forecast crop outputs days or weeks ahead. At Verdant Heights, implementing such models increased our forecast accuracy from about 70% to nearly 90%. This improvement enabled us to better align planting schedules with market demand, optimize labor allocation, and reduce waste.
+
+One concrete benefit was during last summer’s unexpected heatwave. The models anticipated a dip in yield due to increased transpiration rates and adjusted nutrient profiles, allowing our team to proactively tweak dosing schedules. This mitigated what could have been a 15% drop in harvest volume down to under 5%.
+
+For indoor farms looking to enhance operational planning, I recommend starting with a pilot project focused on one crop and one grow tower. Collect detailed environmental and dosing data, then work closely with data scientists to build and validate predictive models. Iterative refinement and close coordination with farming staff are key to turning forecasts into actionable insights.
+
+Data-driven yield forecasting is no longer a futuristic concept—it’s a vital tool for indoor farms aiming to maximize efficiency and meet growing market demands consistently.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/enhancing-safety-with-ai-monitoring.md b/test/fixtures/ranking-shapes/source-a/writing/enhancing-safety-with-ai-monitoring.md
new file mode 100644
index 0000000000..ec2d2c2ef4
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/enhancing-safety-with-ai-monitoring.md
@@ -0,0 +1,19 @@
+---
+type: "writing"
+title: "Enhancing Safety with AI Monitoring"
+tags: ["construction-site-robotics"]
+---
+
+# Enhancing Safety with AI Monitoring
+
+By Xanrel Torvik, Robotics Research Lead, ConstructAI Lab
+
+Construction sites are among the most hazardous workplaces, with injuries often caused by slips, trips, and unsafe equipment use. Over the past two years, our team at ConstructAI Lab has studied how machine learning (ML) can actively reduce these risks through continuous, real-time monitoring.
+
+Last summer, we deployed a pilot system on a mid-sized urban development called Greenfield Tower. The system combined drone surveys and fixed-site cameras equipped with ML models trained to detect safety violations—such as missing harnesses, unattended tools, or unsafe scaffolding. Within weeks, the system flagged a repeated failure to secure rebar cages properly. Site managers acted immediately, preventing what could have resulted in serious injury or a costly structural failure. This incident underscored the practical value of AI-driven oversight.
+
+Machine learning excels here because it processes vast visual data far faster than human supervisors. Unlike random manual inspections, ML systems provide consistent coverage without fatigue or distraction. They also generate actionable alerts, allowing targeted interventions rather than broad safety reminders.
+
+Based on our findings, we recommend construction firms adopt ML monitoring as a complement—not a replacement—to human safety officers. Start with high-risk zones like rebar tying and scaffolding assembly, where automation can catch subtle yet critical infractions. Invest in tailored ML models trained on site-specific workflows to minimize false alarms. And crucially, integrate these tools into existing safety protocols to enhance accountability and worker trust.
+
+In sum, machine learning is transforming construction safety from reactive to proactive. When thoughtfully deployed, it saves lives and builds stronger, more resilient projects.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/improving-revenue-through-recall-campaigns.md b/test/fixtures/ranking-shapes/source-a/writing/improving-revenue-through-recall-campaigns.md
new file mode 100644
index 0000000000..0f9b6ff5b0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/improving-revenue-through-recall-campaigns.md
@@ -0,0 +1,18 @@
+---
+type: "writing"
+title: "Improving Revenue Through Recall Campaigns"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Improving Revenue Through Recall Campaigns
+
+Improving Revenue Through Recall Campaigns
+By Dr. Liana Mercer, Clinic Operations Lead
+
+Last year, BrightSmile Dental faced a persistent challenge: low appointment adherence among patients due for preventive care. Despite sending standard annual reminders, only 52% of patients scheduled their follow-ups, which directly impacted chair utilization and the accuracy of insurance claims.
+
+To address this, our team launched Project RecallPlus, a targeted outreach campaign leveraging patient segmentation and personalized communication. Instead of generic messages, patients were grouped by factors like last visit date, treatment history, and insurance provider. We then sent tailored reminders—via SMS or email—highlighting the importance of timely check-ups and clarifying coverage benefits. For example, patients with pending cleanings received a message emphasizing the risk of gum disease progression and a clear breakdown of out-of-pocket costs under their plan.
+
+Within six months, appointment adherence rose to 78%, improving chair utilization from 62% to 85%. This boost not only enhanced revenue flow but also streamlined billing accuracy; insurance claims matched scheduled services more consistently, reducing denials by 30%.
+
+Our key recommendation: invest in data-driven recall campaigns with personalized messaging. This approach fosters patient engagement, ensures consistent preventive care, and directly supports the clinic’s financial health. BrightSmile’s experience proves that smart recall strategies are a powerful lever for growth in dental practices.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/leveraging-satellite-data-to-transform-insurance-claims.md b/test/fixtures/ranking-shapes/source-a/writing/leveraging-satellite-data-to-transform-insurance-claims.md
new file mode 100644
index 0000000000..8949bd1bc7
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/leveraging-satellite-data-to-transform-insurance-claims.md
@@ -0,0 +1,15 @@
+---
+type: "writing"
+title: "Leveraging satellite data to transform insurance claims"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Leveraging satellite data to transform insurance claims
+
+By Marla Glimtun, Senior Data Strategist, TerraScan Analytics
+
+Last spring, after a series of unprecedented storms battered the Gulf Coast, a major insurer faced a daunting surge of claims. Traditionally, assessing roof damage across thousands of homes required dispatching adjusters—a slow, costly process delaying payouts and frustrating policyholders.
+
+Satellite imagery analytics transformed this scenario. Using TerraScan’s RoofGuard algorithm, which evaluates roof conditions from high-resolution images updated weekly, the insurer swiftly identified severely damaged homes. This enabled prioritization for in-person inspections and even remote damage validations for minor cases. Concurrently, flood extent mapping from near-real-time satellite data helped allocate response resources efficiently across affected regions.
+
+The results were striking: claim processing times dropped by 35%, while customer satisfaction scores climbed 20 points. Insurers should invest in integrating satellite-derived condition scoring into their claims workflows. Doing so not only accelerates catastrophe response but also reduces operational costs and improves transparency—benefits that are crucial as climate change intensifies weather-related risks. Satellite analytics is no longer a futuristic concept; it’s a strategic imperative for modern insurance.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/maximizing-district-procurement-efficiency.md b/test/fixtures/ranking-shapes/source-a/writing/maximizing-district-procurement-efficiency.md
new file mode 100644
index 0000000000..67bbe4b5ea
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/maximizing-district-procurement-efficiency.md
@@ -0,0 +1,27 @@
+---
+type: "writing"
+title: "Maximizing District Procurement Efficiency"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Maximizing District Procurement Efficiency
+
+Maximizing District Procurement Efficiency
+By Nexmere Lee, Director of Product Strategy, LearnFlow
+
+When Central Ridge School District first explored adopting adaptive learning technologies, the enthusiasm among teachers was palpable. However, the procurement process quickly became a quagmire of conflicting vendor contracts, budget cycles, and compliance checks. Months passed with no system in place, and teachers grew frustrated at the delay in accessing tools that promised real gains in student mastery tracking.
+
+This experience is all too common across K-12 districts. Adaptive tutoring platforms, which dynamically adjust instruction to each student’s learning pace, have proven benefits in improving outcomes. Yet the complexity of district-level procurement—balancing teacher needs, district budgets, state regulations, and IT integration—often slows adoption and limits impact. Based on LearnFlow’s decade of working with over 120 districts nationwide, I recommend three key strategies to streamline purchasing and maximize value.
+
+**1. Establish a District-Wide Technology Review Committee**
+Rather than individual schools or departments negotiating separately, a cross-functional committee composed of curriculum specialists, tech staff, procurement officers, and teacher representatives can centralize evaluation. This committee meets quarterly to review adaptive tech proposals, pilot results, and vendor feedback. The committee at Westville Unified reduced approval time from an average of 24 weeks to just 10 weeks by aligning stakeholder priorities early and maintaining a rolling vendor shortlist.
+
+**2. Adopt Mastery Metrics as Procurement Criteria**
+Procurement decisions should be grounded in clear, measurable outcomes. Define specific mastery benchmarks that adaptive platforms must help achieve—such as increasing the percentage of students achieving grade-level proficiency by 15% over a school year. Include these targets in Requests for Proposals (RFPs) and require vendors to demonstrate efficacy data aligned to those metrics. This approach helped Cedar Valley District prioritize platforms that showed a 20% gain in math fluency within six months, ensuring investments drive real learning gains.
+
+**3. Leverage Multi-Year Contracts with Built-In Flexibility**
+Long-term partnerships provide financial predictability and allow vendors to invest in customization aligned to district needs. However, rigid contracts can lock districts into underperforming solutions. We advise districts like Maplewood County to negotiate multi-year agreements with clear performance review checkpoints every 12 months and opt-out clauses tied to unmet mastery targets. This approach balances stability with accountability, keeping vendors motivated and districts protected.
+
+At Central Ridge, implementing these strategies transformed a stalled procurement into a successful rollout within 9 months. Teachers now access dashboards tracking each student’s mastery journey, allowing precise interventions. The district reports a 12% improvement in reading comprehension scores since implementation.
+
+Districts aiming to harness adaptive learning’s full potential must rethink procurement as a strategic, outcome-driven process—not a bureaucratic hurdle. Creating collaborative governance, defining mastery-focused criteria, and structuring flexible contracts can accelerate adoption and unlock meaningful student success. The time to innovate procurement is now, so every classroom benefits from truly adaptive teaching.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/optimizing-camera-networks-for-fire-detection.md b/test/fixtures/ranking-shapes/source-a/writing/optimizing-camera-networks-for-fire-detection.md
new file mode 100644
index 0000000000..7e31919a6c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/optimizing-camera-networks-for-fire-detection.md
@@ -0,0 +1,29 @@
+---
+type: "writing"
+title: "Optimizing Camera Networks for Fire Detection"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Optimizing Camera Networks for Fire Detection
+
+By Brivane Marquez, Senior Research Scientist, EmberWatch Labs
+
+Wildfires pose a growing threat to power infrastructure, especially in the dry, wind-swept regions of the Arid Valley power grid. To mitigate this, utilities have increasingly deployed camera networks designed to detect early signs of fire near critical lines. Yet, as our recent field evaluations reveal, the challenge lies in balancing sensitivity with reliability in these sensor arrays.
+
+Last summer, during a routine line inspection on the Red Mesa corridor, our EmberWatch team observed an interesting pattern. The camera array detected dozens of “fire events” triggered by heat signatures and smoke plumes. However, over 75% of these alarms were false positives caused by dust clouds stirred by passing trucks or even swarms of migratory birds. In one instance, a single camera flagged a false fire alarm 12 times within two hours, leading to unnecessary crew dispatches and costly operational disruptions.
+
+This experience underlines a fundamental tension in wildfire sensor networks: increasing sensitivity to ensure no early fire goes unnoticed often comes at the cost of reliability, overwhelming crews with false alerts. Conversely, tuning cameras to be highly specific risks missing nascent fires that start small and evolve rapidly.
+
+To address this, our research suggests a multi-tiered approach:
+
+- **Dynamic Thresholding:** Adjust sensitivity parameters in real time based on environmental conditions—raising thresholds during windy days to reduce dust-triggered false alarms, while lowering them during high-risk dry spells.
+
+- **Cross-Camera Correlation:** Employ algorithms that require multiple cameras in proximity to detect consistent fire signatures before raising an alert, thereby filtering out isolated noise.
+
+- **Integration with Weather and Vegetation Data:** Fuse camera outputs with live satellite and ground sensor data on humidity, temperature, and fuel dryness to prioritize alerts that align with heightened fire risk.
+
+- **Machine Learning for Context:** Train models on historical event data to distinguish between smoke plumes caused by controlled burns, construction dust, and actual wildfires, improving classification accuracy.
+
+Implementing these measures in the EmberWatch “FireSense 3.0” pilot across the Red Mesa corridor resulted in a 62% reduction in false positives without sacrificing detection times. Field teams reported fewer disruptions and greater confidence in alerts, ultimately enhancing both safety and operational efficiency.
+
+In conclusion, optimizing wildfire detection camera networks is not about maximizing sensitivity alone but about intelligently balancing it with reliability through adaptive technologies and data fusion. As utilities expand their sensor arrays, investing in smarter algorithms and context-aware systems will be critical to turning raw data into actionable wildfire warnings that protect infrastructure and communities alike.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/optimizing-sensor-deployment-in-cold-logistics.md b/test/fixtures/ranking-shapes/source-a/writing/optimizing-sensor-deployment-in-cold-logistics.md
new file mode 100644
index 0000000000..2142c4efa0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/optimizing-sensor-deployment-in-cold-logistics.md
@@ -0,0 +1,48 @@
+---
+type: "writing"
+title: "Optimizing Sensor Deployment in Cold Logistics"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Optimizing Sensor Deployment in Cold Logistics
+
+Optimizing Sensor Deployment in Cold Logistics
+by Mina Talbot, Lead Data Analyst, FrostTrack Solutions
+
+In the intricate world of cold-chain pharmaceutical logistics, ensuring the integrity of temperature-sensitive shipments is paramount. Vaccines, biologics, and other temperature-critical pharmaceuticals must traverse complex routes without exposure to detrimental conditions. Over the past three years at FrostTrack Solutions, we have refined our approach to deploying IoT sensor tags—those small, often overlooked guardians of cold-chain safety. Our key insight? Strategic sensor placement is not a one-size-fits-all problem but a nuanced balance that maximizes data quality and shipment security while controlling costs.
+
+I still recall a particular shipment of the experimental Zynvax vaccine last summer. The route spanned three countries, with multiple transfers and an estimated transit time of 72 hours. Initially, sensors were placed only at the pallet level, capturing ambient temperature data around the cargo. Midway through, a refrigeration unit on one truck malfunctioned, but the pallet sensors failed to detect a localized temperature spike inside individual boxes. We only realized the breach upon arrival, risking the efficacy of the entire batch. This experience crystallized the need for a more layered sensor deployment strategy.
+
+### The Sensor Placement Challenge
+
+Cold-chain shipments face temperature variations at multiple scales: ambient truck environment, pallet microclimate, and the immediate packaging of individual vials or boxes. Each sensor placement level offers different data fidelity and cost implications:
+
+- **Truck-level sensors** provide a broad overview but can miss localized anomalies.
+- **Pallet-level sensors** track conditions closer to the product but may still mask internal hotspots.
+- **Package-level sensors** deliver the most granular data but incur substantial hardware and processing costs.
+
+Balancing these trade-offs requires understanding the shipment’s risk profile, duration, and handling complexity.
+
+### Our Strategic Approach
+
+At FrostTrack, we developed a tiered sensor deployment model for shipments based on a risk assessment matrix incorporating factors like product sensitivity, route complexity, and transfer points:
+
+1. **High-risk shipments** (e.g., live vaccines, multi-stop routes): Deploy sensors at all three levels—truck, pallet, and critical package zones. This multi-layered approach ensures that any temperature deviations are detected promptly and localized precisely.
+2. **Medium-risk shipments** (e.g., stable biologics on simple routes): Use pallet-level sensors supplemented by truck-level units to monitor environmental conditions.
+3. **Low-risk shipments** (e.g., temperature-tolerant pharmaceuticals): Rely primarily on truck-level sensors to minimize costs.
+
+Additionally, we leverage predictive analytics to identify “hot spots” within pallets by analyzing historical temperature variance data, enabling targeted package-level sensor placement rather than blanket coverage.
+
+### Concrete Recommendation
+
+For logistics teams managing cold-chain pharmaceuticals, I recommend adopting a data-driven sensor placement strategy guided by shipment-specific risk factors. Start by mapping your supply chain’s transfer points and environmental control complexity. Then, prioritize sensor deployment layers accordingly:
+
+- Use **truck-level sensors** as the baseline for all shipments.
+- Add **pallet-level sensors** for any multi-pallet or multi-stop shipments.
+- Employ **package-level sensors selectively** for the most sensitive products or for critical batches identified through risk assessment.
+
+In our 2023 pilot with NeuroPharma, this approach reduced sensor hardware costs by 30% while improving breach detection rates by 45%, demonstrating that smart placement—not simply more sensors—yields better results.
+
+### Conclusion
+
+Optimizing sensor deployment in cold-chain logistics is a strategic imperative that blends technology, data insight, and operational understanding. By thoughtfully layering sensors and leveraging analytics, logistics teams can safeguard pharmaceutical shipments more effectively and economically. The Zynvax shipment taught us that sensor quantity isn’t the answer; it’s where and how sensors are deployed that ensures the medicines arriving at clinics preserve their life-saving potential.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/packaging-innovations-for-vaccine-stability.md b/test/fixtures/ranking-shapes/source-a/writing/packaging-innovations-for-vaccine-stability.md
new file mode 100644
index 0000000000..fe08d16524
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/packaging-innovations-for-vaccine-stability.md
@@ -0,0 +1,13 @@
+---
+type: "writing"
+title: "Packaging Innovations for Vaccine Stability"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Packaging Innovations for Vaccine Stability
+
+In the chilly realm of vaccine logistics, packaging innovations have become a silent hero. Last year, our team at FrostLink Labs tackled a troubling issue: vaccine spoilage due to unforeseen delays and temperature fluctuations during transit. Traditional insulated boxes, reliant on bulky gel packs, limited shipment duration to roughly 48 hours, straining distribution networks in remote regions.
+
+Our breakthrough came with the introduction of phase change materials (PCMs) integrated into multilayer insulation. These PCMs absorb and release thermal energy at precise temperatures, maintaining a stable environment for up to 96 hours without external power. In a pilot run covering the mountainous district of Glenmore, this tech reduced spoilage rates by 35%, proving its robustness.
+
+For logistics planners, the recommendation is clear: transitioning to PCM-enhanced packaging can extend viable shipment windows, reduce waste, and facilitate broader vaccine access. Investing in these materials not only safeguards public health but also optimizes cold-chain efficiency across challenging terrains.
diff --git a/test/fixtures/ranking-shapes/source-a/writing/reducing-waste-through-smart-dosing.md b/test/fixtures/ranking-shapes/source-a/writing/reducing-waste-through-smart-dosing.md
new file mode 100644
index 0000000000..dd1ca274aa
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-a/writing/reducing-waste-through-smart-dosing.md
@@ -0,0 +1,29 @@
+---
+type: "writing"
+title: "Reducing Waste Through Smart Dosing"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Reducing Waste Through Smart Dosing
+
+Reducing Waste Through Smart Dosing
+_By Dr. Xanrel Armitage, Lead Agronomist, Verdant Futures Lab_
+
+In the bustling vertical farms of New Eden City, the towering grow units reach thirty feet high, packed with rows of leafy greens and herbs. It was here, amid the hum of LED lights and the steady drip of nutrient solutions, that I witnessed a transformative moment in indoor agriculture—one that dramatically cut waste and boosted both sustainability and profitability.
+
+Last spring, our team at Verdant Futures Lab installed advanced multi-sensor arrays throughout the HydraTowers, our flagship grow units. These arrays included real-time pH and electrical conductivity sensors, leaf moisture detectors, and microclimate monitors capturing temperature and humidity fluctuations every minute. Previously, nutrient dosing was based on fixed schedules and historical averages, leading to over-application and runoff that not only wasted precious inputs but also risked plant stress.
+
+One afternoon, as we reviewed live data streams, we noticed a subtle but consistent trend: the upper tiers of the tower were absorbing nutrients at a slower rate than the lower tiers. This was due to minor temperature gradients and varying light intensity caused by the tower’s design. Without precise adjustments, the upper plants received more nutrients than needed, increasing waste and potential environmental runoff during solution recirculation.
+
+Our breakthrough came with integrating these sensor inputs into a dynamic algorithm developed by our data science team. This algorithm adjusted the nutrient mix and dosing quantity every hour, fine-tuning it to the actual absorption rates and environmental conditions at different tower heights. After three weeks of incremental testing, we observed a 23% reduction in nutrient solution usage without compromising yield or quality.
+
+The anecdote illustrates a broader lesson: smart dosing powered by sensor integration and adaptive algorithms can revolutionize resource efficiency in indoor agriculture. By continuously matching nutrient supply to plant demand, farms can minimize chemical waste, lower operational costs, and reduce environmental impacts.
+
+For operators looking to implement smart dosing, I recommend starting with the following steps:
+
+- Deploy multi-point sensors throughout your grow space to capture spatial variability.
+- Collaborate with data scientists to develop or customize dosing algorithms tailored to your crops and infrastructure.
+- Conduct phased trials to validate adjustments and avoid crop stress.
+- Monitor outcomes rigorously and iterate frequently based on real-time data.
+
+Indoor agriculture holds incredible promise for sustainable food production, but it requires innovation at the intersection of biology and technology. Smart dosing is not just about saving money—it’s about building a more resilient and responsible farming system for the future.
diff --git a/test/fixtures/ranking-shapes/source-b/companies/jorley-freight.md b/test/fixtures/ranking-shapes/source-b/companies/jorley-freight.md
new file mode 100644
index 0000000000..72b566fad1
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/companies/jorley-freight.md
@@ -0,0 +1,13 @@
+---
+type: "company"
+title: "Jorley Freight"
+tags: ["legal-contract-automation"]
+---
+
+# Jorley Freight
+
+Jorley Freight delivers RedlineFlow, a cloud-native contract review platform specializing in dynamic redlining and precise change tracking. Designed primarily for legal teams in technology and financial services sectors, RedlineFlow automates clause extraction and streamlines procurement contract reviews. Since its 2022 launch, RedlineFlow has helped Jorley Freight’s top 50 clients reduce contract review times by 40%, accelerating deal cycles and minimizing human error.
+
+Jorley Freight raised a $6.5M Series A in late 2023, led by VenturePlus Equity. The 18-person team includes lawyers, software engineers, and product managers based in Riverton. Competitors include ClauseCraft Solutions, PactPilot, and LegalLayer AI, though Jorley’s dynamic redlining technology sets it apart.
+
+Open risks include evolving regulatory compliance across jurisdictions and integration challenges with legacy enterprise contract management systems.
diff --git a/test/fixtures/ranking-shapes/source-b/companies/tessik-health.md b/test/fixtures/ranking-shapes/source-b/companies/tessik-health.md
new file mode 100644
index 0000000000..67370f5457
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/companies/tessik-health.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Tessik Health"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Tessik Health
+
+Tessik Health develops ChairFlow, a scheduling and billing platform tailored for dental practices. ChairFlow intelligently optimizes chair utilization by dynamically scheduling patient appointments to minimize wait times and maximize provider efficiency. The product also integrates insurance claims processing and automated recall campaign management, streamlining administrative workflows.
+
+Customers mainly include mid-sized dental practices and group clinics aiming to improve operational performance and patient satisfaction. Early pilot programs across 12 clinics showed an average 18% increase in chair utilization and a 25% reduction in billing errors.
+
+Founded in 2023, Tessik Health recently closed a $3.5 million seed round led by Crestwood Ventures, targeting expanded product development and market entry. The founding team combines healthcare IT expertise with dental practice management experience.
+
+Key competitors include OrthoSched, DentAligner, and SmileSync, which offer partial scheduling or billing features. Open risks involve integration challenges with diverse practice management systems and resistance from traditional dental offices hesitant to adopt new workflows.
diff --git a/test/fixtures/ranking-shapes/source-b/companies/zordra-robotics.md b/test/fixtures/ranking-shapes/source-b/companies/zordra-robotics.md
new file mode 100644
index 0000000000..294cebd49d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/companies/zordra-robotics.md
@@ -0,0 +1,15 @@
+---
+type: "company"
+title: "Zordra Robotics"
+tags: ["grid-scale-battery-storage"]
+---
+
+# Zordra Robotics
+
+Zordra Robotics specializes in intelligent dispatch software for grid-scale battery storage systems. Their flagship product, FluxCore, automates battery dispatch decisions by analyzing real-time grid conditions, degradation patterns, and market prices. FluxCore’s proprietary algorithms optimize charge and discharge cycles to maximize both battery lifespan and revenue from energy arbitrage and ancillary services.
+
+Zordra targets utility-scale renewable energy storage operators, independent power producers, and microgrid developers. Its software currently manages over 120MW of operating battery capacity across diverse geographies, including solar farms in the Southwest and wind storage projects in the Midwest.
+
+Founded three years ago, Zordra Robotics has secured $22 million in Series B funding led by the Valen Energy Fund. The 35-person team blends expertise in power systems engineering, AI, and battery chemistry. Key competitors include VoltOps Analytics and GridPulse Technologies, each offering dispatch solutions with varying trade-offs in optimization depth and user experience.
+
+Open risks include evolving interconnection queue delays that affect deployment timelines and uncertainties in long-term battery degradation models impacting forecast accuracy.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/ai-hazard-detection.md b/test/fixtures/ranking-shapes/source-b/concepts/ai-hazard-detection.md
new file mode 100644
index 0000000000..b1c2fcec2e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/ai-hazard-detection.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "AI Hazard Detection"
+tags: ["construction-site-robotics"]
+---
+
+# AI Hazard Detection
+
+AI Hazard Detection uses computer vision to identify safety risks on construction sites, such as falling objects, unsafe worker postures, or unauthorized equipment zones. Cameras mounted on drones or fixed poles capture continuous video feeds, which AI models analyze in real time to detect hazards.
+
+The system works by training convolutional neural networks on annotated images of common site dangers. When a risk is detected, an alert is sent to workers’ communication devices or a centralized dashboard. Alerts include risk type, location coordinates, and urgency level.
+
+Tradeoffs include the need for extensive labeled training data and potential false positives from complex visuals like moving machinery. Processing delays can reduce real-time effectiveness. Privacy concerns must be managed due to continuous video monitoring.
+
+Example: On a 5-acre site, AI Hazard Detection processed 10,000 video frames per hour, identifying 15 genuine safety risks while generating 5 false alarms. Alert accuracy was 75%, with an average 2-second delay from detection to alert.
+
+Common failures include poor lighting causing missed hazards, occluded views blocking objects, and misclassification of harmless activities as risks.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/berth-allocation-algorithms.md b/test/fixtures/ranking-shapes/source-b/concepts/berth-allocation-algorithms.md
new file mode 100644
index 0000000000..018c7ff99d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/berth-allocation-algorithms.md
@@ -0,0 +1,35 @@
+---
+type: "concept"
+title: "Berth Allocation Algorithms"
+tags: ["maritime-port-operations"]
+---
+
+# Berth Allocation Algorithms
+
+Berth Allocation Algorithms assign incoming vessels to available dock spaces at a maritime port to optimize operational efficiency and fairness. These computational methods consider factors such as vessel size, arrival time, unloading duration, and priority levels to produce scheduling plans that minimize waiting times and maximize berth utilization.
+
+**How It Works**
+The algorithm receives a list of vessels with attributes: estimated time of arrival (ETA), cargo type, handling time, and priority (e.g., perishable goods). It matches vessels to berths, respecting constraints like berth length and equipment compatibility. Common approaches include:
+- **Greedy heuristics:** Assign vessels sequentially based on earliest arrival or highest priority.
+- **Integer Linear Programming (ILP):** Formulate allocation as an optimization problem minimizing total vessel waiting time under berth length and time-window constraints.
+- **Metaheuristics (e.g., Genetic Algorithms):** Explore multiple allocation scenarios to find near-optimal solutions in complex settings.
+
+**Tradeoffs**
+Simple heuristics run quickly but can cause suboptimal berth usage or unfair delays. ILP offers optimality but may struggle with real-time scale (e.g., >50 vessels). Metaheuristics balance solution quality and computational cost but require parameter tuning.
+
+**Example**
+Given three vessels:
+- V1: ETA 08:00, 300m length, 4 hours handling
+- V2: ETA 09:00, 250m length, 3 hours handling
+- V3: ETA 08:30, 200m length, 5 hours handling
+
+With two berths (Berth A: 350m, Berth B: 250m), the algorithm might schedule:
+- V1 at Berth A from 08:00 to 12:00
+- V3 at Berth B from 08:30 to 13:30
+- V2 waits until Berth B frees at 13:30, causing 4.5 hours delay
+
+**Common Failure Modes**
+- Overlapping schedules causing berth conflicts
+- Inaccurate ETA data leading to idle time or bottlenecks
+- Ignoring priority, resulting in unfair allocation
+- Failing to account for equipment compatibility (e.g., crane types) leading to operational delays
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/crane-telemetry-integration.md b/test/fixtures/ranking-shapes/source-b/concepts/crane-telemetry-integration.md
new file mode 100644
index 0000000000..ff0860ec71
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/crane-telemetry-integration.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "Crane Telemetry Integration"
+tags: ["maritime-port-operations"]
+---
+
+# Crane Telemetry Integration
+
+Crane Telemetry Integration involves collecting real-time sensor data from port cranes to optimize operational efficiency. Sensors installed on cranes track variables like position, load weight, swing speed, and cycle times. This data feeds into a centralized system that analyzes crane activity patterns, detects bottlenecks, and forecasts maintenance needs.
+
+How it works: Each crane transmits telemetry data every 5 seconds via a dedicated wireless network. The system aggregates this data, correlating it with berth schedules and container manifests to prioritize container moves. Machine learning models predict delays or equipment wear based on historical and live data.
+
+Tradeoffs include initial hardware costs—typically $15,000 per crane—and network reliability challenges in harsh weather. Data volume requires robust storage and processing infrastructure, which can add $10,000 monthly for a medium-sized terminal.
+
+Example: Crane #4 recorded an average cycle time of 120 seconds per container last week. After telemetry analysis identified idle times totaling 30 minutes daily, scheduling adjustments cut cycle times by 10%, increasing daily throughput by 8 containers.
+
+Common failure modes are sensor calibration drift, wireless signal loss in steel-dense areas, and data packet loss causing incomplete records, which require regular maintenance and fallback protocols.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/district-procurement-workflow.md b/test/fixtures/ranking-shapes/source-b/concepts/district-procurement-workflow.md
new file mode 100644
index 0000000000..4d2e4afb4f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/district-procurement-workflow.md
@@ -0,0 +1,15 @@
+---
+type: "concept"
+title: "District Procurement Workflow"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# District Procurement Workflow
+
+District Procurement Workflow refers to the structured process school districts follow to evaluate, approve, and purchase educational software like adaptive tutoring platforms. This typically involves multiple stages: initial needs assessment, vendor demonstrations, pilot testing, budget approval, and final contract negotiation.
+
+How it works: Districts begin by identifying instructional gaps. Next, a selection committee reviews product features, such as mastery tracking and teacher dashboards. A pilot program with 3-5 schools often gauges effectiveness. After feedback, procurement officers negotiate pricing and terms, considering licenses for all students.
+
+Tradeoffs include balancing cost versus feature richness and ensuring scalability without overwhelming teachers. For example, in Riverview District, a $150,000 budget allowed purchasing licenses for 2,000 students at $75 each, after a successful 3-month pilot.
+
+Common failure modes include unrealistic budget expectations, insufficient teacher training, and poor data integration, leading to underutilization or wasted funds.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/dynamic-scheduling-model.md b/test/fixtures/ranking-shapes/source-b/concepts/dynamic-scheduling-model.md
new file mode 100644
index 0000000000..45e518e783
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/dynamic-scheduling-model.md
@@ -0,0 +1,30 @@
+---
+type: "concept"
+title: "Dynamic Scheduling Model"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Dynamic Scheduling Model
+
+Dynamic Scheduling Model
+
+Definition
+The Dynamic Scheduling Model is an adaptive appointment system designed for dental clinics to optimize chair utilization and streamline billing processes by adjusting in real time to patient flow and clinic conditions. Unlike static scheduling, which fixes appointment slots in advance, this model continuously recalibrates appointment lengths, start times, and resource allocation based on live data inputs such as patient arrivals, cancellations, insurance verification status, and staff availability.
+
+How It Works
+The system integrates with clinic management software to monitor ongoing patient check-ins, procedure durations, and insurance claim statuses. Using predictive analytics and queuing theory, it recalculates the optimal schedule every 15 minutes. For example, if a patient cancels last minute or a procedure finishes early, the system shortens gaps or advances waiting patients to earlier slots. Conversely, if insurance claims for upcoming visits are delayed, it adjusts the schedule to prioritize self-pay or insured patients with cleared claims to minimize billing bottlenecks. Notifications are sent automatically to front-desk staff and patients about updated appointment times.
+
+Tradeoffs
+- Flexibility vs. Predictability: Patients appreciate shorter wait times but may find shifting appointment times inconvenient.
+- Complexity vs. Usability: The system’s algorithms require accurate real-time data, increasing reliance on clinic IT infrastructure.
+- Utilization vs. Staff Workload: Optimizing chair use can lead to irregular staff breaks or overtime without proper safeguards.
+
+Worked Example
+At SmileBright Dental, the model predicted a 20% no-show rate for Monday morning. The schedule was created with 10-minute buffers between 8 am and 12 pm. At 9:30 am, after a patient canceled, the system advanced a 10:45 am cleaning appointment to 9:40 am, improving chair utilization from 75% to 90% that morning. Insurance claim delays for two patients at 11 am prompted the system to reassign those slots to walk-in exams, reducing billing delays by 15%.
+
+Common Failure Modes
+- Inaccurate Data: Missing check-in or claim status info leads to poor schedule adjustments.
+- Over-Optimization: Constant rescheduling frustrates patients and staff, resulting in no-shows or errors.
+- System Downtime: Loss of real-time updates forces fallback to static schedules, reducing efficiency.
+
+Understanding these dynamics is crucial for clinics seeking to improve operational efficiency while maintaining patient satisfaction.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/integrated-fire-detection.md b/test/fixtures/ranking-shapes/source-b/concepts/integrated-fire-detection.md
new file mode 100644
index 0000000000..2e31ac270f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/integrated-fire-detection.md
@@ -0,0 +1,35 @@
+---
+type: "concept"
+title: "Integrated Fire Detection"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Integrated Fire Detection
+
+Integrated Fire Detection combines data from multiple sensor types—such as optical cameras, infrared (IR) sensors, and environmental monitors—to provide early, accurate wildfire alerts focused on utility vegetation management and outage risk reduction.
+
+## Definition
+Integrated Fire Detection refers to the fusion of diverse sensor inputs into a unified alert system capable of detecting fire signatures faster and more reliably than any single sensor type alone. It supports proactive line inspections and outage mitigation by pinpointing ignition sources near critical infrastructure.
+
+## How It Works
+- **Optical Cameras** feed real-time video to AI models trained on smoke and flame patterns.
+- **Infrared Sensors** detect heat anomalies below foliage cover, identifying smoldering hotspots invisible to RGB cameras.
+- **Environmental Sensors** measure local temperature, humidity, wind speed, and dryness indexes to contextualize fire likelihood.
+- Data streams converge in a central processing system applying weighted algorithms to generate a confidence score for potential fire events.
+- Alerts are sent to utility crews with geolocation and risk assessments.
+
+## Tradeoffs
+- **Accuracy vs. Cost:** Adding IR and environmental sensors improves detection but raises hardware and maintenance expenses.
+- **False Positives:** Smoke plumes from controlled burns or dust can trigger alarms, requiring sophisticated filtering.
+- **Latency:** Data fusion and AI inference introduce delays; optimizing for real-time warnings is challenging.
+
+## Worked Example
+A camera detects smoke at 7:02 AM, IR registers a 65°C hotspot at 7:03 AM, and humidity drops to 15%. The fusion algorithm assigns a 0.85 confidence score to a fire event near Line 42. Crews receive an alert by 7:05 AM, enabling a 15-minute response ahead of visible flame spread.
+
+## Common Failure Modes
+- Sensor obstruction by foliage or weather reduces detection reliability.
+- Network outages delay sensor data transmission.
+- Miscalibration of sensors skews confidence scoring.
+- Environmental factors like fog or dust cause false alarms requiring manual verification.
+
+Integrated Fire Detection enables utilities to intervene early, minimizing wildfire impact on power infrastructure and public safety.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/nutrient-dosing-cycles.md b/test/fixtures/ranking-shapes/source-b/concepts/nutrient-dosing-cycles.md
new file mode 100644
index 0000000000..41f1865e8d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/nutrient-dosing-cycles.md
@@ -0,0 +1,17 @@
+---
+type: "concept"
+title: "Nutrient Dosing Cycles"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Nutrient Dosing Cycles
+
+Nutrient dosing cycles refer to the scheduled intervals when precise nutrient mixtures are supplied to crops within closed-loop vertical farming systems. These cycles ensure plants consistently receive essential elements like nitrogen, phosphorus, and potassium, tailored to their growth stage.
+
+Typically, dosing occurs every 4 to 6 hours, controlled by automated pumps linked to sensors measuring solution pH, electrical conductivity, and plant uptake rates. This regular delivery maintains optimal nutrient concentration and prevents accumulation or depletion.
+
+Tradeoffs include balancing nutrient stability against system complexity and energy use. Frequent dosing improves accuracy but increases operational costs and pump wear.
+
+For example, a grow tower with 500 plants doses 1.2 liters of a solution containing 150 ppm nitrogen every 5 hours, totaling 5.76 liters daily. Consistency avoids nutrient stress, boosting yield projections by 8%.
+
+Common failures involve pump clogging, sensor drift causing overdosing, and timing errors leading to nutrient imbalances.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/procurement-review-workflow.md b/test/fixtures/ranking-shapes/source-b/concepts/procurement-review-workflow.md
new file mode 100644
index 0000000000..ff4e554b56
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/procurement-review-workflow.md
@@ -0,0 +1,13 @@
+---
+type: "concept"
+title: "Procurement Review Workflow"
+tags: ["legal-contract-automation"]
+---
+
+# Procurement Review Workflow
+
+Procurement Review Workflow refers to a structured sequence of steps designed to analyze contracts, ensure compliance, and manage vendor relationships efficiently in procurement settings. It typically begins with automated clause extraction, identifying key contract elements such as payment terms, liability, and delivery schedules. Next, redlining tools highlight deviations from standard templates, enabling legal teams to review and negotiate changes quickly. Finally, contracts proceed through staged approvals before vendor onboarding.
+
+This workflow balances speed and accuracy: automation accelerates reviews but requires careful rule tuning to avoid missing critical deviations. A typical example: out of 200 contracts monthly, automated extraction flags 30 with atypical clauses; after redlining, 10 require human negotiation, reducing overall review time by 40%.
+
+Common failure modes include false negatives in clause detection, conflicting edits in redlining, and delays due to unclear approval hierarchies. Continuous monitoring and iterative model updates help mitigate these risks, ensuring procurement compliance and vendor satisfaction.
diff --git a/test/fixtures/ranking-shapes/source-b/concepts/vegetation-encroachment-risk.md b/test/fixtures/ranking-shapes/source-b/concepts/vegetation-encroachment-risk.md
new file mode 100644
index 0000000000..9719542232
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/concepts/vegetation-encroachment-risk.md
@@ -0,0 +1,11 @@
+---
+type: "concept"
+title: "Vegetation Encroachment Risk"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Vegetation Encroachment Risk
+
+Vegetation Encroachment Risk assesses how nearby plant growth raises the chance of power outages by interfering with utility lines. It quantifies the probability that branches or foliage within a defined buffer zone will cause faults, factoring in species growth rates, weather patterns, and historical incident data. The system integrates camera network imagery with line inspection records to update risk scores monthly.
+
+Tradeoffs include balancing thorough coverage with processing costs and false positives from transient vegetation like vines. For example, a 15-meter span near a 12 kV line with fast-growing willow trees may have a 0.08 monthly outage risk, doubling from 0.04 if not trimmed after six months. Common failures involve obscured camera views, delayed inspections, and misclassifying non-threatening plants as risks.
diff --git a/test/fixtures/ranking-shapes/source-b/media/advances-in-post-flood-damage-mapping.md b/test/fixtures/ranking-shapes/source-b/media/advances-in-post-flood-damage-mapping.md
new file mode 100644
index 0000000000..92ff0bb633
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/media/advances-in-post-flood-damage-mapping.md
@@ -0,0 +1,43 @@
+---
+type: "media"
+title: "Advances in post-flood damage mapping"
+tags: ["satellite-imagery-analytics-for-insurers"]
+source_kind: "transcript"
+show: "The Tavdra Briefing"
+---
+
+# Advances in post-flood damage mapping
+
+Torben Silvdale: Welcome back to The Tavdra Briefing, everyone. Today we’re diving into some exciting advances in post-flood damage mapping, a crucial area for insurers and disaster response teams alike. I’m joined by Ilsabet Holmmere, lead scientist at StrataVis Analytics, a company pioneering satellite-based roof condition scoring and flood extent analysis. Ilsabet, thanks for joining us.
+
+Ilsabet Holmmere: Thanks for having me, Torben. It’s great to be here.
+
+Torben Silvdale: To kick things off, can you give us a sense of what’s changed in flood damage mapping over the last couple of years? I know satellite imagery has been around for a while, but what’s really new?
+
+Ilsabet Holmmere: Absolutely. So, the biggest shift has been in spatial and temporal resolution — and the integration of AI models that can interpret those images much faster and more precisely. For example, StrataVis recently completed a project with InsurSure that involved scanning a 1,200 square kilometer flood zone in Southern Tavdra. We used a constellation of microsatellites that revisit the area every 45 minutes, compared to the previous 24-hour revisit time.
+
+Torben Silvdale: That’s a huge improvement. How does the frequency of the imagery impact damage assessment?
+
+Ilsabet Holmmere: The near-real-time updates are game-changing. After the floodwaters receded, we had sequential images showing not just static water levels but also the drying patterns, debris accumulation, and critical infrastructure exposure. This enabled adjusters to prioritize claims faster. For instance, one insurer reported reducing their initial damage assessment from six days down to just 18 hours.
+
+Audience member (off mic): Could you share an example where this rapid mapping changed the course of the response?
+
+Ilsabet Holmmere: Sure. In the 2023 flood near Rivermoor, a community hospital’s roof was partially compromised, but it wasn’t obvious from ground reports because access roads were flooded. Our algorithms flagged the roof as “severely damaged” within hours. That triggered emergency reinforcement crews to act before the next storm, preventing further catastrophic damage.
+
+Torben Silvdale: That’s impressive. What about the accuracy of these assessments? Are insurers confident enough to rely on satellite data alone?
+
+Ilsabet Holmmere: Great question. Early on, there was skepticism. But thanks to advances in multispectral imaging and machine learning models trained on tens of thousands of validated roof and terrain samples, accuracy has reached above 92% in recent trials. We do complement satellite data with drone flyovers or on-the-ground photos for high-value assets, but satellite-first approaches drastically reduce costs and speed.
+
+Torben Silvdale: You mentioned machine learning. What kind of data and models are you using?
+
+Ilsabet Holmmere: Our platform ingests visible, near-infrared, and synthetic aperture radar (SAR) data. SAR is especially useful during cloudy or rainy conditions when optical imagery is obscured. We use convolutional neural networks trained on labelled datasets covering different roof materials, flood types, and damage severities. This multi-modal approach helps us distinguish between standing water, mud deposits, and structural damage.
+
+Audience member (off mic): How do you handle false positives, like confusing shadows or wet surfaces for damage?
+
+Ilsabet Holmmere: This was a big challenge initially. We incorporated temporal filters that look at changes over several images, plus contextual cues like proximity to flood zones and roof slope. That reduced false positives by 35% compared to earlier models.
+
+Torben Silvdale: What’s next for post-flood damage mapping? Any upcoming features or research areas you’re excited about?
+
+Ilsabet Holmmere: We’re working on integrating crowd-sourced photos and social media reports for real-time validation. Also, exploring hyperspectral imaging to detect moisture intrusion before visible damage occurs. The goal is to move from reactive to predictive analytics, helping insurers and emergency responders anticipate damage rather than just assess it.
+
+Torben Silvdale: Fascinating. Thanks so much for sharing these insights, Ilsabet. And thanks to our listeners for tuning in to The Tavdra Briefing. We’ll be back next week with another deep dive into the cutting edge of satellite analytics. Take care!
diff --git a/test/fixtures/ranking-shapes/source-b/media/innovations-in-student-mastery-tracking.md b/test/fixtures/ranking-shapes/source-b/media/innovations-in-student-mastery-tracking.md
new file mode 100644
index 0000000000..ae980fcff9
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/media/innovations-in-student-mastery-tracking.md
@@ -0,0 +1,45 @@
+---
+type: "media"
+title: "Innovations in Student Mastery Tracking"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+source_kind: "transcript"
+show: "The Rinyra Dispatch"
+---
+
+# Innovations in Student Mastery Tracking
+
+Gideon Wenkbrook: Welcome back to The Rinyra Dispatch, everyone. Today we’re diving into some fascinating advancements in student mastery tracking, especially within K-12 adaptive tutoring. I’m thrilled to have with me Xanthe Vaskmere, lead product strategist at LearnRise, a company pioneering teacher dashboards and mastery analytics. Xanthe, great to have you.
+
+Xanthe Vaskmere: Thanks so much for having me, Gideon. Really excited to discuss where mastery tracking is headed.
+
+Gideon: So, Xanthe, when we say “mastery tracking” these days, it’s not just a simple checklist anymore, right? What’s changed in the last few years?
+
+Xanthe: Absolutely. Five years ago, mastery tracking was mostly about marking whether a student ‘got’ a concept based on a handful of test questions — very static. Now, it’s dynamic and context-aware. For example, at LearnRise, we’ve integrated real-time performance data across multiple modalities — quizzes, interactive simulations, even short-answer responses — to create a continuously updated mastery profile.
+
+Gideon: That sounds powerful. Can you give us a concrete story where this shift made a difference?
+
+Xanthe: Sure! There’s a district in Central Haven that piloted our new dashboard last semester. Their fifth-grade math teachers had long struggled with pinpointing exactly which standards kids were floundering on, especially in fractions and decimals. Using traditional progress reports, teachers felt they were always one step behind.
+
+But with our adaptive mastery tracking, teachers saw granular insights during class. So instead of waiting for a big test result, they could intervene immediately when a student showed hesitation in, say, multiplying fractions. One teacher told me, “It was like having a spotlight on the exact skill a student was wrestling with — I could tailor mini-lessons on the spot.”
+
+Gideon: I love that image, “spotlight on the exact skill.” I imagine this must also ease some of the reporting burden teachers have?
+
+Xanthe: Definitely. Another feature we pushed recently is automated synthesis of mastery data into district-friendly reports. It’s not just numbers — the system generates narrative summaries highlighting trends, strengths, and areas needing support. That cuts down hours of manual work for educators.
+
+Gideon: That must help with procurement decisions too. How do districts respond to these insights?
+
+Xanthe: Good question. In one pilot, the district’s curriculum director used mastery analytics to identify gaps across multiple schools. They realized that a certain vendor’s fractions module wasn’t performing well on deeper skills like reasoning — despite high usage. This led them to reallocate budget towards more effective adaptive content tailored to those gaps.
+
+Gideon: So mastery tracking is not just about individual students, but informing big-picture decisions.
+
+Xanthe: Exactly. And we’re just scratching the surface. We’re exploring predictive mastery modeling — anticipating which concepts a student might struggle with next, based on patterns in their learning journey. This could personalize interventions even further.
+
+Gideon: Sounds like a game-changer. Before we wrap up, any advice for districts thinking of adopting advanced mastery trackers?
+
+Xanthe: Start small, partner closely with teachers, and focus on actionable insights. The tech is there, but success hinges on making the data meaningful and manageable for educators.
+
+Gideon: Wise words. Thanks so much, Xanthe, for sharing these insights on Innovations in Student Mastery Tracking.
+
+Xanthe: My pleasure, Gideon. Looking forward to what’s next.
+
+Gideon: And thanks to our listeners for tuning into The Rinyra Dispatch. Until next time!
diff --git a/test/fixtures/ranking-shapes/source-b/media/navigating-interconnection-queue-complexities.md b/test/fixtures/ranking-shapes/source-b/media/navigating-interconnection-queue-complexities.md
new file mode 100644
index 0000000000..79d54d7b84
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/media/navigating-interconnection-queue-complexities.md
@@ -0,0 +1,31 @@
+---
+type: "media"
+title: "Navigating Interconnection Queue Complexities"
+tags: ["grid-scale-battery-storage"]
+source_kind: "transcript"
+show: "The Xandra Dispatch"
+---
+
+# Navigating Interconnection Queue Complexities
+
+Dorrit Naskhollow: Welcome back to The Xandra Dispatch. Today, we’re diving into a thorny topic in grid-scale battery storage—interconnection queues. Joining me is Niamh Vaskstead, lead engineer at Voltara Energy Solutions. Niamh, thanks for being here.
+
+Niamh Vaskstead: Glad to be here, Dorrit.
+
+Dorrit: So, interconnection queues have been a real bottleneck for large battery projects. What’s the core issue causing these delays?
+
+Niamh: It’s a perfect storm, really. Utilities are swamped with applications, many from solar and wind folks plus battery storage players. The queue in the Midline Regional Grid alone jumped from 300 projects in 2020 to nearly 900 by late 2023. That sheer volume overwhelms the technical studies needed—like impact assessments and system upgrades.
+
+Dorrit: Wow, tripling in just three years? Any examples from your recent work?
+
+Niamh: Definitely. We had a 100 MW battery project slated for East Crest, originally expecting connection within 18 months. But with queue delays and required transformer upgrades, it stretched to nearly 42 months—more than double. That kind of timeline can kill project economics.
+
+Dorrit: That’s brutal. How are companies like Voltara navigating this?
+
+Niamh: We’re leaning heavily into early engagement with utilities and proposing modular interconnection points. Instead of a single large connection, we break the project into stages, each with its own smaller queue spot. It helps manage risk and sometimes fast-tracks partial dispatch.
+
+Dorrit: Clever. Any policy moves on the horizon?
+
+Niamh: Some regulators are piloting “fast-track” processes for proven tech and smaller upgrades, plus pushing utilities to increase staffing for queue management. But it’s early days.
+
+Dorrit: Niamh, thanks for shedding light on this. Listeners, we’ll link to Voltara’s whitepaper on queue strategies in the episode notes. Stay tuned for more on improving battery dispatch software next week.
diff --git a/test/fixtures/ranking-shapes/source-b/media/optimizing-rebar-automation-workflows.md b/test/fixtures/ranking-shapes/source-b/media/optimizing-rebar-automation-workflows.md
new file mode 100644
index 0000000000..2d4f19e616
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/media/optimizing-rebar-automation-workflows.md
@@ -0,0 +1,29 @@
+---
+type: "concept"
+title: "Optimizing Rebar Automation Workflows"
+tags: ["construction-site-robotics"]
+source_kind: "transcript"
+show: "The Wynley Dispatch"
+---
+
+# Optimizing Rebar Automation Workflows
+
+Rhosyn Holmham: Welcome back to The Wynley Dispatch, everyone. Today we’re diving into the nitty-gritty of rebar automation workflows. I’m joined by Emrys Yarlford, lead robotics engineer at ForgeBots, who’s been pioneering the latest in rebar tying tech. Emrys, great to have you here.
+
+Emrys Yarlford: Thanks, Rhosyn. Happy to be here and geek out on some rebar robotics.
+
+Rhosyn: Let’s start with the basics. What’s the biggest bottleneck in current robot-assisted steel tying on construction sites?
+
+Emrys: Honestly, it’s the variability in rebar layouts and the physical environment. Unlike a factory floor where everything’s rigid and repeatable, construction sites throw curveballs—uneven surfaces, unpredictable bar spacing, sometimes even shifting ground after a rainstorm. So the robots have to be extremely adaptable.
+
+Rhosyn: That makes sense. You mentioned in a recent talk that sensor fusion has been a game changer. Can you explain how you’re using that in ForgeBots’ latest model?
+
+Emrys: Sure. We combine LiDAR with ultra-wideband radio positioning and stereo cameras. The LiDAR builds a 3D map of the immediate surroundings, the stereo cameras identify bar intersections visually, and the radio beacons help counter GPS errors, especially in dense urban areas or under scaffolding. This lets the robot precisely locate where it needs to tie.
+
+Rhosyn: I recall you sharing a story about a recent project in Wexley Heights where the robot had to handle irregular steel spacing. What happened there?
+
+Emrys: Yeah, that was interesting. The site had some custom-designed rebar layouts—bars spaced irregularly to meet specific load criteria. The robot’s initial programming assumed uniform spacing, so it struggled. We quickly implemented an adaptive algorithm on-site. By analyzing the bar intersections in real time, the robot recalibrated its tying sequence. The result? A 30% faster tying rate than the manual crews, even with the complex layout.
+
+Rhosyn: Impressive. What about safety monitoring—how integrated is that with the rebar robots?
+
+(Condensed copy of the original page.)
diff --git a/test/fixtures/ranking-shapes/source-b/media/reducing-crane-downtime-with-iot.md b/test/fixtures/ranking-shapes/source-b/media/reducing-crane-downtime-with-iot.md
new file mode 100644
index 0000000000..e134a8d432
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/media/reducing-crane-downtime-with-iot.md
@@ -0,0 +1,19 @@
+---
+type: "concept"
+title: "Reducing Crane Downtime with IoT"
+tags: ["maritime-port-operations"]
+source_kind: "transcript"
+show: "The Brilet Sessions"
+---
+
+# Reducing Crane Downtime with IoT
+
+Amadeo Ibbwick: Welcome back to The Brilet Sessions, everyone. Today, we’re diving into a critical topic—how IoT tech is cutting crane downtime at maritime ports. Jessamy Silvmoor, PortTech Innovations’ lead engineer, joins us. Jessamy, what was the turning point that made you champion telemetry sensors on cranes?
+
+Jessamy Silvmoor: Thanks, Amadeo. It was actually last summer at Southgate Port. We had a massive backlog—over 300 containers delayed because one crane’s gearbox failed unexpectedly. That sparked the idea: what if the crane could tell us it was struggling before breaking down?
+
+Amadeo: Makes sense. So, how did IoT sensors change the game?
+
+Jessamy: We installed vibration and temperature sensors on all twenty cranes. The system flags anomalies in real time. For example, last month, one crane showed abnormal heat spikes in a motor bearing. The maintenance team was dispatched immediately—no downtime, no backlog.
+
+(Condensed copy of the original page.)
diff --git a/test/fixtures/ranking-shapes/source-b/meetings/2023-02-06-scaling-multi-tower-operations.md b/test/fixtures/ranking-shapes/source-b/meetings/2023-02-06-scaling-multi-tower-operations.md
new file mode 100644
index 0000000000..163d60d7c8
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/meetings/2023-02-06-scaling-multi-tower-operations.md
@@ -0,0 +1,32 @@
+---
+type: "meeting"
+title: "Scaling Multi-Tower Operations"
+tags: ["vertical-farming-and-indoor-agriculture"]
+date: "2023-02-06"
+attendees: ["Ysolde Fennford","Fiora Velkbrook","Linnea Marqmoor"]
+---
+
+# Scaling Multi-Tower Operations
+
+Date: 2023-02-06
+Attendees: Ysolde Fennford, Fiora Velkbrook, Linnea Marqmoor
+
+**Agenda:**
+- Review infrastructure upgrades for scaling from 10 to 25 grow towers
+- Assess nutrient dosing system capacity and automation needs
+- Update on yield forecasting model integration
+
+**Discussion:**
+Ysolde opened with the goal to triple production capacity by Q3 2023, requiring upgrades to climate control and nutrient delivery systems. Fiora reported current nutrient dosing pumps handle up to 500 liters/hour, but scaling will require at least doubling to 1,200 liters/hour to serve 25 towers. Linnea presented preliminary yield forecast models showing a 15% variance margin, aiming to improve accuracy by integrating real-time sensor data from new towers. The team debated phased rollout versus all upgrades at once; phased approach preferred to limit downtime.
+
+**Decisions:**
+- Proceed with phased infrastructure upgrades starting March 2023
+- Upgrade dosing pumps to 1,200 liters/hour capacity by May
+- Integrate enhanced forecasting sensors in new towers only for pilot
+
+**Action Items:**
+- Fiora to finalize pump specs and vendor quotes by 02/20 (Owner: Fiora Velkbrook)
+- Linnea to develop sensor integration plan and timeline by 02/25 (Owner: Linnea Marqmoor)
+- Ysolde to coordinate with operations for phased rollout schedule by 02/28 (Owner: Ysolde Fennford)
+
+Attendee pages: [[people/ysolde-fennford]], [[people/fiora-velkbrook]], [[people/linnea-marqmoor]].
diff --git a/test/fixtures/ranking-shapes/source-b/meetings/2023-05-16-clause-extraction-algorithm-review.md b/test/fixtures/ranking-shapes/source-b/meetings/2023-05-16-clause-extraction-algorithm-review.md
new file mode 100644
index 0000000000..9f5b831972
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/meetings/2023-05-16-clause-extraction-algorithm-review.md
@@ -0,0 +1,45 @@
+---
+type: "meeting"
+title: "Clause Extraction Algorithm Review"
+tags: ["legal-contract-automation"]
+date: "2023-05-16"
+attendees: ["Torben Fennmere","Amadeo Ibbdale","Dorrit Ravnham"]
+---
+
+# Clause Extraction Algorithm Review
+
+Date: 2023-05-16
+Attendees: Torben Fennmere, Amadeo Ibbdale, Dorrit Ravnham
+
+**Agenda:**
+- Review current clause extraction algorithm performance
+- Identify bottlenecks in clause identification accuracy
+- Propose improvements and enhancements to the ML models
+- Assign action items for next development sprint
+
+**Discussion:**
+
+Torben opened the meeting by presenting the latest evaluation metrics of the clause extraction algorithm used in the ContractIQ platform. Current accuracy sits at 82.4% overall clause identification, with a precision of 85.1% and recall of 79.8%, based on the 10,000-contract benchmark set from Q1 2023.
+
+Amadeo highlighted that certain clause types—specifically indemnity, confidentiality, and termination—showed uneven model performance. Indemnity clauses had the lowest recall at 71.2%, while termination clauses had the highest precision at 89.4%. Dorrit pointed out that this variability is impacting procurement teams’ trust in automated redlining suggestions, leading to increased manual intervention.
+
+The team reviewed error analysis reports from the last sprint. Patterns showed frequent misclassification of clauses with overlapping language, especially within multi-purpose sections combining payment terms and liability. The ML model struggles with long, nested sentences common in those contract templates from the manufacturing sector.
+
+Torben proposed integrating a domain-specific syntactic parser to better handle complex sentence structures. Amadeo suggested augmenting the training dataset with an additional 5,000 annotated contract segments focusing on those problematic clause types and sectors. Dorrit recommended adding a confidence score threshold filter to flag ambiguous clauses for human review instead of automatic extraction.
+
+The team agreed to prioritize improving recall on indemnity clauses to at least 78% by the end of Q2, while maintaining precision above 84%. They also discussed expanding the clause taxonomy to include emerging procurement terms that have appeared in recent contracts.
+
+**Decisions:**
+- Integrate domain-specific syntactic parser module by June 15, 2023. (Owner: Torben)
+- Expand annotated training data by 5,000 segments focused on indemnity, confidentiality, and termination clauses. (Owner: Amadeo)
+- Develop confidence score threshold and human-in-the-loop review workflow for ambiguous clause identifications. (Owner: Dorrit)
+- Set target recall improvement for indemnity clauses to 78% with precision above 84% for next release.
+- Update clause taxonomy to include 12 new procurement-related clause categories identified in last quarter’s contracts. (Owner: Dorrit)
+
+**Action Items:**
+- Torben to research and select syntactic parser tools compatible with current ML pipeline by May 30.
+- Amadeo to coordinate annotation team for expanded training dataset; initial batch due June 10.
+- Dorrit to draft confidence threshold parameters and design review workflow; present prototype June 5.
+- All to meet again on June 16 for progress review and integration planning.
+
+Attendee pages: [[people/torben-fennmere]], [[people/amadeo-ibbdale]], [[people/dorrit-ravnham]].
diff --git a/test/fixtures/ranking-shapes/source-b/meetings/2024-07-02-district-procurement-coordination-session.md b/test/fixtures/ranking-shapes/source-b/meetings/2024-07-02-district-procurement-coordination-session.md
new file mode 100644
index 0000000000..e67c71e51a
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/meetings/2024-07-02-district-procurement-coordination-session.md
@@ -0,0 +1,29 @@
+---
+type: "note"
+title: "District Procurement Coordination Session"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+date: "2024-07-02"
+attendees: ["Dorrit Peltdale","Rhosyn Jorvham","Saskia Silvhollow"]
+---
+
+# District Procurement Coordination Session
+
+Date: 2024-07-02
+Attendees: Dorrit Peltdale, Rhosyn Jorvham, Saskia Silvhollow
+
+**Agenda:**
+- Review current procurement processes across districts
+- Align vendor selection criteria for adaptive tutoring platforms
+- Establish coordinated timeline for RFP releases and evaluations
+
+**Discussion:**
+Dorrit reported that District A currently employs a three-stage procurement process, taking approximately 120 days from RFP release to contract award. District B’s process is shorter, averaging 85 days, but lacks formal vendor scoring rubrics. District C uses a hybrid model with a 100-day timeline and incorporates teacher feedback in vendor evaluations.
+
+The group agreed on the need to harmonize vendor selection criteria to improve comparability. Rhosyn proposed a standardized rubric focusing on:
+- Platform adaptability (weight 30%)
+- Data privacy and compliance (25%)
+- Teacher dashboard usability (20%)
+- Cost-effectiveness (15%)
+- Vendor support and training (10%)
+
+(Condensed copy of the original page.)
diff --git a/test/fixtures/ranking-shapes/source-b/notes/chair-utilization-optimization-tips.md b/test/fixtures/ranking-shapes/source-b/notes/chair-utilization-optimization-tips.md
new file mode 100644
index 0000000000..079e7b1b75
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/notes/chair-utilization-optimization-tips.md
@@ -0,0 +1,27 @@
+---
+type: "concept"
+title: "Chair Utilization Optimization Tips"
+tags: ["dental-clinic-scheduling-and-billing"]
+---
+
+# Chair Utilization Optimization Tips
+
+Chair Utilization Optimization Tips — Working Note
+Author: Ephik Lin, Scheduling Analyst
+Date: 2024-05-15
+
+---
+
+**Observations:**
+- Current average chair utilization across our four clinics is 68%, varying widely by location: Downtown Clinic hits 75%, while Eastside lags at 60%.
+- Peak appointment requests happen T/Th mornings and Friday afternoons, but these periods also coincide with the longest average appointment durations (55 mins vs. 40 mins weekday mid-afternoon).
+- Patient no-show rates are around 12% system-wide, spiking to 18% in the Eastside clinic.
+- Recall campaign effectiveness varies: 38% recall completion at Downtown but only 25% at Westgate.
+- Insurance claim processing delays sometimes lead to billing errors, impacting cash flow and patient satisfaction.
+
+**Measurements:**
+- Average chair downtime between appointments is roughly 15 minutes, primarily due to cleaning and room prep.
+- Around 20% of appointment slots are booked for emergency or walk-in patients, who often disrupt planned schedules.
+- Appointment length variance within the same treatment type ranges up to ±10 minutes, suggesting inconsistent scheduling guidelines or provider habits.
+
+(Condensed copy of the original page.)
diff --git a/test/fixtures/ranking-shapes/source-b/notes/improving-flood-extent-accuracy.md b/test/fixtures/ranking-shapes/source-b/notes/improving-flood-extent-accuracy.md
new file mode 100644
index 0000000000..8b8da11c7f
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/notes/improving-flood-extent-accuracy.md
@@ -0,0 +1,26 @@
+---
+type: "concept"
+title: "Improving flood extent accuracy"
+tags: ["satellite-imagery-analytics-for-insurers"]
+---
+
+# Improving flood extent accuracy
+
+Since last week’s update, I’ve been focusing on the flood extent model, especially around urban flood zones where false positives have been a persistent issue. The new adjustments we rolled out in version 4.3.2 seem promising but also raise a few questions.
+
+**Observations:**
+
+- False positive detections in dense urban areas dropped by roughly 28% compared to v4.3.1 when we applied the new urban land masking combined with adjusted NDWI thresholds.
+- The adjusted threshold for the Normalized Difference Water Index (NDWI) was lowered from 0.35 to 0.28 in these zones, which aligns better with the observed spectral signatures during minor floods.
+- However, in some mixed residential-commercial zones, we noticed occasional underestimation of flood extent, particularly in areas with reflective rooftop materials that confuse the model.
+- Visual comparison against ground truth data from the March 2024 Pinecrest flood event shows improved precision but a slight dip in recall (approximately 5%).
+
+**Measurements:**
+
+- Current precision in urban flood zones: 82.3% (up from 64.5%)
+- Recall in same zones: 75.1% (down from 79.6%)
+- Overall F1 score for urban zones: 78.5% (previously 71.2%)
+
+**Open Questions:**
+
+(Condensed copy of the original page.)
diff --git a/test/fixtures/ranking-shapes/source-b/notes/maintenance-checklist-for-grow-towers.md b/test/fixtures/ranking-shapes/source-b/notes/maintenance-checklist-for-grow-towers.md
new file mode 100644
index 0000000000..91ab752b0e
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/notes/maintenance-checklist-for-grow-towers.md
@@ -0,0 +1,30 @@
+---
+type: "note"
+title: "Maintenance Checklist for Grow Towers"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Maintenance Checklist for Grow Towers
+
+Maintenance Checklist for Grow Towers – Working Note
+
+Date: 2024-06-15
+Technician: Lina M.
+
+Observations:
+- Humidity sensors in Tower A3 showed fluctuations between 70-85% over last 48 hours, exceeding the target 75±5%. Possible sensor drift or localized airflow issues.
+- Nutrient dosing pumps on Tower B1 are delivering slightly less volume than programmed—measured output at 9.1 ml/min vs. 10 ml/min expected. No alarms triggered yet.
+- LED light intensity readings stable across all zones, averaging 380 µmol/m²/s, matching setpoint.
+
+Measurements:
+- pH levels in Tower A tanks steady at 6.0-6.2, within optimal range for lettuce crops.
+- Air temperature varies minimally, 22.5-23.0°C, no hotspots detected.
+
+Open Questions:
+- Are the humidity sensor anomalies due to hardware degradation or microclimate effects?
+- Should we recalibrate nutrient dosing pumps or replace worn parts preemptively?
+
+Next Steps:
+- Schedule sensor recalibration for Tower A3 by next week.
+- Inspect and test dosing pump seals on Tower B1 by end of this week.
+- Monitor crop leaf turgor daily to correlate with environmental data.
diff --git a/test/fixtures/ranking-shapes/source-b/notes/rebar-robot-maintenance-checklist.md b/test/fixtures/ranking-shapes/source-b/notes/rebar-robot-maintenance-checklist.md
new file mode 100644
index 0000000000..6fbee14896
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/notes/rebar-robot-maintenance-checklist.md
@@ -0,0 +1,32 @@
+---
+type: "note"
+title: "Rebar Robot Maintenance Checklist"
+tags: ["construction-site-robotics"]
+---
+
+# Rebar Robot Maintenance Checklist
+
+Rebar Robot Maintenance Checklist — Working Note
+
+Date: 2024-04-21
+From: Ephik, Field Tech Lead
+
+Observations:
+- TieBot #7 has shown slight delay in tying cycle times over the past week; average cycle up from 12.3s to 13.1s. Suspected minor wear on wrist servo.
+- Battery health checks on all units show 87-92% capacity remaining after 150 charge cycles, within expected range but trending downward.
+- Cameras on TieBot #4 appear slightly fogged during morning shifts — possibly condensation inside housing. Need to inspect seals.
+
+Measurements:
+- Wrist servo torque output measured at 1.45 Nm on unit #7, down from 1.6 Nm baseline.
+- Dust accumulation inside unit #2’s ventilation grills measured ~0.8 mm layer — recommend more frequent filter swaps.
+- Battery charge time stable at ~110 minutes, no anomalies.
+
+Open Questions:
+- How often should we recalibrate the servo torque sensors? Currently doing it every 3 months, but maybe quarterly is too long?
+- Any updates on firmware patches addressing thermal regulation — overheating warnings popped up in the last firmware version.
+
+Next Steps:
+- Schedule servo replacement on unit #7 ahead of next project phase.
+- Replace camera seals on unit #4 and monitor for fogging next week.
+- Increase filter replacement frequency from biweekly to weekly for dusty sites.
+- Check in with firmware team about thermal regulation fixes and possible calibration intervals.
diff --git a/test/fixtures/ranking-shapes/source-b/notes/vendor-contract-compliance-tips.md b/test/fixtures/ranking-shapes/source-b/notes/vendor-contract-compliance-tips.md
new file mode 100644
index 0000000000..577c0a19d0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/notes/vendor-contract-compliance-tips.md
@@ -0,0 +1,45 @@
+---
+type: "note"
+title: "Vendor Contract Compliance Tips"
+tags: ["legal-contract-automation"]
+---
+
+# Vendor Contract Compliance Tips
+
+Vendor Contract Compliance Tips — Working Note by Kelmere, Contract Analyst
+
+Date: 2024-06-15
+
+—
+
+**Observations:**
+
+- In the last 30 vendor contracts reviewed through Project Redline, we noticed a 22% rate of clauses that deviate from our standard procurement policies—mostly around indemnity and payment terms.
+- Clause extraction models perform well on standard templates but struggle with variations in language, especially in vendor-specific addendum sections.
+- The current automated redlining tool flags an average of 15 potential compliance issues per contract, but manual review confirms about 40% are false positives, leading to reviewer fatigue.
+- Procurement policy updates from April 2024 introduced stricter data privacy requirements, but only 60% of contracts in the last quarter reflect those changes.
+
+**Measurements:**
+
+- Accuracy of clause extraction for indemnity clauses: 87%
+- Accuracy for data privacy clauses: 72%
+- Average time for manual review per contract post-automation: 45 minutes (down from 75 minutes before automation)
+- Percentage of contracts with non-compliant termination clauses: 18%
+
+**Open Questions:**
+
+- Can we improve clause extraction accuracy by fine-tuning models specifically on vendor addenda and non-standard language?
+- How to reduce false positives in automated redlining without sacrificing the detection of critical compliance issues?
+- Should we implement a mandatory checklist for reviewers focusing on newly updated procurement policies to ensure completeness?
+- What is the best way to integrate procurement policy updates into the clause extraction model’s training data promptly?
+
+**Next Steps:**
+
+- Coordinate with the ML team to run a focused training cycle on 50 recent vendor addenda to improve clause extraction recall.
+- Propose a pilot of an enhanced filtering algorithm for redlining alerts to reduce false positives, targeting a 25% reduction.
+- Draft a standardized reviewer checklist outlining key procurement rules, especially data privacy and termination clauses.
+- Schedule a cross-team meeting with procurement and legal to discuss rapid policy update integration workflows by end of Q3 2024.
+
+—
+
+This note is a snapshot toward refining how we ensure vendor contracts strictly follow our evolving procurement policies while balancing automation efficiency and human oversight. Further iterations will be needed as models and policies evolve.
diff --git a/test/fixtures/ranking-shapes/source-b/people/dorrit-lornley.md b/test/fixtures/ranking-shapes/source-b/people/dorrit-lornley.md
new file mode 100644
index 0000000000..b3f81c1454
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/people/dorrit-lornley.md
@@ -0,0 +1,27 @@
+---
+type: "person"
+title: "Dorrit Lornley"
+tags: ["construction-site-robotics"]
+---
+
+# Dorrit Lornley
+
+Dorrit Lornley is a Robotics Integration Engineer currently employed at Umbaly Cloud, a leading provider of autonomous rebar tying systems designed to improve speed and consistency on construction sites. Since joining Umbaly Cloud in 2020, Dorrit has focused on developing advanced autonomous controllers specifically tailored for rebar tying robots, a critical component in the broader domain of construction site robotics.
+
+Career History
+
+Dorrit began her career in 2014 as a robotics technician at BuildTech Innovations, where she contributed to early-stage prototypes of drone survey systems. In 2017, she transitioned to Titan Scaffold Corp., a major scaffold manufacturing and installation company, where she was promoted to lead engineer and spearheaded the company’s automation upgrade project. This initiative, internally codenamed Project IronClad, involved retrofitting existing scaffold assembly lines with robotic automation, cutting assembly time by 30% and reducing human errors significantly. Her work on Project IronClad earned her recognition among the company’s technical leadership for blending practical engineering solutions with scalable automation.
+
+Specialties
+
+Dorrit’s specialty lies in the design and tuning of autonomous control systems for mechanical arms used in rebar tying. She combines expertise in motion planning algorithms, sensor integration, and real-time feedback control to create systems that adapt dynamically to varying site conditions. Her proficiency with embedded systems and machine learning techniques also enables the robots to improve performance over time through data-driven adjustments.
+
+Notable Projects at Umbaly Cloud
+
+At Umbaly Cloud, Dorrit led the development of the Autotie Controller, a next-generation control platform that increased tying speed by 25% while maintaining a 99.8% tie accuracy rate. She also contributed to Project SkySurvey, integrating drone-based site scanning data to optimize robot paths in real time. Her collaboration with the safety monitoring team helped ensure robots operate safely alongside human workers.
+
+Working Style and Collaborations
+
+Known for a methodical and data-driven approach, Dorrit emphasizes iterative testing and cross-disciplinary teamwork. She frequently collaborates with software developers, mechanical engineers, and site safety officers to ensure the autonomous systems meet both operational and regulatory requirements. Her clear communication and hands-on leadership style foster a productive environment in the rapidly evolving field of construction robotics.
+
+Current employer: [[companies/umbaly-cloud]].
diff --git a/test/fixtures/ranking-shapes/source-b/people/rhosyn-jorvham.md b/test/fixtures/ranking-shapes/source-b/people/rhosyn-jorvham.md
new file mode 100644
index 0000000000..174619226c
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/people/rhosyn-jorvham.md
@@ -0,0 +1,21 @@
+---
+type: "person"
+title: "Rhosyn Jorvham"
+tags: ["adaptive-tutoring-for-k-12-schools"]
+---
+
+# Rhosyn Jorvham
+
+Rhosyn Jorvham serves as a Curriculum Integration Specialist at Umbix Dynamics, a leading provider of adaptive tutoring solutions tailored for K-12 schools. Since joining Umbix in 2019, Rhosyn has specialized in designing mastery-based lesson plans and assessments that seamlessly integrate with Umbix’s adaptive learning platform, enabling personalized learning pathways and real-time mastery tracking for students.
+
+Before her current role, Rhosyn spent five years (2014–2019) as an Instructional Designer at Edvanta Systems, where she focused on creating competency-aligned curricula for middle and high school levels. There, she contributed to the development of the “Project Helix” initiative, which introduced formative assessment templates now widely used in blended learning environments. Her work emphasized scaffolding concepts to support mastery learning, laying the groundwork for her later specialization.
+
+One of Rhosyn’s most notable projects at Umbix Dynamics was leading the district-wide rollout of adaptive learning modules in the Ridgewood School District during the 2020–2021 school year. Code-named “Operation Evergreen,” this initiative involved collaborating closely with district curriculum coordinators, lead teachers, and IT staff to customize lesson pathways in math and science, develop teacher dashboards tailored to district needs, and train over 150 educators in adaptive instructional strategies. The success of Operation Evergreen increased student mastery rates by 18% on average in participating schools within the first academic year.
+
+Rhosyn’s approach to her work is highly collaborative and data-driven. She maintains an active partnership with product managers, data analysts, and educational researchers at Umbix Dynamics to continually refine lesson plans based on student performance metrics. She values feedback loops with teachers and district administrators, often leading focus groups to gather insights that inform iterative curriculum improvements.
+
+Her day-to-day responsibilities include designing mastery-aligned assessments, developing teacher dashboard features that highlight student progress gaps, and coordinating cross-functional workshops to align curriculum goals with Umbix’s adaptive platform capabilities. Rhosyn typically works closely with the Client Success team and regional district education officers to ensure smooth implementation and ongoing support.
+
+Known for her meticulous attention to detail and emphasis on practical classroom application, Rhosyn is a key contributor to Umbix Dynamics’ mission of enhancing personalized learning outcomes through mastery tracking and adaptive instruction.
+
+Current employer: [[companies/umbix-dynamics]].
diff --git a/test/fixtures/ranking-shapes/source-b/people/zephyra-yarlvane.md b/test/fixtures/ranking-shapes/source-b/people/zephyra-yarlvane.md
new file mode 100644
index 0000000000..8c93fafa1d
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/people/zephyra-yarlvane.md
@@ -0,0 +1,28 @@
+---
+type: "person"
+title: "Zephyra Yarlvane"
+tags: ["wildfire-detection-and-utility"]
+---
+
+# Zephyra Yarlvane
+
+Zephyra Yarlvane is a Vegetation Risk Analyst at Glimow Studio, where she specializes in assessing and mitigating electrical line outage risks caused by vegetation growth. Since joining Glimow Studio in 2021, Zephyra has leveraged AI-driven camera network data to evaluate foliage encroachment patterns and predict outage probabilities with enhanced precision, supporting rapid decision-making for utility vegetation management teams.
+
+Before Glimow Studio, Zephyra spent six years at ArborGuard Systems (2015–2021). There, she notably led the network-wide OutageShield Initiative, a project aimed at reducing outages through optimized vegetation trimming schedules and predictive risk modeling. Under her leadership, the initiative achieved a 30% reduction in annual line outages over three years, earning recognition from multiple regional utilities.
+
+Zephyra’s specialties include:
+
+- Risk quantification of electrical line outages due to foliage intrusion
+- Integration of AI image analytics with environmental data for vegetation monitoring
+- Development of predictive growth models to schedule proactive line inspections
+
+Her work style is collaborative and data-driven. She emphasizes cross-disciplinary communication and works closely with AI research teams, field inspection crews, and utility operations managers to ensure that risk assessments translate into actionable field strategies. Zephyra is known for meticulous data validation and thoughtful scenario analysis, often proposing contingency plans based on seasonal growth patterns and weather forecasts.
+
+Key projects she contributed to at Glimow Studio include:
+
+- Project EmberTrace: Early detection algorithms identifying wildfire ignition points near high-risk vegetation zones
+- VerdantGuard: A pilot program integrating camera analytics with drone surveys to map tree species and growth rates around critical infrastructure
+
+Zephyra frequently collaborates with the AI Systems Lead, field operations analysts, and external utility partners to refine detection technologies and enhance outage risk forecasting models. Her deep expertise in vegetation risk assessment and her leadership on outage reduction projects continue to drive innovative approaches within Glimow Studio’s wildfire prevention and utility protection efforts.
+
+Current employer: [[companies/glimow-studio]].
diff --git a/test/fixtures/ranking-shapes/source-b/writing/optimizing-sensor-deployment-in-cold-logistics.md b/test/fixtures/ranking-shapes/source-b/writing/optimizing-sensor-deployment-in-cold-logistics.md
new file mode 100644
index 0000000000..2142c4efa0
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/writing/optimizing-sensor-deployment-in-cold-logistics.md
@@ -0,0 +1,48 @@
+---
+type: "writing"
+title: "Optimizing Sensor Deployment in Cold Logistics"
+tags: ["cold-chain-pharmaceutical-logistics"]
+---
+
+# Optimizing Sensor Deployment in Cold Logistics
+
+Optimizing Sensor Deployment in Cold Logistics
+by Mina Talbot, Lead Data Analyst, FrostTrack Solutions
+
+In the intricate world of cold-chain pharmaceutical logistics, ensuring the integrity of temperature-sensitive shipments is paramount. Vaccines, biologics, and other temperature-critical pharmaceuticals must traverse complex routes without exposure to detrimental conditions. Over the past three years at FrostTrack Solutions, we have refined our approach to deploying IoT sensor tags—those small, often overlooked guardians of cold-chain safety. Our key insight? Strategic sensor placement is not a one-size-fits-all problem but a nuanced balance that maximizes data quality and shipment security while controlling costs.
+
+I still recall a particular shipment of the experimental Zynvax vaccine last summer. The route spanned three countries, with multiple transfers and an estimated transit time of 72 hours. Initially, sensors were placed only at the pallet level, capturing ambient temperature data around the cargo. Midway through, a refrigeration unit on one truck malfunctioned, but the pallet sensors failed to detect a localized temperature spike inside individual boxes. We only realized the breach upon arrival, risking the efficacy of the entire batch. This experience crystallized the need for a more layered sensor deployment strategy.
+
+### The Sensor Placement Challenge
+
+Cold-chain shipments face temperature variations at multiple scales: ambient truck environment, pallet microclimate, and the immediate packaging of individual vials or boxes. Each sensor placement level offers different data fidelity and cost implications:
+
+- **Truck-level sensors** provide a broad overview but can miss localized anomalies.
+- **Pallet-level sensors** track conditions closer to the product but may still mask internal hotspots.
+- **Package-level sensors** deliver the most granular data but incur substantial hardware and processing costs.
+
+Balancing these trade-offs requires understanding the shipment’s risk profile, duration, and handling complexity.
+
+### Our Strategic Approach
+
+At FrostTrack, we developed a tiered sensor deployment model for shipments based on a risk assessment matrix incorporating factors like product sensitivity, route complexity, and transfer points:
+
+1. **High-risk shipments** (e.g., live vaccines, multi-stop routes): Deploy sensors at all three levels—truck, pallet, and critical package zones. This multi-layered approach ensures that any temperature deviations are detected promptly and localized precisely.
+2. **Medium-risk shipments** (e.g., stable biologics on simple routes): Use pallet-level sensors supplemented by truck-level units to monitor environmental conditions.
+3. **Low-risk shipments** (e.g., temperature-tolerant pharmaceuticals): Rely primarily on truck-level sensors to minimize costs.
+
+Additionally, we leverage predictive analytics to identify “hot spots” within pallets by analyzing historical temperature variance data, enabling targeted package-level sensor placement rather than blanket coverage.
+
+### Concrete Recommendation
+
+For logistics teams managing cold-chain pharmaceuticals, I recommend adopting a data-driven sensor placement strategy guided by shipment-specific risk factors. Start by mapping your supply chain’s transfer points and environmental control complexity. Then, prioritize sensor deployment layers accordingly:
+
+- Use **truck-level sensors** as the baseline for all shipments.
+- Add **pallet-level sensors** for any multi-pallet or multi-stop shipments.
+- Employ **package-level sensors selectively** for the most sensitive products or for critical batches identified through risk assessment.
+
+In our 2023 pilot with NeuroPharma, this approach reduced sensor hardware costs by 30% while improving breach detection rates by 45%, demonstrating that smart placement—not simply more sensors—yields better results.
+
+### Conclusion
+
+Optimizing sensor deployment in cold-chain logistics is a strategic imperative that blends technology, data insight, and operational understanding. By thoughtfully layering sensors and leveraging analytics, logistics teams can safeguard pharmaceutical shipments more effectively and economically. The Zynvax shipment taught us that sensor quantity isn’t the answer; it’s where and how sensors are deployed that ensures the medicines arriving at clinics preserve their life-saving potential.
diff --git a/test/fixtures/ranking-shapes/source-b/writing/reducing-waste-through-smart-dosing.md b/test/fixtures/ranking-shapes/source-b/writing/reducing-waste-through-smart-dosing.md
new file mode 100644
index 0000000000..dd1ca274aa
--- /dev/null
+++ b/test/fixtures/ranking-shapes/source-b/writing/reducing-waste-through-smart-dosing.md
@@ -0,0 +1,29 @@
+---
+type: "writing"
+title: "Reducing Waste Through Smart Dosing"
+tags: ["vertical-farming-and-indoor-agriculture"]
+---
+
+# Reducing Waste Through Smart Dosing
+
+Reducing Waste Through Smart Dosing
+_By Dr. Xanrel Armitage, Lead Agronomist, Verdant Futures Lab_
+
+In the bustling vertical farms of New Eden City, the towering grow units reach thirty feet high, packed with rows of leafy greens and herbs. It was here, amid the hum of LED lights and the steady drip of nutrient solutions, that I witnessed a transformative moment in indoor agriculture—one that dramatically cut waste and boosted both sustainability and profitability.
+
+Last spring, our team at Verdant Futures Lab installed advanced multi-sensor arrays throughout the HydraTowers, our flagship grow units. These arrays included real-time pH and electrical conductivity sensors, leaf moisture detectors, and microclimate monitors capturing temperature and humidity fluctuations every minute. Previously, nutrient dosing was based on fixed schedules and historical averages, leading to over-application and runoff that not only wasted precious inputs but also risked plant stress.
+
+One afternoon, as we reviewed live data streams, we noticed a subtle but consistent trend: the upper tiers of the tower were absorbing nutrients at a slower rate than the lower tiers. This was due to minor temperature gradients and varying light intensity caused by the tower’s design. Without precise adjustments, the upper plants received more nutrients than needed, increasing waste and potential environmental runoff during solution recirculation.
+
+Our breakthrough came with integrating these sensor inputs into a dynamic algorithm developed by our data science team. This algorithm adjusted the nutrient mix and dosing quantity every hour, fine-tuning it to the actual absorption rates and environmental conditions at different tower heights. After three weeks of incremental testing, we observed a 23% reduction in nutrient solution usage without compromising yield or quality.
+
+The anecdote illustrates a broader lesson: smart dosing powered by sensor integration and adaptive algorithms can revolutionize resource efficiency in indoor agriculture. By continuously matching nutrient supply to plant demand, farms can minimize chemical waste, lower operational costs, and reduce environmental impacts.
+
+For operators looking to implement smart dosing, I recommend starting with the following steps:
+
+- Deploy multi-point sensors throughout your grow space to capture spatial variability.
+- Collaborate with data scientists to develop or customize dosing algorithms tailored to your crops and infrastructure.
+- Conduct phased trials to validate adjustments and avoid crop stress.
+- Monitor outcomes rigorously and iterate frequently based on real-time data.
+
+Indoor agriculture holds incredible promise for sustainable food production, but it requires innovation at the intersection of biology and technology. Smart dosing is not just about saving money—it’s about building a more resilient and responsible farming system for the future.
diff --git a/test/search-mode.test.ts b/test/search-mode.test.ts
index be3430fded..3e8219afaf 100644
--- a/test/search-mode.test.ts
+++ b/test/search-mode.test.ts
@@ -94,6 +94,8 @@ describe('SEARCH_MODES + MODE_BUNDLES canonical shape', () => {
relational_orient_onehop: false,
relational_chain_slots: 10,
diverse_pool_depth: 0,
+ collapse: true,
+ rank_priors: true,
// ranker wave (Phase E2) — keyword-arm confidence floor OFF in every bundle until the Cat 13 receipt.
keyword_arm_confidence_floor: null,
// ranker wave (Phase E3) — metadata boost gate `lexical` in every bundle since the Cat 13 held-out receipt (`always` = pre-wave pipeline).
@@ -143,6 +145,8 @@ describe('SEARCH_MODES + MODE_BUNDLES canonical shape', () => {
relational_orient_onehop: false,
relational_chain_slots: 10,
diverse_pool_depth: 0,
+ collapse: true,
+ rank_priors: true,
// ranker wave (Phase E2) — keyword-arm confidence floor OFF in every bundle until the Cat 13 receipt.
keyword_arm_confidence_floor: null,
// ranker wave (Phase E3) — metadata boost gate `lexical` in every bundle since the Cat 13 held-out receipt (`always` = pre-wave pipeline).
@@ -191,6 +195,8 @@ describe('SEARCH_MODES + MODE_BUNDLES canonical shape', () => {
relational_orient_onehop: false,
relational_chain_slots: 10,
diverse_pool_depth: 0,
+ collapse: true,
+ rank_priors: true,
// ranker wave (Phase E2) — keyword-arm confidence floor OFF in every bundle until the Cat 13 receipt.
keyword_arm_confidence_floor: null,
// ranker wave (Phase E3) — metadata boost gate `lexical` in every bundle since the Cat 13 held-out receipt (`always` = pre-wave pipeline).
diff --git a/test/search/collapse-hybrid.test.ts b/test/search/collapse-hybrid.test.ts
new file mode 100644
index 0000000000..b37807e6f1
--- /dev/null
+++ b/test/search/collapse-hybrid.test.ts
@@ -0,0 +1,184 @@
+/**
+ * Result-time collapse through bare hybridSearch on PGLite (#4612, #7153,
+ * #7154): twins in another source, redirect stubs and copies of one document
+ * take one slot, the folded pages stay named in `collapsed`, and pages that
+ * only look alike (templated notes, a person and a company sharing a slug
+ * leaf) keep their own slots. `search.collapse false` reproduces the
+ * pre-collapse output, which is the failure shape each case pins.
+ * Hermetic: a hash bag-of-words embedder through `queryEmbedFn`; network off.
+ */
+import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
+import { PGLiteEngine } from '../../src/core/pglite-engine.ts';
+import { hybridSearch } from '../../src/core/search/hybrid.ts';
+import { type CollapseDecision, collapseResults, redirectTargetSlug } from '../../src/core/search/collapse.ts';
+import { fnv1a } from '../../src/eval/deterministic-embed.ts';
+import type { HybridSearchMeta, SearchResult } from '../../src/core/types.ts';
+import { installFixtureChunks } from '../helpers/page-projection.ts';
+
+const DIM = 1536;
+function hashEmbed(text: string): Float32Array {
+ const v = new Float32Array(DIM);
+ for (const tok of text.toLowerCase().match(/[\p{L}\p{N}]+/gu) ?? []) {
+ const h = fnv1a(tok);
+ v[Math.abs(h) % DIM] += (h & 1) === 0 ? 1 : -1;
+ }
+ let norm = 0;
+ for (let i = 0; i < DIM; i++) norm += v[i] * v[i];
+ norm = Math.sqrt(norm);
+ if (norm > 0) for (let i = 0; i < DIM; i++) v[i] /= norm;
+ return v;
+}
+
+const LONG = (topic: string) => `${topic} memo. ` + 'The team reviewed the quarterly plan, the hiring targets and the vendor shortlist, then agreed on owners and dates. '.repeat(4);
+
+interface Seed { slug: string; source?: string; type: string; title: string; body: string; frontmatter?: Record<string, unknown>; date?: string }
+const SEEDS: Seed[] = [
+ // twins: the same slug in two sources
+ { slug: 'concepts/zephyr-ledger', type: 'concept', title: 'Zephyr ledger', body: 'Zephyr ledger: the shared accounting ledger for the zephyr program, reconciled weekly.' },
+ { slug: 'concepts/zephyr-ledger', source: 'team-example', type: 'concept', title: 'Zephyr ledger', body: 'Zephyr ledger: the shared accounting ledger for the zephyr program, reconciled weekly.' },
+ // a redirect stub (frontmatter redirect_to with a leading slash, markdown link body) whose target is in the pool
+ { slug: 'concepts/zephyr-ledger-old', type: 'concept-redirect', title: 'Zephyr ledger', body: 'Zephyr ledger. See [Zephyr ledger](/concepts/zephyr-ledger).', frontmatter: { redirect_to: '/concepts/zephyr-ledger' } },
+ // a redirect stub whose target never matches the query: it is read in
+ { slug: 'concepts/quill-roster-old', type: 'concept', title: 'Quill roster', body: 'This page has been merged into [[people/bram-example]].' },
+ { slug: 'people/bram-example', type: 'person', title: 'Bram Example', body: 'Bram Example runs the night shift scheduling for the harbor depot.' },
+ // a bare-word redirect that names two pages: ambiguous, so the stub stays and says where it points
+ { slug: 'concepts/kestrel-plan-old', type: 'concept-redirect', title: 'Kestrel plan', body: 'Kestrel plan moved.', frontmatter: { redirect_to: 'kestrel' } },
+ { slug: 'projects/kestrel', type: 'project', title: 'Kestrel', body: 'Kestrel project overview.' },
+ { slug: 'notes/kestrel', type: 'note', title: 'Kestrel', body: 'Kestrel note.' },
+ // a document family by derivative suffix
+ { slug: 'media/orbit-talk', type: 'media', title: 'Orbit talk', body: 'Orbit talk verbatim: orbit launch cadence, orbit telemetry and the orbit budget.' },
+ { slug: 'media/orbit-talk-summary', type: 'media', title: 'Orbit talk summary', body: 'Orbit talk summary: launch cadence, telemetry, budget for orbit.' },
+ { slug: 'media/orbit-talk-transcript', type: 'media', title: 'Orbit talk transcript', body: 'Orbit talk transcript, diarized: orbit launch cadence and orbit telemetry.' },
+ { slug: 'notes/orbit-answer', type: 'note', title: 'Orbit answer', body: 'Orbit answer: the orbit launch cadence is every six weeks.' },
+ // identical bodies under two types
+ { slug: 'concepts/heron-memo', type: 'concept', title: 'Heron memo', body: LONG('Heron') },
+ { slug: 'notes/heron-memo', type: 'note', title: 'Heron memo', body: LONG('Heron') },
+ // a meeting and its transcript: one leaf extends the other on the same date
+ { slug: 'meetings/2026-03-02-lumen-sync', type: 'meeting', title: 'Lumen sync', body: 'Lumen sync notes: lumen pricing decision and lumen rollout.', date: '2026-03-02' },
+ { slug: 'transcripts/2026-03-02-lumen-sync-call', type: 'transcript', title: 'Lumen sync call', body: 'Lumen sync call transcript: lumen pricing decision discussed, lumen rollout.', date: '2026-03-02' },
+ // look-alikes that must keep their own slots
+ ...[1, 2, 3].map(i => ({ slug: `notes/standup-${i}`, type: 'note', title: `Standup ${i}`, body: `Standup ${i}: blockers none. ` + 'Yesterday we shipped the badge reader fix and today we test the badge reader. '.repeat(4) })),
+ { slug: 'people/nimbus-example', type: 'person', title: 'Nimbus Example', body: 'Nimbus Example founded the nimbus weather service.' },
+ { slug: 'companies/nimbus-example', type: 'company', title: 'Nimbus Example', body: 'Nimbus Example is the nimbus weather service company.' },
+];
+
+let engine: PGLiteEngine;
+const realFetch = globalThis.fetch;
+const search = async (q: string, extra: Record<string, unknown> = {}) => {
+ let meta: HybridSearchMeta | null = null;
+ const rows = await hybridSearch(engine, q, { limit: 20, queryEmbedFn: hashEmbed, onMeta: m => { meta = m; }, ...extra });
+ return { rows, meta: meta as HybridSearchMeta | null };
+};
+const keys = (rows: SearchResult[]) => [...new Set(rows.map(r => `${r.source_id}:${r.slug}`))];
+const row = (rows: SearchResult[], slug: string) => rows.find(r => r.slug === slug);
+
+beforeAll(async () => {
+ globalThis.fetch = (async () => { throw new Error('collapse test: network disabled'); }) as unknown as typeof fetch;
+ engine = new PGLiteEngine();
+ await engine.connect({});
+ await engine.initSchema();
+ await engine.executeRaw(`INSERT INTO sources (id, name) VALUES ('team-example', 'team-example') ON CONFLICT (id) DO NOTHING`);
+ for (const s of SEEDS) {
+ const sourceId = s.source ?? 'default';
+ await engine.putPage(s.slug, { type: s.type, title: s.title, compiled_truth: s.body, ...(s.frontmatter ? { frontmatter: s.frontmatter } : {}) }, { sourceId });
+ await installFixtureChunks(engine, s.slug, [{ chunk_index: 0, chunk_text: s.body, chunk_source: 'compiled_truth' as const, embedding: hashEmbed(s.body), token_count: s.body.split(/\s+/).length }], { sourceId });
+ if (s.date) await engine.executeRaw(`UPDATE pages SET effective_date = $1::date, effective_date_source = 'date' WHERE slug = $2 AND source_id = $3`, [s.date, s.slug, sourceId]);
+ }
+}, 120_000);
+
+afterEach(async () => { await engine.unsetConfig('search.collapse'); });
+afterAll(async () => {
+ globalThis.fetch = realFetch;
+ await engine.disconnect();
+});
+
+describe('redirectTargetSlug', () => {
+ test('wikilinks, markdown links, leading slashes, .md and anchors all name the slug', () => {
+ expect(redirectTargetSlug('[[people/x|X]]')).toBe('people/x');
+ expect(redirectTargetSlug('[X](/companies/x.md#top)')).toBe('companies/x');
+ expect(redirectTargetSlug('/concepts/y')).toBe('concepts/y');
+ expect(redirectTargetSlug('kestrel')).toBe('kestrel');
+ expect(redirectTargetSlug('https://example.com/a')).toBeNull();
+ expect(redirectTargetSlug(' ')).toBeNull();
+ });
+});
+
+describe('twins and redirect stubs', () => {
+ test('off: the twin and the stub each take a slot (the failure shape)', async () => {
+ await engine.setConfig('search.collapse', 'false');
+ const { rows } = await search('zephyr ledger');
+ const zephyr = keys(rows).filter(k => k.includes('zephyr-ledger'));
+ expect(zephyr).toEqual(expect.arrayContaining(['default:concepts/zephyr-ledger', 'team-example:concepts/zephyr-ledger', 'default:concepts/zephyr-ledger-old']));
+ });
+
+ test('on: one slot, the twin and the stub listed on it', async () => {
+ const { rows, meta } = await search('zephyr ledger');
+ const zephyr = keys(rows).filter(k => k.includes('zephyr-ledger'));
+ expect(zephyr).toHaveLength(1);
+ const kept = rows.find(r => r.slug === 'concepts/zephyr-ledger')!;
+ expect(kept.collapsed).toEqual(expect.arrayContaining([
+ expect.objectContaining({ slug: 'concepts/zephyr-ledger-old', source_id: 'default', reason: 'redirect' }),
+ expect.objectContaining({ slug: 'concepts/zephyr-ledger', reason: 'twin' }),
+ ]));
+ expect(meta?.collapse?.twins).toBeGreaterThanOrEqual(1);
+ expect(meta?.collapse?.redirects).toBeGreaterThanOrEqual(1);
+ });
+
+ test('a stub whose target the pool lacks returns the target in its slot', async () => {
+ await engine.setConfig('search.collapse', 'false');
+ const { rows } = await search('quill roster', { limit: 50 });
+ const stub = row(rows, 'concepts/quill-roster-old')!;
+ const other = row(rows, 'notes/orbit-answer')!;
+ const decisions: CollapseDecision[] = [];
+ const out = await collapseResults(engine, [{ ...stub, collapsed: undefined }, other], { onDecision: d => decisions.push(d) });
+ expect(out.map(r => r.slug)).toEqual(['people/bram-example', 'notes/orbit-answer']);
+ expect(out[0]).toMatchObject({ source_id: 'default', score: stub.score, collapsed: [{ slug: 'concepts/quill-roster-old', source_id: 'default', reason: 'redirect' }] });
+ expect(out[0].chunk_text).toContain('night shift');
+ expect(decisions).toEqual([{ twins: 0, redirects: 1, families: 0, redirect_reads: 1 }]);
+ const scoped = await collapseResults(engine, [{ ...stub, collapsed: undefined }, other], { sourceIds: ['team-example'] });
+ expect(scoped[0]).toMatchObject({ slug: 'concepts/quill-roster-old', redirect_to: 'people/bram-example' });
+ });
+
+ test('a read-in target honors the exclude contract: the stub stays, stamped redirect_to', async () => {
+ const { rows } = await search('quill roster', { exclude_slug_prefixes: ['people/'] });
+ expect(row(rows, 'people/bram-example')).toBeUndefined();
+ expect(row(rows, 'concepts/quill-roster-old')?.redirect_to).toBe('people/bram-example');
+ });
+
+ test('an ambiguous bare-word target leaves the stub with redirect_to', async () => {
+ const { rows } = await search('kestrel plan');
+ expect(row(rows, 'concepts/kestrel-plan-old')?.redirect_to).toBe('kestrel');
+ });
+});
+
+describe('document families', () => {
+ test('derivative suffixes fold into the best-ranked copy; the answer page keeps its slot', async () => {
+ await engine.setConfig('search.collapse', 'false');
+ const off = await search('orbit talk launch cadence telemetry');
+ expect(keys(off.rows).filter(k => k.includes('orbit-talk'))).toHaveLength(3);
+ await engine.unsetConfig('search.collapse');
+ const { rows } = await search('orbit talk launch cadence telemetry');
+ const family = rows.filter(r => r.slug.startsWith('media/orbit-talk'));
+ expect(family).toHaveLength(1);
+ expect(family[0].collapsed?.map(c => c.reason)).toEqual(['family', 'family']);
+ expect(row(rows, 'notes/orbit-answer')).toBeDefined();
+ });
+
+ test('identical bodies under two types fold', async () => {
+ const { rows } = await search('heron memo quarterly plan');
+ expect(rows.filter(r => r.slug.endsWith('/heron-memo'))).toHaveLength(1);
+ });
+
+ test('a meeting and its same-day transcript fold', async () => {
+ const { rows } = await search('lumen sync pricing decision rollout');
+ expect(rows.filter(r => r.slug.includes('lumen-sync'))).toHaveLength(1);
+ });
+
+ test('templated notes and a person and company sharing a leaf keep their own slots', async () => {
+ const standups = await search('standup badge reader');
+ expect(keys(standups.rows).filter(k => k.includes('standup-'))).toHaveLength(3);
+ const nimbus = await search('nimbus weather service');
+ expect(row(nimbus.rows, 'people/nimbus-example')).toBeDefined();
+ expect(row(nimbus.rows, 'companies/nimbus-example')).toBeDefined();
+ });
+});
diff --git a/test/search/explain-cli-fusion-7170.test.ts b/test/search/explain-cli-fusion-7170.test.ts
new file mode 100644
index 0000000000..f78fe7e2e3
--- /dev/null
+++ b/test/search/explain-cli-fusion-7170.test.ts
@@ -0,0 +1,83 @@
+/**
+ * #7170: `gbrain query --explain` (and `search --explain`) reported
+ * `rrf: single_arm_path` and `blend: no_query_embedding` on every row of a
+ * hybrid brain. The CLI claims the global --explain flag for its formatter, so
+ * the op never received `explain: true`, fusion never stamped its attribution,
+ * and the formatter then projected unstamped rows. The fix forwards the flag
+ * to both ops; the hybrid test pins that a fused row reports rrf and blend as
+ * applied after every post-fusion stage, through the op the CLI calls.
+ * Seams: gateway embed transport stub (deterministic bag-of-words vectors);
+ * in-memory PGLite.
+ */
+import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
+import { parseOpArgs } from '../../src/cli/main.ts';
+import { getCliOptions, setCliOptions, _resetCliOptionsForTest } from '../../src/core/cli-options.ts';
+import { configureGateway, resetGateway, __setEmbedTransportForTests } from '../../src/core/ai/gateway.ts';
+import { PGLiteEngine } from '../../src/core/pglite-engine.ts';
+import { importFromContent } from '../../src/core/import-file.ts';
+import { operationsByName } from '../../src/core/operations.ts';
+import type { OperationContext } from '../../src/core/ops/contract.ts';
+import type { ScoreDetails } from '../../src/core/search/explain-formatter.ts';
+
+const DIMS = 1536;
+function vectorFor(text: string): number[] {
+ const v = new Array<number>(DIMS).fill(0);
+ for (const w of text.toLowerCase().match(/[a-z]+/g) ?? []) {
+ let h = 0;
+ for (const ch of w) h = (h * 31 + ch.charCodeAt(0)) >>> 0;
+ v[h % DIMS] += 1;
+ }
+ const n = Math.hypot(...v) || 1;
+ return v.map(x => x / n);
+}
+
+afterEach(() => _resetCliOptionsForTest());
+
+describe('CLI --explain reaches the search and query ops', () => {
+ for (const name of ['search', 'query'] as const) {
+ test(`${name}: the claimed global flag becomes explain: true`, () => {
+ setCliOptions({ ...getCliOptions(), explain: true });
+ expect(parseOpArgs(operationsByName[name], ['quokka habitat']).explain).toBe(true);
+ });
+ test(`${name}: no flag, no explain param`, () => {
+ expect(parseOpArgs(operationsByName[name], ['quokka habitat']).explain).toBeUndefined();
+ });
+ }
+});
+
+describe('hybrid brain: fused rows report rrf and blend as applied (PGLite)', () => {
+ let engine: PGLiteEngine;
+ const ctx = {
+ get engine() { return engine; }, remote: false, sourceId: 'default', config: { engine: 'pglite' }, dryRun: false,
+ logger: { info() {}, warn() {}, error() {} }, emitNotice() {}, emitResponseMeta() {},
+ } as unknown as OperationContext;
+
+ beforeAll(async () => {
+ configureGateway({ embedding_model: 'openai:text-embedding-3-small', embedding_dimensions: DIMS, env: { OPENAI_API_KEY: 'test' } });
+ __setEmbedTransportForTests((async ({ values }: { values: string[] }) => ({ embeddings: values.map(vectorFor) })) as never);
+ engine = new PGLiteEngine();
+ await engine.connect({ engine: 'pglite' } as never);
+ await engine.initSchema();
+ await importFromContent(engine, 'notes/quokka-habitat', '# Quokka habitat\nQuokka island habitat notes: scrub, burrows and shade.');
+ await importFromContent(engine, 'notes/quokka-diet', '# Quokka diet\nQuokka eats leaves and grasses; diet notes.');
+ await importFromContent(engine, 'notes/ferries', '# Ferries\nFerry timetable to the island.');
+ }, 120_000);
+ afterAll(async () => {
+ __setEmbedTransportForTests(null);
+ resetGateway();
+ if (engine) await engine.disconnect();
+ });
+
+ for (const name of ['search', 'query'] as const) {
+ test(`${name} with explain: score_details.rrf and .blend are applied`, async () => {
+ const params = { query: 'quokka island habitat', explain: true, ...(name === 'query' ? { expand: false } : {}) };
+ const rows = await operationsByName[name].handler(ctx, params) as Array<{ slug: string; score_details?: ScoreDetails }>;
+ expect(rows.length).toBeGreaterThan(0);
+ const top = rows[0].score_details!;
+ expect(top.rrf.state).toBe('applied');
+ expect(top.blend.state).toBe('applied');
+ expect(top.arms.map(a => a.arm)).toContain('keyword');
+ expect(top.arms.some(a => a.arm.startsWith('vector'))).toBe(true);
+ });
+ }
+});
diff --git a/test/search/keyword-arm-timeout-cli-7171.test.ts b/test/search/keyword-arm-timeout-cli-7171.test.ts
new file mode 100644
index 0000000000..d64db9bcff
--- /dev/null
+++ b/test/search/keyword-arm-timeout-cli-7171.test.ts
@@ -0,0 +1,73 @@
+/**
+ * #7171: a statement timeout in the keyword arm dropped the keyword results and
+ * the CLI said nothing: the search/query meta stamped `keyword_arm_failed`, but
+ * only MCP's dispatch turned that stamp into the `degraded_recall` notice, so a
+ * CLI caller (and `--json`, whose array stays bare) read a lost arm as "no
+ * matches". The CLI now renders the same notice on stderr.
+ * Seams: gateway embed transport stub; engine.searchKeyword patched to throw
+ * SQLSTATE 57014; in-memory PGLite.
+ */
+import { afterAll, beforeAll, describe, expect, test } from 'bun:test';
+import { applyCliOpNotices, captureRetrievalNotices } from '../../src/cli/op-notices.ts';
+import { configureGateway, resetGateway, __setEmbedTransportForTests } from '../../src/core/ai/gateway.ts';
+import { PGLiteEngine } from '../../src/core/pglite-engine.ts';
+import { importFromContent } from '../../src/core/import-file.ts';
+import { operationsByName } from '../../src/core/operations.ts';
+import type { OperationContext } from '../../src/core/ops/contract.ts';
+
+const DIMS = 1536;
+function vectorFor(text: string): number[] {
+ const v = new Array<number>(DIMS).fill(0);
+ for (const w of text.toLowerCase().match(/[a-z]+/g) ?? []) {
+ let h = 0;
+ for (const ch of w) h = (h * 31 + ch.charCodeAt(0)) >>> 0;
+ v[h % DIMS] += 1;
+ }
+ const n = Math.hypot(...v) || 1;
+ return v.map(x => x / n);
+}
+
+describe('keyword-arm statement timeout (PGLite)', () => {
+ let engine: PGLiteEngine;
+ let meta: Record<string, unknown> | null = null;
+ const ctx = {
+ get engine() { return engine; }, remote: false, sourceId: 'default', config: { engine: 'pglite' }, dryRun: false,
+ logger: { info() {}, warn() {}, error() {} }, emitNotice() {},
+ emitResponseMeta: (key: string, value: unknown) => { if (key === 'retrieval') meta = value as Record<string, unknown>; },
+ } as unknown as OperationContext;
+
+ beforeAll(async () => {
+ configureGateway({ embedding_model: 'openai:text-embedding-3-small', embedding_dimensions: DIMS, env: { OPENAI_API_KEY: 'test' } });
+ __setEmbedTransportForTests((async ({ values }: { values: string[] }) => ({ embeddings: values.map(vectorFor) })) as never);
+ engine = new PGLiteEngine();
+ await engine.connect({ engine: 'pglite' } as never);
+ await engine.initSchema();
+ await importFromContent(engine, 'notes/quokka-habitat', '# Quokka habitat\nQuokka island habitat notes: scrub, burrows and shade.');
+ await importFromContent(engine, 'notes/ferries', '# Ferries\nFerry timetable to the island.');
+ engine.searchKeyword = async () => { throw Object.assign(new Error('canceling statement due to statement timeout'), { code: '57014' }); };
+ }, 120_000);
+ afterAll(async () => {
+ __setEmbedTransportForTests(null);
+ resetGateway();
+ if (engine) await engine.disconnect();
+ });
+
+ for (const name of ['search', 'query'] as const) {
+ test(`${name}: the vector arm still answers, meta names the keyword arm, and the CLI says so`, async () => {
+ meta = null;
+ const params = { query: 'quokka island habitat', ...(name === 'query' ? { expand: false } : {}) };
+ const rows = await operationsByName[name].handler(ctx, params) as unknown[];
+ expect(rows.length).toBeGreaterThan(0);
+ expect(meta!.degraded).toContainEqual({ stage: 'keyword_arm_failed', reason: 'timeout' });
+ captureRetrievalNotices(name, rows, meta, params, ctx.config);
+ const { result, stderr } = applyCliOpNotices(rows, true);
+ expect(Array.isArray(result)).toBe(true);
+ expect(stderr).toContain('keyword_arm_failed');
+ });
+ }
+
+ test('a clean call adds no notice', () => {
+ captureRetrievalNotices('search', [], { degraded: [] }, { query: 'x' }, ctx.config);
+ expect(applyCliOpNotices([], true).stderr).toBeUndefined();
+ });
+});
diff --git a/test/search/rank-priors.test.ts b/test/search/rank-priors.test.ts
new file mode 100644
index 0000000000..e03aa7caa4
--- /dev/null
+++ b/test/search/rank-priors.test.ts
@@ -0,0 +1,105 @@
+/**
+ * Rank priors (#7155, #7162, #6058, #7153) and the score contract (#7156),
+ * pure. Each prior needs a competitor of the preferred kind and a query of
+ * the matching shape; without both the list is unchanged.
+ */
+import { describe, expect, test } from 'bun:test';
+import { applyRankPriors, rankPriors, OCR_PRIOR, PERSON_PRIOR, REDIRECT_STUB_PRIOR, UNDATED_PRIOR } from '../../src/core/search/rank-priors.ts';
+import { scoresFollowRank } from '../../src/core/search/score-contract.ts';
+import type { SearchResult } from '../../src/core/types.ts';
+
+const r = (slug: string, type: string, extra: Partial<SearchResult> = {}): SearchResult => ({
+ slug, type, title: extra.title ?? slug.split('/').pop()!, page_id: 1, chunk_id: 1, chunk_index: 0, chunk_text: extra.chunk_text ?? slug,
+ chunk_source: 'compiled_truth', score: 0.5, stale: false, source_id: 'default', ...extra,
+});
+
+describe('organization over person', () => {
+ const founder = r('people/mara-example', 'person', { title: 'Mara Example', rerank_score: 0.82 });
+ const company = r('companies/acme-example', 'company', { title: 'Acme Example', rerank_score: 0.78 });
+ test('a product query that names no one puts the company first', () => {
+ const out = applyRankPriors([founder, company], 'API startup that automates freight invoices for small carriers');
+ expect(out.map(x => x.slug)).toEqual(['companies/acme-example', 'people/mara-example']);
+ expect(out[1]).toMatchObject({ rank_prior: PERSON_PRIOR, rank_score: 0.82 * PERSON_PRIOR });
+ });
+ test('naming the person, asking who, or no org wording leaves the order', () => {
+ for (const q of ['what did Mara build at the freight startup', 'who started the freight invoice company', 'freight invoices for small carriers']) {
+ expect(applyRankPriors([founder, company], q).map(x => x.slug)).toEqual(['people/mara-example', 'companies/acme-example']);
+ }
+ });
+ test('a quote request prefers the document over the speaker profile', () => {
+ const talk = r('media/freight-talk', 'media', { rerank_score: 0.8 });
+ expect(applyRankPriors([founder, talk], 'quote about moving fast on invoices').map(x => x.slug)).toEqual(['media/freight-talk', 'people/mara-example']);
+ });
+});
+
+describe('image pages', () => {
+ test('a caption matching one of two name words is weak; stamped image_page', () => {
+ const img = r('images/2024-05-03-img-1234.jpg', 'note', { chunk_text: 'Sunset over the river, Mara on the left.', rerank_score: 0.9 });
+ const person = r('people/mara-quill', 'person', { title: 'Mara Quill', chunk_text: 'Mara Quill leads finance.', rerank_score: 0.7 });
+ const out = applyRankPriors([img, person], 'Mara Quill');
+ expect(out.map(x => x.slug)).toEqual(['people/mara-quill', 'images/2024-05-03-img-1234.jpg']);
+ expect(out[1]).toMatchObject({ image_page: true, rank_prior: OCR_PRIOR });
+ });
+ test('a caption that matches the whole query keeps its score', () => {
+ const img = r('images/a.jpeg', 'image', { chunk_text: 'Mara Quill at the offsite' });
+ expect(rankPriors([img], 'Mara Quill')).toEqual([1]);
+ });
+});
+
+describe('temporal questions', () => {
+ test('dated evidence beats an undated stub', () => {
+ const stub = r('concepts/night-shift', 'concept', { score: 0.6 });
+ const meeting = r('meetings/2025-02-01-ops', 'meeting', { score: 0.55, effective_date: '2025-02-01', effective_date_source: 'date' });
+ expect(applyRankPriors([stub, meeting], 'when did the depot start the night shift').map(x => x.slug)).toEqual(['meetings/2025-02-01-ops', 'concepts/night-shift']);
+ expect(rankPriors([stub, meeting], 'night shift staffing')).toEqual([1, 1]);
+ expect(rankPriors([stub, meeting], 'when did the depot start')).toEqual([UNDATED_PRIOR, 1]);
+ });
+ test('a created-at fallback date is not a document date', () => {
+ const a = r('notes/a', 'note', { effective_date: '2025-01-01', effective_date_source: 'created' });
+ expect(rankPriors([a], 'when did it start')).toEqual([1]);
+ });
+});
+
+describe('redirect stubs and the unchanged case', () => {
+ test('a stub that kept its slot is demoted', () => {
+ expect(rankPriors([r('concepts/a-old', 'concept-redirect', { redirect_to: 'a' })], 'a')).toEqual([REDIRECT_STUB_PRIOR]);
+ });
+ test('no prior: the same array comes back', () => {
+ const rows = [r('notes/a', 'note'), r('notes/b', 'note')];
+ expect(applyRankPriors(rows, 'anything at all')).toBe(rows);
+ });
+ test('unreranked lists multiply score and re-sort', () => {
+ const founder = r('people/mara-example', 'person', { score: 0.5 });
+ const company = r('companies/acme-example', 'company', { score: 0.45 });
+ const out = applyRankPriors([founder, company], 'company that builds freight software');
+ expect(out.map(x => x.slug)).toEqual(['companies/acme-example', 'people/mara-example']);
+ expect(out[1].score).toBeCloseTo(0.5 * PERSON_PRIOR);
+ });
+});
+
+describe('scoresFollowRank (#7156)', () => {
+ test('a reranked list reports the rerank order value, keeping the fused score aside', () => {
+ const rows: Array<{ score: number; rerank_score: number; fused_score?: number }> = [
+ { score: 0.74, rerank_score: 0.875 },
+ { score: 0.733, rerank_score: 0.875 },
+ { score: 0.878, rerank_score: 0.801 },
+ ];
+ const out = scoresFollowRank(rows);
+ expect(out.map(x => x.score)).toEqual([0.875, 0.875, 0.801]);
+ expect(out.map(x => x.fused_score)).toEqual([0.74, 0.733, 0.878]);
+ });
+ test('pins above the head and an unreranked tail take neighbours; the column never rises', () => {
+ const out = scoresFollowRank([
+ { score: 0.02 },
+ { score: 0.4, rerank_score: 0.6, rank_score: 0.51 },
+ { score: 0.5, rerank_score: 0.55 },
+ { score: 0.9 },
+ ]);
+ expect(out.map(x => x.score)).toEqual([0.51, 0.51, 0.51, 0.51]);
+ for (let i = 1; i < out.length; i++) expect(out[i].score).toBeLessThanOrEqual(out[i - 1].score);
+ });
+ test('an already monotonic fused list is returned as is', () => {
+ const rows = [{ score: 0.9 }, { score: 0.5 }];
+ expect(scoresFollowRank(rows)).toBe(rows);
+ });
+});