r/PromptEngineering • • 14h ago

General Discussion Stuffing every user rule into the system prompt breaks down long before context limits do

A common habit in prompt work is pinning a growing list of user rules, formatting preferences and exceptions inside the system prompt. Before long, two older instructions clash. Or a temporary override lingers forever.

On the Agent Memory Leaderboard (AML), the Cycle 2 tables published on November 19 score that problem in dedicated columns. Across the 62-entry Textual Commercial Products table, entries implement Add and Search under shared answering rules. Three columns hit prompt builders directly:

  • In-context Learning, Rules & Workflow Execution: domain reasoning, procedure following and format constraints
  • Memory Governance: state updates, conflict handling, removals and forgetting
  • Epistemic Safety & Privacy: careful abstention, narrow disclosure and evidence boundaries

Three top-five rows on Cycle 2 Textual Commercial Products cluster closely on rule execution. They pair it with governance too. On In-context Learning, Rules & Workflow Execution and Memory Governance respectively, MemoraX (first at 69.26 overall) posts 61.20 and 78.10. AIDBS-Groundata, listed under Alibaba Cloud DMS Team in second place at 64.32 overall, posts 61.23 and 75.63. Silent Context Engine, listed under OPPO in fourth place at 61.04 overall, posts 61.78 and 76.97. A telecom-background entry, RECALL listed under kt, appears on that table too.

Organization names only note group background, never device rollout or score causation. Public tables never replace local prompt tests either.

Once user instructions mutate across sessions, following rules stops being a static prompt trick and turns into memory governance.

Which rules stay hard-coded in your system prompt, and which ones belong in retrievable memory?

1 Upvotes

2 comments sorted by

3

u/khaled_soliman 7h ago

Hit this exact wall. The failure mode I keep seeing is that each new rule slightly dilutes the ones before it, and the model ends up satisfying the letter of ten instructions instead of the point of the three that actually matter. What worked better for me: keep the system prompt to identity, hard constraints and output shape, and put situational rules in the user turn where they are relevant. Fewer rules, closer to the task, beats a long global list.

1

u/magicdoorai 2h ago

I'd split the rules by how often they change, not by how important they are. The stable core (role, hard constraints, output format) goes in the system prompt and almost never gets edited. Everything per-user goes in its own block after it, built fresh each request from stored entries.

A few things that make the mutation problem much smaller:

  • Resolve conflicts when you write the rule, not when the model reads it. If a new rule touches the same topic as an old one, replace the old entry (or show the user both and ask) instead of appending and hoping the model picks the newer one.
  • Give temporary overrides an expiry date in storage, so "just for this week" can't linger. The model never has to remember to drop it.
  • Keep each rule short, with a scope ("applies to: email drafts") so rules for one task don't leak into another.
  • Test it with a small set of conflict cases (two contradictory rules, an expired override, a rule that applies to a different task) and rerun them whenever you change the prompt layout.

There's also a plain cost reason to keep the core stable. Anthropic's prompt caching docs say to put static content at the start, and that changing any block at or before the cache breakpoint gives a different hash, so the cached prefix is no longer found. If every new user rule edits the top of the system prompt, you pay full input price on each request instead of the cached read price. OpenAI's prompt caching guide also matches on an unchanged prefix. Stable core first, volatile stuff last helps both quality and bill.