Repository navigation
docs: document score clamping and EWMA interaction in ADR 008 - #108
Conversation
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]>
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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]>
Summary
Test plan
🤖 Generated with Claude Code