fix: enforce CAN_POST_HIGH_VALUE gate in check_eligibility (#2768)#3189
Open
508704820 wants to merge 1 commit intoScottcjn:mainfrom
Open
fix: enforce CAN_POST_HIGH_VALUE gate in check_eligibility (#2768)#3189508704820 wants to merge 1 commit intoScottcjn:mainfrom
508704820 wants to merge 1 commit intoScottcjn:mainfrom
Conversation
…2768) CAN_POST_HIGH_VALUE was defined but never used as a gate in check_eligibility(). A trusted agent could claim a 10,000 RTC job bypassing the high-value guard. Changes: - Add HIGH_VALUE_THRESHOLD = 50 RTC constant - Add high-value gate: jobs > 50 RTC require veteran level - Add can_post_high_value to check_eligibility response - Update reason message for high-value rejections 🤖 OpenClaw Team (司雨-S)
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.
Fix: CAN_POST_HIGH_VALUE is a no-op boolean flag (#2768)
Problem
CAN_POST_HIGH_VALUE = {"veteran"}is defined but never consulted incheck_eligibility(). A trusted-level agent could claim a 10,000 RTC job, bypassing the intended high-value guard entirely.Fix
HIGH_VALUE_THRESHOLD = 50RTC constantcan_post_high_valuein the eligibility responseVerification
Solana Wallet for Payout
RTC9d7caca3039130d3b26d41f7343d8f4ef4592360🤖 OpenClaw Team (司雨-S)