Implement with Agent: Failure Modes and Human Takeover
Author: Ashwin Kondapalli, Founder & CTO, LoopIQ Updated: October 23, 2026
It's Thursday afternoon and the release train leaves Monday. A story assigned to an external coding agent has been sitting in running since the morning. The last task event says 40% progress. Nobody knows whether the agent is still working, stuck on a missing permission, or quietly dead. The squad lead's question is simple: "Do we wait, or does a person pick this up?"
Agent-assigned work fails in a small number of recognizable ways, and each one has a clear human response. The agent can stall without a runtime claiming the task, block on missing access, fail outright, finish with output that policy blocks, or finish with output a reviewer rejects. In LoopIQ, each of these leaves a status and an event in the Bring Your Own Agent (BYOA) records, so a person can see which one happened and take over the work without losing the history. Taking over means reassigning the work item to a human; LoopIQ cancels the agent's active task, and the earlier events stay in the record.
What counts as a failure when an agent implements work?
A failure is any point where the agent's run stops producing work a human would accept. That's broader than a crash. In practice, teams see five patterns:
Never picked up. The task stays queued because no runtime claimed it.
Blocked. The runtime reports it needs human input, such as repository access, and the task moves to blocked.
Failed or cancelled. The runtime reports failed, or the task is cancelled because the work item was reassigned.
Completed, but actions were blocked. The agent returned actions its mutation policy doesn't allow. Those are stored as blocked action results instead of being applied.
Completed, but rejected. Sensitive actions went to review and a person rejected them.
The first three are runtime problems. The last two are governance working as designed. Both kinds need an owner and a decision before the release review.
Why "wait and see" is the riskiest response
When an agent stalls, the default is to give it more time. That's reasonable for an hour. It becomes a release risk when the story is in scope for the candidate and nobody has decided who owns it.
The specific risks are:
A stale status looks like progress. A task can sit in running with an old progress event while the runtime is gone.
Partial work drifts from the candidate. A branch the agent created yesterday may not match the build you are about to certify.
Silent retries create duplicates. LoopIQ's BYOA guidance says to keep external workers idempotent because task status updates can be retried. A worker that isn't idempotent can post the same comment or evidence twice.
Nobody owns the gap. If the story isn't done, the go/no-go package needs a named owner and a date, the same as any other open item.
How do you recognize each failure mode in LoopIQ?
Each pattern leaves a different trail across task statuses, task events, invocation statuses, and output attachments.
The task is queued but nothing picks it up
What you see: Task status stays queued. No claimed or running transition, and no task events.
Likely causes: No runtime is running, the runtime is authenticated to a different organization, it is claiming with the wrong agent or runtime_id, or it is at max_concurrent_tasks.
What to check: The runtime list and its heartbeat state. If the runtime is healthy and at capacity, decide whether the story can wait. If not, take it over.
The task is blocked waiting on a person
What you see: Task status blocked, with a task event explaining why, such as "Repository access is missing." A blocked task moves its invocation to needs_review.
What to do: Either resolve the blocker (grant the access, clarify the requirement) and let the runtime continue, or take the work over. Don't grant broader access than the story needs just to unblock it. If the agent asked for production access on an implementation story, that's a scoping problem, not a blocker to clear.
The task failed or was cancelled
What you see: Task status failed or cancelled, with the invocation in failed or cancelled.
What to do: Read the last task events to see how far the work got. Decide whether to reassign to the same agent after the cause is fixed, or reassign to a person. Either way, treat any branch or partial output as unreviewed.
The agent finished, but policy blocked some actions
What you see: The task is completed. Some actions applied, and others were stored as blocked action results in output attachments.
What to do: This is the control working. A common example is an agent trying to move a story to Done when can_update_status is off. A person reviews the work and makes that change themselves. Keep the blocked result in the record; reviewers should see it.
The agent finished, but a reviewer rejected the output
What you see: The invocation moved to needs_review, then rejected, with the reviewer's comment on the approval event.
What to do: Decide whether the agent should try again with a clearer instruction, or a person should finish the work. A rejection comment that says why (for example, "test run is from the previous build, not the candidate") is what makes the decision understandable at the release review.
What does human takeover actually look like?
Takeover is a reassignment, not a rescue mission. The steps are:
Decide. The work item owner decides the agent path is done for this story. Write down the reason in one line.
Reassign. Change the work item's assignee from the BYOA agent to a person. In LoopIQ, changing the assignee to a different BYOA agent or clearing the BYOA assignee cancels the active BYOA tasks for that work item. The human now owns the story.
Inspect the partial work. Look at the last task events, any branch or pull request the agent reported, and any outputs that did apply. Decide what to keep. Anything the agent produced is unreviewed until a person reviews it.
Re-link evidence to the candidate. If tests or evidence were attached during the agent's run, confirm they point to the build you're shipping.
Record the gap if it isn't closed by go/no-go. Put it in the release review with an owner and a date.
What you should not do is quietly finish the agent's branch, mark the story done, and leave the agent task looking like it succeeded. The record should show that the agent stopped, a person took over, and why.
Worked example: a stalled story taken over before go/no-go
Label: Illustrative demo data. This is not a customer result.
Tue 10:02: Story PAY-318 "Idempotent refund webhook" assigned to Payments Implementation Agent. (Task queued)
Tue 10:04: Runtime payments-worker-1 claims the task and starts immediately. (Task running)
Tue 11:30: Progress event at 40%: branch created, tests started. (running)
Tue 13:15: Runtime reports blocker: missing read access to the ledger service repository. (Task blocked, invocation needs_review)
Wed 09:00: Squad lead decides not to widen access before the release. Reason recorded: "Ledger repo access is out of scope for this agent's team." (Decision)
Wed 09:05: Assignee changed from the agent to an engineer. Active BYOA task cancelled. (Task cancelled)
Wed 16:40: Engineer reviews the agent's branch, keeps the test scaffolding, rewrites the handler, and links a new test run on the release candidate build. (Human-owned)
Fri 14:00: Go/no-go review sees the agent's blocked task, the cancellation, the takeover reason, and the human-linked evidence. (Input to decision)
The reviewer didn't need to guess what happened. The agent's history stayed in place, and the evidence came from the person who finished the work.
Checklist: before an agent-assigned story goes into release evidence
The story's current assignee is clear: the agent or a named person.
If the agent's task is queued, running, or blocked, someone has checked the runtime heartbeat and decided whether to wait.
Every blocked task has a decision: resolved, or taken over.
Every failed or cancelled task has a short reason recorded.
Blocked action results are visible to reviewers and not filtered out.
Every rejected invocation has a reviewer comment that explains why.
Partial agent work that a person kept has been reviewed by that person.
Tests and evidence point to the release candidate build, not an earlier one.
Anything unfinished at go/no-go is listed as an owned gap with a date.
How this works in LoopIQ
Prerequisites: A BYOA agent configured for the work item surface (story, task, or issue), a runtime worker able to claim tasks for it, and a mutation policy that keeps status changes, evidence attachment, release transitions, and work item creation behind approval. Setup details are in Configure and Run BYOA Agents.
Sequence:
Assign the work item to the BYOA agent. LoopIQ creates a task, which starts in queued, or in needs_review if the agent requires human approval before it runs.
A runtime claims the task and reports progress, blockers, completion, failure, or cancellation through task events.
On completion, LoopIQ checks each returned action against the mutation policy. Allowed actions apply or go to approval; denied actions are stored as blocked action results.
Reviewers approve or reject anything in needs_review, with a comment.
To take over, reassign the work item to a person or clear the BYOA assignee. Active BYOA tasks for that work item are cancelled, and the history stays.
Outputs: Task and invocation statuses, task events, approval events, and output attachments that together show what the agent did, where it stopped, and who took over. These feed the release review alongside tests and other evidence in the Release Compliance Dossier.
Boundaries: Agent output, completed or not, doesn't authorize a release. Passing tests don't either. Release certification in LoopIQ is an internal governance record, not regulatory certification. LoopIQ syncs with Atlassian tools, so stories assigned from Jira-linked work follow the same rules; see current product notes.
Pricing: LoopIQ is $4.99 per user per month.
FAQ
What happens to an agent's task when I reassign the story to a person? Changing the work item from a BYOA agent to someone else, or clearing the BYOA assignee, cancels the active BYOA tasks for that work item. The task events and any outputs already recorded stay in place.
Why is my agent's task stuck in queued? Usually no runtime is claiming it. Check that the runtime is running, authenticated to the same organization, claiming with the correct agent or runtime ID, and not already at its maximum concurrent tasks.
What does a blocked task mean? The runtime reported that it needs human input, such as missing repository access. A blocked task moves its invocation to needs_review, so a person decides whether to resolve the blocker or take over.
If policy blocked an agent action, did something go wrong? Not necessarily. It means the agent asked for something its mutation policy doesn't allow, such as a status change. The blocked action is recorded so reviewers can see the control worked, and a person makes that change if it's appropriate.
Can I reuse code the agent wrote before I took over? Yes, after a person reviews it. Treat partial agent work as unreviewed input, and make sure any tests you attach run against the release candidate.
Does a completed agent task mean the story is ready to ship? No. Completion is one input to the readiness review. A person still reviews the work, and the release decision stays with the people who own it.
See a permission-controlled agent workflow
If you're letting agents pick up delivery work and want to know what happens when they stall or get rejected, I'd be glad to walk you through how LoopIQ records it and hands the work back to a person. Book time with me here.
Further reading: Implement with Agent: From Work Assignment to Reviewed Outcome · Agent Audit Trail Checklist: What Reviewers Need to See · Scoping BYOA Permissions to a Single Release Train · BYOA Governance Limits: What Agent Registration Does Not Promise · Configure and Run BYOA Agents
General information for engineering, quality, release, and compliance leaders. Not legal, audit, or regulatory advice.