DEV Community

Cover image for AI Agents Need Rules, Not Freedom
bayu priatno
bayu priatno

Posted on

AI Agents Need Rules, Not Freedom

Founder Journal #10 — Why Engineering Discipline Matters More Than Autonomous Intelligence

"The best engineers don't succeed because they have complete freedom. They succeed because they make good decisions within well-defined constraints."


The Dream of Autonomous AI

Much of today's AI conversation revolves around one exciting idea:

Fully autonomous AI agents.

The vision is compelling.

Imagine an AI that can:

  • Read requirements
  • Design the architecture
  • Write production code
  • Deploy applications
  • Monitor systems
  • Fix bugs automatically
  • Improve software continuously

Without human intervention.

It sounds like the future.

And perhaps, one day, it will be.

But before asking whether AI can become autonomous, we should ask a more fundamental question.

Autonomous according to whose rules?


Freedom Is Not an Engineering Principle

Software engineering has never been about unlimited freedom.

Every successful engineering organization operates within constraints.

Developers follow:

  • Coding standards
  • Security policies
  • Architectural principles
  • Compliance requirements
  • Code review processes
  • Deployment workflows
  • Documentation standards

These constraints do not reduce creativity.

They enable consistency.

Imagine asking two experienced engineers to build the same service.

Without shared standards, the results may differ dramatically.

With shared engineering rules, the differences become intentional rather than accidental.

The same principle applies to AI.


Intelligence Without Constraints Creates Variability

A powerful AI model can generate many valid solutions.

For example, if asked to build a REST API, it might reasonably choose:

  • Clean Architecture
  • Hexagonal Architecture
  • MVC
  • Modular Monolith
  • Microservices

None of these choices are inherently wrong.

The problem arises when the choice is made without considering the existing engineering environment.

An AI that is free to optimize for every task independently may unintentionally optimize the project into inconsistency.


Great Engineering Is Predictable

When we deploy software to production, we value predictability.

We want:

  • Reliable deployments
  • Consistent architecture
  • Repeatable workflows
  • Stable interfaces
  • Measurable quality

Predictability is impossible if every engineering decision starts from scratch.

Rules are not barriers.

They are mechanisms for producing repeatable outcomes.


Every Engineering Team Already Has a Constitution

Whether documented or not, every engineering team develops unwritten rules.

Examples include:

  • Never expose secrets in code.
  • Every API requires versioning.
  • Every change must include tests.
  • Infrastructure is defined as code.
  • Public interfaces remain backward compatible.
  • Documentation is updated before merging.

Experienced engineers follow these principles almost instinctively.

New engineers learn them through mentorship.

AI cannot absorb unwritten culture.

It requires explicit guidance.


Rules Should Be Machine-Readable

Many organizations document engineering standards.

Unfortunately, they are often scattered across:

  • Wikis
  • PDFs
  • Internal websites
  • Slack messages
  • Team meetings
  • Tribal knowledge

Humans can eventually piece this together.

AI cannot reliably infer it.

Engineering rules should be:

  • Structured
  • Versioned
  • Searchable
  • Reusable
  • Machine-readable

Only then can AI consistently apply them during software development.


From Suggestions to Enforcement

There is an important difference between advice and policy.

Advice says:

"You should write tests."

Policy says:

"Pull requests without tests cannot be merged."

Engineering systems become reliable when critical principles move from recommendation to enforcement.

The same applies to AI.

Instead of hoping an AI remembers every instruction, we should build environments where essential rules are automatically applied.


Why NAEOS Introduces an Engineering Constitution

One of the core concepts behind NAEOS is the Engineering Constitution.

Think of it as the highest layer of engineering governance.

It defines the principles that every AI agent—and every contributor—must respect.

Examples include:

Architecture Principles

  • Respect bounded contexts.
  • Minimize coupling.
  • Prefer explicit dependencies.

Security Principles

  • Never expose secrets.
  • Validate all external input.
  • Apply least-privilege access.

Documentation Principles

  • Every architectural change requires documentation.
  • ADRs accompany significant design decisions.

Quality Principles

  • No feature without tests.
  • No undocumented public APIs.
  • No policy violations before release.

These principles do not tell AI exactly how to solve a problem.

They define the boundaries within which solutions must exist.


The Difference Between Smart and Reliable

Imagine two AI agents.

Agent A

Extremely intelligent.

No engineering rules.

No standards.

No governance.

Every task is optimized independently.


Agent B

Equally intelligent.

Works within:

  • Engineering Constitution
  • Reference Architecture
  • Project Standards
  • Policy Engine
  • Workflow Runtime
  • Engineering Memory

Which agent would you trust with a production system?

Most engineering leaders would choose Agent B.

Not because it is smarter.

Because it is more reliable.

Reliability is the foundation of engineering.


Governance Enables Innovation

There is a common misconception that governance slows innovation.

Poor governance does.

Good governance accelerates it.

When engineers trust the engineering environment, they spend less time debating basic decisions and more time solving meaningful problems.

The same applies to AI.

Clear constraints reduce uncertainty.

Less uncertainty leads to faster, more consistent execution.


The Future of AI Engineering

I don't believe the future belongs to AI agents with unlimited autonomy.

I believe it belongs to AI agents operating inside well-designed engineering systems.

Systems where:

  • Architecture provides direction.
  • Documentation provides context.
  • Memory preserves knowledge.
  • Policies enforce quality.
  • Workflows coordinate execution.
  • Governance ensures trust.

Freedom alone produces possibilities.

Engineering produces reliability.

And reliability is what production software demands.


Looking Ahead

With this article, we've completed the AI Engineering Principles series.

We've explored why engineering requires:

  • Persistent context
  • Documentation
  • Shared knowledge
  • Governance
  • Standards
  • Structured workflows

The next chapter begins a new journey.

Instead of discussing principles, we'll begin exploring the architecture of NAEOS itself.

Our first stop:

Introducing the NAEOS Reference Architecture.

We'll examine how concepts like Context, Memory, Policy, Runtime, Governance, and AI Agents fit together inside a single engineering operating system.


Discussion

If your AI coding assistant had to follow only one non-negotiable engineering rule, what would it be?

  • Every change requires tests.
  • Never violate the architecture.
  • Documentation before implementation.
  • Security before convenience.
  • Backward compatibility is mandatory.

Or would you define a different first principle?

I'd love to hear what rule you believe should never be broken.

Top comments (0)