AI is making software easier to build. But is it making software better engineered?
TechBook is the first Lab project: a practical experiment exploring how one person can use AI to build software while maintaining clarity, control, understanding and trust.
PHASE 01 / DEFINE
Human First. AI in the Loop.
From business intent to independently assured requirements.
The first phase of the TechBook LAB explored a fundamental question: Can AI agents define detailed software requirements without taking control of the business decisions?
Rather than asking AI to simply build an application, we followed a structured 12-step requirements process, using three specialist AI agents and three human approval gates.
How we did it
We started with a human-defined business problem: a technician-booking solution for a technical services company, including web-based booking, technician coordination and AI-assisted WhatsApp interactions.
Three AI agents supported the process:
Research Agent — Investigated five existing field-service platforms using a six-step research method: Plan, Discover, Investigate, Compare, Verify and Synthesize. Findings were supported by an evidence register rather than treated as unquestioned facts.
Requirements Agent — Followed the 12-step process, turning human intent and research into business scenarios, detailed requirements and measurable acceptance criteria. Where decisions were unclear, the agent proposed options for human approval.
Requirements Assurance Agent — Independently challenged the specification for completeness, consistency, security, traceability and testability. Findings were corrected by the Requirements Agent and independently rechecked.
Three human approval gates
Gate 1 — Business Intent: Are we solving the right problem?
Gate 2 — Business Validation: Does the specification describe how the business should operate?
Gate 3 — Requirements Baseline: Is the specification sufficiently assured and controlled to proceed to Design?
Throughout the process, AI researched, proposed, documented and challenged. The human retained authority over scope, business rules, risk acceptance and approvals.
The resulting artifacts
The Define phase produced nine business scenarios, 26 requirements and 39 acceptance criteria, organised into three core documents:
Business Intent Brief — The human-approved problem, scope, constraints and success measures.
Decision & Assurance Log — The record of decisions, assurance findings, approvals and outstanding risks.
The supporting Market Research provides the external evidence behind the discovery work.
Outcome: An independently reviewed requirements baseline, approved for Design, with unresolved technical feasibility risks explicitly recorded for subsequent verification.
The experiment demonstrated a disciplined division of responsibility:
Human defines → AI researches and specifies → AI independently challenges → Human approves.
Read the full story
For a detailed walkthrough of the 12-step process, how the agents collaborated, the human approval gates and the actual documents produced, read the Substack article:
The next LAB phase, DESIGN, explores how specialist agents turn these requirements into a solution architecture.
PHASE 02
DESIGN.
The Architecture Agent turns an approved requirements baseline into a human-governed solution design, investigates feasibility and makes technology choices visible before implementation.
Approved, traceable TechBook requirements baseline with scenarios and acceptance criteria.
THE PLAN
TechBook — 12-Step AI Engineering Build Plan
Objective: Build and deploy TechBook, an AI-powered technical service booking application, while implementing all 12 modern AI engineering concepts under Define • Design • Deliver • Defend.
We will use GitHub Copilot in VS Code for development, OpenAI for the application's reasoning, Java/Spring Boot, React, PostgreSQL and an MCP server. Deployment will be on Hostinger using Docker, independently of your personal website.
Each step will have a clear deliverable and completion criterion. We move forward when the deliverable is acceptable, not simply when AI says the work is finished.
DEFINE — Define clearly
01Requirements Agent
Configure a custom Requirements Agent in GitHub Copilot. It interviews us about TechBook, challenges ambiguity and documents functional and non-functional requirements.
Complete when: We can clearly explain what TechBook must do, including exceptions and business constraints.
02Spec-Driven Development
Convert requirements into structured feature specifications and explicit acceptance criteria. Establish the test conditions before writing application code.
Complete when: Every core feature has a clear definition of success that can be independently verified.
03Context Engineering
Create a shared knowledge base and instructions for the development agents. Define how agents access the correct requirements, architectural decisions, business rules and coding standards.
Deliverables
AGENTS.md — Common agent instructions
docs/ — Structured project knowledge
Context references for each agent role
Complete when: Agents can work from consistent, version-controlled project knowledge, with the context supplied to changes traceable.
DESIGN — Design deliberately
04Architecture Agent
Configure an Architecture Agent to propose and challenge the application architecture. Deliberately assign responsibilities to frontend, backend, booking agent, MCP server and database.
Deliverables
architecture.agent.md — Custom Copilot agent
architecture.md — Approved architecture and diagrams
Architecture Decision Records (ADRs)
Docker container and network design
Complete when: We understand and approve every major component, integration and technology decision.
05MCP and Tool Contracts
Design the actual Model Context Protocol interface between the AI booking agent and the application's business capabilities.
Define tools for discovering technicians, checking availability, obtaining quotations, reserving appointments, confirming bookings and rescheduling.
Deliverables
mcp-contracts.md — Tool definitions, inputs, outputs and errors
Structured tool schemas
Authorisation and transaction rules
MCP contract validation tests
Complete when: All seven MCP tools have approved, testable interface contracts before implementation.
06Agent Orchestration
Design how the runtime OpenAI booking agent reasons, maintains conversation state, selects tools, handles exceptions and seeks human approval.
Deliverables
agent-workflow.md — Runtime workflow design
State transition and error recovery diagrams
Agent instruction and tool-access policies
Defined customer approval points
Complete when: We can trace a complete booking journey, including failures, from initial request to confirmation.
DELIVER — Deliver with understanding
07Agentic Coding
Use Copilot coding agents to implement the application in small, understandable increments, following the approved specifications and architecture.
Build the deterministic booking backend, database, MCP server and a basic end-to-end booking flow.
Deliverables
Working Spring Boot backend
PostgreSQL schema and seed data
Operational MCP server
First functioning booking workflow
Version-controlled code and automated tests
Complete when: A booking can be created through the real application interfaces, with persistence, business rules and automated tests working correctly.
08Parallel Specialist Agents
Introduce specialised Copilot development agents for the frontend, backend, MCP integration and runtime AI agent. Assign bounded tasks using shared contracts and separate Git worktrees or branches.
Deliverables
Specialist agent configurations
React conversational interface
OpenAI-powered runtime booking agent
Integrated frontend, backend and MCP functionality
Demonstrable multi-agent development workflow
Complete when: Separate development agents contribute working components that integrate into one functional application.
09Human-in-the-Loop Checkpoints
Introduce explicit engineering approval gates for material changes and releases. Implement customer confirmation before TechBook commits a booking.
Deliverables
Engineering approval workflow
Customer booking confirmation process
Recorded approvals and decisions
Enforcement of approval requirements
Complete when: Neither development workflows nor customer bookings can bypass their required approval controls.
DEFEND — Defend relentlessly
10Supervisor / Assurance Agent
Configure an independent Assurance Supervisor to assess implementation against approved requirements, architecture and engineering standards.
Initially use a Copilot Custom Agent. Give it access to independent specifications, code changes and actual test evidence.
Deliverables
assurance.agent.md — Supervisor configuration
Requirements-to-implementation traceability
Automated review workflow
Evidence-backed assurance report
Complete when: The Supervisor can independently identify gaps, report findings and recommend whether changes are ready for human release approval.
11Evaluator and Red-Team Agents
Create specialist evaluation capabilities for functional correctness, security, concurrency, malformed inputs and unexpected MCP behaviour.
Execute independent tests, including double-booking attempts, invalid authorisation and tool failures.
Deliverables
Evaluator and Red-Team agent configurations
Automated functional, integration and security test suites
Adversarial scenarios and recorded results
Defect register and regression evidence
Complete when: Independent test executions provide evidence of correctness and unsafe actions are blocked, with critical defects resolved.
12Continuous AI Assurance
Deploy TechBook on Hostinger using Docker. Add operational monitoring, agent traces, MCP execution logs, application health checks and automated alerting.
Protect sensitive information in logs and ensure the assurance process can reconstruct important decisions and failures.
Deliverables
Deployed TechBook application
Docker Compose deployment configuration
Operational assurance dashboard
Agent and MCP execution traces
Automated monitoring and alert rules
Final engineering documentation
Complete when: TechBook operates on the VPS, important activity is traceable and monitoring detects meaningful failures.
What we'll have at the end
Defined
Approved requirements, specifications, acceptance criteria and agent context.
Designed
Documented architecture, MCP contracts and agent orchestration.
Delivered
A functioning AI-powered technical booking system built using agentic coding practices.
Defended
Independent assurance, automated testing, traceability and continuous monitoring.
A practical point about sequencing
Although the plan has 12 steps, I would not defer all testing until Steps 10–12. Acceptance criteria begin in Step 2, automated testing starts with the first code in Step 7, and assurance evolves as we build.
Likewise, the agent roles are introduced when needed rather than creating a large agent infrastructure upfront.
My recommendation: Treat each step as a small, reviewable engineering milestone. We finish with a working TechBook application and, equally importantly, a documented approach to AI-native enterprise software engineering that we can explain, challenge and develop further through the LAB.
THE LAB · TECHBOOK
Articles.
Define. Design. Deliver. Defend | Engineering Software in the Age of AI
AI is making software easier to build. But is it making software better engineered?
Introducing TechBook, the first LAB project, where I explore modern AI engineering through four disciplines: Define clearly. Design deliberately. Deliver with understanding. Defend relentlessly.
As AI takes on more of the coding, the real challenge shifts to maintaining clarity, control, understanding and trust.