security: fixes for #90, #91, #93; agent-side mitigation for #92 - #94
Merged
Merged
Conversation
…#92 agentescrow (no ABI change) - #90: cleanstale also removes refunded jobs (state 7, escrow settled) older than stale_after, so a createjob+cancel loop no longer leaves permanent rows - #93: arbitrate applies the platform fee to the agent's share, as approve does; still waived when the owner resolves as fallback agentvalid (additive: tables openchals, chalseq) - #91: at most 3 unfunded challenges per challenger; cancelchal and expireunfund delete the row instead of flagging it; challenge ids come from a monotonic counter so a deleted id is never reused openclaw - #92: xpr_accept_job and xpr_submit_bid refuse jobs whose arbitrator is not in TRUSTED_ARBITRATORS (default protonnz); jobs with no arbitrator are allowed
This was referenced Sep 25, 2026
Merged
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.
agentescrow (no ABI change)
stale_after, so a createjob+cancel loop no longer leaves permanent rows
still waived when the owner resolves as fallback
agentvalid (additive: tables openchals, chalseq)
delete the row instead of flagging it; challenge ids come from a monotonic
counter so a deleted id is never reused
openclaw
TRUSTED_ARBITRATORS (default protonnz); jobs with no arbitrator are allowed
Closes #90, #91, #93 once deployed (will close manually after mainnet hash verification).
Tests: agentescrow 280 passing (5 new, from the #90 PoC plus fee cases), agentvalid 53 passing (4 new, from the #91 PoC), openclaw arbitrator-guard tests (4).
ABI diff against mainnet: agentescrow unchanged; agentvalid adds tables
openchalsandchalseqonly.