Agent Oracle

The Constraint Stack: How AI Separates Hard Rules From Preferences

Last updated: 8/20/2026

Back to blog
Beatrice Okonkwo avatarBeatrice Okonkwo 7 min read
Cover image for The Constraint Stack: How AI Separates Hard Rules From Preferences
AI-assisted, human-reviewed. Drafted with AI research tools from public sources and edited by our team. How we build these →

An executive asks an AI agent to schedule a customer workshop “as soon as possible.” The account lead prefers Tuesday. The customer previously said mornings work best. Company policy requires security review before external demonstrations. The product specialist is unavailable until Thursday.

What should the agent do?

The difficulty is not finding a calendar opening. It is determining which instructions are binding, which are negotiable, and which can be ignored when they conflict. Most business requests contain several such layers, but they are often delivered as one undifferentiated block of context.

A constraint stack solves this problem. It ranks requirements by authority and consequence, then gives the AI an explicit procedure for handling conflicts. The result is not merely better prompting. It is a more reliable decision system.

Why Flat Instruction Lists Produce Bad Decisions

People routinely mix obligations and preferences in the same sentence: “Send the revised proposal today, keep the standard margin, use the new template, and try to have legal review it first.”

Those instructions do not have equal force. Sending today may be a customer commitment. The margin may be an approval rule. The template may be preferred but optional. Legal review may be prudent rather than mandatory. If the AI treats them equally, one conflict can stall the entire task. If it treats them casually, it may violate a genuine control.

Natural language adds another complication: emphasis does not reliably indicate authority. “Please make absolutely sure you use the new template” sounds stronger than “discounts over the limit require approval,” even though the second instruction governs commercial authority.

The agent therefore needs more than a list. It needs a hierarchy.

The Four Layers of a Constraint Stack

A useful stack has four layers. Organizations may use different labels, but the distinctions should remain explicit.

LayerMeaningTypical examplesConflict response
Hard rulesRequirements the agent cannot violateLaw, security policy, contractual terms, approval authorityBlock, reroute, or escalate
Operating constraintsReal limits on feasible executionDeadlines, inventory, system access, staff availabilityFind another feasible path
PreferencesDesired qualities that improve the outcomePreferred vendor, meeting time, tone, formatOptimize when compatible
DefaultsFallback assumptions used when no direction existsStandard shipping, usual approver, normal reporting cadenceOverride when better evidence appears

The order matters. A preference cannot override a hard rule. A default cannot create capacity that does not exist. Within a layer, however, conflicts still require judgment. Two policies may apply, or two stakeholder preferences may compete. Each constraint therefore needs metadata, not just a label.

Give Every Constraint Four Attributes

Before an agent can reason about a constraint, it should know where the constraint came from and how broadly it applies. Record four attributes:

  • Source: Who or what established it: policy, contract, system state, executive, customer, or prior interaction?
  • Scope: Does it apply to this transaction, this customer, this region, or every case?
  • Validity: Is it current, conditional, expired, or awaiting verification?
  • Override authority: Who, if anyone, may make an exception?

Consider “Do not offer implementation before legal review.” If this came from a current policy covering regulated customers, it is likely a hard rule. If it came from a sales manager discussing one unusual account six months ago, it may be a scoped instruction that should not govern every proposal.

This metadata prevents a common failure: promoting any retrieved sentence into a universal rule. Retrieval tells the AI that information exists. The constraint stack tells it how much control that information should exert.

A Resolution Procedure an Agent Can Actually Use

The stack becomes operational through a fixed sequence. The agent should follow the same sequence whether it is scheduling a meeting, issuing a refund, preparing a proposal, or routing an incident.

  1. State the objective. Describe the intended outcome without embedding a solution. “Secure the earliest feasible customer workshop” is better than “Book Tuesday morning.”
  2. Extract candidate constraints. Identify explicit instructions, relevant policies, resource limits, prior commitments, and inferred preferences.
  3. Classify each constraint. Assign a layer and record source, scope, validity, and override authority.
  4. Test feasibility from the top down. Eliminate options that violate hard rules, then options that fail operating constraints.
  5. Rank the remaining options. Use preferences as selection criteria rather than admission criteria.
  6. Apply defaults only to gaps. A default should fill missing information, not defeat known evidence.
  7. Expose material conflicts. If no feasible option remains, identify the minimum exception or decision required.

This procedure changes the role of clarification. The agent does not ask whenever information is missing. It asks only when the missing information could change feasibility, authority, or the ranking of viable choices.

Worked Example: Scheduling a Customer Workshop

Return to the original request. The executive wants the workshop as soon as possible. The known facts are:

  • External demonstrations require completed security review.
  • The review will be complete Wednesday afternoon.
  • The product specialist is unavailable until Thursday.
  • The account lead prefers Tuesday.
  • The customer previously preferred morning meetings.
  • The normal meeting length is one hour.

The agent first states the objective: schedule the earliest feasible customer workshop with the required participants and controls.

It then builds the stack:

ConstraintClassificationEffect
Security review must precede demonstrationHard ruleEliminates Tuesday and Wednesday
Product specialist unavailable until ThursdayOperating constraintEliminates earlier sessions requiring that specialist
Schedule as soon as possibleObjective criterionFavors Thursday over later dates
Customer prefers morningsPreferenceFavors Thursday morning
Account lead prefers TuesdayPreferenceCannot override feasibility
One-hour durationDefaultUsed unless agenda requires otherwise

The correct recommendation is Thursday morning, assuming calendars permit it. The agent should not ask whether Tuesday is acceptable because Tuesday is already infeasible. Nor should it silently omit the account lead’s preference. A concise action note could say:

Thursday morning is the earliest feasible window. Tuesday conflicts with the required security review and specialist availability. I will use a one-hour slot unless the workshop agenda indicates otherwise.

If Thursday morning is unavailable, the agent should search Thursday afternoon, then Friday morning. The customer’s morning preference guides ranking; it does not justify delaying indefinitely.

Distinguish Constraints From Objectives

One subtle design error is classifying every desired outcome as a constraint. “Minimize cost,” “respond quickly,” and “protect the relationship” are usually objectives. They tell the agent how to compare feasible options. They do not necessarily prohibit an option.

The distinction is practical:

  • A constraint defines what is allowed or possible.
  • An objective defines what is better among allowed possibilities.

Suppose a procurement agent must choose a supplier. “Use approved suppliers” is a hard rule. “Delivery before launch” is an operating constraint. “Minimize total cost” is an objective. “Prefer the incumbent” is a preference. Combining all four into a single score would be dangerous: a sufficiently low price could mathematically compensate for using an unapproved supplier. Hierarchical evaluation prevents that trade.

Where Human Judgment Still Belongs

A constraint stack does not eliminate escalation. It makes escalation precise. Human review is warranted when classification is uncertain, authoritative rules conflict, evidence may be stale, or the only feasible path requires an exception.

For example, if a customer contract permits an action that internal policy forbids, the agent should not decide which document prevails unless the organization has already defined precedence. It should present the collision, affected action, and designated decision owner.

Good escalation is narrow: “Policy A prohibits external file sharing, while this customer contract requires delivery through its portal. Which authority governs this account?” Poor escalation is broad: “There are conflicting instructions. What should I do?”

How to Implement the Stack Without Rebuilding Everything

Start with one recurring workflow where instruction conflicts are visible: discount approval, customer scheduling, incident routing, vendor selection, or content publication. Define the four layers and tag the policies, data fields, and user instructions that feed each one.

Then require the agent to produce an internal decision record containing:

  • The objective
  • The constraints by layer
  • The source and validity of each material constraint
  • The options rejected and the reason
  • The preference used to choose among feasible options
  • Any exception or clarification required

Do not begin by cataloging every rule in the company. Begin with the constraints that alter action in the selected workflow. Review failures and add structure where ambiguity repeatedly changes outcomes.

The key design test is simple: when two instructions conflict, can the agent explain which one governs and why? If the answer depends on wording intensity, retrieval order, or whichever stakeholder spoke last, the system does not yet understand the business. A constraint stack turns that ambiguity into an explicit, inspectable decision.

This post was drafted with AI assistance and reviewed against our editorial policy before publication. Corrections are made at the source, on the page, with the date shown.

AI agentsconstraint managementdecision systemsbusiness rulesworkflow design
Share this post

Rate this article

No ratings yet

Discussion

Comments are moderated. Read our editorial policy.