The pattern of keeping an immutable constitutional base in the system prompt while loading scenario-specific rules on demand has been building for months. Progressive disclosure, Agent Skills, context-lens, context-mode. All of them converge on the same idea: do not dump every rule into the system prompt upfront. Load what you need, when you need it.

Two developments this week give the pattern more weight. Bechir Trabelsi published a Medium post naming it "Lazy-Loaded Procedural Policy" and documenting the two-layer architecture in detail. And OpenAI Agents SDK issue #2906 requests lazy-loaded instruction skills as a first-party feature.

This is the same pattern we covered on May 7 (2026-05-07-lazy-loaded-procedural-policy.md), where stigmem measured 50-87% per-heartbeat context token reduction across two production agents with zero regressions. This article focuses on what is new: Trabelsi's naming and documentation, and the OpenAI SDK issue.

Trabelsi's Naming and Architecture

In his April 2026 Medium post "Stop Bloated Agent Prompts: A Pattern I Call Lazy-Loaded Procedural Policy," Bechir Trabelsi gives the pattern a formal name and documents the two-layer architecture clearly:

Layer 1: The constitutional base. This is the immutable system prompt. It contains the agent's identity, mission, safety constraints, and high-level behavioral rules. It never changes. It is always present. It is small.

Layer 2: The procedural policy tools. These are tool calls that the agent invokes on demand. getrefundrules(), getescalationrules(), getcompliancerequirements(). Each returns the specific rules for a scenario only when the agent encounters that scenario.

The key insight from Trabelsi's post: procedural rules do not belong in the constitutional base. They belong in tool calls that the agent loads when needed. This is not a suggestion. It is an architectural principle with production data behind it.

The name "Lazy-Loaded Procedural Policy" captures both aspects:

  • Lazy-loaded because the rules are fetched on demand, not pre-loaded
  • Procedural policy because these are step-by-step rules for specific scenarios, not universal principles

This distinguishes it from progressive disclosure (which is about progressive information reveal) and from context compression (which is about reducing token count). Lazy-loaded procedural policy is specifically about moving procedural rules out of the system prompt and into on-demand tool calls.

The OpenAI Agents SDK Issue

OpenAI Agents SDK issue #2906, opened by @sujeethshetty, requests lazy-loaded instruction skills as a first-party feature. The issue describes exactly the pattern Trabelsi names: the ability to defer loading of instruction blocks until the agent actually needs them, rather than including everything in the initial system prompt.

This is significant for two reasons:

  1. First-party SDK feature request. When the official SDK for the most widely deployed LLM provider has an open issue requesting a pattern, that pattern has moved from community experiment to recognized production need.
  1. Implementation alignment. The issue is not about a conceptual pattern. It is about a concrete implementation feature that would make lazy-loaded instructions a first-class capability in the OpenAI Agents SDK. This is the difference between "you could do this with custom code" and "this is how we expect you to do it."

The issue complements existing requests on Claude Code (#19105) and OpenClaw (#29267) for the same capability. Three independent platforms, three feature requests, one pattern.

Why This Pattern Keeps Showing Up

The pattern keeps appearing because it solves a real problem that every production agent team hits: system prompt bloat. When you put every rule, procedure, and edge case into the system prompt, two things happen:

  1. Token costs scale linearly with complexity. Every scenario rule costs tokens on every message, even when that scenario never arises.
  1. Attention dilution degrades performance. The model has to navigate an increasingly dense prompt, increasing the chance that it follows the wrong rule or misses the right one.

Lazy-loaded procedural policy solves both problems. The constitutional base stays small. The procedural rules are loaded only when needed. Production data from stigmem's measurements (50-87% per-heartbeat token reduction, zero regressions) confirms the approach works at scale.

How It Differs From Progressive Disclosure

Progressive disclosure (as described by Anthropic, OpenAI, and others) is about revealing information gradually as the agent progresses through a task. The three-level hierarchy (metadata, instructions, resources) is about information hierarchy.

Lazy-loaded procedural policy is specifically about governance rules. It is not about revealing more detail over time. It is about not loading rules for scenarios the agent has not encountered yet. A refund policy tool call returns the same rules whether the agent is on turn 1 or turn 20. The difference is that those rules are only present when the agent is actually handling a refund.

The distinction matters because governance rules have different properties than general information. They must be complete, authoritative, and version-controlled. You cannot progressively disclose "the refund rules." You need the full rules, all at once, when you need them. Lazy-loading is the right pattern for this content type.

Practical Implementation

The architecture is straightforward:

  1. Keep your constitutional base under 2,000 tokens. Identity, mission, safety constraints, and the list of available tool calls. No scenario-specific rules.
  1. Create one tool call per procedural domain. getrefundrules(), getescalationrules(), getcompliancerequirements(). Each returns the complete procedural policy for that domain.
  1. Let the agent decide when to invoke. The agent reads the constitutional base, recognizes it is in a refund scenario, and calls getrefundrules() to load the relevant procedure.
  1. Cache aggressively. Once loaded, procedural rules can be cached in context or in a short-term memory store to avoid re-fetching on every turn.

Citations

Suggested Title

Lazy-Loaded Procedural Policy Gets a Name and an OpenAI Feature Request

Word Count

966

Fact-Check Notes

  • Trabelsi Medium post: Confirmed via search (bechirtr97.medium.com, April 2026)
  • OpenAI Agents SDK issue #2906: Confirmed via GitHub search (github.com/openai/openai-agents-python/issues/2906)
  • 50-87% token reduction data: From stigmem's dev.to article, referenced in prior article (2026-05-07-lazy-loaded-procedural-policy.md)
  • Claude Code issue #19105: Referenced in prior article, verify against GitHub
  • OpenClaw issue #29267: Referenced in prior article, verify against GitHub
  • Three independent platforms requesting same feature: Claude Code, OpenAI Agents SDK, OpenClaw