The Cartographer: LLM-Driven Pattern Catalog Expansion for Deterministic Synthesis

February 8, 2026 whitepaper proposing 'Enumerate, Don't Generate': using 48 offline LLM calls to expand an 800-pattern closed-benchmark catalog across 48 domains into a compact bincode index for microsecond deterministic retrieval.

Illustration of offline catalog enumeration amortizing synthesis into microsecond lookup
Illustration of offline catalog enumeration amortizing synthesis into microsecond lookup

Temporal & Archival Scope: Era 0 Historical Whitepaper (Originally dated February 8, 2026; verbatim historical summary followed below by dated November 25, 2026 Errata & Related Work Addendum) · Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/wp-cartographer-catalog-expansion/ · Original Archival PDF: https://blog.openie.dev/papers/archive/09-Cartographer-Catalog-Expansion.pdf

Provenance & Telemetry Hygiene: Signed Provenance · Self-Checked (automated OpenIE internal gates; not externally peer-reviewed) · Energy Class: unmetered (measured_j ⊥ reported_j ⊥ est_j ⊥ unmetered — Verification, Licensing & AI-Use Disclosure · Glossary & Non-Mixing Rules).

Part I: Contemporary Historical Summary (As Written in February 2026)

Historical Source Provenance (Original Date: February 8, 2026): David Jean Charlot, PhD · Open Interface Engineering. Preserved from our pattern-lang / agi-wisdom synthesis series (Download Original Feb 2026 PDF).

Thesis: “Enumerate, Don’t Generate”

Deterministic pattern lookup immediately raises a cold-start question: “An 800-pattern hand-curated catalog can cover textbook algorithms, but what happens when an engineer requests a VirtIO ring-buffer descriptor, an io_uring submission queue, or a Raft log compaction step?”

Conventional coding assistants address missing coverage by keeping a frontier LLM permanently in the hot runtime path—regenerating common systems primitives repeatedly across sessions. The Cartographer proposed an offline-enumeration alternative: invoke LLMs offline to map domain signature spaces once, rather than invoking them at runtime as token printers.

Starting from a hand-curated 800-pattern core across 28 algorithmic domains that scored 100% pass rate on HumanEval (164/164) and MBPP (974/974) (Superseded / corrected — see Nov 25, 2026 Errata below), Cartographer expanded signature coverage across 20 additional systems domains (48 domains total—spanning os_kernel, filesystem, device_driver, compiler_backend, virtual_machine, network_protocol, consensus, cryptography, and embedded_hal) in 48 structured offline LLM calls (temperature = 0.3), producing ~4,800 raw candidates and 3,000–4,000 deduplicated typed pattern signatures.

Tolerant Recursive Type Normalization & DynamicCatalog

Because LLMs emit inconsistent surface type syntax even at temperature = 0.3 (List[Int], Vec<i64>, array<int>, Optional[str], Result<Bytes, Error>), Cartographer introduced a 3-level tolerant recursive-descent type parser mapping surface type aliases into the Pattern Language’s 8 structural GraphTypes:

Offline Enumeration (48 LLM Calls @ T = 0.3, 100 candidate signatures requested per domain)
   │
   ▼
3-Level Tolerant Type Canonicalizer  ──►  8 Structural GraphTypes (Int, Float, Bool, Text, Bytes, List<T>, Map<K,V>, Struct)
   │
   ▼
2-Level Deduplicator (Exact Signature Hash + Normalized Structural Fingerprint)
   │
   ▼
DynamicCatalog (`dyn:` Namespace Isolation · bincode Persistence ≈ 15 KB per 100 Signatures)
   ├── O(1) Exact Name Index
   ├── O(1) Domain Partition Index (48 domains)
   └── O(k) Inverted-Keyword Jaccard Index:  J(Q, P) = |Q ∩ P| / |Q ∪ P|
   │
   ▼
OODA `CodeFactory` Lazy Synthesis:
   First-use miss ("Tap" L2/L3) -> Synthesize & Compiler-Verify -> Permanent "Mount" into L0 Cache

Tap -> Mount Lazy Materialization

Enumerating 3,000–4,000 typed signatures, contracts, and keyword indexes upfront required minimal storage (~15 KB per 100 patterns in bincode, < 600 KB across all 48 domains) while deferring concrete target-language body synthesis until a signature was Tapped (L2/L3) on first demand. Once checked by the target compiler and unit test harness (14/14 catalog/factory test suites passing in the February 2026 workspace), the verified artifact Mounted into L0 for microsecond deterministic reuse.


Methods, Benchmark Scope & Licensing Box (unmetered)

  1. Closed-World Scope of 164/164 HumanEval & 974/974 MBPP Base Coverage: The 100% pass figures cited in Part I (164 / 164 HumanEval tasks and 974 / 974 MBPP tasks) were not blind zero-shot open-world generalization scores—the 800-pattern core catalog was explicitly curated to cover canonical single-function algorithmic benchmark families including HumanEval and MBPP! That result demonstrated lossless lookup replay once a verified pattern resides in L0, not out-of-distribution repository-level software engineering (such as SWE-bench). Likewise, the 3,000–4,000 offline Cartographer entries enumerated typed signature stubs (dyn:), whose executable bodies were synthesized lazily on Tap rather than pre-verified across all 3,000–4,000 × 37 language pairs.
  2. Lexical Jaccard Retrieval Ceiling: Scoring queries by J(Q, P) = |Q ∩ P| / |Q ∪ P| (size of intersected query/pattern keyword sets in the numerator divided by their union size in the denominator) runs in O(k) postings-list time (k = matched posting count), but misses cross-synonym equivalences (e.g., "ring buffer" vs. "circular FIFO queue") unless paired with structural port-type unification or semantic embeddings.
  3. Epistemic & Licensing Status (unmetered, BSL-1.1 / Private Core): No hardware watt-second measurements were collected (unmetered). Archival PDF (#09) is public at /papers/archive/09-Cartographer-Catalog-Expansion.pdf under CC BY-ND 4.0. Public pattern-lang binaries and release artifacts at openIE-dev/pattern-lang ship under BSL-1.1 (Business Source License 1.1), while full core synthesis sources reside in the private mirror openIE-dev/pattern-lang-core (unreproduced externally).

Chronological Evolution Within OpenIE Research

  1. Formal Amortization Break-Even (Eco-Synthesis): Examined the same pay-once-replay-many synthesis trade-off formalized by solving for the exact replay count N* at which offline discovery + verification amortizes below per-call inference energy.
  2. Beyond Lexical Jaccard (Eco-Knowledge): Addressed token-overlap synonym misses via structured epistemic and hyperdimensional indexing (JouleDB + Eco-Knowledge).
  3. Compiler-Level Verified Artifact Caching (RCE-Compile): Tested Tap -> Mount style content-addressed caching directly inside the Reality Code Engine build pipeline, yielding up to 448.5x warm-cache cut (chip counter, reported_j).

Changelog (2026-11-25)


Canonical Provenance, Primary Artifacts & Independent Replication