Skip to content

Overhaul GitHub sync with common ancestors - #26

Merged
rrnewton-bots merged 2 commits into
mainfrom
feature/github-sync-three-way
Oct 3, 2026
Merged

rrnewton-bots merged 2 commits into
mainfrom
feature/github-sync-three-way

Conversation

@rrnewton

Copy link
Copy Markdown
Owner

Summary

  • add repeatable local-label filtering that intersects issue IDs and --since
  • replace timestamp winner selection with per-issue common-content ancestry and full three-way field reconciliation
  • add deterministic, bounded prose merging with conservative CommonMark/repetition conflicts
  • serialize same-issue syncs, retry racing field changes, and atomically checkpoint field/comment ancestry
  • preserve ancestry through all ID migrations and fail closed on missing, corrupt, future, or mismatched history

Review

  • Approved plan: ai_docs/github-sync-plan.md
  • Design recommendation and Unison comparison: ai_docs/github-sync-design.md
  • Two independent adversarial reviews initially found fourteen blockers; all are covered by regressions in this patch.
  • Keep this draft until owner patch review is complete. No live GitHub stress writes or crates.io release were performed.

Test Results Summary

  • make -o purge validate: 296 passed (66 lib, 189 bin, 7 shell, 1 migration, 28 regressions, 5 harness)
  • cargo clippy --locked --all-targets --all-features -- -D warnings: passed
  • Rust 1.87 all-feature suite: 303 passed, 1 ignored
  • generated prose symmetry: 29,791 default and 819,200 bounded cases passed

Add scoped label selection, versioned per-issue common-content ancestry, deterministic bounded prose merging, per-issue synchronization leases, checked convergence retries, and atomic ancestor/comment-state checkpoints. Preserve conservative behavior for missing or future history and carry ancestry through ID migrations.

Test Results Summary:
- make -o purge validate: 296 passed (66 lib, 189 bin, 7 shell, 1 migration, 28 regressions, 5 harness)
- cargo clippy --locked --all-targets --all-features -- -D warnings: passed
- Rust 1.87 all-feature suite: 303 passed, 1 ignored
- adversarial prose symmetry: 29,791 default and 819,200 bounded cases passed
Test Results Summary:
- make -o purge validate: 296 passed
- Rust 1.87 all-feature suite: 303 passed, 1 ignored
- documentation-only tracker update after validation
@rrnewton

Copy link
Copy Markdown
Owner Author

LGMT

@rrnewton-bots
rrnewton-bots merged commit 7f1cb2c into main Oct 3, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant