signal4i.ai SIGNAL4i
Technical Reference
Subscribe Free
Technical Reference · IBM i × Agentic AI

The Agentic Stack

Five layers. What each one is, how it works, where IBM i sits in it, and what to do with that information.

The Silver Lake Series argues that IBM i operators hold a structural advantage at the orchestration layer of the agentic stack. This document is the technical foundation for that argument. It is a reference — not a narrative. Each layer has a definition, a mechanism, an IBM i relevance note, and a set of diagnostic questions. Read the Silver Lake installments for the story. Read this for the architecture underneath it.

How to use this document

The five layers build sequentially — each enables the next. Start with the overview to understand the full stack, then drill into the layers most relevant to where your organization is in its agentic journey. The IBM i tab in each layer section is where this document earns its keep.

Jump to any layer: Intelligence · Action · Governance · Orchestration · Economic

signal4i.ai May 2026 Technical Reference · Permanent Companion to Silver Lake Series

The Stack at a Glance

Five Layers. One That Resists Commoditization.

The agentic stack has five layers. They do not accrue value equally. The intelligence layer is commoditizing. The orchestration layer is where IBM i operators hold structural advantage. Everything else is either infrastructure or a consequence.

L1
Intelligence
LLMs · MoE · MLA · RAG · The reasoning engine. Commoditizing fast.
Commoditizing
L2
Action
ReAct loop · MCP · A2A · Tool calls · The bridge between reasoning and doing.
Standardizing
L3
Governance
Permissions · Audit · Runtime enforcement · Deterministic policy. Table stakes.
Table stakes
L4
Orchestration
Domain logic · Workflow encoding · Task routing · Human-in-loop · IBM i advantage lives here.
Value accrues ✓
L5
Economic
Token cost · Latency · Per-outcome pricing · Data sovereignty · Derivative of L4 quality.
Derivative

LAYER 1
Intelligence
Commoditizing Rapidly
What It Is
How It Works
IBM i Relevance
What To Do

The reasoning engine — the layer everyone talks about

The intelligence layer is the large language model at the center of an agent deployment. It receives context, reasons through the problem, and generates structured output — whether that's a natural language response, a tool call, or a decision.

Three architectural innovations have resolved the constraints that bounded early monolithic LLMs and are driving rapid capability convergence across the market:

The Three Innovations
MoE
Sparse Mixture of Experts. Activates only a subset of parameters per token — Mixtral activates 13 of 47 billion parameters (~72% compute reduction). Solves reasoning cost at scale.
MLA
Multi-head Latent Attention. Compresses the KV cache 5–13x (DeepSeek-V2). Solves the memory cost of long-context reasoning. Makes extended agentic tasks economically viable.
RAG
Retrieval-Augmented Generation. Connects models to live data after training ends — knowledge doesn't have to be baked into weights. Enables auditability: every retrieved fact is traceable to a source.

These methods are converging across labs and becoming commodities. The capability gap that justified premium model pricing is compressing toward zero. Claude, GPT-4o, Gemini, DeepSeek, Llama — switching costs are approaching zero.

How a model becomes an agent

A raw LLM is a completion engine — it takes input and generates output. An agent adds a loop. The model reasons about what to do, takes an action (usually a tool call), observes the result, and reasons again. This is the ReAct loop, which lives in Layer 2.

The intelligence layer's job is reasoning quality — understanding the task, selecting the right tool, interpreting results, handling errors. The quality of reasoning determines whether the agent can complete complex multi-step tasks without derailing.

For IBM i practitioners: the intelligence layer is the part of the system you have the least control over and the least competitive advantage in. This is a feature, not a bug. You don't need to build or fine-tune a model to extract value from agentic AI. You need the layers underneath it.

Model Selection Criteria for IBM i Deployments
Context window
Long RPG programs and complex DB2 schemas require large context windows. Models with 100K+ token contexts handle IBM i codebases significantly better.
Tool calling
Reliable structured tool call output is essential for MCP integration. Models that hallucinate tool parameters are not production-ready for IBM i agent deployments.
Code comprehension
RPG and CL comprehension varies significantly by model. Claude and GPT-4o perform measurably better on IBM i code than open-weight alternatives at equivalent parameter counts.

IBM i is not competing with this layer — it feeds it

IBM i Relevance

DB2 data is among the best RAG source material available in any enterprise. It is structured, complete, historically deep, and referentially consistent in ways that data warehouses and data lakes rarely achieve. The IBM i database is not a legacy data problem — it is a RAG asset waiting to be connected to an intelligence layer that can reason over it.

The IBM i operator's advantage at Layer 1 is not in the model — it's in the data the model can be given. RAG-augmented agents that can query DB2 in real time, retrieve relevant records, and reason over structured transactional data outperform the same model without that access.

The practical implication: before evaluating which LLM to use for a given IBM i agentic deployment, evaluate which DB2 tables contain the data the agent will need to reason over. The data architecture decision matters more than the model selection decision.

Stop evaluating models. Start evaluating data.

  • Stop asking "which model is best?" and start asking "which of our DB2 tables are clean enough to serve as RAG sources?" The model is a commodity. The data is not.
  • Identify the 3–5 DB2 tables your most important business processes read from. Those are your first RAG candidates. Map their schema, their referential relationships, and their update frequency.
  • Test RPG and CL comprehension before committing to a model for any project that requires reading existing IBM i code. Not all models handle fixed-column RPG equally well.
  • Don't fine-tune unless you have a specific reason to. Fine-tuning on IBM i code is expensive, introduces model drift risk, and is usually unnecessary — modern frontier models understand RPG without it.
LAYER 2
Action
Standardizing Around Open Protocols
What It Is
How It Works
IBM i Relevance
What To Do

The bridge between reasoning and doing

The action layer is where a model that reasons becomes a system that acts. Without it, an LLM is a sophisticated completion engine — it can describe what to do but cannot do it. The action layer gives the model tools it can call, actions it can take, and feedback that flows back into the next cycle.

Three components make the action layer reliable in production:

Action Layer Components
ReAct Loop
Reason → Act → Observe → Repeat. The fundamental execution loop of every serious agent. The model reasons about what tool to call, calls it, observes the result, and reasons again. Converts a single LLM call into an iterative execution cycle.
MCP
Model Context Protocol. Open standard (Anthropic, 2024; Linux Foundation). Server/client architecture — a server exposes tools and resources, a client (the agent) discovers and calls them. The emerging standard for connecting models to external systems.
A2A
Agent-to-Agent protocol (Google, 2025; Linux Foundation). Defines how agents communicate with each other — enables multi-agent architectures where specialized agents hand off to each other. Complements MCP at the agent coordination layer.

The action layer is standardizing rapidly. MCP is winning as the tool connectivity standard. A2A is emerging for agent coordination. Standardization here is good news for IBM i — it means IBM i data and programs exposed via MCP are immediately callable by any MCP-compatible agent, without custom integration work per model or per framework.

How MCP connects IBM i to the agentic layer

An MCP server exposes three types of capabilities: tools (functions the agent can call), resources (data the agent can read), and prompts (reusable instruction templates). A client — the AI agent — discovers available capabilities through a standard discovery protocol and calls them by name with structured parameters.

MCP in Practice — IBM i Example
MCP Server
Mapepire running on IBM i exposes DB2 query capability as an MCP tool. The server handles the connection, authentication, and result serialization.
Tool Definition
A tool named "query_customer_account" with parameters: account_number (string), fields (array). Returns structured JSON from DB2.
Agent Call
Agent reasons it needs account data, calls query_customer_account with account_number="ACC-12345", receives JSON result, incorporates into next reasoning step.
RPG Program Call
ILE service programs exposed as MCP tools. Agent calls "check_credit_eligibility" with customer parameters, RPG program runs, result returned as structured output.

The agent harness — LangChain, LangGraph, or a custom implementation — manages the ReAct loop, routes tool calls to the appropriate MCP server, and handles retries, errors, and context management.

Mapepire and Project Bob are the Layer 2 IBM i story

IBM i Relevance

Mapepire is the MCP-compatible bridge to IBM i. It exposes DB2 queries and ILE service program calls as standard MCP tools. Once a DB2 table or RPG program is exposed via Mapepire, it is callable by any MCP-compatible agent — Claude, GPT-4o, or any open-weight model running locally.

Project Bob and Claude Code operate at the Layer 2 boundary — they read existing RPG and CL programs, document the business logic, identify which programs and data structures should be exposed as MCP tools, and in some cases generate the MCP tool definitions directly.

The combination of Mapepire (the runtime bridge) and Project Bob (the code comprehension and documentation layer) is what converts IBM i from a legacy system into an agentic-ready platform. Neither requires rewriting existing programs. Both work with what you already have.

Start with five tables and three programs.

  • Install Mapepire on a development IBM i partition. Expose one DB2 table as an MCP resource. Connect a Claude or GPT agent to it. This is a one-day proof of concept that makes the Layer 2 connection real.
  • Identify your 3 most important RPG service programs — the ones that encode your most critical business rules. These are your first MCP tool candidates. Document their parameters and return values.
  • Run Project Bob against undocumented RPG programs before attempting to expose them as MCP tools. Understanding what a program does before making it agent-callable is a governance requirement, not just due diligence.
  • Design MCP tools with narrow scope. A tool that does one thing and returns structured output is safer, more reliable, and easier to govern than a tool with broad parameters and complex conditional logic.
LAYER 3
Governance
Table Stakes — Not a Moat
What It Is
How It Works
IBM i Relevance
What To Do

Deterministic policy enforcement — the layer that can't be argued with

Governance is a property of the architecture, not the model. Safety training shapes how a model behaves by default. It can be talked out of a preference. Code is harder to argue with.

The governance layer enforces what an agent is permitted to do, independent of the agent's own judgment. Four components compose a trustworthy governance runtime:

Governance Runtime Components
Container isolation
Limits blast radius. An agent runs in a sandboxed environment with access only to explicitly granted resources. A compromised or misbehaving agent cannot reach what it was never given access to.
Explicit permissions
A machine-readable record of authorized actions. Every tool call is checked against a permission list before execution. No permission = no execution, regardless of what the model says.
Observable logs
Every input, tool call, result, and retry is logged with a timestamp and attribution. Governance without logs is not governance — it's hope. Logs are also the audit trail that satisfies regulatory examination requirements.
Pre-validation
Rules enforced before action executes, not after. The governance check happens at the runtime layer, before any downstream system is touched. Post-hoc validation catches errors — pre-validation prevents them.

Governance is table stakes for enterprise deployment — necessary but not sufficient. It is the floor, not the moat. Every serious enterprise agent deployment will implement it. None will differentiate on it.

Prompt injection and why governance must be deterministic

The primary attack vector for production AI agents is prompt injection: an attacker embeds malicious instructions inside content the agent reads — a document, an email, a web page — and the agent acts on them as if they were legitimate. In 2025, Microsoft 365 Copilot was exploited via crafted emails that triggered data exfiltration with no user interaction required.

The defense is not better safety training. The defense is deterministic governance enforced at the runtime layer. An agent that cannot access a resource regardless of what instructions it receives — because its permission list does not include that resource — cannot be tricked into accessing it through prompt injection. The attack surface is bounded by architecture, not by model behavior.

For IBM i deployments: the governance layer must be designed before agents are given write access to any production system. Read-only MCP tools can be deployed with lighter governance. Write access to DB2 tables, IFS files, or program execution requires explicit permission grants, pre-validation, and complete audit logging.

IBM i already has governance infrastructure most greenfield stacks are still building

IBM i Relevance

IBM i's object-level security, authority checking (*ALLOBJ restrictions, adopted authority, object-level *USE/*CHANGE/*ALL grants), and journal-based audit trail are Layer 3 infrastructure. These are deterministic controls that apply at the platform level, independent of the application — and independent of the agent. An agent running on IBM i cannot access an object the current user profile lacks authority to — regardless of what the agent was instructed to do.

The journal-based audit trail is particularly significant. Every DB2 write, every program call, every object access is journal-eligible and can be captured with timestamp, user profile, and full before/after record images. This is the audit logging that the governance runtime requires — and IBM i has had it for decades.

The work is surfacing these existing controls to the agentic layer — mapping IBM i user profiles and authority structures to the agent permission model, and ensuring journal capture is activated for every object the agent can reach. This is configuration work, not new infrastructure.

Map your IBM i authority structure before granting agent access.

  • Create a dedicated IBM i user profile for each agent deployment. Do not use a shared or privileged profile. The agent's authority should be exactly what it needs for its defined scope — no more.
  • Enable journal capture on every DB2 table the agent can write to before granting write access. The audit trail must exist from the first agent write — retroactive journaling does not reconstruct prior activity.
  • Start every agent deployment as read-only. Prove the loop with read access, validate the reasoning and output quality, then add write access incrementally with human approval at each stage.
  • Log every MCP tool call at the agent harness layer in addition to IBM i journal capture. The two logs together — application-layer and platform-layer — give you the complete decision trail an examination or incident response requires.
LAYER 4
Orchestration
Value Accrues Here — IBM i Advantage
What It Is
How It Works
IBM i Relevance
What To Do

The control plane — where domain knowledge becomes structural

The orchestration layer is where the same model becomes either far more valuable or far more expensive depending on what's underneath it. It is the control plane: task routing, workflow sequencing, agent-to-agent coordination, error containment, human review insertion, and memory management.

More precisely: the orchestration layer is where domain knowledge gets encoded into agentic behavior. Where your data, your processes, and your business rules become structural. It cannot be replicated without the domain depth that underlies it — which is exactly why it resists commoditization.

"The models are starting to commoditize as orchestration accrues value." — The observation driving the Silver Lake Series

The organizations that will extract durable value from agentic AI are not the ones with the newest models. They are the ones with the richest process architecture, the most reliable data, and the deepest domain knowledge encoded into orchestration logic. This is the IBM i operator's structural position.

Orchestrator-worker pattern and the human-in-loop insertion point

The dominant orchestration pattern in production deployments is orchestrator-worker. A master agent receives a high-level task, decomposes it into subtasks, routes each subtask to a specialized worker agent (or tool call), collects and synthesizes results, and either completes the task or escalates to human review.

Orchestration Primitives
Task routing
Which agent or tool handles which subtask. Encoded in the orchestrator's instructions and the tool manifest. Determines which domain logic is applied to which input.
State management
What information persists across tool calls and agent turns. In IBM i contexts: the customer record, the account state, the transaction history. LangGraph manages state as a typed graph.
Error containment
What happens when a tool call fails, returns unexpected output, or produces a result outside defined boundaries. Retry logic, fallback paths, and escalation triggers.
Human-in-loop
The insertion point where the agent pauses and routes to a human for review or approval. In regulated environments: every write to a production system, every adverse decision, every exception to standard workflow.

The human-in-loop insertion point is not a limitation — it is the crawl/walk/run discipline in architectural form. Start with human approval on every agent action. Remove approval gates incrementally as confidence and audit evidence accumulate. The orchestration layer controls which gates exist and when they open.

Thirty years of RPG is thirty years of orchestration logic

IBM i Relevance — The Core Argument

The IBM i operator's structural advantage is at this layer. RPG programs encode business rules — the conditions, exceptions, validation logic, and sequence dependencies that govern real business workflows. CL procedures encode process flow. DB2 trigger programs enforce data integrity rules at write time. Data queues manage asynchronous processing. IFS provides a persistent workspace for agent state.

None of this needs to be rebuilt. It needs to be connected. Project Bob surfaces and documents this existing logic. Mapepire makes it callable as MCP tools. The orchestration layer is not absent from IBM i environments — it's been running in production for decades. It just wasn't connected to an intelligence layer that could act on it.

The organizations building agentic infrastructure from scratch are spending months constructing what IBM i shops have had running in production for years. The process depth, the exception handling, the domain-specific validation logic — these are orchestration assets. The IBM i operator who recognizes this is structurally closer to a production agentic deployment than almost any peer starting from a greenfield stack.

Identify your orchestration assets before building new ones.

  • Run Project Bob against your most business-critical RPG programs. Document what each program does, what rules it enforces, what exceptions it handles. This is your orchestration inventory — and most IBM i shops have never written it down.
  • Map your existing workflows against the orchestrator-worker pattern. Which steps require reasoning (orchestrator)? Which steps execute a defined rule against structured data (worker/tool)? IBM i programs almost always fit the worker pattern — they are the tools the orchestrator calls.
  • Identify the human review points in your current workflows — the places where a manager, supervisor, or specialist currently approves or escalates. These are your human-in-loop insertion points. Design the orchestration layer to preserve them initially, then relax them incrementally as evidence accumulates.
  • Start with LangGraph for orchestration state management. Its typed graph model maps naturally to IBM i workflow patterns — each node is a step, each edge is a transition, each state object is the accumulated context of the process.
LAYER 5
Economic
Derivative — Follows Layer 4 Quality
What It Is
How It Works
IBM i Relevance
What To Do

The cost structure — derivative of every layer beneath it

The economic layer is where token cost, inference latency, per-outcome pricing, data sovereignty requirements, and failure costs intersect. It is a consequence layer — its efficiency is determined almost entirely by how well the four layers beneath it are built.

A well-scoped agent with clean orchestration logic, deterministic governance, and structured data surfaces costs a fraction of an ungoverned agent running against messy data with broad permissions and poor error handling. The economic layer does not have independent variables — it is the sum of all architectural decisions made in Layers 1 through 4.

The True Cost Formula
Visible cost
Token consumption × inference price. The number on the API bill. Easily measured. Often the only cost organizations track.
Hidden cost
Failure rate × human cleanup cost per failure. When an agent produces incorrect output that a knowledge worker must diagnose and correct, the cleanup cost — at $50–$200/hour — compounds fast and appears nowhere in token pricing.
Latency cost
For time-sensitive workflows, inference latency translates directly to operational cost. Customer-facing processes that require sub-second responses cannot use multi-step agentic chains without significant optimization.
Sovereignty cost
The cost of sending sensitive data to third-party inference endpoints — regulatory exposure, data egress fees, contractual risk. In regulated industries, this cost is often prohibitive for certain data categories.

Per-seat is dead. Per-outcome is the model.

The shift from per-seat to per-outcome pricing is the economic layer's defining structural change. Microsoft CEO Satya Nadella has stated the company is rethinking pricing entirely — no longer "per user" but "per agent." This shift changes the economic model for every organization deploying agentic AI.

Per-outcome pricing aligns cost with value creation — you pay when the agent produces a result, not for access to the capability. For IBM i operators, this creates a direct measurement opportunity: the agent's economic value is the outcome value minus the total cost (token + cleanup + latency + sovereignty) of producing it.

The implication: the metric that matters is not tokens consumed per agent run — it is outcomes produced per dollar spent. Poorly scoped agents that consume many tokens to produce unreliable results are economically worse than tightly scoped agents that consume fewer tokens and produce consistent, auditable results every time.

Power Systems compute efficiency is a Layer 5 advantage

IBM i Relevance

For organizations already running IBM i, the economic argument for keeping AI inference workloads on or adjacent to existing Power Systems infrastructure is significant. The same workload that requires substantial cloud compute spending often runs on Power hardware that is already capitalized. The marginal cost of adding agentic workloads to an existing Power Systems environment is substantially lower than the cost of running equivalent workloads on cloud inference.

PowerVS — IBM Power Virtual Server — extends this to a sovereign cloud model. Organizations that cannot send sensitive data to shared inference infrastructure can run models on PowerVS with data sovereignty guarantees. For regulated industries, the sovereignty premium is not optional — it is a compliance requirement. IBM i organizations already operating on Power have a direct path to sovereignty-compliant inference that x86-native organizations do not.

The data sovereignty argument also applies at the RAG layer. Organizations that keep their DB2 data on-platform and query it locally for RAG operations avoid the data egress and regulatory exposure that comes with sending sensitive records to third-party RAG services.

Calculate actual agent economics before scaling.

  • Build a true cost model before deploying at scale: (token cost × expected volume) + (failure rate × estimated cleanup cost per failure) + (latency penalty for time-sensitive workflows). The number will be different from your API bill estimate — usually higher.
  • Measure cleanup cost during your crawl phase, when humans are reviewing every agent output. The time your team spends reviewing and correcting agent outputs is your failure cost baseline. Use it to project scale economics.
  • Evaluate PowerVS for any agent deployment touching regulated data. The sovereignty calculation — regulatory exposure of sending data to third-party inference vs. cost of PowerVS — often favors on-platform inference for healthcare, financial services, and any organization under active examination.
  • Switch to per-outcome measurement as soon as your deployment is stable enough to define outcomes. Token consumption is a proxy metric. Outcomes produced per dollar is the metric that determines whether the deployment is economically justified.
Standards Reference

The Protocols That Matter for IBM i

The action and orchestration layers are standardizing around a small set of open protocols. These are the ones IBM i practitioners need to understand.

MCP
Model Context Protocol
Open standard for connecting AI models to tools and data sources. Server/client architecture — servers expose capabilities, clients (agents) discover and call them. Mapepire implements MCP for IBM i.
Origin: Anthropic, 2024 · Now: Linux Foundation
Layer: 2 — Action
IBM i relevance: Primary — Mapepire, ILE service programs
A2A
Agent-to-Agent Protocol
Open standard for agent-to-agent communication. Enables multi-agent architectures where specialized agents coordinate without a central orchestrator managing every handoff.
Origin: Google, 2025 · Now: Linux Foundation with MCP
Layer: 2–4 — Action + Orchestration
IBM i relevance: Medium — multi-agent workflows
ReAct
Reason-Act-Observe Loop
Not a formal standard — a pattern. The fundamental execution loop of agentic AI. Every serious agent framework implements it. Understanding it is prerequisite to designing reliable agents.
Origin: Academic (Yao et al., 2022) · Pattern, not standard
Layer: 2 — Action
IBM i relevance: High — design pattern for all IBM i agent builds
LangGraph
Stateful Agent Orchestration
Python framework for building stateful, multi-step agent workflows. Graph-based state management. Human-in-loop insertion. The orchestration layer framework used in the LoanIQ demo.
Origin: LangChain Inc. · Open source
Layer: 4 — Orchestration
IBM i relevance: High — LoanIQ demo, Silver Lake architecture
IBM i Tools Reference

The IBM i Agentic Toolkit

The tools that connect IBM i infrastructure to the agentic stack. Each sits at a specific layer.

Mapepire
Layer 2 — Action
Open source IBM i database connectivity layer with MCP compatibility. Exposes DB2 queries and ILE service program calls as standard MCP tools callable by any MCP-compatible AI agent. The primary bridge between IBM i and the agentic layer. Confirmed working in the LoanIQ demo environment.
github.com/Mapepire-IBMi →
Project Bob
Layer 2–4 Bridge
AI-assisted IBM i code comprehension and documentation tool. Reads RPG, CL, and COBOL programs, documents embedded business logic, identifies MCP exposure candidates, and in some cases generates MCP tool definitions. The mechanism that makes decades of undocumented IBM i logic agent-accessible without rewriting it.
github.com/IBM/project-bob →
Claude Code
Layer 1–2 Interface
Anthropic's agentic coding tool. Used alongside Project Bob to surface IBM i business logic — reads RPG and CL programs, understands embedded rules, generates documentation and MCP tool definitions. The intelligence layer interface for IBM i code comprehension work. Used in the LoanIQ demo build.
docs.anthropic.com/claude-code →
LangChain / LangGraph
Layer 4 — Orchestration
Python orchestration frameworks. LangChain handles model integration and tool calling. LangGraph adds stateful, cyclical graph execution for complex multi-step workflows — typed state, human-in-loop insertion, conditional routing. The orchestration layer framework in the Ascend stack and the LoanIQ demo.
langchain.com →
Anthropic SDK
Layer 1 Interface
Python library for programmatic Claude API access. Used in LangChain integration. Handles authentication, streaming, tool call parsing, and retry logic. The programmatic interface to the intelligence layer for Python-based IBM i agentic deployments.
docs.anthropic.com/sdk →

Silver Lake Series — This document is the technical foundation