Skip to content

fix(git-tracker): a snapshot/diff git failure is infra, not silent '0 changes' (INT-2521)#266

Merged
unohee merged 1 commit into
mainfrom
fix/INT-2521-git-snapshot-infra
Jul 5, 2026
Merged

fix(git-tracker): a snapshot/diff git failure is infra, not silent '0 changes' (INT-2521)#266
unohee merged 1 commit into
mainfrom
fix/INT-2521-git-snapshot-infra

Conversation

@unohee

@unohee unohee commented Jul 5, 2026

Copy link
Copy Markdown
Owner

getChangedFilesSinceSnapshot swallowed a git failure into [] — indistinguishable from 'no changes' — so the worker's 'did real work' check dropped its actual edits (uncredited → false STUCK) or masked them. It now throws a git-tracker:-marked error that isInfraError classifies → infra_error (backoff retry), preserving the work. takeSnapshot stays best-effort (the reviewer still judges the real diff) but WARNs loudly so the disabled guard is visible.

Found by the INT-2521 audit (F3). Tests: throw on bad snapshot tree; isInfraError matches git-tracker:. tsc clean + full vitest 1716. openswarm review APPROVE (applied both suggestions: colon-anchored marker + settle-before-reject on timeout).

🤖 Generated with Claude Code

… changes' (INT-2521)

getChangedFilesSinceSnapshot swallowed a git failure into [] — indistinguishable
from 'no changes' — so the worker's 'did real work' check dropped its actual edits
(uncredited → false STUCK) or masked them. It now throws a 'git-tracker:'-marked
error that isInfraError classifies → infra_error (backoff retry), preserving the
work for the next attempt. takeSnapshot stays best-effort (the reviewer still judges
the real diff) but WARNs loudly so the disabled guard is visible, not silent.

Found by the INT-2521 harness audit (finding F3). Tests: getChangedFilesSince-
Snapshot throws (git-tracker marker) on a bad snapshot tree; isInfraError matches
'git-tracker:'. tsc clean + full vitest 1716.

openswarm review: APPROVE. Applied both suggestions — colon-anchored the marker
('git-tracker:') to avoid prose false-positives, and settle the runGitCommand
timeout before rejecting so late handlers don't double-settle.
@unohee unohee merged commit ebf28a4 into main Jul 5, 2026
@cursor

cursor Bot commented Jul 5, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@unohee unohee deleted the fix/INT-2521-git-snapshot-infra branch July 5, 2026 14:42
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.

1 participant