MULTI-AGENT SYNTHESIS · CODEX + CLAUDE + ANTIGRAVITY (BDI)
Cross-Experiment Insights & Engineering Playbook
Why revisit benchmark posts months later? Not for raw latency tables, but for durable design rules that stop teams from repeating expensive mistakes. Every insight below was mined across our 12 published experiments and underlying local FINDING.md / E2E_FINDINGS.json logs via parallel Codex (systems practitioner) and Claude (evidence gate) exploration and reconciled via BDI.
1. Counter-Intuitive Findings: Assumption vs Measured Reality
The highest-leverage insights emerged where common GraphRAG and LLM systems intuitions inverted under paired controls.
| Domain | Common Assumption | What Raw Artifacts Proved | Evidence |
|---|---|---|---|
| Ontology & GraphRAG Construction | Adding a shared domain ontology always makes extractors agree and improves Text2SQL/Cypher uniformly. | Inter-model agreement dropped (0.375 no-schema → 0.221 hand-written → 0.193 FIBO, LoG 1.4, n=16×3); Tier 2 computed metrics surged (+0.725 Postgres) via 42 curated SQL attrs while Tier 3 multi-condition filters regressed (−0.225) and Tier 4 recursive SQL errors jumped (12 → 39). | Auto-Ontology Stage A → |
| Ontology & GraphRAG Construction | Typed subgraphs or compacted triples outperform flat retrieved text chunks. | Raw RDF collapsed FinDER IDF recall (0.018 vs Text 0.286, n=2,542); in E2E (38 cases / 15 issuers), flat matched evidence outperformed typed subgraphs (79/96 & 90/120 vs 69/96 & 69/120, 1,927 vs 3,252 median tok), and verbalizing triples rescued recall 3.4× at half LPG tokens. | Modality & LoG/E2E → |
| Ontology & GraphRAG Construction | Same-family LLM judges reliably score GraphRAG pipelines, and stacking retrieval + router + CoT compounds gains. | Switching Kimi self-judge to GPT-4o dropped Hybrid 0.97 → 0.49 (−0.30 general strictness, ~0.18–0.20 verbosity leniency, n=10); full stacking (a+b+c) trailed Hybrid on GPT-4o (0.743 vs 0.850, p=0.040) and PlannerAgent collapsed 0.277 vs 0.659. | ICML & KGC Suite → |
| Agent Interfaces & Coordination | Splitting Text2Cypher into planner/worker/verifier agents with auto-repair outperforms a single agent. | Single direct execution beat both multi-agent handoffs in all 7 model-effort configurations (n=1,260 MARA runs); automatic repair spent +8 calls, +9,795 prompt tokens, and +289 DB hits for −1 net correct answer across 18 paired cells. | MARA 1,260 Factorial → |
| Graph Runtime & Storage | Neo4j Parallel cuts latency ~4× across queries, and faster graph DBs eliminate Graph-CoT delays. | Stripping PROFILE shrank true Parallel W4 server gain to 2.46× (n=10, ~23% cross-session drift vs 406 → 498 ms); point/local 3-hop queries ran 0.95–0.97× behind ~100 ms TLS RTT; DB wait accounted for only 0.47% of Graph-CoT wall time (2.79 vs 1,151.7 ms LLM turn p50). | Non-PROFILE & Read-Path → |
| LLM Serving & KV-Cache | Prefix KV caching translates cleanly into E2E speedup and UCX_MAX_RNDV_RAILS=4 enables multi-rail RMA. | H200 14.76× prefill TTFT collapsed to 0.2% hits at 99.75% KV occupancy while full sessions gained ~1.19× (10.30 → 8.62s) under 82–93% decode share; NIXL RMA stayed single-rail (13.10 GB/s) until setting UCX_MAX_RMA_RAILS=4 (24.39 GB/s). | KV Cliff & Decode Share → |
| Verification, Code Graphs & Postmortems | A green cron status="success" or valid SHA-256 checksum certifies a healthy pipeline. | 197/197 DataLab logs wrote status="success" despite 145 Neo4j errors and 146 zero-entity extractions (80/80 consecutive since 2026-07-31); FinBench proved 713/713 SHA-256 non-tampering around a strictly bounded 7/13 (53.8%) historical capture. | Silent Failure Postmortem → |
2. Six Architecture Review Checklists
Operational pre-flight rules proposed by our systems practitioner pass, anchored to exact failure triggers measured on disk.
1. Evidence-Preserving Retrieval
Proof →Trigger: Alias BM25 60/64 vs ctx-graph 2/64 · Opik 0.80 proxy vs 0.30 true DB rows
- Always benchmark against raw text, flat matched evidence, BM25, and reviewed-alias BM25 before shipping graph readers.
- Verify exact financial numbers, dates, units, and supplied citations survive serialization (consider verbalizing RDF triples first).
- Track returned DB record count separately from chunk-fallback or closed-book prose rescues.
2. Selective Ontology & Schema Injection
Proof →Trigger: Tier 2 +0.725 vs Tier 3 −0.225 · 0 compiled row-stored attrs · Declared 70/12 vs Introspected 96/51
- Resolve entities to canonical tickers/IDs deterministically before generating WHERE/MATCH filters (avoid loose ILIKE or {name: ...}).
- Supply curated metric formulas for derived computations (Tier 2), explicit WITH RECURSIVE patterns for paths (Tier 4), and avoid blanket schema dumps.
- Inspect store introspection vs declared ontology diffs (LoG 2.1) and verify compiled attribute yield on row-stored metric tables.
3. Agent Topology & Auto-Repair Admission
Proof →Trigger: Direct beat Multi in 7/7 cells · Repair −1 net answer (+8 calls) · 32,769 > 32,768 QAT crash
- Establish a single direct tool-calling baseline under identical token caps before introducing planner/verifier handoffs.
- Preflight input_tokens + reserved_output <= context_cap and assert every schema tool name against the sandbox runtime.
- Audit verifier false negatives and require byte-diff route checks (LoG 2.2) plus net positive paired gains before enabling repair.
4. Latency Attribution & Amdahl Concurrency
Proof →Trigger: Graph-CoT 0.47% DB stall share · check_answerable _run_lock 1 call/53s · Walk +122 path drift
- Measure DB, validator, queue, TLS RTT, and LLM decode shares separately—apply Amdahl’s ceiling before optimizing sub-3 ms queries.
- Use PROFILE only for operator hit inspection; time execution interleaved across arms without PROFILE and validate walk-vs-trail equivalence.
- Load-test metadata/preflight endpoints for lock serialization (e.g. check_answerable _run_lock) and log ctx_chars against silent empty fallbacks.
5. KV Cache Slack & Multi-Rail RDMA
Proof →Trigger: 99.75% occupancy → 0.2% hits · UCX_MAX_RMA_RAILS=4 unlocks 13.10 → 24.39 GB/s
- Start KV sizing with 15–20% slack below LRU capacity and stress-test against long-context outlier prompts.
- Verify UCX_MAX_RMA_RAILS explicitly on NIXL RMA paths and coalesce descriptors toward >=16–256 KB to amortize ~7.5 µs protocol floors.
- Keep E0/simulation boundaries explicit: separate observed transfers (280 E0 trials) from unbuilt GPU prefetch actuators and analytical CXL projections.
6. Publication, Telemetry & BDI Integrity
Proof →Trigger: 197/197 cron "success" masked 146 empty runs · BDI SPARQL V1–V5 rejected 8/8 malformed states
- Fail batch jobs on non-null DB errors or zero output entities (never alert on raw step counts like llm_extractions alone).
- Classify infra/timeout aborts as Inconclusive, archive raw responses + SHA-256 manifests before VM teardown, and disclose bounded live pass rates.
- Require grounded WorldState hashes, canonical claimKeys, and strict separation between reviewer references (target_issue_id) and execution claims (plan_tasks).
3. Transferable Practical Rule by Experiment (12)
Every post now includes a dedicated Section 6 summarizing distilled findings, counter-intuitive nuances, and explicit boundaries.
Practical Rule: When sharing a Beads queue across multiple coding or research agents—especially future code-collaboration workflows—store per-agent beliefs and intentions in separated graphs gated on file/test hashes and justification links before running bd update --claim or changing issue status.
Practical Rule: When shutting down expensive GPU/DB cloud VMs after a benchmark, archive raw responses + a file-size/SHA-256 manifest + pure offline analyzer scripts in git. Months later, anyone can audit every reported metric without re-renting hardware.
Practical Rule: Stop injecting monolithic domain ontologies into every Text2SQL/Cypher prompt. Gate ontology definitions selectively: supply curated metric formulas for computed queries (Tier 2), resolve canonical tickers/IDs before filtering (Tier 3), and supply explicit WITH RECURSIVE templates for multi-hop SQL (Tier 4).
Practical Rule: Before swapping Neo4j execution runtimes or blaming graph DB speed, benchmark without PROFILE, add existence/type constraints plus pre-aggregation (verifying trail vs walk parity on self-loops), and profile LLM turn share before optimizing sub-3 ms DB queries.
Practical Rule: If you run graph agents against managed Neo4j over TLS, attach CYPHER runtime=parallel only to global aggregations and unanchored multi-hop queries; leave point lookups and bounded local traversals on Slotted or Pipelined.
Practical Rule: Size KV cache headroom with at least 15–20% slack below LRU eviction cliffs, measure decode vs validator share before optimizing sub-millisecond DB scheduling, prefer lightweight prompt schemas over heavyweight token grammars when throughput matters, and keep high-reuse sessions affinity-pinned rather than spray-routed across DP replicas.
Practical Rule: Before blaming a model for 0% benchmark accuracy or trusting cron health dashboards, audit raw off-diagonal embedding distributions, assert tool-name registries against the runtime sandbox, fail cron status cleanly whenever DB writes or entity counts are zero, and track retracted/aborted jobs transparently in Beads.
Practical Rule: Give one capable tool-calling agent typed DB schemas, disclosure flags, and strict row/budget caps rather than chaining extra planner/handoff/repair subagents on top of every query; test every interface tweak against high-reasoning models (`DeepSeek-V3.2` reversed `76.9%` naive vs `69.2%` engineered).
Practical Rule: Never feed raw SPARQL triples or bare LPG nodes into a GraphRAG reader alone; linearize selected triples into clean prose or keep the source chunk attached (keepraw), and restrict heavy construction ontologies to targeted properties rather than bloated prompt taxonomies.
Practical Rule: Deploy structured ontologies for high-churn temporal facts and disambiguated product/domain attributes—always keeping chunk fallback active (`keepraw`) and measuring real DB record hits instead of answer-string proxies—and keep the execution path inside one strongly typed agent unless strict separation is mandatory.
Practical Rule: Verify UCX_MAX_RMA_RAILS=4 on multi-NIC NIXL deployments and coalesce small KV descriptors >= 256 KB before RDMA; run CUDA kernel + async overhead checks before publishing speculative speedups; and gate production models across >= 3 independent daily windows before sizing SLOs.
Practical Rule: Never evaluate GraphRAG agents solely with a same-family self-judge or ship an interactive multi-step planner without measuring a clean single-call hybrid floor first; use targeted hybrid retrieval for compositional queries (0.850 vs 0.625) instead of stacking redundant routers and gates.