惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
博客园 - Franky
MyScale Blog
MyScale Blog
L
LangChain Blog
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
Stack Overflow Blog
Stack Overflow Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 司徒正美
量子位
A
About on SuperTechFans
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
Last Week in AI
Last Week in AI
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
V
Visual Studio Blog
Vercel News
Vercel News
B
Blog
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
U
Unit 42

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Code Is Cheap Artifact Now The Spec Is the Asset
Daniel Wu · 2026-06-17 · via DEV Community

Daniel Wu

Over the past few weeks, one of the biggest shifts in my thinking has been this:

I want to spend less time writing specifications and implementation plans by hand, and more time on design.

The surprising part is that AI has made that possible — not by replacing engineering judgment, but by changing where that judgment is applied.

Today, I increasingly let AI draft specifications, implementation plans, and even code. My job has shifted toward defining intent, identifying constraints, and reviewing decisions. The writing itself has become the least valuable part of the process.


From Documentation to Executable Specifications

The specifications I'm talking about aren't traditional documentation.

They're not written for future engineers casually browsing a wiki. They're written for the next AI session that needs to continue the work without requiring me to re-explain everything from scratch.

That changes how they look. Instead of narrative descriptions, they focus on:

  • Requirements
  • Constraints
  • Acceptance criteria
  • Verification steps

In other words, they're designed to be executed against rather than read.

The audience is no longer a human reader. The audience is the next contributor — whether that's an engineer or an AI agent.


Building State Software One Constraint at a Time

The project I've been focused on recently is rewriting an existing product to follow a new architecture without changing the existing business logic.

That combination creates a challenge that's almost entirely about constraints:

  • A reference architecture that must be followed
  • A legacy system that remains the source of truth for business behavior
  • Integrations that return opaque responses we are not allowed to interpret beyond approved boundaries
  • State-specific rules that cannot be altered

This isn't a CRUD application problem.

It's a constraint management problem.

And constraints are exactly the kind of information AI can work with effectively — if they're captured clearly.


The Workflow: AI Drafts, Humans Approve

Over time, our workflow has evolved into a series of deliberate review gates:

Intent → AI Specification → Human Review → AI Implementation Plan → Human Review → AI Code Generation → Testing & Validation

I provide:

  • The goal
  • The requirements
  • The constraints
  • The architectural boundaries

AI generates the first draft of the specification. I review it. AI generates an implementation plan. I review it. Only then does code generation begin.

The result is that I'm writing far less than before. But I'm reviewing far more carefully. And that's where most of the engineering value now lives.


What Good Specifications Look Like

Our specifications are intentionally structured like test plans.

A specification doesn't explain how code works. It defines observable requirements.

For example, a refactoring specification might include:

No class in the application layer may directly reference DAO implementations.

The acceptance criteria become executable checks:

  • Application services no longer inject DAO classes
  • Layering violations return zero matches when searched
  • Dependency boundaries remain intact

The specification defines what must be true.
The implementation plan defines how to make it true.
Those are different documents serving different purposes — keeping them separate has proven incredibly valuable.


The Highest-Leverage Engineering Skill: Identifying Load-Bearing Constraints

The most important thing I do today isn't writing.

It's determining which constraints are truly load-bearing.

Architectural foundations (critical — violating these can break everything):

  • Database initialization strategy
  • Deployment model
  • Integration boundaries
  • Runtime ownership rules

Conventions (useful, but not critical):

  • Package naming
  • Folder organization
  • Service naming patterns

Then there are intentional deviations — things that appear wrong but exist for legitimate operational reasons. Those can be the most dangerous. A well-intentioned cleanup can accidentally break a production system because it removes something that looked like technical debt but was actually preserving compatibility.

When AI produces a specification, my primary review question is simple:

Did it correctly identify which constraints are load-bearing?

That's still a human judgment call. And it's a far more valuable use of my time than writing the initial draft myself.


The Spec Is Long-Term Memory

This is the realization that changed how I think about AI-assisted development.

Individual AI sessions are temporary contributors. They appear, contribute, and disappear.

The value doesn't come from any single session being exceptionally intelligent. The value comes from every session sharing the same source of truth:

  • Specifications
  • Implementation plans
  • ADRs (Architecture Decision Records)
  • Conventions
  • Status tracking

Together, these artifacts become the project's long-term memory.

The AI session is temporary. The memory persists.


When the Source of Truth Stops Being True

I learned this lesson the hard way.

At one point, our documentation drifted. An ADR stated that database schemas were initialized through startup scripts rather than Liquibase. However:

  • A changelog still contained schema bootstrap logic
  • A README described a different strategy
  • Comments in the code claimed something else entirely

Three artifacts. Three different stories.

A new contributor — or AI session — reading the repository would inherit the wrong mental model immediately.

The fix wasn't complicated. We simply asked:

What actually happens on a clean environment build?

The operational behavior became the arbiter of truth. Once we verified reality, we:

  • Removed obsolete artifacts
  • Updated documentation
  • Aligned ADRs and implementation
  • Refreshed project status tracking

The result wasn't cleaner documentation. It was restored trust in the source of truth. And that's what allows future contributors to move faster.


Our Project Structure

Here's how this translates into the actual repository layout:

state-retail/
├── CLAUDE.md                  # THE WORKFLOW — human-review gates. Read first.
├── README.md                  # Entry point: layout, doc map, schema strategy, how to run.
├── status.md                  # Living index of every spec/plan and its state.
│
├── specs/                     # The WHAT (and why)
│   ├── CONVENTIONS.md         #   Authority — wins on overlap
│   ├── architecture.md        #   Layering & naming reference
│   ├── global-rules.md        #   Cross-cutting rules
│   ├── infra.md               #   DB / Docker / schema-management contract
│   └── <module>/<NCEVR-NNN>-<slug>.md
│
├── plan/                      # The HOW, mirroring specs/
│   └── <module>/<RETAIL-NNN>-<slug>.md
│
├── rules/                     # Class-level coding conventions per layer
│   └── domain / dao / service / application / api
│
└── docs/adr/                  # WHY significant decisions were made
    └── NNNN-<slug>.md         #   Immutable once Accepted; supersede with a new ADR


Design Is Becoming More Valuable Than Authoring

AI is increasingly capable of generating specifications, plans, and code.

What it cannot do reliably is determine which constraints matter most to your business.

That remains a software engineer's responsibility.

For organizations building complex, highly regulated systems, this is more than a productivity improvement. It's a way to accumulate executable knowledge over time — every new project starts with shared memory rather than a blank page.


Because increasingly, the code is cheap artifact.

The specification is the asset.