Repository navigation
Description
Finding
PR #3188 ("docs(id): clarify sync selection and completion scope", head 25d46172a1) has been open and untouched since 2026-10-31T19:59Z and is now conflicting (mergeable=false): the crate split moved pkgs/id/src/sync_method.rs to pkgs/id/crates/id-core/src/sync_method.rs, so the PR can no longer land as-is. Its clarifications were never ported, and the stale text it was fixing is still on current main (a41cba35dd23):
pkgs/id/crates/id-core/src/sync_method.rs:14-18still says the rule "is written against [SyncStats], so range sync's index can supply the numbers when it merges" and that a responder refuses range requests "until then" — but range sync merged long ago (Phase 3: /id-sync/1 is used by both range and LogSync handshakes #179, closed) andLogAndRangeexists in the same file (:107), supportingSyncMethod::Range(test at:237).pkgs/id/crates/id-core/src/sync_method.rs:100still documentsLogSyncOnlyas "RunsLogSynconly. Range sync (P3.1) adds itself here when it merges."- The
event_sync.rs/log_sync.rsclarifications in docs(id): clarify sync selection and completion scope #3188 (serve uses range sessions on the event-sync ALPN withoutchoose(); the topic-scoped handshake is a different path) are likewise not on main in that form.
Evidence
- PR: docs(id): clarify sync selection and completion scope #3188 — OPEN, head
25d46172a1f6bb0c9968c9af0bf294ae6aa95e38,gh api pulls/3188→mergeable: false, last updated 2026-10-31T19:59:09Z; Codex review on the head was clean (no findings) — the content was fine, it just never landed. - Current main
a41cba35dd23b41d4113c44944350087a14e0843: direct reads ofpkgs/id/crates/id-core/src/sync_method.rslines 14-18 and 100 (quoted above) andLogAndRangeat line 107. - Dedupe: issue searches for the docs(id): clarify sync selection and completion scope #3188 subject / stale range-sync wording return no covering issue. The deferred completion-recording gap that docs(id): clarify sync selection and completion scope #3188's
log_sync.rsnote also mentions is already tracked separately by open id(sync): PR #727's PeerHistory is never recorded — nothing sets last_completed_sync_ms, so choose() can never pick Range in production #734 (PeerHistory never recorded) — this issue is only the stale documentation + the stranded PR, not that work.
Why it matters
These module docs are the map new sync work reads first. Today they describe range sync as unmerged and range requests as refused, which is the opposite of the shipped system (LogAndRange, range sessions in event_sync.rs). A reader trusting them misjudges what choose() / SyncSupport can do in production. The stranded PR also sits in the open queue inviting a duplicate effort or an accidental conflicted rebase.
Acceptance criteria
- The docs(id): clarify sync selection and completion scope #3188 clarifications are ported to the current locations (at minimum
pkgs/id/crates/id-core/src/sync_method.rs: theSyncStats/SyncSupportmodule text and theLogSyncOnlydoc;pkgs/id/src/event_sync.rsandpkgs/id/src/log_sync.rswhere the wording still applies), against current main, via a fresh PR or a rebased docs(id): clarify sync selection and completion scope #3188. - No doc in the sync modules still describes range sync as unmerged or range requests as refused-until-it-merges.
- PR docs(id): clarify sync selection and completion scope #3188 is closed as superseded (comment linking the landing PR / this issue) once the port lands.
- id(sync): PR #727's PeerHistory is never recorded — nothing sets last_completed_sync_ms, so choose() can never pick Range in production #734 is referenced, not duplicated, for the completion-recording gap.
Activity
dezren39 commentedon Nov 3, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 3, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 3, 2026
🤖 Agent note · done