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.
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-wisdomsynthesis 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.
November 25, 2026 Errata, Related Work, and Evolution Addendum
Methods, Benchmark Scope & Licensing Box (unmetered)
- Closed-World Scope of
164/164HumanEval &974/974MBPP Base Coverage: The100%pass figures cited in Part I (164 / 164HumanEval tasks and974 / 974MBPP tasks) were not blind zero-shot open-world generalization scores—the800-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 inL0, not out-of-distribution repository-level software engineering (such as SWE-bench). Likewise, the3,000–4,000offline Cartographer entries enumerated typed signature stubs (dyn:), whose executable bodies were synthesized lazily onTaprather than pre-verified across all3,000–4,000 × 37language pairs. - 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 inO(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. - 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.pdfunder CC BY-ND 4.0. Publicpattern-langbinaries and release artifacts atopenIE-dev/pattern-langship under BSL-1.1 (Business Source License 1.1), while full core synthesis sources reside in the private mirroropenIE-dev/pattern-lang-core(unreproduced externally).
Chronological Evolution Within OpenIE Research
- 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. - Beyond Lexical Jaccard (Eco-Knowledge): Addressed token-overlap synonym misses via structured epistemic and hyperdimensional indexing (
JouleDB+Eco-Knowledge). - Compiler-Level Verified Artifact Caching (RCE-Compile): Tested
Tap -> Mountstyle content-addressed caching directly inside the Reality Code Engine build pipeline, yieldingup to 448.5x warm-cache cut (chip counter, reported_j).
Related Work & External References
- 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/164HumanEval and974/974MBPP reflected closed-world curation of the800-pattern base library, and distinguished signature enumeration from full body verification. - Added
BSL-1.1binary licensing and privateopenIE-dev/pattern-lang-corerepository provenance (unreproduced externally), qualifiedRCE-Compileasup 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.
Canonical Provenance, Primary Artifacts & Independent Replication
- Canonical OpenIE Chronicle Entry: https://blog.openie.dev/posts/wp-cartographer-catalog-expansion/
- Public Code / Replication Harness: https://github.com/openIE-dev/pattern-lang
- Original Archival Whitepaper PDF: https://blog.openie.dev/papers/archive/09-Cartographer-Catalog-Expansion.pdf
- Signed Provenance · Self-Checked Disclosure & Licensing: 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 details at https://blog.openie.dev/verification/ and https://blog.openie.dev/glossary/.