Engineering Leadership

Chapter 6 of 314 min readOpen access

AI as a Co-Builder, Not a Shortcut

Using AI to create options, then verifying them against the product goal and production reality.

Judgement turns knowledge into responsible action. In the AI era, judgement is the difference between useful speed and expensive speed.

The Demo That Failed in Production

An engineering team uses AI to build a feature quickly. The demo is impressive. The interface works. The happy path is smooth. The founder shares it in a company meeting.

Then the feature reaches real users.

Permissions are wrong for one role. Empty states are confusing. A background job retries unsafely. Logs do not include enough context. The rollback plan is unclear. A support agent discovers that the feature behaves differently for migrated accounts.

The problem was not that AI wrote some of the code. The problem was that nobody treated AI output as unfinished engineering work.

AI can generate. Builders verify.

AI Changes the Development Workflow

AI is useful across the development lifecycle:

  • Exploration: compare approaches, identify risks, summarize unfamiliar domains.
  • Scaffolding: generate starting code, configuration, and boilerplate.
  • Testing: draft test cases, edge cases, fixtures, and regression checks.
  • Refactoring: propose simplifications and detect duplication.
  • Documentation: create first drafts of briefs, runbooks, and API notes.
  • Review: inspect code for obvious issues and missing coverage.
  • Learning: explain logs, traces, and incident patterns.

But AI works best when it receives context. A prompt alone is not enough.

"Build a billing feature" is a weak request.

Strong context includes the product goal, user role, existing system, constraints, coding standards, security rules, test expectations, and rollout plan.

Assistants Versus Agents

An assistant helps you think and produce. An agent may take actions, modify files, run tests, open pull requests, or interact with systems.

The more action you delegate, the more verification discipline you need.

For low-risk work, AI can move quickly: formatting, documentation drafts, test scaffolds, simple transformations.

For high-risk work, AI needs tight boundaries: payments, authentication, authorization, data migration, security-sensitive logic, compliance, customer data, production operations.

A builder does not ask, "Can AI do this?" only. A builder asks, "What verification must exist if AI helps do this?"

The AI Leverage Stack

The AI Leverage Stack has six layers, each one built on the layer below it, running up to the business outcome at the top:

  1. Prompting
  2. Context
  3. Generation
  4. Verification
  5. Integration
  6. Evaluation

Weak context creates expensive speed. Many teams stop at generation. Builders continue to evaluation.

AI Context Packs

An AI Context Pack is a reusable bundle of information that helps AI produce better work.

For a feature, include:

  • Product goal.
  • User story or job.
  • Business reason.
  • System constraints.
  • Existing architecture notes.
  • Relevant files and APIs.
  • Coding standards.
  • Security and privacy rules.
  • Test expectations.
  • Observability expectations.
  • Rollout and rollback plan.

This turns AI from a guesser into a more useful collaborator.

Where AI Is Dangerous

AI is dangerous when the output looks plausible but is wrong in context.

Watch for:

  • Invented APIs.
  • Missing authorization checks.
  • Incomplete edge cases.
  • Overbroad error handling.
  • Silent data loss.
  • Unclear migrations.
  • Performance problems hidden by small examples.
  • Tests that validate implementation details but miss behavior.
  • Documentation that sounds confident but is false.

The more convincing the output, the more important the review.

Human-in-the-Loop Engineering

Human-in-the-loop does not mean humans manually redo everything. It means humans own the judgement points.

Use AI to create options. Humans choose based on context.

Use AI to draft tests. Humans decide which risks matter.

Use AI to propose refactors. Humans evaluate changeability and rollout.

Use AI to summarize incidents. Humans decide the organizational learning.

The builder does not compete with AI. The builder directs, constrains, verifies, and integrates it.

Founder Lens

Founders want AI speed, but they fear AI-created mess. The right model gives them both ambition and control.

An AI-native engineering team should be able to explain:

  • Where AI is used.
  • What context it receives.
  • How output is reviewed.
  • What tests protect the system.
  • Which areas require stricter human review.
  • How productivity and quality are measured.

This is how AI adoption becomes an operating capability instead of a tool experiment.

Developer Lens

Your AI skill is not measured by how clever your prompts sound. It is measured by whether AI helps you create better outcomes with less waste.

Build habits:

  • Start with product context.
  • Ask AI for assumptions and risks.
  • Generate alternatives, not only one answer.
  • Review output against standards.
  • Run tests and inspect failures.
  • Document what changed.
  • Measure whether the workflow actually helped.

Common Mistakes

  • Treating AI output as complete.
  • Prompting without product context.
  • Using AI for risky code without tighter review.
  • Accepting generated tests without checking coverage.
  • Letting AI produce architecture by preference instead of constraint.
  • Measuring AI adoption by usage instead of outcome.

Builder Checklist

  • I can define where AI should and should not help.
  • I can create an AI Context Pack.
  • I can ask AI for risks and alternatives.
  • I can verify generated code against product and system requirements.
  • I can integrate AI output in small, reviewable changes.
  • I can explain AI-assisted work to my team.
  • I can measure whether AI improved speed, quality, or learning.

Exercise: Build an AI Context Pack

Choose one feature. Create a context pack with:

  1. Product goal
  2. User role
  3. Business reason
  4. Existing system notes
  5. Constraints
  6. Coding standards
  7. Security rules
  8. Test expectations
  9. Rollout plan

Use it before asking AI to generate anything substantial.

Closing Thought

AI can help you write code faster. It cannot tell you whether the code is worth writing.

Key takeaways

  • AI can generate; only a builder verifies. Treat every AI-assisted change as unfinished engineering work until it has been checked against the product goal and production reality.
  • Give AI a real Context Pack (goal, constraints, standards, security rules, rollout plan) instead of a bare prompt: a weak request like "build a billing feature" produces weak output.
  • Match verification discipline to risk: light review for formatting and scaffolding, tight boundaries for payments, auth, and data migration.
  • Human-in-the-loop means owning the judgement points (choosing between AI-generated options, deciding which risks matter), not manually redoing the work.

In the age of AI

The advantage was never the model. It's knowing what to build with it — and having a team that can actually ship it.

That's the part I help with: finding where AI genuinely makes your business faster, deciding what's worth building, and standing behind it once it's live.

Four offices, one very full passport

Every dot on this map is a conversation I still remember.

World map showing ViitorCloud offices in Ahmedabad, Zürich, Washington D.C. and Port Louis, and the countries where Vishal Rajpurohit has spoken and travelled
Germany
Indonesia
Saudi Arabia
Spain
Japan
Denmark
Turkey
Singapore
Ireland
Czechia
France
Thailand
Sweden
Mexico
Qatar
Italy
South Korea
Poland
United Kingdom
Malaysia
Belgium
Canada
UAE
Netherlands
Vietnam
Norway
Oman
Portugal
Australia
Austria
New York, USA
Chicago, USA
Las Vegas, USA
San Francisco, USA
Los Angeles, USA
Ahmedabad, India — headquarters
Zürich, Switzerland
Washington, D.C., United States
Port Louis, Mauritius
  • Where I've spoken
  • Office
Sixty seconds from the roadQuick lessons and keynote moments — tap to watch