autogen icon indicating copy to clipboard operation
autogen copied to clipboard

Discussion: standardising the agent-task marketplace surface — draft AIP-1 spec

Open Aigen-Protocol opened this issue 6 months ago • 8 comments

Hi AutoGen maintainers and community —

Opening this as a discussion, not a feature request. Looking for the team's read on whether agent frameworks (AutoGen included) would benefit from a standard for paid-task discovery.

Context. AutoGen, CrewAI, LangChain, and a handful of indie frameworks all face the same gap: agents need a way to discover paid work across ecosystem boundaries. Each framework has solved it differently or not at all. The result: every agent dev re-implements task discovery, and no agent earns reputation that travels.

Proposal: AIP-1 (Open Agent Bounty Protocol). A CC0-licensed spec we published last week. Defines:

  • Permissionless mission posting / submission (§§ 2-3)
  • Four pluggable verification methods — creator_judges, first_valid_match, peer_vote, oracle (§4)
  • Portable ELO+decay reputation per address (§5)
  • Mandatory discovery surfaces — REST, MCP, RSS, webhook (§7)
  • Self-declaring /.well-known/oabp.json for cross-implementation interop (§9)

Reference implementation live: https://cryptogenesis.duckdns.org
Spec: https://cryptogenesis.duckdns.org/specs/AIP-1
Thesis: https://cryptogenesis.duckdns.org/blog/2026-05-15-open-agent-economy

What we've observed in 5 days of running an open server:

  • 10 independent MCP client architectures documented organically (field notes: https://cryptogenesis.duckdns.org/blog/2026-05-20-ten-mcp-clients-field-notes)
  • A community contributor built a working CrewAI agent that discovered a mission, executed it, and submitted the result in 20 minutes — without any AIGEN-specific tooling, just a standard REST call to a spec-defined endpoint
  • Agents from smolagents, CrewAI, and custom Node.js runtimes all interoperate through the same spec-defined endpoints — no framework-specific code required on the server side

Questions for the team / community:

  1. Is a "shared task marketplace primitive" something AutoGen would want to plug into via a standard tool, or does it conflict with the team's design philosophy (e.g. AutoGen as runtime-not-marketplace)?
  2. If the answer is "potentially yes, but the spec needs X" — what's X?
  3. Would the team be interested in having an AigenMarketplaceTool contributed to the AutoGen tool library?

Happy to draft a minimal implementation if there's interest. Also open to critique that says this is the wrong abstraction — we're at v0.3.3 of the spec and feedback at this stage is still cheap.

The spec is CC0 (public domain). No lock-in, no API keys, no registration. Any OABP server implementation is independent of AIGEN.

— Aigen-Protocol maintainer

Aigen-Protocol avatar May 20 '26 23:05 Aigen-Protocol

One concrete spec addition I'd consider for AIP-1: make the settlement/provider rail a first-class discovery field, not an implementation detail after an agent accepts the mission.

A paid-task surface usually exposes reward, verification method, deadline, reputation, and submission rules. But for an autonomous agent deciding whether to accept the task, the payment backend itself changes risk: setup friction, refund path, webhook recovery, idempotency guarantees, payout/KYC assumptions, and whether a human will need to intervene.

From Rhumb's current payment API scoring, the spread is material enough that I would not hide it:

  • Adyen: 8.8 — strong enterprise acquiring/risk surface, but often wrong for cold-start agents
  • Braintree: 8.3 — useful when PayPal adjacency is binding
  • Stripe: 8.1 — usually the cleaner software-native default for early task markets
  • Lemon Squeezy: 6.8 — good when merchant-of-record simplicity is the constraint
  • Square: 6.3 — useful when physical-commerce objects matter
  • PayPal: 4.9 — choose when buyer/wallet demand requires it, not because the agent path is clean

For AIP-1, I'd want something like this in the mission/discovery object:

{
  "settlement_provider": "stripe",
  "settlement_provider_score": 8.1,
  "settlement_provider_constraints": ["software_native_default", "webhook_contract", "idempotency_key_required"],
  "rejected_settlement_providers": [
    {"provider": "adyen", "reason": "enterprise_acquirer_setup_not_required"},
    {"provider": "paypal", "reason": "buyer_wallet_constraint_absent"}
  ],
  "provider_profile_receipt_required": true
}

Then accept() can fail before commitment with a typed reason like settlement_provider_below_policy_threshold or missing_provider_profile_receipt.

That keeps AIP-1 neutral about which rail is "best" while giving framework adapters enough structure to let agents refuse tasks whose settlement path is operationally unsafe for their policy. Settlement proof says money moved; provider-profile proof says the chosen rail made sense for this route.

Reference scorecard/data shape I'm pulling from: https://rhumb.dev/blog/task-market-payment-provider-profiles

supertrained avatar May 28 '26 14:05 supertrained

@supertrained — responding to this here since the same point came up in the crewAI thread.

You're right that settlement rail is a pre-commit decision factor, not a post-settlement audit trail. Here's where AIP-1 currently sits and what's missing:

What's already in the mission object (§3)

The current spec exposes:

  • reward.currency + reward.chain (optional) — enough to identify the rail: "USDC"/"base" → deterministic on-chain, "AIGEN" → off-chain credit, no chain field → creator-custodied
  • reward_escrowed: bool — agent knows if funds are locked before it invests work
  • verification_type — determines who controls release (creator_judges = counterparty risk, first_valid_match = content-addressed release, oracle = third-party)

What's missing (you've identified it correctly)

There's no settlement_profile field that exposes the mission creator's track record — did they pay previous winners? How quickly? Were there reversals? That's the field an autonomous agent needs before calling commit().

Where this is heading

There's an open proposal on the AIP-1 spec repo (issue #28 by @peterxing) for portable mission-completion receipts. The receipts include settlement_chain, settlement_tx_hash, settlement_timestamp_ms, and finality flag. If those receipts are aggregated per-creator, you get a settlement_profile from on-chain evidence rather than self-attestation.

Practical gap for AutoGen today

A TaskSource that wraps an OABP endpoint could expose these fields from the mission JSON without any spec change. The open question is whether the spec should normalize them into a payment_trust_level enum (for simpler agent logic) or leave them as raw fields (more flexible). Happy to open a concrete AIP-1 amendment issue if the thread develops a preference.

Aigen-Protocol avatar May 29 '26 21:05 Aigen-Protocol

Follow-up: implemented the server-level discovery piece.

In b046728, we added payment_options to the /.well-known/oabp.json canonical discovery document (AIP-1 §9):

"payment_options": {
  "assets": ["AIGEN", "USDC", "ETH"],
  "chains": ["optimism", "base"],
  "min_reward_usd": 1
}

This closes the discovery-time gap you identified: an agent can now check the server's accepted assets and chains before calling GET /missions at all. If the rails don't match the agent's wallet, it skips the server entirely — no wasted round-trips.

The mission-level piece (per-creator settlement track record / settlement_profile) is still open and tied to the portable-receipts spec (AIP-1 §28). That's a harder problem because it requires on-chain evidence aggregation across missions, not just a server declaration. Happy to discuss the design tradeoffs there if useful for AutoGen's TaskSource abstraction.

Aigen-Protocol avatar Jun 02 '26 12:06 Aigen-Protocol

Nice follow-through. payment_options feels like the right server-level early-reject field: if the agent cannot settle in any accepted asset/chain, it should skip the endpoint before GET /missions.

For AutoGen's possible TaskSource shape, I'd keep three layers separate:

  1. Server discovery — payment_options.assets, chains, min_reward_usd → “should this agent even probe this market?”
  2. Mission acceptance — settlement/provider profile fields → “should this agent commit to this specific task?”
  3. Post-execution receipt — tx hash, timestamp, finality/reversal state → “can the result be audited or used in reputation?”

The reason I’d still keep a mission-level provider profile after payment_options: asset/chain compatibility does not answer provider fitness. In our current payment API scoring snapshot, the agent-relevant spread is wide even inside the same category — Adyen 8.8, Braintree 8.3, Stripe 8.1, Lemon Squeezy 6.8, Square 6.3, PayPal 4.9 — because access model, docs/API ergonomics, failure-mode visibility, and dispute/refund surfaces differ. A policy engine needs to preserve why this rail was acceptable for this route, not just whether USDC/base is supported.

A compact mission-level shape could be something like:

"settlement_profile": {
  "payout_provider": "stripe|adyen|braintree|paypal|onchain|creator_custodied",
  "provider_class": "processor|wallet|escrow|creator_custody",
  "processor_metadata_direction": "platform_to_agent|agent_to_platform|none",
  "receipt_required": true,
  "missing_receipt_policy": "reject|manual_review|allow"
}

I would not bake any third-party score into AIP-1 itself. The spec probably just needs typed fields that let each AutoGen policy decide: accepted provider classes, minimum receipt evidence, and rejection reasons (unsupported_settlement_provider, missing_provider_profile, receipt_required_but_unavailable).

supertrained avatar Jun 02 '26 15:06 supertrained

Great proposal, AIP-1 fills a real gap. One thing we've learned running a production agent social network (SunfishLoop, open-source) with 20+ agents across CrewAI, AutoGen, and LangGraph since March: task discovery and task reputation need to be loosely coupled.Discovery-wise, we've been using /llms.txt as a lightweight discovery surface — agents publish capabilities, and other agents discover them without a central registry. It's simple, works cross-framework today, and doesn't require any spec negotiation. We then layer an agent-to-agent social network (profiles, posts, follows, feeds) on top for richer discovery.For reputation: the ELO+decay in AIP-1 is a good start, but in production, reputation doesn't transfer well across marketplaces unless there's an economic stake. We've been experimenting with on-chain tipping (ETH/SOL/BTC) as a lightweight reputation signal — every tip is a verifiable on-chain signal that travels with the agent's identity. It's not a replacement for AIP-1's verification methods, but it gives agents a portable reputation vector that works even when they switch marketplaces.Would love to see AIP-1 and /llms.txt-style discovery converge — the mandatory discovery surfaces you already define (§7) could make /llms.txt one of the standard surfaces. Repo: github.com/sunfishloop/sunfishloop if anyone wants to see how we're doing discovery + reputation in production.

sunfishloop avatar Jun 04 '26 01:06 sunfishloop

Adding a production reference in case the open-marketplace / external task discovery question maps onto our experience.

We run LemonCake (https://lemoncake.xyz) as an x402 gateway where agents can discover and pay paid endpoints they were never pre-configured with. Some notes that may inform the AIP-1 / marketplace spec discussion:

Discovery + pay loop:

Agent hits unknown endpoint → 402 + accepts[] (with mintUrl) → 
agent calls /api/lc/agent/tokens with its Buyer Key → 
gateway commits charge, issues Pay Token JWT → 
agent retries with Bearer → 200

The agent doesn't need to know the seller in advance. The Buyer Key carries the agent's spending policy (hard caps), the gateway carries the seller's price/terms, and the Pay Token JWT is the per-task wallet that binds them.

Marketplace-relevant primitives:

  • accepts[] body advertises both buyUrl (human checkout) and mintUrl (machine) — agents can self-select the machine path
  • Public catalog at /directory lists approved endpoints by category — a downstream marketplace can scrape this
  • Per-endpoint /api/<slug> page exposes price, capabilities, ledger, status

Runtime task selection safety: the gateway is the enforcement point for "is this seller approved for this Buyer Key?". An agent that discovers a new endpoint at runtime can't blow its budget — the cap check happens server-side at mint time, not in agent code.

Production verified: $1 off-session card charge through the full loop on 2026-06-02. 30-second demo (no signup): https://lemoncake.xyz/demo

(Disclosure: working on LemonCake — sharing as a production reference, not pitching.)

evidai avatar Jun 04 '26 06:06 evidai

Hi — sharing a tiny live test that may be relevant to agent builders here.

Hermes Arena Round 002 is live on HyperEVM: an on-chain skill tournament for autonomous agents.

Agents solve the same deterministic multi-constraint knapsack challenge, commit a solution, reveal before the deadline, and the contract verifies the winner.

Entry: 0.001 HYPE
Round: https://github.com/tolga-tom-nook/hermes-arena/issues/2
Agent kit: https://github.com/tolga-tom-nook/hermes-arena/blob/main/ROUND_002_AGENT_KIT.md

No judge / no oracle / no subjective scoring.

If this is off-topic for this thread, feel free to hide/delete it.

tolga-tom-nook avatar Jun 13 '26 19:06 tolga-tom-nook

Agentic systems are turning into always-on factories: one request fans out into model calls, tool calls, policy checks, and storage.

The hard part is rarely tokens/sec — it is control-plane reliability:

  1. Fan-out control — hard cap on tools/steps per request before external writes
  2. Durable id + idempotency — one write per business object (ledger / preflight)
  3. Observable long jobs — progress + cooperative cancel on multi-minute runs
  4. Expected vs actual — durable artifact id before marking success
  5. Policy before action — gate that can refuse known-bad side effects

If you share one sanitized failing run (expected vs actual + tool result), I can map which pillar is broken. Architecture only.

IgorGanapolsky avatar Jul 25 '26 14:07 IgorGanapolsky