security(contracts): Sept 2026 report batch — escrow RAM caps, arbitrator conflicts, feed score fixes - #87
Merged
Conversation
…ator conflicts, feed score fixes agentescrow (additive: tables limits/openjobs, actions setlimits/cleanstale) - Per-client cap on unfunded jobs (openjobs counter, default 5); freed on fund, cancel, removejob - Per-job milestone cap (default 20) - cleanstale: permissionless removal of unfunded jobs older than stale_after (default 30 days) - A job's client or agent can no longer be its arbitrator (createjob, selectbid, arbitrate); arbitrate falls back to the owner for existing conflicted jobs agentfeed (no ABI change) - verifypay(false) now removes the paid review from scoring (context and directional trust reversed, aggregate recomputed); recalc excludes it too; a proof is decided only once - resolve(upheld) rebuilds the aggregate with recalc's decayed weights instead of subtracting the undecayed weight (avg could exceed 100%)
3 tasks done
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 (additive: tables limits/openjobs, actions setlimits/cleanstale)
arbitrate falls back to the owner for existing conflicted jobs
agentfeed (no ABI change)
reversed, aggregate recomputed); recalc excludes it too; a proof is decided only once
subtracting the undecayed weight (avg could exceed 100%)
Tests: agentescrow 275 passing (8 new), agentfeed 61 passing (3 new).
ABI diff against mainnet: no existing struct, action or table changed. agentescrow adds
setlimits,cleanstale,limits,openjobs; agentfeed ABI unchanged.Review gating (reviews only from paying clients) is deliberately not in this batch.