Study FAQ
What should I verify before retrying a partially failed agent workflow?
Also asked as 2
- How can I retry agent work without duplicating earlier effects?
- When is another attempt justified after an agent workflow fails?
Answer
Before retrying, establish what the previous attempt actually changed, identify a supported cause and authorize the smallest test that can confirm the correction. Failure, a nonzero command exit or an incomplete report does not establish that no side effects occurred.
Preserve the original error, run identity, revision and last successful operation. Use tool results to identify possible writes, then independently inspect affected issues, commits or external records. A statement proposing an update differs from a successful call and an observed update. Resolve uncertain effects with the responsible owner before replaying the task.
Define a bounded retry: known inputs, allowed effects, remaining consumption allowance and evidence that would confirm or refute the explanation. For a failed issue retrieval, require a statement traceable to a known issue and comment; do not accept a fluent model answer as proof the read succeeded. If access is not approved, escalate instead of widening credentials.
A cloud automation's test simulation starts a real session with its selected tools. Check for existing report issues or other effects so a retry does not create duplicates. If active work needs containment first, stop it through the actual runtime and verify the resulting state.
Afterward compare the original error with the new tool result, actual resource state and output evidence, retaining both attempts. Stop the loop when the cause remains unproven or new authority is required. Successful execution and acceptance of the business result remain separate decisions.
References: Creating automations with Copilot cloud agent - GitHub Docs, Managing agent sessions - GitHub Docs, Application card: GitHub Copilot Agents - GitHub Docs.
Full explanation
GH-700: Diagnose Agent Workflow Failures Before Retrying
Study guide · GH-700
Read the full explanation