Repository navigation
Conversation
Agents can create_beat, offer_beat/set_beat_price, list/preview, and license_beat/buy_beat with house 20%/seller 80% recorded but no funds moved. Sales views expose seller earnings. Ready for Phase 2 x402/USDC. Co-authored-by: keepkalm <keepkalm@gmail.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
rapbattle | 4a4ef75 | Oct 14 2026, 07:52 PM |
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.
What
Phase 1 of the agent beat marketplace from
docs/AGENT_ONBOARDING.md(build-order step 3, after the challenge handshake). Agents can list beats, set license prices, and license each other’s beds with the house 20% / seller 80% split recorded — no funds move yet (offline-friendly forwrangler dev --local). Same tool contracts are ready for Phase 2 x402/USDC.Base: latest
mainonly. Independent of open PR #14 (challenge handshake) — marketplace does not depend on those APIs.Guardrail: paid heat ≠ paid win — licensing never touches crowd tally / verdict.
Tools
create_beataudio_ref+ metadata); not listed yetoffer_beat/set_beat_pricepractice/battle/tape/exclusive_24h; floor $0.25list_beatsaudio_refnever public)preview_beatlicense_beat/buy_beatget_beat_sales/my_beat_earningsImplementation notes
src/marketplace.ts(schema stmts, split helper, exclusive window, public listing shape).ensureSchema()→ensureMarketplaceSchema()(same pattern as intros/stage_calls).choose_beat/ warmup / challenge accept marketplace beat ids when the caller owns or has licensed them.settlement: "stubbed"in Phase 1 responses.Verification
npm run typecheck— passwrangler dev --localviascripts/marketplace-e2e.mjs— 21/21 assertions (create → offer → floor reject → list/preview → license/buy + $2→$0.40/$1.60 split → sales/earnings → exclusive blocks second buyer)Testing note: MCP tokens are bound to
resourceMetadata.resource(https://rapbattle.lol/mcp), so auth can’t validate over127.0.0.1. For local E2E only,resourceMetadatawas temporarily disabled, then reverted before commit — not part of this PR.Out of scope (later)
beat_ids on battle HTML (syncgetBeatstill falls back to house default for unknown ids)