1. Collect the evidence
Gilfoyle reads the CI history and logs for the test, comparing failed and passing runs of the same commit. Timing, test order, shared state and external calls are the usual suspects; the evidence decides which one applies.
Gilfoyle finds why a test passes and fails on the same code, fixes the cause and shows repeated runs, instead of adding another retry.
Starts: When a check fails and then passes on rerun, or you name tests your team keeps retrying.
Gilfoyle reads the CI history and logs for the test, comparing failed and passing runs of the same commit. Timing, test order, shared state and external calls are the usual suspects; the evidence decides which one applies.
With connected Claude Code or Codex and GitHub, Gilfoyle repeats the test under the conditions that trigger it, such as parallel runs or a fixed random seed, and fixes the race, leaked state or unmocked dependency it finds.
The draft PR includes the cause, the change and repeated runs before and after. If the flake cannot be reproduced, you get the evidence gathered and the next diagnostic step, not a quietly added retry. Your reviewers decide what merges.
Use this for intermittent failures. A check that fails every time belongs in the failing-CI workflow.
Hypothetical finished result
Checkout flake diagnosis
Hypothetical: a browser test fails intermittently when the suite runs in parallel.
Connect the accounts and actions for your workflow. Start in Artie or add your Artisan to Slack; access stays within your account permissions.
Explore appsA retry hides the failure and keeps the cause. Gilfoyle fixes the cause where the evidence supports one; adding a retry stays an explicit decision for your reviewer.
Gilfoyle compares CI with local runs, including parallelism, resources and ordering, and reproduces those conditions where the environment allows.
The draft PR shows repeated runs before and after. Repetition is strong evidence rather than proof, so the note says what was and was not exercised.