a builder's codex
codex · release log · 2026-08-15

Hypothetical classification, SOTA buyer data, system prompt injection, and citation mechanics

2026-08-15 · +4 insights · +1 operator

Four new cards from four operators. Two themes in how LLM pipelines should be structured. One empirical market signal about what enterprises actually buy. One structural finding about how AI search splits citation from traffic.

Theme 1, Two-stage LLM pipelines outperform single-step constrained approaches

Doug Turnbull's August 10 post argues that constraining an LLM to select from a large taxonomy is the wrong architecture. Instead, let the model invent a plausible category freely, then use embeddings to map that invented output to the closest real entry. The generation step and the resolution step belong in separate layers. Generating unconstrained hypothetical categories then resolving via embeddings outperforms forcing LLM selection from a large taxonomy.

The mechanism is clean. A model forced to select from 1,800 valid categories carries the full schema as context on every call, hits structured-output size limits, and spends reasoning capacity on comparison rather than understanding. A model freed to invent reasons about the input. Embeddings handle the vocabulary alignment step deterministically and cheaply. The hallucinated category is the intermediate representation; it is never the final output.

Simon Willison's August 9 post documents a related pattern from Anthropic's Claude Opus 5 system prompt. When a model needs accurate information about events after its training cutoff, injecting verified facts directly into the system prompt overrides the model's trained priors. Injecting verified facts about post-training events into the system prompt prevents LLM confabulation without model retraining. The system prompt for Opus 5 explicitly addresses the Fable 5 and Mythos 5 export control suspension. The model is instructed to acknowledge it truthfully, treat it as a current political topic, and direct users to Anthropic's official statement. No retraining. The correction lives in the prompt and can be updated as facts change.

Both patterns share a structure: decouple the step where the model generates freely from the step where output gets resolved or validated. Turnbull decouples generation from vocabulary resolution via embeddings. Anthropic decouples the model's trained knowledge from post-training reality via system-level injection.

Theme 2, The real AI model market ignores the frontier

Tom Tunguz published empirical token distribution data from OpenRouter on August 14. Eighty-four percent of tokens run on non-frontier models. Six specific models generate 80% of that non-frontier volume at a blended price of $0.50 per million tokens, versus $20 per million for Claude Fable 5. Those six models deliver 77% of frontier benchmark performance. Enterprise AI workloads run overwhelmingly on non-frontier models because buyers optimize for price-over-performance, not benchmark scores.

Fable 5 captured 6% of Anthropic token volume and 11% of spend one month after launch. The best open-weight models scored 80% of frontier benchmarks by May 2026, up from 48% a year earlier. The market has moved. Application teams are not waiting for the next frontier release. They are already running on good-enough models at a 40x cost advantage. Tunguz's framing: production buyers optimize against a price-over-performance Pareto frontier, not the same frontier labs are competing on with benchmarks.

"Application deployment is the other story...They are optimizing against a different Pareto frontier, price over performance."

This builds directly on his August 4 tier-segmentation piece (AI labs sustain consumption growth under supply constraints by segmenting models into tiers so workloads route to cheaper alternatives rather than stopping), where he showed that labs create tiered pricing precisely to capture the demand described here. The Aug 14 data confirms the demand side of that thesis with usage numbers.

Theme 3, AI citation and AI referral traffic are separate optimization targets

Aleyda Solis identified the most actionable finding in Similarweb's 2026 Generative AI Landscape Report: the pages AI systems cite and the pages that receive AI referral traffic are structurally different. Sixty-five percent of ChatGPT-cited URLs sit two or three folders deep in site taxonomy. Fifty-eight point eight percent of AI referral traffic lands on homepages. The pages AI engines cite and the pages that receive AI referral traffic are structurally different assets requiring separate optimization.

The split has a mechanical cause. AI retrieval indexes and cites content wherever specific answers live, which is deep in the architecture. Users who click through from AI responses navigate to the site's primary entry point. Citation is a retrieval event; referral traffic is a navigation event. They serve different purposes and call for different teams, different pages, and different metrics. Optimizing only the homepage for AI traffic misses the citation surface. Optimizing only deep content for citations misses where referral visitors arrive.

Only 6.8% of ChatGPT US answers included an external link as of May 2026, up from 1% a year earlier. The gap between cited pages and traffic pages matters most for sites in that minority where AI systems do generate clickable attribution.

Open the full release log →