Skip to content

docs: document score clamping and EWMA interaction in ADR 008 - #108

Merged
thiras merged 2 commits into
mainfrom
docs/008-ewma-clamp-interaction
Apr 2, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/008-ewma-clamp-interaction

Conversation

@thiras

@thiras thiras commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds "Interaction with EWMA" paragraph to Section 8 (Score Clamping) explaining that the ±0.05 clamp applies post-EWMA, when it binds for local vs. network scores, and why high-weight reporters are intentionally rate-limited by the clamp
  • Updates Section 5 Mermaid diagram label to clarify the clamp operates on the EWMA delta

Test plan

  • Verify Section 8 explanation is consistent with EWMA formulas in Sections 3 and 4
  • Verify Mermaid diagram renders correctly
  • Confirm no contradictions with Section 12 (PoC scope — clamp is "not implemented" for PoC)

🤖 Generated with Claude Code

The 0.05 per-report clamp and EWMA alpha overlap in non-obvious ways —
for local scores the clamp only binds at large score gaps (>0.5), while
for network scores with high-weight reporters it is the primary rate
limiter. This was undocumented, creating ambiguity for implementers.

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

@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 reputation ADR to clarify the interaction between the clamping mechanism and the Exponential Weighted Moving Average (EWMA) update. The changes specify that the clamp applies to the delta produced by the EWMA. Review feedback highlighted a discrepancy between the Mermaid diagram and the text regarding where the clamp is applied in the pipeline and suggested using more precise terminology, such as 'per-report clamping', to ensure consistency throughout the document.

Comment thread adr/008-reputation.md Resolved
Comment thread adr/008-reputation.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

This PR refines ADR 008’s documentation around score clamping by clarifying how the ±0.05 limit relates to the EWMA update and updating the Mermaid diagram label to reflect that intent.

Changes:

  • Updates the Section 5 Mermaid diagram clamp label to mention clamping the EWMA delta.
  • Adds a Section 8 paragraph explaining when/why the clamp binds for local vs. network EWMA updates (including high-weight reporters).

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

Comment thread adr/008-reputation.md Resolved
Comment thread adr/008-reputation.md Resolved
Move clamp nodes in the Mermaid diagram from after final_score to after
each component EWMA, matching the text which describes per-report
clamping on local_score and network_score independently. Clarify which
scores are clamped and use "per-report clamping" terminology consistently.

Addresses review feedback from gemini-code-assist and copilot.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@thiras
thiras merged commit cda7211 into main Apr 2, 2026
@thiras
thiras deleted the docs/008-ewma-clamp-interaction branch April 2, 2026 03:37
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