Skip to content

docs: add slash-risk observability metrics - #169

Merged
thiras merged 2 commits into
mainfrom
feat/slash-risk-observability-metrics
Apr 3, 2026
Merged

thiras merged 2 commits into
mainfrom
feat/slash-risk-observability-metrics

Conversation

@thiras

@thiras thiras commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add six slash-risk metrics to the observability section in architecture.md: probe_hold_violations, probe_hold_slots_used, rate_bounds_clamp_events, blacklist_sync_lag_seconds, blacklist_version_behind, slash_evidence_exposure
  • Add cross-references from ADRs 004, 005, and 011 pointing to the new metrics
  • Gives honest operators early warning for phantom announcements, rate manipulation, and blacklist compliance drift

Closes #150

Test plan

  • Verify metric names are consistent across all four modified files
  • Verify cross-reference anchors (#observability) resolve correctly
  • Verify terminology matches existing ADR usage (probe_hold_duration, max_probe_holds, rate_per_mb, getBlacklistVersion())

🤖 Generated with Claude Code

Honest operators lack monitoring for conditions that can lead to slashing.
Add six slash-risk metrics (probe hold violations, hold slot saturation,
rate bounds clamping, blacklist sync lag/version gap, slash evidence
exposure) to the observability section and cross-reference from ADRs
004, 005, and 011.

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

@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 several Architecture Decision Records (ADRs 004, 005, 011, and architecture.md) to incorporate requirements for exposing slash-risk metrics. These metrics provide early warnings for conditions that could lead to node slashing, such as probe hold violations, rate clamping, and blacklist synchronization lag. The review feedback identifies opportunities to improve documentation consistency by including blacklist violations in the summary of slashable offenses in ADR 004 and adding a missing cross-reference for the slash_evidence_exposure metric in the architecture document.

Comment thread adr/004-tokenomics.md Resolved
Comment thread adr/architecture.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 operator-focused “slash-risk” observability metrics to the architecture documentation and cross-references them from relevant ADRs, improving early-warning guidance for slashing-related failure modes.

Changes:

  • Document six new slash-risk metric names and meanings in adr/architecture.md under Observability.
  • Add cross-references from ADR 004/005/011 to the new Observability metrics section.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
adr/architecture.md Adds a new “Slash-risk metrics” subsection and defines six metric names for operator monitoring.
adr/004-tokenomics.md Adds a cross-reference directing readers to the slash-risk metrics in the architecture Observability section.
adr/005-protocol.md Adds guidance to expose probe-hold and rate-clamp related metrics with a link to Observability.
adr/011-content-takedown.md Adds guidance to expose blacklist sync metrics with a link to Observability.

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

Comment thread adr/architecture.md Resolved
Clarify that the metric only fires on contradictory probe+stream pairs
within the 30-second slashing window, not on any arbitrary pair. Add
missing ADR 005 cross-reference for consistency with the other metrics.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@thiras
thiras merged commit b5cf096 into main Apr 3, 2026
@thiras
thiras deleted the feat/slash-risk-observability-metrics branch April 3, 2026 18:05
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.

No monitoring/alerting for slashable conditions facing honest operators

2 participants