AI ENGINEERING

Engineering with AI without outsourcing engineering judgment

I use AI agents extensively for implementation and diagnosis. The workflow is structured around explicit contracts and independent verification so that model output is evidence to inspect, not authority to trust.

Workflow

AI-native engineering workflow Huy sets product intent, architecture, invariants and acceptance criteria. A global senior orchestrator turns that into a bounded specification for a persistent workstream orchestrator, which delegates to a worker and a repair worker. Their output becomes evidence — source diffs, deterministic tests, migration evidence, payload checks and browser captures — which an independent review accepts or returns for bounded repair. Huy product intent · architecture invariants · acceptance criteria Global / Senior Orchestrator bounded specification Persistent Workstream Orchestrator Worker implement · test diagnose · repair Repair Worker bounded fixes Evidence source diff deterministic tests browser captures migration evidence payload checks Independent Review PASS Bounded repair
  1. Huy intent · architecture · invariants · acceptance
  2. Global / Senior Orchestrator
  3. Persistent Workstream Orchestrator
  4. Worker / Repair Worker
  5. Evidence source diff · deterministic tests · migration evidence · payload checks · browser captures
  6. Independent Review PASS / bounded repair
Model output is treated as evidence to inspect, not authority to trust. The review step is deliberately independent of the implementation step.

Principles

Repository reality over imagined architecture

Agents inspect the actual repository before making broad changes.

Durable specification

Important features have a canonical implementation contract rather than relying on conversation history.

Bounded ownership

Workers receive explicit areas they own and areas they must not modify.

Deterministic gates

Tests, payload assertions and browser evidence are preferred over subjective “looks good” summaries.

Independent review

The implementation agent does not grade its own work as sufficient evidence.

AI is not mandatory

If a deterministic solution is simpler and safer, use it.

Evidence before acceptance

Evidence

Source diff

Inspect the actual changed files rather than a summary of the change.

Evidence

Deterministic tests

Tests that fail for the right reason and pass only after a bounded repair.

Evidence

Migration evidence

Schema and migration state verified against a real database before acceptance.

Evidence

Payload checks

Serialized responses asserted to exclude fields the caller is not authorized to receive.

Evidence

Browser captures

Screenshots plus console and overflow checks from a real browser at target viewports.

Why this matters

The scarce engineering skill is increasingly less about manually typing every line and more about reliably causing correct, maintainable software to exist.

This is my own working philosophy, not a prediction about the whole industry.