Skip to content

BAP-671: Agent Task Escrow with Outcome Token Settlement#671

Open
Yuandiaodiaodiao wants to merge 5 commits intobnb-chain:masterfrom
Yuandiaodiaodiao:bap-579
Open

BAP-671: Agent Task Escrow with Outcome Token Settlement#671
Yuandiaodiaodiao wants to merge 5 commits intobnb-chain:masterfrom
Yuandiaodiaodiao:bap-579

Conversation

@Yuandiaodiaodiao
Copy link
Copy Markdown

@Yuandiaodiaodiao Yuandiaodiaodiao commented Mar 5, 2026

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:

  • ERC-1155 Outcome Tokens — On task creation, the contract mints OutcomeSuccess tokens (to the worker) and OutcomeFailed tokens (to the requester), similar to YES/NO positions in a prediction market. Tokens are freely transferable before settlement.
  • Staked Arbiter Agents — Independent arbiters stake collateral and judge task completion on a 0–10000 basis point scale. Dishonest judging results in slashing.
  • Proportional Settlement — Bounty is split based on completion rate. Outcome token holders claim their proportional share.
  • Two-Tier Dispute — Tier 1: re-arbitration with more arbiters. Tier 2: DAO governance as final resolution.
  • Commit-Reveal Judging — Prevents arbiters from copying each other's evaluations.

Integration

  • ERC-8004: Workers/arbiters require agentId. Settlement results auto-feed into Reputation & Validation Registries.
  • BAP-578: NFA agents can serve as workers via 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.

@Yuandiaodiaodiao Yuandiaodiaodiao changed the title BAP-579: Agent Task Escrow with Outcome Token Settlement BAP-671: Agent Task Escrow with Outcome Token Settlement Mar 5, 2026
@Yuandiaodiaodiao
Copy link
Copy Markdown
Author

Yuandiaodiaodiao commented Mar 5, 2026

Gemini_Generated_Image_v9pp9mv9pp9mv9pp

Yuandiaodiaodiao and others added 2 commits March 5, 2026 08:42
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant