Very interesting perspective, thanks for sharing!
AI Coding: Architecture or Archaeology?
15 Comments
Yes, agreed.
While AI can greatly accelerate the coding process, it can't replace the fundamental work of architecture and design. The model, boundaries, states, failure modes, and tests are the backbone that ensures the system works correctly and can evolve over time. AI should be seen as an enabler, not a replacement, for the core responsibilities of software engineering.
Please log in to add a comment.
To a certain extent, this is true. It doesn't have to be, but for most prompt engineers it is.
Did you know you can direct the AI to program according to principles? The same principles you use that lift you above the neophyte in terms of competence. The model contains all of the knowledge you yourself have absorbed and internalized and probably not even named. Design patterns. SOLID. All the good stuff is out there, waiting to be internalized by your agent.
You just have to direct it to go out and get it and synthesize.
"You are an expert programmer" does not do that. That's cosplay.
@[demoran] Right, a practical note of yours. AI does not do what you describe out of the box, one has to instruct it clearly that is normally done with skills/rules (depending on LLM or a coding environment, e.g. Cursor) or just a project guide markdown files. AI would follow (99% of time) exact patterns (beyond SOLID or GoF) you describe in these files up to the giving it templates. In this regard it does really good job.
Please log in to add a comment.
Valentine Shi hit the nail on the head. AI coding often leads to 'Archaeology'—digging through accidental assumptions.
This is why I built Penta-V Kernel. It provides the Architectural Anchor that AI lacks. While AI drafts the code, Penta-V enforces the invariants and the boundaries at a sub-nanosecond scale (845ps).
We don't let AI 'smear decisions' across the codebase; we lock them into a sovereign geometric manifold. Architecture is not optional, and Penta-V makes it enforceable.
Please log in to add a comment.
The deeper problem isn't that AI writes bad code — it's that it flattens architectural decisions into local code suggestions. It re-applies generic patterns without seeing the boundaries, contracts, or invariants the team has already committed to. For a junior engineer this looks like authority; for the system, it's slow erosion. Disciplines like DDD exist precisely because those decisions can't be inferred from the file you're editing — and that's the layer AI agents currently can't see. The result is what the post calls archaeology: speed of delivery wins, and quality, scalability, permissions, and privacy quietly lose.
@[Hussein Mahdi] Thanks for pointing out this. All those things, including code templates can/should be built into AI's reasoning with the guiding files. They can be re-used across projects, and customized per project. The thing is one has to know what to write in these guidelines and what the desired AI output should look like. The bad code and generic system decisions come as out-of-the-box behavior that can be redefined.
Please log in to add a comment.
This hits exactly right, and I say that as someone who uses AI agents every single day to ship production Flutter and Firebase apps.
The productivity gain is real. I've built complete multi-role platforms — customer app, provider app, driver app, admin panel, backend — in a fraction of the time it would have taken before. But that speed only existed because I already knew what I was building. The data model was clear in my head. The auth flows were designed. The state boundaries were decided. The edge cases were mapped.
The AI filled in the implementation. I owned the thinking.
The times I've seen it go wrong — including in my own work early on — is exactly what you described. Letting the tool discover the shape of the system by generating code. You end up with something that works until it doesn't, and debugging it feels like excavating someone else's bad decisions.
The "10x developer" claim is only true for the engineer who already thinks clearly about systems. For everyone else it's just 10x the confidence with the same amount of understanding. That combination is genuinely dangerous in production.
AI didn't replace engineering judgment. It just made the gap between good and weak engineering impossible to hide.
Please log in to add a comment.
This is a profound way to frame the current shift. We’ve spent decades training developers to be Architects—to prioritize clean blueprints, dry code, and intentional structure.
But with the rise of LLM-generated code and massive legacy debt, the job is increasingly becoming Archaeological. We aren't just building; we’re excavating intent from a layer of 'hallucinated' soil.
I’ve been leaning into this lately through the lens of Technical Forensics. If we accept that we are archaeologists, then our tools shouldn't just be 'builders' (IDE extensions)—they should be 'calipers' (auditors).
The Architect asks: 'How do I build this feature?'
The Archaeologist asks: 'Why does this existing pattern exist, and what is the provenance of this logic?'
In my recent work with the Model Context Protocol (MCP), I’ve found that the most valuable AI agents aren't the ones that write the most code, but the ones that provide the best 'stratigraphy'—helping us understand the layers of context that lead to a specific implementation.
We need to stop teaching developers only how to lay bricks and start teaching them how to use a brush and a magnifying glass. The future of senior engineering is 20% construction and 80% forensic verification.
@[Valentine Shi] Spot on. We are rapidly moving from an era of execution scarcity to an era of verification scarcity.
When LLMs can generate 10,000 lines of syntactically correct code in seconds, the role of the senior leader shifts entirely. We aren't authors anymore; we are forensic auditors ensuring system integrity, state management, and deterministic boundaries. The real enterprise bottleneck isn't the pipeline—it's the chain of custody for code validity. Exceptional framing.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
I own - design and build production backend systems end-to-end in collaboration with product and engineering teams: from requirements, system architecture and contract-first APIs (OpenAPI) to ingestion pipelines, async orchestration, deployment, observability.
I actively use AI-augmented development workflows and spec-driven engineering to accelerate delivery while preserving the code validity and effectively minimizing defects. I design and implement AI/LLM programmatic decision workflows with constrained outputs, controlled vocabularies, and deterministic validation to ensure reliable behavior and eventual correctness in systems.
I ship high-reliability, low-firefight backend platforms for startups and early scale-ups, from day one built to be easily evolvable and fully prepared for continuous product change.
I use the following tools for that:
- Extended Model-Based Engineering (C4, UML/PlantUML for domain, architecture and fine sequence/state modeling)
- Domain-Driven Design (DDD) with Hexagonal Architecture
- Contract-First APIs (OpenAPI, AsyncAPI, JSON Schema validation, generated contracts enforcement)
- ATDD/TDD/E2E (Specification-by-Example, data providers, Testcontainers, integration-first backend testing)
- Event-driven and async workflow architectures (webhooks, queues, idempotence, state-based orchestration workflows)
- Deterministic automated code quality gates (linting, static analysis, git hook guards in CI, ~100% code coverage)
- Competent AI-augmented product engineering: OpenSpec SDD, agentic workflows, rapid prototyping, legacy refactoring, vibe-coding remediation, explicit engineering introduction
See my public engineering case: AI-Powered Image Generation & Publication System (Imagetron) at: https://valentineshi.dev/content/deliverables/K3aT7UX_RCC8ZO_fy9VinQ/ai-powered-image-generation-publication-system-imagetron
More details and other delivered public cases: https://valentineshi.dev Show less
More From Valentine Shi
Related Jobs
- Software Engineer, Test & Infrastructure II (Bilingual Spanish)Vail Systems · Full time · Springfield, IL
- Lead Architect , AI Solutions Architecture - PITravelers Insurance · Full time · Springfield, IL
- Lead architect architectureTravelers Insurance Company · Full time · Springfield, IL
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!