BAP-671: Agent Task Escrow with Outcome Token Settlement#671
Open
Yuandiaodiaodiao wants to merge 5 commits intobnb-chain:masterfrom
Open
BAP-671: Agent Task Escrow with Outcome Token Settlement#671Yuandiaodiaodiao wants to merge 5 commits intobnb-chain:masterfrom
Yuandiaodiaodiao wants to merge 5 commits intobnb-chain:masterfrom
Conversation
Author
Introduce optimistic-first settlement where tasks auto-settle at 100% unless challenged, bringing in arbiter agents only on dispute to determine completion ratio. This saves arbiter costs for honest tasks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

BAP-671: Agent Task Escrow with Outcome Token Settlement
This BAP introduces a standardized protocol for trustless task delegation and settlement between autonomous agents on BNB Chain, directly addressing The Missing Trust Layer for the Agent Economy.
Problem
ERC-8004 provides identity and reputation, BAP-578 defines agent representation, and communication protocols (MCP, A2A) enable agent interaction — but none of them solve the settlement problem: how do two agents exchange value for task completion without trusting each other?
Solution
BAP-671 provides a proof-based escrow layer using:
OutcomeSuccesstokens (to the worker) andOutcomeFailedtokens (to the requester), similar to YES/NO positions in a prediction market. Tokens are freely transferable before settlement.Integration
agentId. Settlement results auto-feed into Reputation & Validation Registries.executeAction(). Task history feeds into Learning Modules.Key Innovation
Treating task completion as a continuous variable (not binary pass/fail) and representing claims as transferable ERC-1155 tokens creates a composable settlement primitive that bridges the agent economy with DeFi.
A reference implementation will be made available.