The Tension Between Rules and Laws: Reconstructing Agency in AI Governance
This article examines a core problem in AI agent governance: the tension between human-authored rules, the hard constraints imposed by the environment, and the enforcement mechanisms that make either one effective. It maps the concepts of rules, laws, and enforcement onto engineering practice, outlines three typical conflicts (timing, granularity, and accountability), and proposes a governance framework built around four forms of human agency that cannot be outsourced. Readers will find a minimal implementation checklist, practical guidance on rule layering, conflict detection, auditable execution, and staged rollouts with rollback, plus common pitfalls to avoid. The conclusion is that the goal is not to eliminate this tension but to make it observable, configurable, and accountable.
1. The Problem: When the Ruler Meets the Law
As AI agents and automated decision systems are deployed at scale, an easily overlooked but critical question emerges: is the system following a ruler or obeying a law?
The intuition in the source material is valuable: what we call memory patterns are essentially memory rules summarized by humans; objective laws, taken literally, carry the sense of an “objective law” — a set of universal principles with mandatory force; the mandatory force of human law comes from systemic enforcement, while the mandatory force of natural law is often imagined as guaranteed by some higher existence. Human legislation, then, looks like playing the role of a “higher existence” — a person above persons, a ruler within the ruler.
Mapped onto an engineering context, this yields three layers:
- Ruler (rule / memory rule): empirical constraints summarized by humans, versionable and rollback-able — for example, prompt guidelines, retrieval recall strategies, and tool-call allowlists.
- Law (objective constraint): hard constraints determined by the environment, data distribution, compute, and physical boundaries — for example, context length limits, latency budgets, and data compliance requirements.
- Enforcement: the mechanisms that make rules actually take effect, including system-level interception, permission isolation, auditing, and accountability.
The tension among the three is the root of today’s difficulty in agent governance: the ruler can be changed, the law cannot, and enforcement must be designed by humans who bear the consequences.
2. Clarifying the Concepts: Mapping Rules, Laws, and Enforcement to Engineering
2.1 Memory Rules: The Human-Authored Ruler
Memory rules are encoded human experience. They have three engineering characteristics: they are explainable, versionable, and locally replaceable. In retrieval-augmented and long-term memory scenarios, memory entries are typically stored in structured form with source, confidence, and validity period.
Illustrative memory entry structure (not a specific product interface):{"id": "mem_001","content": "Reconciliation tasks require a second confirmation of the amount","source": "manual review","confidence": 0.92,"valid_until": "2026-12-31","version": 3}
The key point: confidence and validity period are the ruler’s self-correction mechanism. Without them, memory degrades into dogma that cannot be questioned.
2.2 Objective Laws: The Non-Negotiable Law
In engineering, objective laws appear as hard boundaries: the model’s context window, per-call timeouts, storage capacity, network partitions, and data residency requirements. Their mandatory force does not come from a system administrator but from the environment itself. Any attempt to use a prompt to “persuade” a model past its context limit is essentially mistaking a law for a ruler.
2.3 Enforcement: Who Executes
Enforcement comes in two types:
- System enforcement: implemented through runtime interception, permission models, quotas, and circuit breakers; it is deterministic and testable.
- Consensus enforcement: implemented through organizational processes, review mechanisms, and accountability assignment; it is flexible but prone to drift.
A mature approach makes the two complementary: system enforcement holds the baseline, consensus enforcement handles exceptions.
3. Where the Tension Comes From: Three Typical Conflicts
- Timing conflict: the ruler updates far faster than the law changes. Business rules may change three times a week while compliance requirements stay fixed for six months, causing the rule base to bloat and conflict.
- Granularity conflict: the ruler is local and scenario-specific; the law is global and cross-scenario. Locally optimal choices, stacked together, may violate global constraints.
- Accountability conflict: automated execution amplifies efficiency, and it also amplifies how fast errors propagate. When enforcement is automated, the accountability chain is actually easier to break.
4. A Governance Framework Centered on Agency
Core claim: rules can run automatically, but the human agent cannot exit automatically. Human agency shows up in four steps that cannot be outsourced.
- Goal-setting authority: defining what counts as “done right,” including red lines that cannot be crossed.
- Exception-adjudication authority: ruling on conflicting rules and leaving a written rationale.
- Enforcement-configuration authority: deciding which constraints are hard-blocked by the system and which are softly constrained by process.
- Retirement and retrospective authority: periodically retiring expired memory rules to avoid ruler sediment.
The corresponding minimal implementation checklist:
| Step | Engineering artifact | Acceptance criteria |
|---|---|---|
| Goal setting | Policy configuration file | Red lines are enumerable and testable |
| Exception adjudication | Approval and annotation process | Every exception has a unique ID and rationale |
| Enforcement configuration | Runtime interception layer | Interception is reproducible; disabling it requires two-person confirmation |
| Retirement and retrospective | Rule lifecycle dashboard | Expired rules automatically enter a review queue |
5. Engineering Practice: Turning the Tension into Something Operable
5.1 Rule Layering
A three-layer structure is recommended: a hard-constraint layer (law), a policy layer (ruler), and a heuristic layer (experience-based hints). The hard-constraint layer never enters the prompt and is only checked at runtime; the policy layer can be hot-updated; the heuristic layer is for reference only and does not participate in interception decisions.
5.2 Conflict Detection
Run static checks before a rule enters the repository to detect mutual exclusion and coverage relationships:
Pseudocode: pre-check for rule conflictsfor each new_rule in pending_rules:for each old_rule in active_rules:if overlap(new_rule, old_rule) andpriority(new_rule) == priority(old_rule):raise Conflict(new_rule.id, old_rule.id)
5.3 Auditable Execution
Every automated decision should produce a triple record: an input summary, the matched rule version, and the execution result. The goal of auditing is not to blame individuals but to make deviations in the ruler locatable.
5.4 Staged Rollout and Rollback
Rule changes go through a staged rollout: first observe hit differences in shadow mode, then enable for a small traffic share, then go full. Rollback is done per version number, ensuring every change to the ruler can be undone.
6. Common Pitfalls
- Treating a law as a ruler: trying to bypass a hard environmental boundary with a prompt, which makes the system unstable.
- Treating a ruler as a law: hardening one instance of manual experience into a permanent hard block, which makes the business rigid.
- Missing enforcement: the rules are written comprehensively, but nothing is checked at runtime — equivalent to having no rules.
- Hollowing out agency: every exception is approved by an automated process, and humans only sign off after something goes wrong.
7. Conclusion
The tension between the ruler and the law will not disappear; it is an intrinsic, structural feature of automated systems. What engineering can actually do is not eliminate the tension but turn it into something observable, configurable, and accountable. When memory rules are given validity periods and confidence, when hard constraints are isolated at runtime, and when exception adjudication and enforcement configuration always stay in human hands, the system has both efficiency and boundaries. A person above persons, a ruler within the ruler — the ruler is set by humans, the law is set by the environment, and the discretion between the two always belongs to humans.
