Skip to content
VerificationWould you notice if your agent drifted in production?Explore the 5-stage harness›
Effective Aegil

Effective Aegil: Design Principles

Effective Aegil establishes a set of foundational design principles and architectural idioms—analogous to Effective Dart—that guide developers and AI coding agents toward building reliable, zero-drift, full-stack applications.

In Aegil, database schemas, API routes, data validation, row-level security, and state machines are never split across multiple config files or handwritten boilerplate. They are declared once in TypeSpec (specs/<feature>/*.tsp).

  • If a model needs a new field, add it to the spec.
  • If a permission changes, update the spec.
  • If an endpoint requires an allowed state transition, specify it on the state machine.

Security bugs almost always occur when developers trust client-provided user IDs or roles. In Effective Aegil:

  • Endpoints never accept caller ID or role arguments. Identity is extracted strictly from the authenticated cryptographic server session.
  • Row-level authorization is declarative. Common Expression Language (CEL) policies enforce access control in SQL queries, not in fallible imperative application code.

3. Mathematical Verification over Manual Testing

Section titled “3. Mathematical Verification over Manual Testing”

You never wonder if a schema migration broke client code, or if an endpoint is missing a security check. aegil verify runs automated hash locking, static analysis, dynamic boundary testing, and real PostgreSQL integration tests before any code reaches production.