Add review retaliation guard - #607
Open
pine-harbor wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/claim #15
Summary
Adds
review-retaliation-guard, a focused reputation-system guard for detecting and freezing post-critical-review retaliation before reputation deltas, badges, endorsements, leaderboards, or public profile exports are applied.This slice is intentionally narrow for the Community & User Reputation System: after someone leaves a critical review, it asks whether affiliated authors, labs, institutions, funders, or study-team actors punished that reviewer inside a cooling-off window.
What It Covers
Included Artifacts
review-retaliation-guard/src/index.jsreview-retaliation-guard/data/sample_reputation_events.jsonreview-retaliation-guard/test/review-retaliation-guard.test.jsreview-retaliation-guard/scripts/demo.jsreview-retaliation-guard/reports/Validation
npm.cmd test: 6 tests passed.npm.cmd run check: syntax checks passed.npm.cmd run demo: generated 4-packet report withCLEAR: 2,REVIEW: 0,HOLD: 2.npm.cmd run video: generatedreports/demo.mp4.git diff --check: passed.ffprobe: H.264, 1280x720, 8.000 seconds, 30 fps, 240 frames.The MP4 is a generated FFmpeg color-source/drawtext slate, not a desktop or browser recording. It contains no private data.