docs(adr/0031): cross-ref git:push skill for push-failure diagnosis#8
Open
technicalpickles wants to merge 2 commits intomainfrom
Open
docs(adr/0031): cross-ref git:push skill for push-failure diagnosis#8technicalpickles wants to merge 2 commits intomainfrom
technicalpickles wants to merge 2 commits intomainfrom
Conversation
When a push under the agent identity fails with mixed lefthook + SSH output, agents have misread it as an SSH transport issue and then debugged with GIT_SSH_COMMAND="ssh -v", which silently drops the -i and IdentitiesOnly flags configured here. Cross-ref the new git:push skill in pickled-claude-plugins for the diagnosis recipe. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Adds a short `See also` section to ADR 0031 (role-scoped agent git identity) that points at the `git:push` skill in pickled-claude-plugins. Specifically calls out the `GIT_SSH_COMMAND="ssh -v"` trap: it replaces `core.sshCommand` entirely, dropping the agent-key flags configured by this ADR and making the wrong keys appear to be offered.
Why
Real session (07e498f8 on 2026-05-07) misread a failed push as an SSH issue when in fact pre-push lefthook tests had failed, then debugged with `GIT_SSH_COMMAND="ssh -v"` and dropped the `-i ~/.ssh/agents/work/id_ed25519 -o IdentitiesOnly=yes` flags this ADR sets up. Pure debug artifact, but compounded the misdiagnosis. Cross-ref makes the agent-side guidance discoverable from the SSH-setup documentation.
The deeper guidance lives in the `git:push` skill (PR technicalpickles/pickled-claude-plugins#72) so it's loaded into agent context via Claude Code, not as ADR prose.
Test plan
🤖 Generated with Claude Code