cd /news/ai-agents/your-ports-are-lying-about-your-busi… · home topics ai-agents article
[ARTICLE · art-137537] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Your Ports Are Lying About Your Business

A developer argues that hexagonal architecture ports are typically named after HTTP operations like createUser or updateUser rather than business concepts, undermining their purpose of isolating business logic from delivery mechanisms. The engineer contends this mismatch turns tests into database checks instead of business specifications and that AI coding agents will replicate the flawed convention at scale. The post also questions whether the port interface is worth keeping in the single-adapter case.

by read1 min views1 publishedSep 22, 2026

Your hexagonal architecture ports might still be speaking HTTP instead of business.

In hexagonal architecture, ports exist to isolate your business logic from how

it's delivered. In practice, most of them are still named after HTTP operations

like createUser or updateUser — a habit inherited from years of REST-first

development.

That mismatch isn't cosmetic. It turns your tests into database checks instead

of real business specifications. And it's exactly the convention AI coding

agents will pick up from your existing code and repeat at scale, for as long as

the repo lives.

I wrote about why ports keep lying about your business, and what it takes to

name them so a domain expert would recognize what they actually do.

Read the full article on the SQUER blog → The part people push back on most is the single-adapter case — if there's only

ever going to be one adapter, is the port interface worth keeping? Curious

whether you'd skip it.

── more in #ai-agents 4 stories · sorted by recency
── more on @squer 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/your-ports-are-lying…] indexed:0 read:1min 2026-09-22 ·