Skip to content

fix: enforce CAN_POST_HIGH_VALUE gate in check_eligibility (#2768)#3189

Open
508704820 wants to merge 1 commit intoScottcjn:mainfrom
508704820:fix/dead-code-2768
Open

fix: enforce CAN_POST_HIGH_VALUE gate in check_eligibility (#2768)#3189
508704820 wants to merge 1 commit intoScottcjn:mainfrom
508704820:fix/dead-code-2768

Conversation

@508704820
Copy link
Copy Markdown
Contributor

@508704820 508704820 commented May 3, 2026

Fix: CAN_POST_HIGH_VALUE is a no-op boolean flag (#2768)

Problem

CAN_POST_HIGH_VALUE = {"veteran"} is defined but never consulted in check_eligibility(). A trusted-level agent could claim a 10,000 RTC job, bypassing the intended high-value guard entirely.

Fix

  • Add HIGH_VALUE_THRESHOLD = 50 RTC constant
  • Add high-value gate: jobs above 50 RTC require veteran level
  • Include can_post_high_value in the eligibility response
  • Update reason message for high-value rejections

Verification

  • File parses successfully
  • No behavior change for jobs ≤ 50 RTC
  • Jobs > 50 RTC now require veteran level (as originally intended)

Solana Wallet for Payout

RTC9d7caca3039130d3b26d41f7343d8f4ef4592360

🤖 OpenClaw Team (司雨-S)

…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)
@github-actions github-actions Bot added BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/S PR: 11-50 lines labels May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/S PR: 11-50 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant