GTM Context Layer: How to Codify It for LLM Judgment Calls
· Updated

GTM Context Layer: How to Codify It for LLM Judgment Calls

A GTM context layer is what your LLM uses to make judgment calls about your business. How to codify what goes in it, not just set it up.

In this article:

 

A GTM context OS, often called a GTM context layer, is the layer your LLM actually uses to make judgment calls about your business, not just retrieve facts. It’s what context engineering looks like when you apply it to a whole company instead of a single coding task.

There’s no shortage of guides on building a context OS. There are repos you can clone, CLAUDE.md starter templates, and pillar frameworks for what to put in it — ICP, messaging, sales process, product, history. Setting up the system is the well-documented part.

What most of those resources skip is the part that decides whether it works: how you codify the knowledge. The same facts, written two different ways, give you an LLM that retrieves information — or one that makes judgment calls. This post is about the second.

Joe Rhew describes part of the loop well: you automate everything that’s intelligence — rule-based work like list building, enrichment, persona matching, drafting against templates — and architect the system to surface only the judgment calls to humans. Then every time a human call plays out, you encode that pattern back into the system. “Today’s judgment becomes tomorrow’s intelligence.” The system gets smarter; the human layer gets thinner but never disappears.

Where I’d push back: judgment isn’t only what gets escalated to humans. Even the work in the “intelligence” bucket is full of small judgment calls. Every time an LLM enriches a list, matches a persona, or drafts against a template, it’s deciding what to trust, what to flag, what to push back on — whether you’ve equipped it for that or not. Humans have the thinking tools to make those calls. LLMs don’t, unless you give them.

Joe’s loop routes the big calls up to humans. The rest of this post is the other half — my system for enabling the small ones.

Where this post stops: pure strategic synthesis. Even the best context OS doesn’t turn a generic model into a strategist. HBR research published in March 2026 tested LLMs across seven classic strategic tensions — exploration vs. exploitation, differentiation vs. cost leadership, and so on — and found models converged on the same fashionable answers regardless of context. The researchers called it “trendslop.” Strategic judgment stays with humans, no matter how well-codified the rest is. My own rerun with the newest Claude models in November 2026 showed the same: they still can’t pick your lead message unless someone writes it down.

What is a go-to-market (GTM) context layer?

A GTM context layer is the knowledge your LLM works from when it does GTM tasks: what your company sells, to whom, and what you’ve decided and why. Most teams build it as a folder of facts. What makes it useful is how those facts are written: sourced, dated, marked as validated or hypothesis, with rules for which input wins when two disagree. Written that way, it lets the LLM make judgment calls instead of only looking things up.

Why most LLM context isn’t doing its job

Most people think facts equal context. They don’t — especially not for LLMs.

Everyone already knows they should have well-structured context files. The actual problem: adding a few subheadings and more facts doesn’t mean your context is designed for those small judgment calls. Should it qualify this prospect or push back? Should it celebrate this metric or flag it as misleading? Should it follow this recommendation, or treat it as input to investigate?

Facts alone leave the LLM guessing. Context tells it what the facts mean, how they connect, what to trust, and what to question.

Facts without codified context produce generic AI slop. Facts with well-codified context apply your business reality to the call.

Codifying a GTM context OS comes down to two things:

  • Codified knowledge — what’s true, where it came from, and how sure you are.
  • Codified judgment — what to trust, how to weigh competing inputs, and how to label what comes out.

Both sit on a basic structure the LLM can navigate. I cover that only briefly, because it’s well documented elsewhere.

A quick note on me, since the rest of this post leans on examples from how I work: I’m a fractional GTM consultant running clients’ GTM engines. I spend ~95% of my work week inside Claude Code, not in tools or UIs. To do that across multiple clients at once, every important client fact has to live in a context layer my Claude Code, my clients’ tools, and any agent I deploy can read and reason over.

The principles below apply to any knowledge work where decisions build on each other — not just GTM, not just fractional. Three things they don’t cover: the full setup of the system (well covered elsewhere), how to keep it up to date as reality changes, and how to make it work across a team.

What goes in a GTM context layer

The setup is the well-documented part, so just the essentials:

  • One folder per unit, same structure every time. Per client if you’re fractional, per function (strategy, sales, marketing, product) if you’re in-house.
  • A CLAUDE.md (or README.md) at every folder level. It says what’s in the folder and where to look for what, so the LLM follows pointers instead of searching the whole tree.
  • One source of truth per fact. Point to it. Never copy it.
  • Formats the LLM reads natively. Markdown for prose, JSON for state, CSV/SQLite for tables. Convert native Google files, scanned PDFs and recordings at ingestion — otherwise the LLM may answer from surrounding context instead of saying it can’t read the file.
  • Git for the knowledge that matters. So you can see what changed and roll back what the LLM broke.

For the memory layer that lives alongside this, see Persistent memory for Claude in knowledge work.

Codifying knowledge

What goes in is the part every framework covers: strategy, operations, people, product, history, and the LLM’s own tooling. Skip anything the LLM can find or derive itself, or query directly in another system (your CRM, Search Console, GitHub). Save the effort for what’s specific to your business, what you’ve decided, and what an LLM can’t infer from looking around.

More text isn’t the main problem; conflicting text is. In a November 2026 preprint, neutral filler cost small open models nothing on retrieval, but statements that looked like the evidence dropped accuracy from 0.97–1.00 to 0.16–0.33, and a single statement giving a rival value multiplied the loss by 9 to 110 (Length Is Cheap, Competition Is Not, 2026). Two copies of a number that drift apart are exactly that rival value, which is why each fact has one source of truth. Length still costs elsewhere: the same paper found an 11–18 point loss at 30K tokens on a general-knowledge benchmark (MMLU), and earlier studies found 13.9–85% drops as input grew (Du et al., 2025; Chroma, July 2025).

The list itself is obvious. The non-obvious part is how you codify it.

Here’s what the difference looks like at a glance — before we go deep:

Bad CLAUDE.md vs Good CLAUDE.md side by side

Bad context — a facts dump

Most CLAUDE.md files look something like this — every fact present, every detail flat:

We're a resource planning and project
profitability SaaS for professional services
firms. We help agencies and consultancies
track their projects and team utilization.
ARR is around 2M. About 150 customers,
mostly in the Nordics. Growing around 25%
per year. We compete with Harvest, Forecast,
and Productive. Our ICP is professional
services firms with 20-200 employees.
Main pain point: they don't know which
projects are profitable until it's too late.
We're planning to expand to DACH markets next
year. Key people: Maria (CEO, product),
Erik (sales), Lisa (marketing).

 

Every fact here is true. Every one is unsourced, unhierarchized, undated. The LLM has no way to know:

  • Which of these are current decisions or facts vs. year-old assumptions — and when each was last validated.
  • Where “around 2M” came from — a financial close, a board deck, or someone’s best guess from a meeting.
  • Which competitor is actually pulling deals away — vs. which one is on the list because someone mentioned it once.
  • Whether “ICP is professional services firms with 20–200 employees” is validated against data, just a guess, or a vision the team is hoping to grow into.
  • Where any of this came from at all.
  • What the LLM should weight more or less when these compete.

Asked to qualify a prospect, draft a page, or critique a pitch, this LLM has facts to retrieve. It has no context for judgment.

Good context — codified for judgment calls

Same facts, different shape. Every number sourced and dated, every claim labeled validated or hypothesized, decisions time-stamped:

## Teamflow Oy — Context
Resource planning & project profitability SaaS
for professional services.

ARR: €1,942K (Q4 2025) | NRR: 108%
Churn: 8.4% | Runway: Q2 2027
Customers: 147 (132 Nordics, 15 DACH pilot)
Full financials → business-profile.md

Team:
Maria (CEO — strategy, pricing)
Erik  (Sales — deals, pipeline)
Lisa  (Marketing 0.6 FTE, €3K/mo)
Mikko (Product — former consultant)

# ICP — VALIDATED (CRM 2025: 38 won + 22 lost):
A-Invest:    IT consultancies   62% win
           Design agencies    55% win
B-Selective: Mgmt consultancies 38% win
           Engineering        35% win
C-Inbound:   Law firms          11% win
           (product capability mismatch)
Anti-ICP:    "just need timesheets"
           single-user buyer
           custom-tool seekers
Full ICP & quotes → customer-intel.md
Messaging        → positioning-messaging.md
Competitive      → competitive/

# Key decisions:
DACH paused until Q3 2026 — no validated ICP
Law firms = distraction — 11% win, 3x effort
Sales-assisted > product-led — 48% vs 3.5%

# History & analysis → project-log.md

 

Now every fact is sourced and dated, segments are tagged with validated win rates, and decisions are time-stamped. Pointer files replace duplicates. The same LLM, asked the same questions, now produces:

  • “This is a 62% win rate segment” — instead of “this looks like a fit.”
  • “Procurement takeover — classic anti-ICP signal for engineering” — instead of generic risk language.
  • “NRR 108% looks healthy, but what’s the expansion vs. price-increase split?” — instead of treating NRR as good news.

Five principles for codification

These are the practical context engineering principles for business teams — each pairs a fact-dump example with the codified version.

PrincipleFact dumpCodified context
Source every fact”3M ARR""3M€ ARR, FY25 close (financial_model.xlsx)“
Codify the context, not just the data”NRR 115.6%""NRR 115.6% in 2025, 55% driven by price increases in Tier 1 ICP, not organic seat expansion and upgrades”
Validate claims against data”ICP is mid-market finance""Tier 1 ICP 60% win rate (181 inbound deals, 2024–2025) vs. Tier 2 ICP win rate 27% (145 inbound deals, 2024–2025)“
Separate validated from hypothesized”ICP: planning consultancies and cities""Validated ICP: planning consultancies; hypothesis (not yet pressure-tested): cities”
Make information actionable”We sell to finance""Finance Tier A — Invest in GTM. Bundled entry pattern has best win rates (60%) vs. single use case (25–35%). Back door: if procurement enters, downgrade.”

Codifying judgment

Codified knowledge tells the LLM what’s true. Codified judgment tells it how to weigh what it reads.

It comes down to telling the LLM what to trust on the way in, and how to label what comes out — encoded in the rules so it doesn’t have to re-derive them every session.

In my setup, most of these live as rules — advisory, not enforced. The LLM can still skip one if context gets crowded. A few can be promoted to hooks (e.g., “always read the full file before answering” is enforceable; “ask before editing CLAUDE.md or running paid tools” is too). The cognitive ones — trust hierarchies, bias-catching, confidence marking — can’t really be hooked. Rules alone weren’t enough for them either. When I went back through my past sessions, I found 71 cases where a better source existed than the one the LLM used. The rule was right in all 71 — it just got applied only after I asked “where did you get this?”. So I turned my trust hierarchy into skills. /verify traces a number, quote or fact back to its original source, or tests whether a method really works. /find-a-way stops Claude from failing silently: if a source can’t be reached, it has to say so and try other routes. /dig-deeper answers one question from the most credible source available. Spot-checks on the outputs still matter.

Where the rules live matters too. Always-loaded rules get skipped when there are too many — keep them to what’s relevant in 80%+ of sessions, and move task-specific detail into reference files the LLM loads on demand.

Trust hierarchies

Every time the LLM has to choose between competing inputs — a customer claim vs. measured data, the CEO’s opinion vs. a Reddit thread, your own assessment vs. the AI’s general training — it falls back on whichever hierarchy you’ve encoded. Without one, it averages everything. Five hierarchies I encode in my rules:

  • File hierarchy. Constitution (always-loaded rules in CLAUDE.md) > context files (per-client knowledge) > memory (auto-extracted session logs) > project logs (historical context). When two files contradict, the one higher in this hierarchy wins.
  • Data sources. Measured data > own assessments > curated notes > auto-transcripts > customer claims. Customer claims (what someone said in a sales call) are input to investigate, not conclusions to act on. “We need more materials from marketing” is the default salesperson answer — the LLM should investigate before drafting the materials.
  • Expertise. Domain expert > you > AI’s general knowledge > web search. On facts about the business (its customers, decisions, numbers), what the client’s CEO, head of sales or head of product said overrides the AI’s training data. On general knowledge, forcing the model to follow the context can make answers worse: a 2026 ACL study found that pushing models toward the provided context helped some tasks and hurt others (Task Matters, ACL Findings 2026). Defaulting to “what the average B2B SaaS company does” is why most generic AI advice is unusable for real GTM work — the average doesn’t run any specific company.
  • First-order sourcing. Trace claims to the primary source — the system, not the person who reported it. A salesperson saying “the dashboard shows X” is two layers away from the dashboard. Pull the dashboard. The same goes for the LLM’s own earlier output: a summary it wrote last week is never a source. Otherwise its guess from last week quietly becomes this week’s “fact.”
  • Version authority. Working documents (strategy docs, client briefs, in-flight analyses) — the latest version always wins. Research files (Exa searches, Perplexity research, competitive analyses) — newer rounds don’t auto-supersede older ones; different rounds may cover different angles. Tell the LLM the difference, or it will treat all files the same.

One order doesn’t fit every claim, so my rules now set it per claim type. How a tool works: a live test or the vendor’s own docs, never the model’s memory. Client numbers: the raw export, recomputed from the rows, never a dashboard total. Quotes: the raw transcript, never a summary.

Emma Kriskinans makes a similar case in Where did Claude get that from?, including the point that the LLM’s own earlier output should never become a source.

Claude Code resolving conflicting signals about the DACH ICP — customer claim, sales note, and 3-year cohort data — by applying the source hierarchy

Output guardrails

Trust hierarchies cover what the LLM should believe coming in. The two tools below cover what comes out — catching the biases the model slips into while reasoning, and labeling its conclusions so you know what’s solid vs. speculative:

  • Naming failure modes. Confirmation bias. Benchmark anchoring. Definiteness escalation. Counterfactual confidence. Self-referential sourcing. Cascading inference dismissal. These aren’t abstractions — they’re concrete failure modes the LLM falls into without explicit instruction. Each one in my rules is paired with a corrective: confirmation bias → actively seek disconfirming evidence; definiteness escalation → don’t upgrade “might” to “does” without new evidence. Naming them is what makes them catchable. One I added later: “can’t” claims need a higher bar. A doc page that doesn’t mention a feature, or an empty search result, is not proof the feature is missing. Before Claude says a tool can’t do something, it has to search the vendor’s full docs and say what it searched.
  • Confidence marking. Every output gets labeled: confirmed fact, inference, hypothesis, needs investigation. Source trust is about inputs; confidence marking is about outputs. The LLM knows the difference between “customers in segment X have a 62% win rate (CRM data, 38 deals)” and “customers in segment X probably have higher LTV (inferred, not measured).” The label comes from the evidence behind the claim, not from the model’s sense of how sure it is. Models don’t judge their own certainty reliably: in a February 2026 preprint covering four models and 24,000 trials, the weakest model was right 23.3% of the time but was the most overconfident, while Claude Haiku 4.5 was the best calibrated, at 75.4% accuracy (Dunning-Kruger effect in LLMs, 2026). A preregistered April 2026 study found the same overall pattern, with overconfidence worst on hard questions (Confidence Calibration in LLMs, 2026). Labels only help if they show up when the claim first does. In 66 of 71 past cases where a better source existed, I had to ask “where did you get this?” afterwards. In the 4 cases where the source was shown next to the claim from the start, I didn’t need to ask.
  • Keeping markers across handoffs. When a subagent reads the files and hands back a summary, it tags a claim as “inferred”. Then the main session rewrites that summary into the final document, and the tag disappears: the guess now reads as fact. My rule is that a subagent’s summary is never a source. Opening the cited file is the only way a claim loses its marker.

Context engineering in practice

The point isn’t a tidy file structure. It’s what the LLM does with it. Context engineering examples in practice — same model, same input, different context, different output.

Example 1: Sales call intelligence

What changes when codified context is loaded onto a sales-call transcript? Same 42-minute discovery call, run two ways.

Without context:

A 42-minute discovery call. Two participants
from the prospect side discussed their
compliance reporting workflow and audit-trail
requirements. They currently use spreadsheets
and SharePoint. They expressed interest in
seeing a demo. Next steps: send pricing and
schedule follow-up.

That’s a summary — accurate, but utterly useless.

With context loaded — ICP tiers, validated win-rate segments, anti-ICP signals, messaging pillars, competitive context, recent decisions:

CLASSIFICATION
PROSPECT-001 · regulated_reporting · Tier A
Bundled compliance + IT entry — 47% win pattern
Both champions aligned, audit-deadline urgency
No anti-ICP signals
Quote at 32 min: "this is exactly what
we're missing"

RECOMMENDED ACTIONS
1. Reference the upcoming audit deadline in
 the pricing follow-up
2. Send integration-features case study to
 the IT Security Lead
3. Push for IT Director attendance at next demo
4. Position with 47% win-rate cohort in proposal
5. Watch for procurement signals

DEAL ASSESSMENT: STRONG SIGNAL

 

That’s intelligence. It classifies (Tier A), pattern-matches against known outcomes (47% win rate for the bundled-entry profile), surfaces what landed (the 32-min quote), notes what’s missing (IT Director not yet involved), and turns all of it into specific next actions — not just a generic deal-stage update.

The transformation isn’t AI getting smarter. It’s the same model reading the same transcript, but with codified context to compare against.

Across every call it processes, the system surfaces patterns — emerging use cases, recurring objections, messaging that lands vs. messaging that fizzles. Feedback loops emerge. The knowledge base updates from its own outputs.

Example 2: A product page in 20 minutes

The same codified context powers the agentic content workflows I run for clients. Take a product-page draft.

What the agent pulls in:

  • The codified ICP and messaging framework
  • Live product documentation and Help Center (to verify every claim before drafting — no fabrication)
  • Search Console data on which queries already get traffic
  • The internal sitemap (to suggest where to link in and out)
  • Brand and tone notes
  • Competitive positioning

What the agent runs:

  • Researches the brief against the codified knowledge base and the live product/SEO data
  • Drafts against a post-type template
  • Generates brand-consistent images using the brand guidelines and reference library
  • Runs a quality-control loop until the draft passes
  • Publishes to the CMS via API as a draft (returns a URL for human review)
  • Proposes internal links from existing site content with anchor-text suggestions

About 20 minutes from “we need a page on X” to a draft I can review. What stays human: deciding which page to write, reviewing the draft, approving the internal links — maybe 5 minutes of actual decisions. The rest is the codified context doing what would otherwise be a 2–3 hour context-gathering exercise across five tools.

For the full architecture — failure modes, what gets verified vs. drafted, and the parts that surprised me — I wrote it up in Agentic AI workflows: from content idea to published page →.

Without context Claude can only ask vague questions about a product page; with the codified knowledge base loaded, it produces a fully-researched draft with internal links

Transferable principles

Stepping back, the principles transfer to any knowledge work where decisions build on each other — not specific to fractional consulting, not specific to GTM:

  1. Codify what you know into LLM-readable formats. Not just the facts, but the context that makes those facts actionable. Markdown for prose, JSON for state, CSV/SQLite for tabular.
  2. Codify judgment, not just facts. Trust hierarchies for inputs (measured > assessment > notes > transcripts > claims). Hooks for enforced compliance. Rules for behavioral defaults. Skills for the checks that rules alone don’t reliably trigger. Reference for task-specific depth. Confidence marking for outputs.
  3. Build feedback loops so corrections stick. Manual and automated. Session-end automation, decisions promoted to context, indexes maintained as the knowledge base grows. Every skill keeps its own learned-rules file: when I correct an output, the rule goes there in the same turn, and the skill reads it at the start of the next run.
  4. Audit not just the knowledge, but the system that holds it. Knowledge bases decay if you don’t actively prune. So do the rules, the hooks, and the reference layer.
  5. Use correct prompts for the purpose. Specific verbs trigger specific behaviors. “Verify and read through fully” beats “go through.” “List what you know about X” beats vague “analyze.” The right verb is half the instruction.

The instinct is to start with the fancy version — vector DB, agentic retrieval, multi-agent setups. Almost never the right starting point — I covered why curated markdown beats RAG for judgment-heavy work in Persistent memory for Claude in knowledge work. Add complexity when the simple thing breaks — not before.

This post grew out of my talk at the Claude Code Meetup Helsinki on April 27, 2026, which also covered the setup in more detail. The original slides are here.

”I don’t use AI to replace thinking. I use it to never think the same thing twice.”


 

Codifying a context OS is one piece of how a fractional GTM lead systematizes a B2B SaaS go-to-market function. For how that broader engine fits together, see the three stages of GTM maturity and the AI workflows that ride on top of it.

Anna Ursin

Anna Ursin

Fractional GTM lead for B2B SaaS and tech startups and early scale-ups at €1M–10M ARR. I help founders build go-to-market engines that actually connect to pipeline — instead of random acts of GTM. More about me

Want your context layer to support judgment calls?

I help B2B SaaS teams codify their ICP, decisions and trust rules so their AI tools stop guessing. Let's look at what your context layer has and what it's missing.

Book a discovery call