Address review feedback on actor handling and push semantics#14
Draft
Copilot wants to merge 3 commits into
Draft
Address review feedback on actor handling and push semantics#14Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
6 tasks
Co-authored-by: yashturkar <25560943+yashturkar@users.noreply.github.com> Agent-Logs-Url: https://github.com/yashturkar/flight-deck/sessions/43fc7a5c-f478-4e0a-85ef-72d2e9088326
Co-authored-by: yashturkar <25560943+yashturkar@users.noreply.github.com> Agent-Logs-Url: https://github.com/yashturkar/flight-deck/sessions/43fc7a5c-f478-4e0a-85ef-72d2e9088326
Copilot
AI
changed the title
[WIP] Add actor-aware git identities with HTTPS credential override
Address review feedback on actor handling and push semantics
Mar 24, 2026
Owner
|
@yashomdighe copilot addressed your comments from #6 |
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
This update addresses review feedback on the actor-aware git identity work by tightening actor typing/validation and simplifying the user push path. The goal is to make actor behavior explicit, fail-closed on invalid inputs, and reduce ambiguous push APIs.
Actor model cleanup
Literal + constantspattern with a singleGitActorenum (USER,AGENT) ingit_service.Explicit/fail-closed actor checks
git_service._actor_env()now explicitly branches on USER/AGENT and raises on unsupported actor values.github_service._token_for_actor()now explicitly handles USER vs AGENT; unsupported actors raiseGitHubError.Push API narrowing
git_service.push()to user/base-branch semantics only (no remote/branch args).push_branch(); human writes/autosave continue throughpush().Operational safety
Test updates
push()contract.Context System Checklist
python3 scripts/generate_context_artifacts.py).python3 scripts/docs_lint.py).Docs Impact
If no docs impact, explain why:
This change is a service-layer refactor and guardrail tightening (typing/validation/push helper contract) without changing external API request/response semantics or runbook procedures.
Test Plan
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.