René's URL Explorer Experiment


Title: id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) · Issue #4471 · developing-today/code · GitHub

Open Graph Title: id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) · Issue #4471 · developing-today/code

X Title: id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) · Issue #4471 · developing-today/code

Description: Summary ReplicationTracker::accept in pkgs/id/src/world/replication.rs (F12.13 replication contract, landed today in PR #4447 for issue #806) refuses a journal header version only when it is newer than this binary supports — it has no lo...

Open Graph Description: Summary ReplicationTracker::accept in pkgs/id/src/world/replication.rs (F12.13 replication contract, landed today in PR #4447 for issue #806) refuses a journal header version only when it is newer ...

X Description: Summary ReplicationTracker::accept in pkgs/id/src/world/replication.rs (F12.13 replication contract, landed today in PR #4447 for issue #806) refuses a journal header version only when it is newer ...

Opengraph URL: https://github.com/developing-today/code/issues/4471

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3)","articleBody":"## Summary\n\n`ReplicationTracker::accept` in `pkgs/id/src/world/replication.rs` (F12.13 replication contract, landed today in PR #4447 for issue #806) refuses a journal header version only when it is **newer** than this binary supports — it has no lower bound. A correctly signed frame with `header_version = 0` is accepted:\n\n- `replication.rs:626`: `if envelope.header_version > MAX_JOURNAL_VERSION { return Err(UnsupportedJournalVersion(...)) }` — `0` passes.\n- A `Snapshot` frame with `header_version = 0` then rebases the tracker: the Snapshot branch computes the chain base for version 0, chains the payload, and sets `self.header_version = envelope.header_version` (0).\n- A `Tail` frame with `header_version = 0` is likewise accepted by a tracker constructed with header version 0 (`ReplicationTracker::new` performs no range check either).\n\nBut journal header version 0 does not exist and can never be restored:\n\n- `pkgs/id/src/world/mod.rs:928`: `pub const JOURNAL_VERSION: u32 = 1;` — journals are created at version 1; `mod.rs:946`: `MAX_JOURNAL_VERSION = 3`.\n- `pkgs/id/src/world/core.rs:217`: `WorldCore::restore` accepts only `(JOURNAL_VERSION..=MAX_JOURNAL_VERSION).contains(&version)`, i.e. `1..=3`, and refuses any other header version before applying entries.\n\nSo the replication receiver's verified state can advance onto a chain (and a stored header version) that the restore path — phase 3's durable receiver — must refuse wholesale. That is the same class of divergence the follow-up fix on PR #4447 closed for undecodable entries (\"a verified cursor never covers data the restore path cannot read\"), one check earlier: the envelope's own header version is never held to the restore range.\n\n## Evidence (verified this run, laptop probe)\n\nProbe: `~/git/fleet/probe-2026-11-02-laneA-replhdr/` on the laptop — `replication.rs` copied **verbatim** from current main `4843f2e21` (md5 `f807510cedc0884c513f5a49ea81bfe6`, matched against the sandbox clone), with only a minimal `JournalEntry` stub (the three variants the module's own tests use, same serde tagging) and the real `MAX_JOURNAL_VERSION = 3` around it. `cargo test --offline`:\n\n- `probe_header_version_zero_snapshot_is_accepted` — a signed `Snapshot` envelope with `header_version = 0`, sent to a tracker on a legitimate v1 chain, returns `Ok`, and the tracker's `header_version()` becomes `0`.\n- `probe_header_version_zero_tail_is_accepted` — a signed `Tail` envelope with `header_version = 0` returns `Ok` from a tracker constructed at version 0.\n- Controls pass: `header_version = 4` (`MAX + 1`) is refused with `UnsupportedJournalVersion(4)`, and a legitimate v2 snapshot is accepted and rebases to 2 — so the gap is exactly the missing lower bound, not the version machinery in general.\n- The module's own in-file tests also pass in the probe (no other behavior disturbed).\n\nThe signing key in the probe is the pinned source, so this is not a forgery scenario: it is a writer bug / downgrade / confused peer producing a frame the contract says the receiver verifies — and the receiver's verified cursor then describes a journal no binary can restore.\n\n## Why it matters\n\nThe tracker is the trust boundary for replication (design `pkgs/id/doc/2026-11-01_design_id806.md`): phases 2–5 build the writer feed, durable receiver, and spectator serving on the guarantee that accepted frames form a restorable journal. Accepting header version 0 breaks that guarantee at the first field the receiver checks, and a Snapshot makes it worse by silently **downgrading** an established v1–v3 chain to 0. Every later phase that trusts `tracker.header_version()` or the verified cursor inherits the poisoned state.\n\n## Acceptance criteria\n\n- [ ] `ReplicationTracker::accept` refuses any envelope whose `header_version` is outside `JOURNAL_VERSION..=MAX_JOURNAL_VERSION` (i.e. `0`, and any future below-minimum value) with `ReplicationError::UnsupportedJournalVersion`, for all three kinds (Snapshot, Tail, Terminal — a Terminal with header version 0 against a v0 tracker is the same hole).\n- [ ] `ReplicationTracker::new` cannot be constructed on an out-of-range header version, or its construction is documented/checked so a v0 tracker can never accept frames (choose the shape that matches the crate's conventions; the accept-side check above is the mandatory part).\n- [ ] A Snapshot can no longer move a tracker to a header version below `JOURNAL_VERSION`.\n- [ ] Regression tests in `replication.rs`: signed Snapshot and Tail frames with `header_version = 0` are refused and leave tracker state (cursor + header version) unchanged; the existing v2-snapshot rebase test and the `MAX + 1` refusal test still pass.\n- [ ] `cargo test -p id --lib world::replication` passes.\n\nDistinct from: issue #4454 / issue #4455 (references.rs, PR #2756 — different module), and the two PR #4447 Codex fixes already on main (trailing frame bytes, undecodable entries — both payload-side; this is the envelope header-version bound).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-02T17:00:07Z","url":"https://github.com/developing-today/code/issues/4471"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dc98423e-bb0b-5167-0d3b-fa53b9b9d0f8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id84CC:17A21E:9EF55F:CDD22F:6B0633C9
html-safe-nonce97cc337be6c0eef7e2ac4bb159f7a8d59ec330d153fa127303c1c86c14a935b5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NENDOjE3QTIxRTo5RUY1NUY6Q0REMjJGOjZCMDYzM0M5IiwidmlzaXRvcl9pZCI6IjE4OTM4MzA3NDEwODM5NjAyNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7aa7a1b917f81a48d644c2d115e725727a5a6f841aebb1314894e9de0f92043e
hovercard-subject-tagissue:6167109987
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/4471/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4c5207f5425cb14959770f8d3a4ecddb01b29bb01feda7cfa74fbf425a512901/developing-today/code/issues/4471
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c5207f5425cb14959770f8d3a4ecddb01b29bb01feda7cfa74fbf425a512901/developing-today/code/issues/4471
og:image:altSummary ReplicationTracker::accept in pkgs/id/src/world/replication.rs (F12.13 replication contract, landed today in PR #4447 for issue #806) refuses a journal header version only when it is newer ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/4471#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F4471
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F4471
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/4471
Reloadhttps://github.com/developing-today/code/issues/4471
Reloadhttps://github.com/developing-today/code/issues/4471
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests151 (151)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/4471
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/4471
#4540https://github.com/developing-today/code/pull/4540
id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3)https://github.com/developing-today/code/issues/4471#top
#4540https://github.com/developing-today/code/pull/4540
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/4471#issue-6167109987
#4447https://github.com/developing-today/code/pull/4447
#806https://github.com/developing-today/code/issues/806
#4447https://github.com/developing-today/code/pull/4447
#4454https://github.com/developing-today/code/issues/4454
#4455https://github.com/developing-today/code/issues/4455
#2756https://github.com/developing-today/code/pull/2756
#4447https://github.com/developing-today/code/pull/4447
Nexthttps://github.com/developing-today/code/issues/4471?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
on Nov 2, 2026https://github.com/developing-today/code/issues/4471#event-34934099923
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/4471#issuecomment-6583115623
id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) #4471https://github.com/developing-today/code/issues/4471
4843f2ehttps://github.com/developing-today/code/commit/4843f2e21061d87df52f41c2973c2f40cd42e2d3
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 2, 2026https://github.com/developing-today/code/issues/4471#event-34934475972
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/4471#issuecomment-6583232881
id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) #4471https://github.com/developing-today/code/issues/4471
id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) #4471https://github.com/developing-today/code/issues/4471
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#event-35033588143
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#issuecomment-6609158294
id(replication): ReplicationTracker accepts journal header_version 0 — accept checks only the upper bound, so a signed Snapshot rebases a v1-v3 chain onto a version WorldCore::restore refuses (1..=3) #4471https://github.com/developing-today/code/issues/4471
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#event-35039744064
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#issuecomment-6609601804
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#event-35044662997
dezren39https://github.com/dezren39
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#event-35045718472
Merge pull request #4540 from developing-today/queue/6418-4471-reject…https://github.com/developing-today/code/commit/77f911fbfc5ad5ca9814e23916fb8c0115710585
#4540https://github.com/developing-today/code/pull/4540
77f911fhttps://github.com/developing-today/code/commit/77f911fbfc5ad5ca9814e23916fb8c0115710585
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4540https://github.com/developing-today/code/pull/4540
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#event-35045720695
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 3, 2026https://github.com/developing-today/code/issues/4471#event-35045791853
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/4471
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/4471
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.