Why Batch AI Prompts Don't Scale: A Knowledge Engine Built for Pull
You added the business rules to the system prompt. Then the compliance checklist. Then the brand guidelines. Then the approval conditions. By the time the AI had enough context to make a reasonable judgment, you were paying for 8,000 tokens of setup before the actual task started.
That's the Push model. Front-load everything, hope the AI uses it, watch costs compound with every run. The AI still makes mistakes — because a bloated prompt isn't the same as understanding.
Pull inverts the architecture. The AI asks for what it actually needs — specific knowledge, specific constraints — at the moment it needs them. Instead of 8,000 tokens of preloaded context, you get 600 tokens of targeted retrieval. The AI isn't working from a monologue you prepared; it's working from a live knowledge base it can interrogate.
OS iXanagi's Knowledge Engine is built on Pull. Not only because it cuts token costs by roughly 90%, but because Pull is the only architecture that makes delegated judgment possible. When an AI can retrieve what it needs, it can reason about what it needs. That's the line between an AI that executes instructions and an AI that participates in a workflow. The next chapter examines why that distinction isn't an efficiency gain — it's the structural prerequisite for AI you can actually trust.

Contents5 chapters
What you will get from this article
AI at scale demands pull-based knowledge: the AI asks, the system answers, costs drop, judgment expands.
- Push mode burns 20× the tokens at scale.
- Pull design cuts that cost to one-tenth.
- Data Contracts let AI ask for what it needs.
- Tool-use turns AI into a workflow participant.
Companies that try AI and quit usually chose push by default. Pull flips the control: AI requests exactly what it needs, the system answers, and workflows run leaner.
Why Stuffing Rules Into Prompts Breaks at Scale
Prompt engineering is a single-deployment strategy that breaks the moment you reach scale.
One AI deployment with a 30 KB system prompt costs roughly $0.50 per call. Manageable. Add 100 deployments—different products, different tenants, different routing rules—and the same strategy costs $50 per call at peak. Scale to 1,000 and you are spending $500 per round-trip before a single line of business logic fires. That is not a cost curve. That is a cost wall.
The compounding cost is the symptom. The actual disease is structural.
Every rule added to a system prompt makes the previous rule harder to apply. “Refund policy is 30 days.” “Enterprise tier gets priority routing.” “Locale JA should never display currency X.” The 47th rule does not make the AI smarter—it makes the 46th rule more ambiguous. Rules begin to contradict. Edge cases multiply. Across 40,000 tokens of accumulated context, the AI stops seeing signal and starts processing noise.
There is a second failure mode that runs deeper. A prompt is stateless. Every call carries the full context regardless of whether any particular rule matters for this specific request. Ask the AI to process a single invoice and it still reads the entire locale policy, the refund schedule, and the onboarding checklist. Attention budget consumed by context that will never fire.
Teams that hit this ceiling usually reach for compression—trim the prompt, summarize the rules. That clears headroom for one deployment cycle. By next quarter, the prompt is bloated again.
What breaks this cycle is not smarter compression. It is changing who carries the context. When the AI can pull only what it needs for a specific task, the system prompt stops being a knowledge warehouse and becomes a structural skeleton. That shift requires a different kind of object—one precise enough to serve as a contract. The next chapter examines how typed objects become that contract.
How Typed Objects Become a Contract Between Human and AI
The previous chapter drew a line: prompt-stuffing collapses under scale. The solution isn't a smarter prompt. It's a different contract.
In OS iXanagi, when a workflow step needs to evaluate a customer offer, the AI doesn't receive a paragraph that says "remember: the offer must align with the audience's job-to-be-done, match the brand tone, avoid taboo phrases, and not contradict our positioning." Instead, the AI declares its schema: "I need audience_profile with fields segment, jobs_to_be_done, pain_points, and decision_criteria. I need company_mission with fields statement and positioning."
That schema declaration is the contract. The type definition is the rule.
The system receives the declaration, fetches the objects, validates their shape, and returns exactly what was requested—required fields present, optional fields populated or explicitly null. The AI doesn't interpret what "aligned with brand tone" means in the abstract. It receives brand_profile.tone_of_voice: "clear and direct" as a structured value and applies it to a concrete field.
Three things follow:
Payload shrinks by roughly 80%. When the AI requests six specific fields instead of receiving 800 words of policy text, the context window carries signal. Token budget goes to reasoning, not policy recitation.
Reasoning becomes deterministic. The same input schema produces the same reasoning path. A step that receives audience.segment = "DevOps lead" reasons about DevOps lead contexts every time—not sometimes, depending on which paragraph survived the token limit at position 3,200.
The audit trail becomes legible. When an output looks wrong, you don't debug a 600-word prompt. You check the schema declaration and the fetched object values. Every workflow run records exactly what was pulled, what fields were populated, and what the AI returned.
The shift from imperative text ("remember these 50 things") to declarative schema ("I need these 6 fields") is what makes AI reasoning predictable at scale. The type definition doesn't describe the rule—it is the rule.
The next chapter looks at who gets to declare that schema, and what changes when the AI can do it at runtime rather than in static workflow configuration.
Tool-Use: Treating AI as a Participant, Not a Worker
The worker model assumes AI already has everything it needs. The participant model assumes it doesn't — and gives it the right to ask.
In legacy AI integration, you front-load the context. Customer segment rules, pricing tiers, compliance conditions — pre-written, pre-loaded, applied without question. When the rules are stale, the AI executes them anyway, against a situation that changed last week.
Tool-use reverses this. Instead of a context dump, the AI receives a task and a set of callable tools. Mid-execution, it reaches out: "give me the customer profile for segment B2B-Enterprise." It reads the response, adjusts, and decides what to do next. It investigates before it acts.
A worker executes what you wrote. A participant investigates what you haven't written yet.
In OS iXanagi, this is how the Officer model works in practice. An AI Officer moves through three modes depending on what it finds:
- Investigate — pull data it needs, ask for context it lacks
- Propose — draft a recommendation based on what it found
- Escalate — flag a decision back to a human when the rule doesn't fit
That third mode is what most AI integrations omit. A rule that says "apply 20% discount to enterprise accounts" will be applied in every case — compliance-restricted regions, accounts with active disputes, clients who paused their subscription yesterday. A participant escalates when the rule and the reality don't align.
The distinction isn't intelligence. It's authority. Tool-use grants AI the right to say "I need more information before I proceed" — and to act on that pause rather than defaulting to the last instruction it received.
How you encode that authority without turning every AI step into an open-ended conversation is the implementation challenge. The caching layer answers that question.
How 3-Layer Cache and Brand-Aware Bridge Cut Implementation Costs by 70%
The first objection to Pull-mode is always the same: won't per-step context fetching make costs explode?
It's a fair concern. A workflow that runs 12 steps, each pulling brand voice, company context, and strategic thesis, could triple your token spend compared to a single upfront system prompt. That math breaks the business case before the first line of code gets written.
The answer is a three-layer cache — not a patch, but the core of the architecture.
Layer 1: run-scope cache. Within a single workflow execution, every tool call result is cached by the combination of tool name and parameters. When Step 3 pulls brand voice and Step 7 needs the same brand voice, the second request never hits the database. It resolves from in-memory in under a millisecond. Same brand, same call, same execution — automatic reuse.
Layer 2: persistent cache. Across workflow runs, the cache key becomes (tenant_id, brand_key, object_key, attribute, source_version). Haiku — the lightweight model dedicated to compression — reduces verbose brand attributes to essentials and stores the result in workflow_knowledge_compressions. Measured results: 1,198 tokens reduced to 34; 1,953 tokens reduced to 33. Average reduction: 97%. The version hash detects when the underlying Knowledge Object actually changed, so cache invalidation is automatic.
Layer 3: brand-aware Bridge. The Bridge server loads brand CLAUDE.md — the full brand context document — once per session and holds it in memory with a 30-minute TTL. Anthropic's prompt cache marks the system prompt with cache_control: ephemeral. Within any 5-minute window, that system prompt costs 90% less. A parallel blog generation step that calls the model 7 times pays full price once; the remaining six calls hit the cache.
You write no "remember this context" instruction. You paste no brand guidelines into each prompt. The architecture handles it invisibly — and the cost curve inverts as volume grows.
What this unlocks isn't just cheaper calls. It's a completely different way to think about what becomes possible. That's where the next chapter goes.
Why Pull-Based Design Unlocks Growth the Push Model Blocks
The push model has a ceiling. You define your rules at deployment, and that's what the AI works with until the next release cycle. If your marketing team discovers mid-campaign that enterprise customers prioritize architecture diagrams over pricing tables, that insight sits in a Slack message until someone files a ticket, a developer writes the rule, and QA signs off. The AI running today's campaign never sees it.
Pull architecture dissolves that ceiling.
When the AI encounters a gap in its knowledge — "I don't know what tone this customer segment responds to" — it asks for it at call time. When your team adds that insight to the knowledge base, the next AI call picks it up automatically. No deployment. No ticket. No three-week sprint. The gap closes the moment the knowledge does.
This creates something the push model structurally cannot: a compound growth loop.
Marketing runs a campaign. They observe what works — which messaging angle drove conversions, which audience framing fell flat. That learning gets written into the knowledge base. The next time the AI proposes a campaign, it draws on that learning. The proposal is better. Marketing's decision is easier. The campaign performs better. More signal enters the knowledge base.
The loop tightens with each iteration.
Push-model teams often compensate by building elaborate rule libraries upfront — trying to anticipate every scenario before deployment. This works for the scenarios they predicted. It fails precisely when something unexpected happens — which is when good judgment matters most.
Pull teams don't need to predict. They need to observe and record. The gap between "AI knows this" and "AI doesn't know this yet" narrows not through upfront design but through accumulated use.
There's a practical implication worth naming directly: the value of OS iXanagi compounds over time. The system that's been in use for six months — with six months of marketing learnings, customer signals, and resolved edge cases in its knowledge base — performs measurably better than the one deployed last week. This is the opposite of software entropy. Pull-based AI gets more capable as your team gets more experienced. The tool grows with the people using it.
That's the door the push model keeps locked.



