Your Coding Agent Says It's Done. Independent Review Says It's Half-Finished.

7 min read Agents Workflows

An agent told us a core refactor was finished. Independent review found it half-done and hacked together. Here is how Task Machine catches that early.

Picture unifying two core execution subsystems (your workflow engine and your task-step runner) into a single task graph. You hand the refactor to a coding agent. A couple of hours later, it reports back with a green build. You ask if everything is genuinely finished. It says yes. You push back and ask again if any edge cases or legacy paths were left half-wired. It insists the work is complete.

Then an independent model audits the actual diff against the requirements. The unification is barely 50% done, key state transitions are hacked together to make the happy path pass, and half the old code is still sitting around doing silent work behind the scenes.

Every developer running coding agents at volume has felt some version of that scar. GitClear's AI code quality research shows code churn and duplicated blocks climbing sharply as teams adopt AI coding tools, and SmartBear's classic peer review research proved long ago that human defect detection drops off a cliff once diffs get large. Dropping a big diff into a single "review this for bugs" prompt only trades one failure mode for another: noisy style nitpicks on quiet days and missed half-finished architecture on busy ones.

Why skills and single prompts fail at volume

Many teams try to enforce coding standards by writing a review skill or a long checklist in AGENTS.md and telling the coding agent to follow it before opening a pull request. That helps at low volume, and it still fails in two structural ways.

First, a skill never guarantees the agent actually applies it. When an agent is deep inside a long refactor with a crowded context window, it can skim a skill, silently skip rules that feel inconvenient, or convince itself that a shortcut counts as done. Asking the same agent that wrote the code to grade its own homework against prose instructions is probabilistic at best.

Second, skills go stale quietly. As your codebase evolves, teams establish new conventions in pull-request comments and retire old ones. Static skill files drift away from how the team actually writes code until agents either follow outdated habits or ignore the file altogether.

Approach Coverage guarantee Maintenance Best suited for
Static review skills in prompts Probabilistic (agent may skim or skip under context pressure) Manual edits that drift silently over time General workflow habits and high-level guidance
Static linters and typecheckers Deterministic for syntactic rules Low maintenance once configured Formatting, syntax, types, and mechanical checks
Deterministic semantic rule scans + adversarial review + Requirements checks Walks every changed chunk against every enabled rule, hunts cross-file defects independently, and verifies every requirement Auto-discovers from the repo, learns from review feedback, and flags noisy rules to disable Semantic bugs, security flaws, team conventions, cross-file breaks, and incomplete implementations

How Task Machine catches broken or half-finished work before Inbox

In Task Machine, completed coding work does not jump straight from an agent's "I'm done" message into your Inbox. It passes through a structured review pipeline combining a deterministic semantic rule scan, an independent adversarial review, and a Requirements check (Task Machine's automated check that evaluates every acceptance criterion from the approved plan against the actual diff and evidence).

Stage 1: Deterministic semantic rule scans

Instead of asking a chat model for open-ended commentary, Stage 1 walks every changed chunk deterministically with a dedicated decision model, evaluating each enabled repository rule as a crisp yes-or-no question about added lines (for example, whether untrusted input reaches an executing sink, whether sensitive data hits a visible log, or whether a local convention was broken).

Unchanged lines stay in the chunk strictly as context so the scanner never blames a new pull request for legacy code. Security, correctness, and maintainability rules carry their own calibrated strictness so real risks surface early without drowning developers in nitpicks.

When blocking findings appear, the scanner never interrupts a human reviewer. It hands the exact findings back to the implementing agent in a bounded fix loop. For each finding, the agent either fixes the code and rescans, or explicitly dismisses a false positive with a written reason.

Keeping custom rules accurate instead of rotting

Every repository in Task Machine starts with a calibrated default catalog covering security, correctness, maintainability, failure handling, bounded work, and test quality, then expands through automatic repository discovery and continuous learning from your review comments.

Proposed custom rules never enter your pipeline untested. Each candidate is screened automatically against a concrete violating example, a prompt-injection test (to verify hostile code comments cannot trick the scanner), a valid counterexample, and an unchanged-context check. Candidates that cannot separate real violations from compliant code are rejected before you ever see them.

Task Machine also tracks how often implementing agents fix versus dismiss each rule over time. If a rule repeatedly triggers dismissals across multiple tasks, the system proposes disabling it right in your Inbox alongside the recent dismissal reasons. You still make the final call, so rules never turn off silently and noisy rules never linger.

Stage 2: Independent adversarial review

Chunk-level rules catch local bugs and team conventions fast, yet the most painful failures (like a half-finished task-graph unification where two subsystems still disagree) live across files.

After a clean rule scan on sensitive or deep-review changes, Task Machine runs adversarial review. Two independent frontier models receive the change packet separately and actively try to prove the implementation wrong. Every claim has to name an observable, falsifiable defect in changed lines along with a concrete reproduction sequence across cross-file breaks, composed harm, failure behavior, test quality, acceptance requirements, and scope drift.

Neither model sees the other's work, and neither sees earlier dismissal reasons that could anchor its judgment. Defects that both models independently catch become blocking findings that go straight back to the implementer's fix loop. Defects raised by only one model stay non-blocking heads-ups so a single model's hallucination never stalls healthy work.

Requirements checks and scope-creep detection

Even clean code can still fail the actual job. If an agent says a unification is complete when half the requirements were skipped or unrequested extras crept in, linters and unit tests will still pass.

Before a task moves to your Inbox for final review, Task Machine runs a Requirements check: every acceptance criterion from the approved plan is evaluated individually against the committed diff and captured evidence, never against the agent's self-reported summary. Each criterion comes back as Pass, Fail, or Uncertain, and any failed requirement keeps the task with the implementer for rework instead of wasting your time.

The Requirements check also scans for Scope creep, surfacing unrequested changes right inside the review modal so you can mark what to Keep, mark what to Remove, and send the removals back in one click.

A task review in Task Machine showing the Scope creep tab with unrequested changes isolated beside Keep, Remove, and Request changes actions

In our task-graph unification scenario, this layered review catches the half-finished work automatically: the Requirements check fails the missing acceptance criteria, adversarial review flags the broken cross-file transitions, and the work loops back to the implementer long before you ever open Inbox.

Stop trusting an agent's word that a refactor is finished. Get started with Task Machine or check pricing to run deterministic rule scans, adversarial review, and Requirements checks before human review, or explore Repository access and rules in the docs.