AI Agent Programming: Retain Ownership of the Definition of Done

    AI agents are good at automating execution and validating whether actions ran and artifacts match predefined rules. They cannot independently judge whether an outcome is useful. This article explains why all-green dashboards can hide misaligned criteria, non-execution, and silent failures; how to split completion into action-level and outcome-level acceptance; and how to keep humans in control of outcome definitions, evidence spot checks, and criteria reviews through a three-gate evidence chain and team governance rules.

    The conclusion first: preventing people from being deskilled by AI is not about using AI less. It is about taking back the authority to define what counts as complete. Systems are good at validating whether an action executed and whether an artifact was generated according to rules. Only humans can validate whether the outcome is useful. Confusing these two layers creates a dangerous state: every dashboard is green, but nothing has happened on the reader’s side.

    1. The problem is not that AI does something wrong; it is that people treat “done” as “successful”

    The core value of AI agent programming is delegating repetitive execution, batch generation, automated checking, pipeline orchestration, and similar actions to the system. But automation has a natural boundary: it can only validate what it has been told to check. A system can check whether a task ran, logs were written, fields were read back, and pages were generated. It is hard for it to independently judge whether the result is actually useful.

    The examples are representative. A set of resource references was written in the wrong positions, but the total word count happened to remain unchanged. The checking logic compared length, so “no change” was judged as “no problem.” The resources were not broken, the gate was not broken; the ruler was broken. Another case was more subtle: the publish window arrived, the system reported no error, and the logs showed no failure, because the machine was not turned on. It did not run, so it would not report a failure. After the window passed, all dashboards remained green, but that cell was empty.

    In both cases, AI did not do a single step wrong. The error was that humans treated “the action is done” as “the outcome is achieved.” “Cognitive surrender” means people gradually give up judging outcome definitions and accept only the green lights given by the system. The more green lights there are, the more reassured people feel. Once the definition is skewed, the greener it gets, the quieter it becomes.

    2. “Completion” has two layers: systems validate actions, humans validate outcomes

    “Completion” can be split into two layers:

    Layer What is validated Typical evidence Who is responsible
    Action completion Whether this step ran Execution logs, heartbeats, field readback, full-string consistency, all-green pipeline System automatic validation
    Outcome usefulness Whether this step was useful Someone read it, someone acted on it, business readings changed, criteria are still valid Human defines and spot-checks

    The system validates the first layer: whether an action occurred and whether the artifact matches preset rules. Humans must validate the second layer: whether the outcome actually reached the target, whether it produced an effect, and whether the criteria still hold. The most critical part of the table is “who defines.” Once definition authority is handed over, every later green light only confirms “it was done according to that definition.” If the definition is skewed, the greener it is, the quieter it becomes.

    Therefore, the key to preventing AI-induced deskilling is not reducing automation, but establishing layered acceptance: let the system handle high-frequency, deterministic action checks; let humans retain low-frequency but critical outcome definition, evidence spot checks, and criteria review.

    3. Three blind spots of an all-green dashboard

    3.1 Misaligned criteria: proxy metrics replace the goal

    Length, count, field presence, and normal status codes are all proxy metrics. They are cheap and easy to automate, but they are not equal to the goal itself. Body length unchanged does not mean the body content was not replaced in the wrong position; a page returning success does not mean the public page really has the statement; logs showing success does not mean someone read it.

    The typical symptom of misaligned criteria is many check items that all verify “did the action follow the script,” not “can the outcome be externally reviewed.” The fix is not to add more booleans, but to keep reviewable evidence for key artifacts: full-string comparison of body text, readback of declaration fields, real fetch of the public page, and validation of resource reference positions. If full-string comparison is possible, do not use length as a substitute; if the selected value can be read back, do not only check that submission succeeded.

    3.2 Non-execution: if it did not run, it will not report failure

    Many automation systems have only two states, success and failure, and lack a third state: “not occurred.” A task was not triggered, the machine was not powered on, or the window was not started. The system will not report failure because it never ran to the point of failure. As a result, the window passes, the dashboard is all green, and the business side is blank.

    Governing non-execution needs an external perspective: heartbeat, watchdog, startup confirmation, and timeout alerts during the window. Critical tasks cannot rely only on task-internal logs; they need an independent check of “did it happen on time.” The system should clearly distinguish success, failure, and not executed. Non-execution must trigger an alert and cannot be silently skipped.

    3.3 Silent failure: the problem is not on the checklist

    An automated flow can only cover checks that have been defined. Once a problem falls outside the checklist, the system will not report an error; it will only quietly succeed. In the source example, the question “Did anyone read it?” was not on the system checklist at all—a typical silent failure.

    Silent failure cannot be completely eliminated; it can only be backed by human spot checks and business readings. Humans do not need to check every step, but they must spot-check key outcomes: whether the public page is really accessible, whether the statement is really present, and whether the readings come from real external users rather than only internal clicks.

    4. Take back definition authority: three things not to hand to the agent

    4.1 Define the outcome: write one sentence of “what counts as success” before each delivery

    Before asking an agent to execute a critical task, a human should first write a reviewable completion definition. Do not write “run the publishing flow”; write “after publishing, external readers can read it, and I can produce the readings.” The definition must be concrete enough for others to review: what evidence to look at, what conditions to meet, and who is responsible for confirmation.

    An outcome definition card can include:

    • Goal: what externally observable outcome this delivery should produce;
    • Action evidence: which logs, heartbeats, and field readbacks can prove the action occurred;
    • Artifact evidence: which full-string comparisons and public page fetches can prove the artifact is correct;
    • Business evidence: which readings and spot-check records can prove the outcome is useful;
    • Owner: only humans can modify the completion definition;
    • Review date: when the criteria need to be reviewed.

    If you cannot write this sentence, do not let the system run yet. It can be on a whiteboard, a note, or a file header, but it must be written by a human. Definition authority cannot be delegated to the agent; the agent can only read the definition and execute checks, not rewrite “what counts as complete.”

    4.2 Spot-check evidence: do not trust log success; pull one real proof

    A log saying success only proves that the action layer may be complete. Humans need to spot-check real evidence: compare the editor body with the original draft as a full string, not use length as a substitute; open the public page to confirm the statement is really present; pull a reading to see whether only internal people clicked.

    Spot checks do not need full coverage, but they must cover high-risk paths. High-risk tasks get full inspection; low-risk tasks get proportional sampling; spot-check results feed back into criteria. If a spot check finds “the system thinks there is no problem but manual review finds a problem,” the criteria need correction, not simply a resend.

    4.3 Review criteria: retain the power to change the ruler

    Criteria drift. A metric that works today may be bypassed tomorrow; a reading that represents “someone read it” today may include internal traffic tomorrow. Therefore, humans must also retain criteria review authority: regularly ask “does this criterion still represent usefulness?” and version the criteria. Criteria changes require human review, and change records must be traceable.

    Definition, spot checks, and review—these three are not handed to the agent. That is true “human in the loop.” It is not formal approval, but key judgment authority is not delegated.

    5. Actionable acceptance framework: three gates plus an evidence chain

    An acceptance pipeline can be designed as three layers:

    1. Action layer: execution logs, heartbeat, startup confirmation, timeout and non-execution alerts;
    2. Artifact layer: full-string consistency, field readback, public page fetch, resource reference position validation;
    3. Business layer: external readings, real user behavior, manual spot-check records.

    Each gate should not only keep booleans but also keep reviewable evidence: evidence location, sampling time, sampling person, and criteria version. Below is illustrative pseudocode:

    1. completion_spec = {
    2. "goal": "After content is published, external readers can access it",
    3. "action_evidence": ["execution heartbeat", "publish task log"],
    4. "artifact_evidence": ["full-text comparison", "declaration field readback", "public page fetch"],
    5. "business_evidence": ["external readings reach threshold", "at least one manual spot check"],
    6. "owner": "human owner",
    7. "review_at": "before each delivery"
    8. }
    9. def verify(spec):
    10. if not heartbeat_ok():
    11. alert("Not executed: critical task did not occur on time")
    12. return "not executed"
    13. if not full_text_equal(source, artifact):
    14. fail("Misaligned criteria: body text is not identical as a full string")
    15. return "failed"
    16. if not field_readback(...):
    17. fail("Artifact layer: declaration field was not read back")
    18. return "failed"
    19. if not public_page_contains(...):
    20. fail("Artifact layer: target content not found on public page")
    21. return "failed"
    22. return human_review("business_evidence")

    The point of this pseudocode is not the concrete implementation but the layering: machines can automatically execute action-layer and artifact-layer checks; the business layer must be defined, spot-checked, and reviewed by humans. The system must also be able to report “not executed,” not only success or failure.

    6. Team governance: write definition authority into the process

    In team collaboration, it is recommended to codify the following rules:

    • Ownership of definition: the completion definition can only be modified by humans; the agent can only read it; changes require audit;
    • Three-state alerts: success, failure, and not executed must be separated; non-execution must also trigger an alert;
    • Proxy metric combination: length and count can only be auxiliary; key content uses full-string comparison and real fetch;
    • Spot-check mechanism: high-risk full inspection, low-risk proportional sampling; spot-check results feed back into criteria;
    • Capability maintenance: developers retain the ability to manually write and review critical paths; use AI for drafts and repetitive work, and humans for definition and acceptance;
    • Review records: each criteria change records the reason, evidence, and owner to prevent metric drift.

    The more automated AI agents become, the more humans must retain ownership of outcome definition. It is not about using less AI, but about splitting “completion” into two layers: systems validate actions, humans validate usefulness; definition, spot checks, and review—three powers are not delegated. All green is not the endpoint. Only when someone reads it, someone acts on it, and the criteria are still valid is it truly complete.