openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

[Tiny Place] Identity marketplace is buyer-only: no list-for-sale or accept/reject-offer path

Open M3gA-Mind opened this issue 4 months ago • 2 comments

Part of #4776 (§9 Trading / Identities marketplace). Audited vs upstream/main@3cca4f3f3 — code-level, read-only.

Summary

The desktop app's identity marketplace supports only buyer-side actions. A user can browse listings, buy a listing, bid on an auction, and make an offer on a @handle — but there is no path to sell (list one's own handle for sale / create a listing) and no path to accept/reject an offer or bid. The gap exists at every layer (frontend client, core handler, and the vendored SDK), so it is not merely an unwired UI.

This blocks two §9 items: "Sell / list a handle for sale" and "Accept / reject offer" (and the checkbox "Sell / list flow works").

Evidence (what exists — buyer side only)

Frontend app/src/lib/agentworld/invokeApiClient.ts marketplace object (lines ~1759–1834) exposes only: listIdentities, identityFloor, recent, identitySaleHistory, listBids, listOffers, buyIdentity, bid, offer (+ product methods). No createListing / sellIdentity / acceptOffer / rejectOffer.

Core src/openhuman/tinyplace/manifest.rs marketplace handlers (all present): buy_identity (959), bid (1087), offer (1137), list_identities (472), identity_floor (419), list_offers, list_bids, recent, identity_sale_history. No accept_offer/reject_offer/create_listing/sell handler (the only *_accept is handle_tinyplace_contacts_accept, unrelated).

Vendored SDK vendor/tinyplace/sdk/rust/src/api/marketplace.rs public API: identity_floor, identity_sale_history, list_bids, list_identities, list_offers, recent, buy_product, buy_identity_listing, place_bid_with_payment, create_offer_with_payment, browse_marketplace, categories, featured, get_product, list_product_reviews, list_products. No create-listing or accept/reject-offer method (escrow's accept and conversations' reject_member are different domains).

Frontend UI app/src/agentworld/pages/IdentitiesSection.tsx renders listings with buy (708), bid (752), offer (753); it has no "list for sale" / "accept offer" control.

Expected vs actual

  • Expected: a seller can list a @handle for sale and accept/reject incoming offers/bids from the desktop app.
  • Actual: no such capability exists in-app; offers/bids are signed commitments that "settle on acceptance" (manifest.rs:1134), but the acceptance step has no client/core/SDK entry point.

Proposed fix (not implemented in this audit)

Needs a full-stack add: SDK create_offer/listing + accept_offer/reject_offer (or accept_bid) methods → core handle_tinyplace_marketplace_* handlers → invokeApiClient.ts methods → IdentitiesSection seller UI. If selling is intentionally web-only (tiny.place), that scoping decision should be documented and the §9 checkboxes marked N/A rather than pending.

Notes

  • Related closed issue #4196 covered only the Buy button (now working); it did not cover the seller side.
  • Epic #4190 lists "buy/sell identity flows" generically but has no open sub-issue for the seller-side gap.

M3gA-Mind avatar Jul 15 '26 17:07 M3gA-Mind

BLOCKED — the seller-side contract does not exist in the pinned SDK. Investigated; recording findings so this is not re-attempted.

What is missing: the create-listing and accept/reject-offer methods do not exist in the vendor/tinyplace SDK at all — not in the SDK, not in core, not in the frontend. There is nothing to wire to. vendor/tinyplace is a pinned git submodule (gitlink 160000 → github.com/tinyhumansai/tiny.place); openhuman can only bump the pointer, never add SDK surface.

Important contrast — this is NOT the same as #4929. They were checked against each other and they differ:

Issue SDK method Diagnosis
#4929 handle transfer registry.transfer exists (registry.rs:254) merely unwired into core/frontend — fixable in-repo, no submodule bump
#4920 (this) create-listing / accept-reject-offer do not exist missing contract — blocked upstream

So despite looking like siblings, they need different fixes. #4929 is being picked up as a wiring gap.

To unblock this one:

  1. tiny.place — add seller endpoints (create/priced-list an identity, accept/reject offer/bid, or an escrow-settlement link on offers); release.
  2. openhuman — bump the vendor/tinyplace pointer, then wire core handlers → invokeApiClient.ts → IdentitiesSection.tsx seller UI.

Alternative: if selling is intentionally web-only, the §9 checkboxes should be marked N/A — the issue's own "Proposed fix" note hints at this. That is a maintainer scoping decision.

No branch, no PR, no UI manufactured — building a seller flow against a non-existent contract would produce a form that cannot transact. Audit tracker: #4776.

M3gA-Mind avatar Jul 16 '26 14:07 M3gA-Mind

Resolved as web-only by design in #5193.

The tiny.place backend exposes no seller routes and the vendored Rust SDK (vendor/tinyplace/sdk/rust/src/api/marketplace.rs) is explicitly a buyer-side compatibility wrapper, so listing a handle and accepting/rejecting offers stays on the tiny.place web app. Rather than build a full seller stack against non-existent backend routes, #5193:

  • adds a Trading-tab pointer note in IdentitiesSection.tsx that opens https://tiny.place/identities via the existing openUrl helper (mirrors the X402ConfirmDialog /fund precedent), so a would-be seller is no longer left at a dead end;
  • records the web-only scope in the IdentitiesSection.tsx header docstring and in src/openhuman/tinyplace/mod.rs.

Corresponding epic #4776 §9 items are being marked N/A (web-only).

CodeGhost21 avatar Jul 24 '26 19:07 CodeGhost21