AI Agent Coding: How to Keep Ownership of the Definition of Done
As AI coding tools and autonomous agents enter daily development and content workflows, a subtle risk emerges: teams mistake a green dashboard for a completed goal. This article explains why automated systems can verify that an action ran but cannot verify that the result is useful, and how to reclaim the definition of done through three practices: defining outcomes yourself, spot-checking evidence instead of status, and injecting failures to catch silent no-ops. It also outlines team-level mechanisms such as definition reviews, evidence sampling, and heartbeat alerts for missing execution.
1. The Starting Problem: All Green Lights Does Not Mean the Task Is Done
As intelligent coding tools and autonomous agents move into everyday development and content production, an easily overlooked risk is taking shape: people mistake “the pipeline ran” for “the goal was achieved.” No errors in the logs, every status green, the task marked successful, and the questions stop. This is a classic case of cognitive surrender. The agent did not necessarily get a step wrong; the human gave up the final judgment on the outcome.
Two scenarios from the original case are especially telling. In the first, an image URL was written into the wrong copy field, but the total character count did not change, so a length-based check reported no anomaly. In the second, the publishing window had arrived, the system threw no error, and the logs recorded no failure, because the machine had never started that day. No execution means no failure signal.
Both scenarios show the same gap: automation is good at verifying whether an action completed, but it cannot independently verify whether the result is useful. Once the definition is handed over, every green light only confirms that something was executed correctly according to some definition, while nobody owns the question of whether the definition itself is skewed.
2. Two Layers of “Done”: Systems Verify Actions, Humans Verify Value
The first step to avoid being lulled by agents is to separate two layers of completion semantics.
| Dimension | System-verified completion | Human-verified completion |
|---|---|---|
| Object of judgment | Did this step run | Did this step produce value |
| Form of evidence | Logs, status codes, all-green dashboards | Real reads, real usage, reviewable metrics |
| Failure signal | Usually an explicit error | Often silent and unnoticed |
| Source of the definition | Fixed when the script or workflow was written | Must be maintained continuously by humans |
The most dangerous row is the last one: the source of the definition. Once “what counts as success” is decided by tool defaults, all monitoring and alerting afterward only maintain a baseline that may already be wrong. The more automated the system, the quieter it gets, and the harder deviations are to notice.
3. Three Practices to Take the Definition Back
1. Define the result yourself instead of restating the process
Before every delivery, a human should write down one reviewable completion criterion. Do not write “the publishing workflow finished.” Write “after publication, the target reader can access the content, and access or read metrics are available.” If you cannot write that sentence, the goal is not yet clear and automation should not start.
A sample definition of done can go at the top of a configuration file:
# definition_of_donegoal: content is actually read by the target audienceevidence:- accessible link- read or visit count- sampled content consistency checkowner: human
The key point: this definition must be maintained by a human and must not be silently overwritten by a tool.
2. Spot-check evidence instead of only looking at status
Status only tells you what the system believes it did. Reliable verification means pulling real proof: re-reading the published page, comparing key passages of the body text, confirming the link resolves, and checking the configuration that actually took effect. Validation logic should also move from “did the length change” to “are the semantics and position correct.”
weak check: len(content_before) == len(content_after)strong check: key fields in the right position && link reachable && content fingerprint matches
3. Inject failures on purpose to test silent scenarios
No error does not mean success. Periodically simulate scenarios such as “never started,” “dependency unavailable,” and “window already expired” to confirm that monitoring can detect the fact that something did not happen. For an automated system, a missing heartbeat matters as much as a missing result.
4. Team-Level Mechanisms
In engineering practice, these principles can be fixed as three mechanisms:
- Definition of done review: before any automated task goes live, it must ship with acceptance criteria that are human-readable and machine-verifiable.
- Evidence sampling: pull a proportion of real results for human review instead of relying entirely on logs.
- Silent failure alerts: add heartbeat and timeout alerts for “should have run but did not” and “should have updated but did not.”
General-purpose capabilities on cloud platforms such as Baidu AI Cloud, including log services, monitoring and alerting, object storage, and message queues, can carry evidence retention and status tracking, but tooling only supplies material; it cannot replace the human value judgment.
5. Conclusion: Automation Amplifies Capability, and Also Amplifies Definition Errors
The real risk of agentic coding is not that it is too weak, but that it is too compliant. It will faithfully execute a wrong definition and reassure everyone with a screen full of green lights. The way to prevent capability from degrading is not to use fewer tools, but to hold to three things: humans define completion, humans spot-check evidence, and humans verify silent failures. As long as the definition stays in human hands, automation is an amplifier; the moment it is handed over, automation only amplifies errors faster.
