All 57 Entries

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.

David Charlot • • Addendum & Errata: Nov 25, 2026 • 6 min read • Glossary • Verification & AI-Use Disclosure
cartographer pattern-lang deterministic-synthesis humaneval catalog-expansion historical-whitepaper

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).
  • Prieto-Díaz, R. (1991). Implementing Faceted Classification for Software Reuse. Communications of the ACM, 34(5), 88–97 — classic software-engineering foundation for structured domain/keyword component catalogs.
  • Ellis, K., Wong, C., Nye, M., Sablé-Meyer, M., Morales, L., Hewitt, L., Cary, L., Solar-Lezama, A., & Tenenbaum, J. B. (2021). DreamCoder: Bootstrapping Inductive Program Synthesis with Wake-Sleep Library Learning. PLDI 2021 — wake-sleep abstraction discovery and library growth.
  • Bowers, M., Olausson, T. X., Wong, C., Grand, G., Tenenbaum, J. B., Ellis, K., & Solar-Lezama, A. (2023). Top-Down Synthesis for Library Learning (Stitch). POPL 2023 — fast corpus-level abstraction compression.
  • Wang, G., Xie, Y., Jiang, Y., Mandlekar, A., Xiao, C., Zhu, Y., Fan, L., & Anandkumar, A. (2023). Voyager: An Open-Ended Embodied Agent with Large Language Models. arXiv:2305.16291 — LLM-synthesized executable skill libraries mounted for reuse.
  • Chen, M., Tworek, J., Jun, H., et al. (2021). Evaluating Large Language Models Trained on Code (HumanEval). arXiv:2107.03374.
  • Austin, J., Odena, A., Nye, M., et al. (2021). Program Synthesis with Large Language Models (MBPP). arXiv:2108.07732.

Changelog (2026-11-25)

  • Separated Part I (February 8, 2026 contemporary summary) from Part II (November 25, 2026 benchmark-scope disclosures, licensing provenance, and related work).
  • Explicitly disclosed that 164/164 HumanEval and 974/974 MBPP reflected closed-world curation of the 800-pattern base library, and distinguished signature enumeration from full body verification.
  • Added BSL-1.1 binary licensing and private openIE-dev/pattern-lang-core repository provenance (unreproduced externally), qualified RCE-Compile as up to 448.5x warm-cache cut (chip counter, reported_j), and cited Prieto-Díaz (1991), DreamCoder (2021), Stitch (2023), Voyager (2023), HumanEval, and MBPP.
DC

David Charlot

Open Interface Engineering, Inc. · Signed Provenance · Self-Checked

Archival PDF (#09) public at /papers/archive/09-Cartographer-Catalog-Expansion.pdf under CC BY-ND 4.0; Pattern-lang binaries ship under BSL-1.1 at openIE-dev/pattern-lang, while full core sources reside in private mirror openIE-dev/pattern-lang-core (externally unreproduced). Full licensing & AI-use disclosure →

Archival PDF (#09, Feb 8, 2026); binaries/packages under BSL-1.1 at openIE-dev/pattern-lang; full synthesis & catalog core in private mirror openIE-dev/pattern-lang-core (unreproduced externally)

Check the primary artifacts or run an independent replication

Inspect signed provenance manifests, rerun our public Apache-2.0 commodity-hardware replication kits, review our November 25, 2026 outside-review errata, or browse primary manuscripts on the Research Hub.