Skip to content

fix(supervisor): say why a run's patch was refused by its files - #92

Merged
mrgoonie merged 2 commits into
mainfrom
claude/patch-file-count-refusal
Nov 19, 2026
Merged

mrgoonie merged 2 commits into
mainfrom
claude/patch-file-count-refusal

Conversation

@mrgoonie

Copy link
Copy Markdown
Contributor

Fixes #91 (the diagnosis part).

  • Empty patch → "the patch changes no file: the agent made no change".
  • Over 64 files → count and first 5 paths.
  • Binary change (GIT binary patch / Binary files … differ) → refused by name. Before, it had no ---/+++ headers and was silently dropped from the candidate.

Test: TestARefusedPatchSaysWhyItWasRefused. The real cause of the two refused smoke attempts is still unknown; the next smoke run will name it.

An empty patch now says the agent made no change, a patch over the file limit names its count and first files, and a binary change is refused by name instead of being dropped silently.

Signed-off-by: Goon <duy@wearetopgroup.com>
@mrgoonie
mrgoonie merged commit ad63744 into main Nov 19, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A refused patch does not say how many files it changed, and two of three real attempts were lost to it

1 participant