Essay · Agentic engineering & governance
The Agentic Engineering Harness
AI coding agents make writing code cheap and unreviewed mistakes even cheaper. Here is the gated harness I use to ship commercial software at executive speed without inheriting prototype debt.
Writing code is no longer the scarce part of shipping software. Knowing whether the code an AI agent just produced will survive real users, app-store review, and six months of maintenance is.
In The AI Prototype Trap, I wrote about how AI technical debt compounds when teams optimize an AI product for time-to-demo instead of time-in-production. The exact same trap now shows up one layer earlier, inside the software engineering loop itself. A team hands a broad prompt to a coding agent, watches thousand-line diffs land in minutes, clicks through the happy path, and ships. Velocity looks extraordinary for three weeks. Then nobody can explain why a background service drained a customer's battery overnight, why a library upgrade quietly added advertising permissions, or which edge cases the tests actually cover.
The problem isn't the coding agents. Used undisciplined, they are debt accelerators. Put inside an agentic engineering harness — where bounded specialists build and attack the work, deterministic gates verify the contract, and a human leader owns every consequential decision — they let a small, senior team ship commercial-grade software without cutting a single corner.
Why single-agent prompting breaks past the demo
Most teams start with coding agents the same way: one long chat session that plans, writes, tests, and summarizes its own pull request. That works for a throwaway script. On commercial software, it breaks in four predictable ways:
- Context pollution blinds the reviewer. An agent that spent forty turns designing a feature carries every shortcut and unstated assumption into its self-review. Asking the author to audit its own diff reliably misses the exact failure mode it forgot to model.
- “It compiled” masquerades as verification. Generated UI and API integration code routinely compiles cleanly while violating mobile OS background limits, mishandling cancelled coroutines, or leaking query parameters into error traces.
- Over-scoped tools turn mistakes into incidents. When a coding session holds unrestricted cloud, database, or store-publishing credentials, a misunderstood instruction can mutate live infrastructure before a human sees the diff.
- Documentation and compliance drift immediately. Store declarations, privacy policies, architecture maps, and release checksums fall out of sync within days when agents ship code faster than humans update surrounding artifacts.
Fixing this doesn't mean slowing back down to manual typing. It means moving human effort from writing boilerplate to designing the gates that every change has to clear.
Six gates that turn speed into durable software
An engineering harness separates generation from judgment. Agents propose code quickly; independent checks try to break it before a person approves the release. Here is the six-gate loop I run across my own commercial products and advisory work:
Written contract
Prompting starts from a vague request. The agent invents routes, settings, or data shapes on the fly.
Write the scope boundary, state transitions, and failure modes before anyone touches implementation code.
Every GameDay Live release starts with an explicit policy and state contract covering audio focus, game-window standby, and dual-flavor boundaries before Kotlin code is edited.
Scoped delegation
One long conversation accumulates stale assumptions, edits unrelated files, and reviews its own work.
Keep one orchestrator accountable for the architecture while dispatching bounded, read-only or task-scoped specialists.
The pattern in The Art of Orchestration runs directly in our build loop: separate Security/QA, Google Play Policy, and Visual/ASO specialists inspect the diff with fresh context.
Deterministic harness
Code compiles and passes a manual happy-path click, while network retries, rate limits, or R8 shrinking break at runtime.
One repeatable verification command running pure domain unit tests, wire-level mock servers, static lint, and release bundling.
GameDay Live replays MyFantasyLeague XML/JSON feeds, ETag 304 hits, HTTP 429 backoffs, and live scoreboard diffs through MockWebServer alongside R8 lintVital gates on every build.
Adversarial review
The model that wrote the feature summarizes why its own pull request looks great.
Independent adversarial review focused strictly on runtime, security, privacy, and platform-policy defects before merge.
Before `v1.3.2` shipped, an adversarial pass caught transitive Privacy Sandbox ad-attribution permissions merged by a library and scrubbed league identifiers from crash breadcrumbs; automated OpenAI Codex review then caught an empty-set import edge case.
Least-privilege ops
Signing keys, cloud service accounts, or store credentials sit in CI secrets or broad environment variables.
Keyless cloud CI, hardware- or OS-encrypted local credentials, scoped read-only tokens, and human approval on irreversible actions.
GitHub Actions runs with contents: read and zero signing or store secrets. Release signing keys live in 1Password and local DPAPI-protected vaults; Power Platform X-Ray applies the same untrusted-input fencing to uploaded files.
Post-release verification
"Merged to main" is treated as shipped, while store tracks, CDN redirects, or telemetry silently drift.
Automated live smoke checks across retail store tracks, web endpoints, SHA-256 checksums, and privacy-clean crash reporting.
Every GameDay Live release runs a four-gate smoke verifier across the Google Play API, retail listing, APK redirect, and release SHA-256, backed by Ad-ID-free Firebase Crashlytics with user opt-out.
Notice how the same structure governs both Consulting Leadership and Multi-Agent Systems in The Art of Orchestration: clear intent, bounded authority, independent review, and explicit accountability.
Putting the harness under real store and runtime pressure
Internal tools forgive rough edges; public app stores and live Sunday sports broadcasts do not. I built and launched GameDay Live — a hands-free spoken football score announcer and multi-league fantasy companion published under Motisko Ventures LLC — specifically to put this harness through commercial release constraints end to end.
The app targets Android 12 through Android 16 across compact phones, unfolded foldables, tablets, and widescreen desktop windows, while shipping two distinct signed editions from a single Kotlin and Jetpack Compose codebase: a Google Play Store bundle with strict trademark, foreground-service, and Data Safety compliance, and an open-source Direct Pro APK distributed via GitHub Releases.
Observed engineering constraints across the public repository (mfl-gameday-live) and retail Google Play production track.
Every time a feature looked “done,” the harness earned its keep. When we integrated native crash and reliability reporting, the code compiled cleanly on the first build. Before opening the pull request, a fresh-context security and policy subagent audited the merged Android manifest and caught two defects a human skim would have missed: a transitive analytics dependency had quietly merged Android Privacy Sandbox advertising-attribution permissions that conflicted with our “No Advertising ID” store declaration, and handled network exceptions could still carry 5-digit league numbers in query strings. Fixing both took ten minutes. Minutes later, automated OpenAI Codex review on the pull request caught a subtle profile-import edge case where an intentionally empty spoken-category filter would fall back to defaults on a second device.
None of those three defects would have crashed a five-minute demo. Every one of them would have hurt trust in production.
Scaling the pattern to consulting and enterprise teams
When I advise executive teams or lead an applied AI practice, the goal isn't turning senior architects into solo hero coders. It's giving a delivery organization a repeatable operating model so junior and mid-level engineers don't ship unreviewed AI output, and principal leaders don't drown reviewing raw syntax line by line.
That is the same management discipline behind my practice services — Timesheet Compliance Automation and the AI Practice Opportunity Radar — applied to software delivery itself: put deterministic rules around repeatable checks so human attention goes where judgment actually matters.
The agentic harness rules
- Never let the author be the sole reviewer. Separate the coding context from the adversarial security, policy, and regression review context.
- Maintain one deterministic
verifycommand. Local builds and cloud CI must run the exact same unit, integration, lint, and packaging checks without network flakiness or paid model calls. - Keep cloud CI keyless where possible. Separate code verification from release signing and production deployment credentials.
- Couple code changes to living documentation and contracts. Schema updates, privacy disclosures, and architecture maps ship in the same pull request as the behavior change.
- Verify live state after deployment, never assume it. Every release ends with an automated smoke check against the live endpoints users actually hit.
Seven questions to ask a team building with AI agents
- What single command proves a pull request is safe, and does it run identically on a developer laptop and in CI?
- Who — or what independent context — reviews agent-generated code for security, privacy, and platform policy before a human merges it?
- Which credentials can an active coding agent reach right now, and what stops it from mutating production or publishing a release unapproved?
- How are external APIs, rate limits, and partial outages tested deterministically without hitting live third-party servers?
- When a transitive dependency adds permissions, network calls, or telemetry behavior, which gate catches the drift before release?
- Are architecture maps, privacy disclosures, and operational runbooks updated inside the same gated workflow, or left for “later”?
- After a deployment merges, what automated smoke check confirms the live retail or production surface matches the commit?
Teams that can answer those seven questions get both halves of the promise: startup delivery speed with principal-level engineering rigor.
Coding agents make typing nearly free. Your engineering harness determines whether you are compounding capability or compounding cleanup.
If your team is shipping software with AI coding agents, send them this harness first.