Repository navigation
Freeze checkout bases as commit SHAs and prepare owner workspaces - #137
Merged
Merged
Conversation
With Git transport and the push gate enabled, task provisioning and owner workspace creation resolve the checkout ref (or GitHub's current default branch) to a verified commit SHA through the App with contents:read, before any project, workspace or create plan is written. Replays, lost create replies and runtime replacement reuse the frozen SHA; successors keep their verified remote_sha. Unresolvable refs are refused with nothing created. Owner (agent) bindings now select kagent's agent preparation profile. With either flag off behaviour is unchanged. Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.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.
Step 4 slice 3, plus the Mainloop half of slice 5. Gated by
GIT_TRANSPORT_ENABLEDandPUSH_GATE_ENABLED(off in prod); with either flag off nothing changes, including no extra GitHub calls (tested).services/github_checkout.pyresolves a ref to a full commit SHA via the repository-scoped App client (contents: read). An empty ref uses GitHub's current default branch; branch, tag,HEADand SHA inputs use/commits/{ref}with encoded path components.remote_shathrough an internal path HTTP can't reach. The task branch stays the push target.agent) bindings select kagent'sagentpreparation profile (pinned digest from feat: add agent workspace preparation profile kagent#21), still only from the binding role.Real-PostgreSQL route tests cover stale stored vs remote defaults, refusal leaving project rows untouched, replay identity, and the bypass refusal.