[PR #194] TEST deletion of AI lines in the next commit #313

Closed
opened 2026-03-02 04:13:16 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/git-ai-project/git-ai/pull/194

State: closed
Merged: No


https://github.com/acunniffe/git-ai/issues/193


Note

Adds regression tests for correct attribution when AI deletes its own lines and introduces detailed checkpoint debug logging.

  • Tests:
    • Add e2e test tests/e2e/user-scenarios.bats verifying stats when AI deletes one of its own lines and both human and AI add lines in the same commit (human_additions: 2, ai_additions: 2, total_ai_deletions: 1).
    • Add Rust test tests/simple_additions.rs::test_ai_deletion_with_human_checkpoint_in_same_commit asserting correct line-by-line blame and stats for the same scenario.
  • Debugging:
    • Add verbose println! debugging in src/commands/checkpoint.rs within get_checkpoint_entry_for_file and make_entry_for_file to log checkpoint kind, author, data source, previous/current content, previous/updated attributions, line attributions, and skip reasons.

Written by Cursor Bugbot for commit c64697ac5e. This will update automatically on new commits. Configure here.

**Original Pull Request:** https://github.com/git-ai-project/git-ai/pull/194 **State:** closed **Merged:** No --- https://github.com/acunniffe/git-ai/issues/193 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Adds regression tests for correct attribution when AI deletes its own lines and introduces detailed checkpoint debug logging. > > - **Tests**: > - Add e2e test `tests/e2e/user-scenarios.bats` verifying stats when AI deletes one of its own lines and both human and AI add lines in the same commit (`human_additions: 2`, `ai_additions: 2`, `total_ai_deletions: 1`). > - Add Rust test `tests/simple_additions.rs::test_ai_deletion_with_human_checkpoint_in_same_commit` asserting correct line-by-line blame and stats for the same scenario. > - **Debugging**: > - Add verbose `println!` debugging in `src/commands/checkpoint.rs` within `get_checkpoint_entry_for_file` and `make_entry_for_file` to log checkpoint kind, author, data source, previous/current content, previous/updated attributions, line attributions, and skip reasons. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit c64697ac5ef9fffc47892ad2fcdc86d5b8612310. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
kerem 2026-03-02 04:13:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#313
No description provided.