Operational Rules are the highest level of authority in 2501. If a rule conflicts with a specialty or a ticket instruction, the rule wins.
Two kinds of rules
The specialty makes the agent a competent AWS operator in general. The operational rule tells it that in your AWS, Terraform-managed resources must go through a PR.
Use Always inject mainly for security constraints. Keep them few and concise because they occupy context on every request. Leave task-specific rules on relevance-based selection.
A rule about a cause
A rule that handles one cause, such as “Oracle tablespace full”, says how to deal with that cause once it is found. It does not say that this cause is behind the ticket. When a ticket reports only a symptom, such as “saving an order hangs”, 2501 plans the first tasks to investigate the symptom, with that cause as one check among others. The rule’s diagnosis and fix are planned once the ticket or a task result shows the cause. A rule that names no cause, such as a procedure that says where an investigation starts, applies from the first task. Name the cause in the rule’s title or first line so 2501 can tell which kind it is.Writing a good constraint
A constraint describes what is forbidden or required, plus why, so the agent can apply the spirit of the rule in situations you didn’t anticipate.Writing a good procedure
A procedure describes the correct sequence of steps for a recurring task in your environment. Only useful when your setup differs from standard practice.What does NOT belong in an operational rule
Examples:
Scoping a rule
Unless Always inject is enabled, 2501 selects rules by matching their name and text to the task. State where each rule applies: “Before restarting nginx on the Linux web servers, runnginx -t” applies to nginx restarts on those servers.
Two reasons to scope well:
- Important rules reach the right tasks. A rule that names the system and the action it covers is found by the work that mentions them.
- Irrelevant rules stay out. A rule that doesn’t match isn’t injected, so the agent’s context stays focused, unless Always inject is enabled.
Maintaining rules
Rules go stale faster than specialties - they’re tied to your infrastructure.- One rule, one concern. A rule covering network policy + deployment + backup retention is three rules pretending to be one.
- Include the reason. A rule without a why gets worked around. A rule with one gets respected.
- Review on environment changes. A rule about a system that no longer exists is noise that degrades agent judgment.

