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
- Huy intent · architecture · invariants · acceptance
- Global / Senior Orchestrator
- Persistent Workstream Orchestrator
- Worker / Repair Worker
- Evidence source diff · deterministic tests · migration evidence · payload checks · browser captures
- Independent Review PASS / bounded repair
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.