The most consequential design line in agent architecture. Garry Tan’s framing in Thin Harness, Fat Skills: every step in your system is one or the other, and confusing them is the most common mistake in agent design.
Latent space is where intelligence lives. The model reads, interprets, decides. Judgment. Synthesis. Pattern recognition.
Deterministic is where trust lives. Same input, same output. Every time. SQL queries. Compiled code. Arithmetic.
Both are necessary. The skill is knowing which side of the line each step belongs on.
The Failure Mode
Tan’s canonical example: an LLM can seat 8 people at a dinner table, accounting for personalities and social dynamics. Ask it to seat 800 and it will hallucinate a seating chart that looks plausible but is completely wrong. The chart will satisfy local constraints, name real people, even cite reasonable-sounding rationales — and yet violate the global constraint structure in ways no human reader will notice without a checking script.
The mistake is putting combinatorial optimization in latent space. Combinatorial optimization is a deterministic problem. Forced into latent space, the model produces output that sounds right and is wrong. The worst systems make this mistake routinely. The best systems are ruthless about it.
What Belongs Where
Latent (intelligence):
- Reading and interpreting unstructured text
- Synthesizing across many documents (see Diarization)
- Noticing the gap between what someone says and what they’re doing
- Judgment calls that depend on context (“Santos and Oram are both AI infra but they’re not competitors — Santos is cost attribution, Oram is orchestration”)
- Reclassifying based on subtle signals (“Kim applied as ‘developer tools’ but his transcript reveals he’s building SOC2 compliance — move him to FinTech/RegTech”)
- Pattern recognition with tacit knowledge
Deterministic (trust):
- SQL queries against structured data
- Counting, aggregating, dedup
- Combinatorial optimization (matching, scheduling, seating, packing)
- Arithmetic of any kind
- Format conversion, schema validation, syntax checking
- Anything where being wrong silently is unacceptable
The principle isn’t “use the model less.” It’s “use the model where its strengths are decisive and trust deterministic code where reliability is non-negotiable.”
Why This Is Load-Bearing for Skills
Inside a fat skill, the latent/deterministic split shows up as the structure of the skill itself. A well-designed skill interleaves the two: read documents (latent), then count occurrences (deterministic), then synthesize (latent), then validate output schema (deterministic), then make a judgment call (latent), then assign IDs (deterministic).
Tan’s YC Startup School matching example shows this in operation:
/match-lunch(600 founders, serendipity matching, 8 per table, no repeats)- The LLM invents the themes for tables — that’s the cross-sector serendipity, the judgment call about which odd pairings will spark conversation. (Latent.)
- A deterministic algorithm assigns seats to satisfy the constraints — table size, no-repeat across the day, no co-founders together. (Deterministic.)
Inverting either half is failure. Asking the LLM to do the seating assignment produces a chart that looks reasonable and breaks constraints. Asking the deterministic algorithm to invent serendipitous themes produces matches that are technically valid and conversationally dead.
Why This Earns Model-Upgrade Compounding
A consequence Tan stresses in Fat Skills, Thin Harness: when latent and deterministic are properly partitioned, every improvement to the model automatically improves every skill, while the deterministic layer stays perfectly reliable. Model upgrade tomorrow → judgment in latent steps gets sharper, deterministic steps unchanged. The whole system gets better with no migration work.
The corollary: a system that has put deterministic work into latent space cannot benefit from model upgrades cleanly. A better model produces better-looking-but-still-wrong seating charts. The way to get monotonic improvement from model upgrades is to make sure the model is only doing things it should be doing.
Heuristics for Drawing the Line
When unsure where a step belongs, ask:
- If wrong, will it be wrong loudly or silently? Loud-wrong (syntax error, schema fail, exception) → fine in either space. Silent-wrong (plausible-but-incorrect output that propagates) → must be deterministic if the wrongness is detectable; needs an explicit verification step otherwise.
- Does the right answer depend on context the model has, or on rules the code has? Context (who these people are, what they care about, what’s been said before) → latent. Rules (table size, calendar conflicts, schema constraints) → deterministic.
- Can a unit test pin it down? Yes → deterministic. No → latent.
- Does scale break it? If the LLM gets it right at n=10 and wrong at n=1000, the problem is not the model — it’s that this is a deterministic problem in a latent skin. Move it down.
Convergence with Other Frameworks
This split is not new — it’s a sharper articulation of intuitions that show up across the literature:
- Agent Tools - Design Principles: tools should do one job; the underlying reason is that they are the deterministic substrate the latent layer calls into.
- Spec-Driven Development: the gated four-phase workflow (Specify → Plan → Tasks → Implement) creates artifacts at each boundary so the latent work doesn’t quietly bypass the deterministic gates.
- Evaluation-First Prompting: the eval is the deterministic check on the latent output; if you can’t write the eval, you can’t trust the output.
- Agentic Coding - Risks and Discipline (Mario Zechner’s “booboo compounding”): the failure mode in coding is the same as Tan’s seating-chart failure — putting deterministic correctness checks (compilation, tests, type-checking) optionally in latent space when they should be mandatory.
Tan’s contribution is naming the line bluntly and putting it as one of his five foundational definitions. Once named, you start seeing it everywhere — and seeing systems that violate it.
Connections
- Fat Skills Fat Code Thin Harness — the architecture this design line lives inside; one of the five definitions
- Diarization — a latent operation by definition; the canonical example of work the LLM is uniquely good at
- Skillify - Meta-Skill Pattern — meta-skill that produces skills; one of the discipline questions skillify must encode is “where does each step belong on the latent/deterministic line”
- Agent Tools - Design Principles — the deterministic substrate; tools as the down-side of the line
- Evaluation-First Prompting — the eval as the deterministic check on latent output
- Resolvers — themselves a deterministic artifact (a routing table); intelligence is in the skills they route to
- Agent Harness — the harness’s job is to enforce safety, which is a deterministic concern; the skills do the latent work
Sources
- Thin Harness, Fat Skills — Thin Harness, Fat Skills (Garry Tan, April 2026); the canonical statement of the line as definition #4 of the architecture
- Meta-Meta-Prompting: The Secret to Making AI Agents Work — Tan, May 2026; reinforces the principle in the cross-modal-eval and learning-loop sections