Engineering fundamentals · Agentic delivery

SOLID thinking for an agentic software world.

AI agents can produce code faster. They do not remove the need for good design. Five enduring engineering principles become practical guardrails for keeping software modular, testable, replaceable and understandable as AI-assisted change accelerates.

The engineering thesis

Faster code generation only creates durable value when the cost of understanding, validating and changing that code remains under control. AI-SDLC needs intentional boundaries, explicit contracts and automated evidence — not just more generated pull requests.

DesignModular boundaries
VerifyBehavioral evidence
OperateAccountable change
The classic five, applied today

Five principles. One purpose: make change safer.

Each definition below follows established SOLID terminology. Each AI-era application and review question is the Solid Software perspective on translating that principle into day-to-day engineering.

SSRPSingle Responsibility
Principle
01 / Focus & cohesion

One clear reason to change.

A module or class should have one coherent responsibility — one principal reason to change. Splitting unrelated concerns reduces the blast radius of future edits.

Traditional engineering

Keep business rules, persistence, notifications and orchestration separate when they evolve for different reasons. Organize modules around coherent responsibilities, not arbitrary file size limits.

With AI coding agents

Give agents bounded changes aligned to module ownership. A single generated PR should not casually mix pricing logic, database migration, observability and UI refactoring without a deliberate reason.

Review question Can an independent change be made here without unexpectedly changing an unrelated concern?
OOCPOpen / Closed
Principle
02 / Controlled extensibility

Extend behavior without disturbing stable code.

Software components should support extension without requiring modification to their stable core for every new variation. This does not mean existing code can never be fixed or refactored.

Traditional engineering

Use extension points, strategies and composition where variation is known. Avoid turning core domain logic into a growing chain of provider-specific conditions.

With AI coding agents

Provide explicit extension contracts, so an agent can add a new adapter, integration or policy with scoped tests rather than rewriting a shared service across the platform.

Review question Can this capability be extended through an existing seam, with regression risk concentrated at the boundary?
LLSPLiskov Substitution
Principle
03 / Behavioral compatibility

Interchangeability requires preserved contracts.

An implementation used in place of another must preserve the behavior promised by the contract, including meaningful error cases and invariants — not merely type signatures.

Traditional engineering

Alternative implementations must honor expected inputs, outputs and failure semantics. A subtype that unexpectedly throws for an operation its base contract promises is not a safe substitute.

With AI coding agents

Make compatibility machine-verifiable: contract tests, schema validation and consumer expectations must survive AI-generated rewrites, library upgrades and model/provider swaps.

Review question Would every current consumer still behave correctly if we replaced this implementation tomorrow?
IISPInterface Segregation
Principle
04 / Small & explicit surfaces

Depend only on what you actually use.

Clients should not be forced to depend on broad interfaces containing operations irrelevant to them. Small, purpose-built contracts reduce coupling.

Traditional engineering

Split oversized APIs into focused interfaces. Make dependencies explicit so that changes in an unrelated operation do not ripple through clients.

With AI coding agents

Give an agent focused tools and narrow schemas, ideally with least-privilege permissions. Do not expose a single all-powerful tool when a read-only query or scoped change operation will do.

Review question Is this agent, component or consumer exposed to capabilities it does not need?
DDIPDependency Inversion
Principle
05 / Stable boundaries

Business logic owns the contract. Tools implement it.

High-level policy should depend on abstractions rather than concrete low-level details. The abstractions express what the domain requires; interchangeable details implement them.

Traditional engineering

Keep core domain rules independent of storage engines, web frameworks, providers and transport details. Use ports/adapters, dependency injection or composition when justified.

With AI coding agents

Encapsulate model providers, vector stores, tool runtimes and integration clients behind contracts. The system should tolerate implementation changes without contaminating domain policy.

Review question If a model vendor, API or framework changes, does core business logic remain intact?
Beyond the acronym

The design disciplines that keep agents useful.

DesignGurus discusses several related principles alongside SOLID. They matter because AI-assisted generation can introduce repetition, unnecessary abstraction or speculative capabilities if not guided by a clear design intent.

DRY

One source of truth

Consolidate duplicated knowledge and business rules. Watch for parallel agent-created implementations of the same policy across services.

KISS

Prefer the simple path

Choose the smallest understandable solution. More layers, agents and abstractions are not automatically better architecture.

YAGNI

Build what is needed

Reject speculative extensibility, unused agent workflows and “future-proof” plumbing without a present requirement.

COMPOSITION

Compose capabilities

Combine focused components and tools rather than deep inheritance hierarchies or highly coupled agent chains.

LAW OF DEMETER

Limit hidden knowledge

Reduce deep dependency traversal and internal coupling. Keep agents and modules interacting through intentional public boundaries.

Pragmatic caution: these are design heuristics, not rules for maximizing abstractions. An extra interface, test fixture or microservice is only worthwhile when it simplifies a real change boundary.

A small, concrete example

Separate the business rule from the implementation.

Illustrative TypeScript: a policy contract allows new implementations without binding domain behavior to a vendor or framework. The same principle applies when an AI agent makes the change.

The dependency direction

The contract is the anchor

TypeScript · illustrative
// The domain rule is independent of models and vendors.
type Order = { total: number };
type Decision = 'approved' | 'review';

interface EligibilityPolicy {
  evaluate(order: Order): Decision;
}

class OrderApproval {
  constructor(private policy: EligibilityPolicy) {}

  approve(order: Order): Decision {
    return this.policy.evaluate(order);
  }
}

// Swap implementations without rewriting the core.
class StandardPolicy implements EligibilityPolicy {
  evaluate(order: Order): Decision {
    return order.total <= 1000 ? "approved" : "review";
  }
}

In a real codebase, an agent would also add contract tests for invariants, edge cases and failure behavior. The architectural boundary — not the code generator — defines what is allowed to change.

From principles to execution

Engineer the AI-SDLC, not just the prompt.

When autonomous coding is introduced, well-structured repositories, explicit rules and automated verification reduce ambiguity. These controls form an operating loop for accountable change.

01 / FRAME

Product intent

Define acceptance criteria, boundaries, NFRs and the intended change.

02 / CONTEXT

Repository guidance

Provide scoped instructions, architecture decisions, interfaces and known invariants.

03 / BUILD

Agent-assisted changes

Prefer coherent, reviewable work units and bounded pull requests.

04 / PROVE

Automated evidence

Run static, unit, contract, integration and security checks relevant to the change.

05 / GOVERN

Accountable review

Apply risk-based human review, architectural ownership and release criteria.

06 / LEARN

Operate & improve

Observe production outcomes, rework, incidents and delivery flow; refine the harness.

Foundation · L1

Local and unit evidence

Static checks, type safety, deterministic unit tests and isolated rules that can be evaluated on every change.

Integration · L2

Contract and boundary evidence

Schema and contract tests, integration checks, substitutability and dependency protection at platform seams.

Journey · L3

Critical end-to-end evidence

Automated sanity journeys, targeted regression and non-functional checks. Business UAT retains explicit ownership and entry/exit criteria.

The governance rule: AI review is an additional signal, never a replacement for tests, branch protections, security controls or accountable approvals. Repository guidance such as AGENTS.md can encode durable, scoped invariants; it should not become an unmaintained book of instructions.
A quick self-check

Is your engineering environment agent-ready?

Eight simple questions to structure a team discussion. This is an illustrative checklist, not an external certification or a substitute for an architecture and security assessment.

Solid Software · Advisory & execution

We turn design principles into operating capability.

Good architecture must be reinforced by team ownership, delivery practices and measurable quality. We work with founders, CTOs and engineering leaders to make that system real.

01 / ASSESS

Architecture & AI-readiness review

Examine module boundaries, coupling, platform risks, repository knowledge, testability and the impact of introducing coding agents.

Typical output: prioritized findings, risk map, design guardrails and an actionable improvement backlog.
02 / ENABLE

Agent-ready engineering harness

Establish repository instructions, safe workflows, architectural rules, CI quality gates and evidence expectations for AI-generated changes.

Typical output: scoped guidance, review rules, reference patterns and a pilot workflow backed by tests.
03 / MODERNIZE

Platform simplification & modernization

Improve legacy change boundaries, extract critical contracts and make technology decisions that reduce long-term coupling and rework.

Typical output: target architecture, staged modernization plan and pragmatic technical governance.
04 / LEAD

Fractional technology leadership & coaching

Strengthen engineering leadership, quality ownership, platform stewardship and collaboration between Product, Delivery and technical teams.

Typical output: accountable ways of working, coaching, decision model and measurable operational signals.

The objective is not to add ceremony. It is to increase quality-adjusted engineering throughput while protecting platform sustainability and business continuity.

Foundations & further reading

Established principles. Applied perspective.

These readings inform the classical definitions and related principles. The AI-agent mappings, operating controls, diagnostic and consulting recommendations are an original Solid Software interpretation.

The material on this page is educational and advisory. SOLID describes object-oriented design principles; applying them to agent permissions, tool interfaces and an AI-assisted SDLC is an analogy and engineering practice, not a statement that the original authors prescribed AI-specific workflows.

Talk to Solid Software

Build faster. Keep the engineering sound.

Scaling a technology organization, modernizing complex platforms or introducing AI agents to software delivery? We help design the foundations and put the operating model into practice.

Discuss your challenge ↗