Modularize sync push and pull orchestration helpers#19
Merged
Conversation
Tasks: - T20260510-20: Modularize sync push and pull orchestration helpers
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.
Task
T20260510-20 — Modularize sync push and pull orchestration helpers
Description
Problem
internal/sync/push.gomixes push orchestration, remote config creation/update, workspace-reference serialization, path helpers, and commit-message formatting.pull.gois smaller but repeats the remote setup sequence in-line. The production sync package would be easier to extend if shared remote setup and push-specific helpers were separated.Why It Matters
Sync work often intersects with remote Git and persistence behavior. Pulling remote setup/config and workspace-reference concerns into focused files reduces the amount of context a future sync change needs and lets sync production work run independently from sync test-suite cleanup.
Constraints / Notes
Syncer,PushStore,PullStore, request/result types, and persisted workspace reference JSON shape unchanged.syncer_test.goin this task; there is a separate test-only task for that.Acceptance Criteria
push.go.buildPushCommitMessageoutputs remain byte-for-byte compatible with existing tests.go test -v ./internal/sync -run 'Push|Pull|Workspace|CommitMessage'passes.go test -v ./internal/syncpasses.Execution Summary
Click to expand
Outcome: success
Changes:
Assessment: Behavior-preserving refactor validated by the requested focused and full internal/sync test runs.
Validation
Branch Freshness
origin/mainorbit/T20260510-20-6a00ea6eauthored by: gpt-5