Skip to main content
A Specialty shapes how the agent thinks about a domain. An Operational Rule tells it what is true in your environment and what that implies for its behavior.
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.

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

Rules have no tags: 2501 judges each rule’s name and text against the task, so the scope belongs in the text. “Before restarting nginx on the Linux web servers, run nginx -t” only 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.
See Operational Rules for the matching trace.

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.