Skip to content

docs: cross-reference probe cache TTL ↔ slashing window dependency (ADR 003, 005) - #115

Merged
thiras merged 2 commits into
mainfrom
docs/cross-ref-probe-cache-ttl-slashing-window
Apr 2, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/cross-ref-probe-cache-ttl-slashing-window

Conversation

@thiras

@thiras thiras commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • ADR 001 derives probe cache TTL as slashing_window / 2 (15s = 30s / 2), but ADR 003 and ADR 005 — which define the 30-second slashing window — had no back-reference to this dependency
  • Added Dependent parameters notes in ADR 005 (probe/v1 slashing section) and ADR 003 (phantom announcement slashing section) so that changes to the 30s window surface the coupling with probe cache TTL

Test plan

  • Verify cross-references render correctly in all three ADRs (001, 003, 005)
  • Confirm no other ADRs reference the 30s slashing window without this dependency note

🤖 Generated with Claude Code

…n ADR 003, 005

ADR 001 derives probe cache TTL as slashing_window/2 (15s = 30s/2) but
ADR 003 and 005 which define the 30s slashing window had no back-reference.
Add "Dependent parameters" notes so changes to the window surface the
coupling with the probe cache TTL.

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

@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 ADR 003 and ADR 005 to explicitly document the dependency between the 30-second slashing validity window and the 15-second probe cache TTL. The feedback identifies an ambiguity in ADR 003 where 'half this window' could be misinterpreted due to the mention of a 24-hour window in the preceding sentence, and suggests explicitly referencing the 30-second window for clarity.

Comment thread adr/003-payments.md Resolved

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

Adds explicit cross-references in the ADRs that define the 30-second slashing validity window so future edits to that window surface its coupling to the probe cache TTL defined in ADR 001.

Changes:

  • Document the dependency between the 30s slashing window and the 15s probe cache TTL in ADR 005 (cdn/probe/v1 slashing evidence section).
  • Document the same dependency in ADR 003 (phantom blob announcement slashing section).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
adr/005-protocol.md Adds a “Dependent parameters” note linking the 30s slashing window to the probe cache TTL in ADR 001.
adr/003-payments.md Adds a “Dependent parameters” note in the phantom announcement slashing discussion linking back to ADR 001’s probe cache TTL.

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

The preceding sentence mentions a 24-hour counter-window, making 'half
this window' momentarily ambiguous. Qualify as 'this 30-second window'
to match the phrasing in ADR 005.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@thiras
thiras merged commit 8ccb36b into main Apr 2, 2026
@thiras
thiras deleted the docs/cross-ref-probe-cache-ttl-slashing-window branch April 2, 2026 05:52
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