Guard human recovery by commit author - #2062
Open
svarlamov wants to merge 1 commit into
Open
Conversation
svarlamov
marked this pull request as ready for review
July 31, 2026 20:39
svarlamov
force-pushed
the
agent/guard-human-recovery-author
branch
3 times, most recently
from
July 31, 2026 22:51
920e945 to
a458e7c
Compare
svarlamov
force-pushed
the
agent/guard-human-recovery-author
branch
from
July 31, 2026 23:32
a458e7c to
ac39ad7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Why
A fast-forward ref update can finalize attribution for a pulled commit while passing the local user as
human_author. When that remote commit had no AI attribution, terminal recovery could previously record its unknown lines as typed by the local user. The fallback now fails closed for other-authored commits while still recognizing locally authored commits when a git-ai author override or email casing makes the display identity differ.Validation
task testtask test TEST_FILTER=test_fast_forward_update_ref_does_not_attribute_remote_commit_to_local_usertask test TEST_FILTER=terminal_recoverytask test TEST_FILTER=test_commit_metadata_recovery_ignores_freeform_message_agent_mentionstask test TEST_FILTER=test_cherry_pick_conflict_ai_rewrite_resolution_is_attributed(5 consecutive runs)task linttask fmtgit diff --check