Skip to content

docs: document NTP clock sync requirement for gossip validation in ADR 001 - #106

Merged
thiras merged 2 commits into
mainfrom
docs/adr001-clock-sync-requirement
Apr 2, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/adr001-clock-sync-requirement

Conversation

@thiras

@thiras thiras commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Documents the previously undocumented NTP/clock-sync requirement for gossip validation in ADR 001
  • Gossip validation check (3) silently drops NodeAnnounce messages when timestamp_us drifts >60s from the receiver's clock — a node with a drifting clock becomes invisible to the mesh with no error feedback
  • Adds a Clock synchronization paragraph requiring NTP on all node hosts and recommending a startup clock-offset check with a 10s warning threshold

Test plan

  • Read updated ADR 001 and confirm the new section is consistent with the existing ±60s window description
  • Grep across ADRs for "clock", "NTP", "timestamp" to confirm no cross-ADR contradictions

🤖 Generated with Claude Code

…R 001

Gossip validation silently drops NodeAnnounce messages from peers with
>60s clock drift, but the NTP requirement was undocumented. Nodes with
drifting clocks would be invisible to the mesh with no error feedback.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings April 2, 2026 02:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the operational requirement for clock synchronization to ensure NodeAnnounce gossip validation (±60s timestamp_us freshness window) works reliably, preventing nodes from becoming effectively undiscoverable due to time drift.

Changes:

  • Adds an explicit Clock synchronization section describing the failure mode of the ±60s freshness check.
  • Updates the gossip validation description to cross-reference the new clock-sync guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adr/001-network.md Resolved
Comment thread adr/001-network.md Resolved

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the network ADR to clarify clock synchronization requirements for gossip validation. It introduces a new section emphasizing the necessity of NTP for node hosts and suggests a startup warning for clock offsets. The reviewer noted that using 'block.timestamp' as a reference for this warning is unreliable due to potential lag on Arbitrum and recommended using an NTP query or a trusted time API instead.

Comment thread adr/001-network.md Resolved
- Fix capitalization mismatch in cross-reference ("Clock Synchronization" → "Clock synchronization")
- Broaden requirement to cover receiver-side failure mode (validating clients + nodes, not just announcing nodes)
- Drop block.timestamp as suggested reference source (unreliable on Arbitrum due to L1 timestamp lag); recommend NTP query only

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@thiras
thiras merged commit b0ace5b into main Apr 2, 2026
@thiras
thiras deleted the docs/adr001-clock-sync-requirement branch April 2, 2026 02:47
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.

2 participants