openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Audit: Tiny Place end-to-end integration — World, Feed, Messages, Ledger, Bounties, Directory, Identities, Profiles

Open Al629176 opened this issue 4 months ago • 14 comments

Summary

Full end-to-end audit of every Tiny Place surface in OpenHuman. Each section below lists every user-facing feature with a pass/fail/untested checkbox. Goal: identify every broken, missing, or unintegrated path so they can be fixed in one coordinated push. Frontend + backend integration must be verified for each item — not just "UI renders" but "data round-trips correctly."

This audit supersedes and extends the existing epic #4190 (which covers known bugs in World/Feed/Identities/Trading/Wallet/Bounties). The sections added here — Messages, Ledger, Directory, Profiles — have had no prior systematic audit.


How to use this issue

For each item, mark:

  • [x] — verified working end-to-end
  • [~] — partially working / known gap
  • [ ] — broken, missing, or untested

Leave a comment with findings per section. Open a sub-issue for each confirmed broken item that doesn't already have one.

Test environment: staging build, signed-in user with a registered handle, connected Solana wallet.


1. World

Feature Status Notes
World renderer loads without error Known broken: #4193 / PR #4213 open
Room navigation (Poker, Court, Office, Home, World)
Avatars / other agents visible in world
Agent enters / exits room
World state syncs with tiny.place relay
Works on macOS, Windows, Linux
  • [ ] World renderer loads on first visit (no "Could not start the world renderer") — #4193
  • [ ] All rooms navigable
  • [ ] Other users/agents visible
  • [ ] Real-time world state sync via relay
  • [ ] No crash on resize or tab switch

2. Feed

Feature Status Notes
View feed posts (own + followed)
Compose and publish a post Own posts fixed: #4072 merged
Delete post (in-app confirmation) window.confirm bug: #4197 / PR #4214 open
Like / react to a post
Reply / thread
Feed sorting (recent, popular) Fixed: #3829 merged
Display name resolution (handle → name)
Images / media in posts
Infinite scroll / pagination
Feed updates in real-time (push)
  • [ ] Compose → publish → appears in feed
  • [ ] Delete uses in-app confirmation modal — #4197
  • [ ] Own posts visible in feed — #4072
  • [ ] Display names resolve correctly (not raw public keys)
  • [ ] Feed sorts correctly
  • [ ] Pagination / infinite scroll works

3. Messages (DMs)

Feature Status Notes
View inbox / conversation list
Open a DM thread
Send a message to another handle
Receive a message (real-time) E2E test merged: #4624
Message status (sent / delivered / read)
E2E encryption (tiny.place Signal ratchet)
Unread count / badge
Search conversations
Send from agent / orchestrator Orchestration ingest: #4425 merged
Block / report sender
Attachments / media
DM to an agent (orchestration ingest) #4425 merged
  • [ ] Send DM → recipient receives in real-time
  • [ ] Inbox unread count updates
  • [ ] E2E encryption round-trip verified
  • [ ] Agent DMs route through orchestration ingest correctly — #4425
  • [ ] 403 not_a_contact error handled gracefully (contact edge required) — PR #4773

4. Ledger

Feature Status Notes
View transaction history
Incoming payments visible
Outgoing payments visible
Bounty payouts visible
Settlement RPC returns correct data Settlement RPC: #3854 merged
Balance reflects ledger state Wallet balance fix: #4218 merged
Filter by asset (USDC, SOL, etc.)
Export / copy transaction ID
Pagination of transaction history
Real-time updates on new tx
  • [ ] Transaction list loads without error
  • [ ] Incoming + outgoing txs both visible
  • [ ] Balance on ledger matches wallet balance
  • [ ] Bounty payouts appear in ledger
  • [ ] Pagination works for accounts with many transactions

5. Bounties

Feature Status Notes
List open bounties
Create a bounty Timeout bug: #4201 / PR #4212 open
Claim a bounty
Bounty completion + payout Success modal: #3824 merged
Autonomous bounty worker (opt-in) #3925 merged
Bounty detail page
Cancel / expire a bounty
Filter bounties (by status, asset)
Bounty history (created / claimed)
  • [ ] Create bounty completes without 30s RPC timeout — #4201
  • [ ] Claim flow works end-to-end and triggers payout
  • [ ] Autonomous bounty worker runs on schedule — #3925
  • [ ] Bounty appears in ledger on payout
  • [ ] Cancel/expire path works

6. Directory

Feature Status Notes
Browse agent/user directory
Search by handle / name
Filter by type (agent, human, org)
View profile from directory entry
Follow from directory
Send DM from directory
Directory data freshness / pagination
Own listing visible in directory
  • [ ] Directory loads and paginates
  • [ ] Search returns correct results
  • [ ] Click through to profile works
  • [ ] Follow / DM actions work from directory
  • [ ] Own handle appears in directory after registration

7. Identities

Feature Status Notes
Register a new handle x402 USDC fix: #4199 / PR #4211 open
Multi-identity: switch active handle #4198 / PR #4216 open
Handle detail page
For-sale / listing status visible in list Regression: tiny.place/#231
Auto-renewal Not built: tiny.place/#211
Bulk handle actions Not built: tiny.place/#211
Handle expiry visible in list tiny.place/#211
Transfer handle
x402 asset support (USDC Solana) #4199
  • [ ] Register handle with USDC Solana mint — #4199
  • [ ] Switch active handle from multi-identity list — #4198
  • [ ] For-sale status visible in handle overview — tiny.place/#231
  • [ ] Handle expiry date visible
  • [ ] Transfer works end-to-end

8. Profiles

Feature Status Notes
View own profile
Edit name / bio / avatar
View another user's profile
Follow / unfollow from profile
Profile shows posts, bounties, identities
Agent profile (via orchestration pairing) PR #4400 merged
Profile visible after tinyplace init onboard
Profile URL / shareable link
  • [ ] Own profile loads and is editable
  • [ ] Name, bio, avatar save and display correctly
  • [ ] Other user profiles viewable
  • [ ] Follow state persists
  • [ ] Agent profiles visible in Brain tab — #4400

9. Trading (Identities marketplace)

Feature Status Notes
Buy a handle PR #4217 open
Sell / list a handle for sale
Make an offer
Accept / reject offer
Wallet balance shown in confirmation #4218 merged
Identity marketplace accessible Broken: tiny.place/#232
Floor price / listings / sales load Backend failing: tiny.place/#232
Trading history in ledger
  • [ ] Buy flow completes successfully — #4217
  • [ ] Sell / list flow works
  • [ ] Wallet balance shown correctly in confirmation — #4218
  • [ ] Identity marketplace accessible — tiny.place/#232
  • [ ] Floor price and listings load from backend

10. Cross-cutting / infrastructure

  • [ ] Tiny Place relay endpoint follows OPENHUMAN_APP_ENV — #4611 merged
  • [ ] Rust SDK vendor up to date — #4560 merged
  • [ ] Pricing displayed matches actual charges — #3825 / PR #4215 open
  • [ ] All sections work on macOS, Windows, Linux desktop
  • [ ] All sections work via web (tinyhumans.ai) — not just desktop app
  • [ ] Auth token / JWT refresh doesn't break any Tiny Place session mid-use
  • [ ] Offline / disconnected state handled gracefully in each section (not silent crash)
  • [ ] Error states (network failure, 403, 404, 500) show user-friendly messages — #4708 pattern

Open PRs to merge before/during audit

PR Section Status
#4211 Identities — x402 USDC Open
#4212 Bounties — RPC timeout Open
#4213 World — renderer Open
#4214 Feed — delete modal Open
#4215 Billing — pricing display Open
#4216 Identities — multi-identity switch Open
#4217 Trading — buy button Open

Definition of done

Every checkbox in every section above is marked [x]. Any item that cannot be fixed in the current sprint is documented in a linked sub-issue with an owner.

Related

  • Tiny Place feature epic: #4190
  • World renderer bug: #4193
  • Feed delete modal: #4197
  • Identity x402 bug: #4199
  • Identity switch: #4198
  • Buy button: #4196
  • Wallet balance: #4202
  • Bounty timeout: #4201
  • Pricing display: #3825
  • Orchestration pairing (agent profiles): PR #4400
  • Handle listing regression: tiny.place/#231
  • Identity marketplace down: tiny.place/#232
  • Backend orchestration migration (relay + ingest): #4729

Al629176 avatar Jul 10 '26 11:07 Al629176

🤖 M3gA-Mind audit pass — Tiny Place end-to-end (CODE-LEVEL)

This is a static CODE-LEVEL audit (read + grep, no running app, no wallet, no relay). It judges wiring: frontend → RPC client → core handler → vendored tiny.place SDK / relay. Items that move funds or need a live relay/wallet are marked needs-runtime — the code path is verified but the data round-trip must still be confirmed on staging with an unlocked Solana wallet.

Method & headline findings

  • RPC surface is complete and symmetric. The frontend calls 151 openhuman.tinyplace_* methods (app/src/lib/agentworld/invokeApiClient.ts); all 151 are registered (src/openhuman/tinyplace/schemas.rs, all_tinyplace_registered_controllers()) and each has a real handle_tinyplace_* impl (src/openhuman/tinyplace/manifest.rs). Zero frontend→core method mismatches, zero dead registrations.
  • Handlers are real, not stubs. Spot-checked + agent-verified: they call client.<domain>.<method> on the vendored SDK (real reqwest/GraphQL against base_url) or http().post_agent_auth(...). The only "empty" returns are deliberate degrade-on-deserialize-error paths (e.g. manifest.rs:3537, 4068) that turn a null relay payload into []. Most write/read handlers gate on require_signer (unlocked wallet).
  • The real gap is the frontend under-wiring the core. Repeatedly, the core + SDK expose a capability (pagination offset, asset filter, search q, block, profile-edit, read-receipts) that no UI control ever calls. So many "broken" items are frontend-only fixes, not backend work.
  • All 8 surfaces are routed (app/src/agentworld/pages/AgentWorld.tsx:155-168).

Legend: [x] wired end-to-end in code · [~] partial / gap · [ ] broken / missing · (needs-runtime) code can't settle it.


1. World

  • [x] Renderer loads / #4193 — fixed in code: GameWorld.ts:46 forces RENDERER_PREFERENCE='webgl' (dodges the CEF WebGPU-adapter hang), :301 runInitWithTimeout races a 10s cap, WorldSection.tsx:55-61 adds a 15s backstop, :88-95 catch→error, :133-142 Retry button. (needs-runtime: whether WebGL actually initializes inside CEF on first visit.)
  • [x] All rooms navigable — ROOM_REGISTRY (poker/court/office/home/outside="World") rooms.ts:455 → WorldSection.tsx:167-178 → world.setRoom (GameWorld.ts:390).
  • [ ] Other users/agents visible — local demo only. spawnAgents (GameWorld.ts:710) invents avatars from hardcoded AGENT_NAMES/AMBIENT_LINES (:114,:132). No data source, no real users.
  • [ ] Real-time world state via relay — none. Zero socket/relay refs in WorldSection/iso/*. updateAgentState (GameWorld.ts:578) is the external-control entry point but is dead code — never called anywhere.
  • [x] No crash on resize / tab switch — ResizeObserver (GameWorld.ts:1007) + unmount cleanup (WorldSection.tsx:97-104, destroy() at :363).

2. Feed

  • [x] Compose → publish → appears — createPost (FeedSection.tsx:266) → onPostCreated=refetchFeed (:769); handler manifest.rs:4690 real.
  • [x] Delete uses in-app modal (#4197) — fixed. No window.confirm remains (only a comment at :740); ConfirmDialog drives post (:854) + comment (:582) delete.
  • [x] Own posts visible (#4072) — homeFeed({includeSelf:true}) (FeedSection.tsx:668) → manifest.rs:3882,3889.
  • [x] Display names resolve — renders author.displayName || author.handle (:431), not raw pubkeys.
  • [~] Feed sorts (#3829) — client-side newest-first only (sortedHomeFeedItems, :92-107); no recent/popular control, no sort param to RPC.
  • [ ] Pagination / infinite scroll — hardcoded limit:50; offset/before supported by handler (manifest.rs:3881) but never sent; no load-more.
  • [x] Like/react + reply/thread — optimistic like/unlike (:710-735) + InlineComments/CommentComposer → real handlers (manifest.rs:4811,4843,4728).
  • [~] Images / media — text-only compose (:261); content_type plumbed in handler (:4665) but no media upload/render UI.
  • [ ] Real-time push — mount-fetch + manual refetch only; streams.rs exists but Feed never subscribes.

3. Messages (DMs)

Structural finding: VISIBLE_TABS = ['dms'] (MessagingSection.tsx:1351) — Inbox / Channels / Groups / Broadcasts panels are fully wired but hidden; the surface renders DMs only, one peer at a time.

  • [~] Inbox / conversation list — inbox_list real (manifest.rs:1539) but panel hidden; DMs have no thread list, just a handle/address input (:1314).
  • [x] Open a DM thread — useDirectMessages (:1035) → messages.list, filter by peer, decrypt; handle→base58 via directory.resolve (:1294).
  • [x] Send to a handle (real Signal ratchet) — signal_send_message (manifest.rs:3298) does X3DH-or-session → signal_session.encrypt → client.messages.send; plaintext never sent on encrypt failure (:3374).
  • [~] Receive real-time — DMs poll-on-action only (refresh on mount/after-send, :1107,:1097). A real WS stream exists (useTinyplaceStream('inbox'), core Socket.IO bridge src/core/socketio.rs) but only feeds the hidden Inbox tab.
  • [ ] Message status (sent/delivered/read) — MessageEnvelope has no status field; messages_acknowledge handler exists (manifest.rs:3545) but is never called by the UI.
  • [x] E2E encryption (Signal double-ratchet) — real Double Ratchet + X3DH in the vendored Rust SDK (vendor/tinyplace/.../signal/ratchet.rs:31,42,96, x3dh.rs:69, MAX_SKIP=1000). signal_store.rs is encrypted-at-rest persistence (ChaCha20). (needs-runtime: full encrypt→relay→decrypt round-trip.)
  • [~] Unread count / badge — inbox_counts real + badge rendered (:913-917) but inside the hidden Inbox panel; DMs tab has none.
  • [ ] Search conversations — none (0 grep hits).
  • [ ] Block / report sender — contacts_block handler exists (manifest.rs:3600) but MessagingSection makes zero contacts.* calls.
  • [ ] Attachments / media — none; single text input (:1200).
  • [ ] 403 not_a_contact handled (PR #4773) — NOT in this branch. 0 grep hits across app/src + core. Send path maps only 404 (missing key bundle) to a friendly message (manifest.rs:3329, :1021-1033). PR #4773 appears un-merged.
  • (needs-runtime) Agent/orchestrator DM ingest (#4425) — not on this UI surface; ingest lives in orchestration/ingest.rs.

4. Ledger

  • [x] Transaction list loads — graphql_ledger_transactions (manifest.rs:4028) builds a real LEDGER_TRANSACTIONS_QUERY (graphql.rs:344); UI fetches {limit:50} on mount (LedgerSection.tsx:320).
  • [~] Incoming + outgoing visible — all txs render as from → to rows (:185-198); no direction filter, no "my wallet" in/out classification.
  • [ ] Balance matches wallet (#4218) — LedgerSection shows no balance at all; wallet_usdc_balance (manifest.rs:701) exists only inside the x402 confirm card. (needs-runtime for parity.)
  • [~] Bounty payouts appear — TypeBadge only styles REGISTRATION/SALE/FEE (:109-117); other types fall through to a neutral badge. (needs-runtime: whether the backend emits bounty payouts as ledger txs.)
  • [ ] Pagination — hardcoded limit:50, explicit TODO(phase-2-follow-up): implement pagination (:319); SDK supports offset/after/before (ledger.rs:65) — unused.
  • [ ] Filter by asset — LedgerListParams.asset plumbed to GraphQL (ledger.rs:83) but no UI control.
  • [ ] Export / copy tx ID — tx ID is plain text (:242); only a "View on chain" explorer link (:212), no copy button.
  • [ ] Real-time on new tx — single useEffect([]) fetch, no poll/stream.

5. Bounties

  • [x] Create w/o 30s timeout (#4201) — fixed. X402_SPEND_TIMEOUT_MS = 120_000 (invokeApiClient.ts:64) applied per-call on bounties.create (:2065); core clamps to [1s,10min]. Escrow path is real: fulfill_payment (payment.rs:380) → prepare_transfer/execute_prepared(confirmed:true) → x402 build_payment_map → settle_retry.
  • [~] Claim end-to-end + payout — submit real (manifest.rs:5088); payout driven by approve/run_council (real, :5244/:5222) but the Approve button is hidden ("admin-only" TODO, BountiesSection.tsx:422) — a non-admin claimant can't drive payout from the UI. (needs-runtime for on-chain escrow release.)
  • [x] Autonomous worker (#3925) — real seeded cron tinyplace_autopilot, hourly Schedule::Every, created disabled/opt-in (cron/seed.rs:225-258); toggle in AgentAccessPanel.tsx:107-115; boot-backfill core/runtime/services.rs:118.
  • (needs-runtime) Bounty appears in ledger on payout — UI surfaces payoutTxSig/escrowAddress (:364-391) but the ledger write is backend behavior.
  • [x] Cancel / expire — bounties.cancel real, signer-gated (manifest.rs:5068); wired for creator on draft/open (:417).
  • [~] List / detail / filter / history — list + inline detail real (:850,:163-174); no status/asset filter and no history view — graphql_bounties supports status/creator/limit/offset (manifest.rs:4180), UI passes none.

6. Directory

DirectorySection.tsx (362 lines) is largely non-interactive — browse + follow only.

  • [x] Browse — graphql.agents() (:88) → real query (manifest.rs:4331).
  • [ ] Search by handle/name — no search box; directory_resolve (real, manifest.rs:146) never called; q param unused.
  • [ ] Filter by type (agent/human/org) — no filter control.
  • [ ] View profile from entry — inert: card onClick only toggles a local selected highlight (:241-247); no route navigation (no useNavigate/Link in file).
  • [x] Follow from directory — follows.follow/unfollow on the card (:211-216).
  • [ ] Send DM from directory — absent; no messaging link/prefill.
  • [ ] Data freshness / pagination — agents() called with no args; handler supports params (manifest.rs:4337), UI sends none.
  • [ ] Own listing after registration — nothing surfaced.

7. Identities

  • [x] Register w/ USDC Solana mint (#4199) — fixed. asset_is_usdc() accepts mainnet+devnet USDC mint addresses (payment.rs:104-108), routes mint→SPL USDC (:123-132); register handler manifest.rs:622-631 → real on-chain fulfill_payment. (needs-runtime for actual settlement.)
  • [x] Switch active handle (#4198) — fixed, lives in Profiles: "Make active" button (ProfilesSection.tsx:364-372) → registry.assignPrimary → real client.registry.assign_primary (manifest.rs:2490).
  • [x] For-sale / listing status (tiny.place/#231) — Status column (IdentitiesSection.tsx:640-649) from real directory.list_identities (manifest.rs:236).
  • [ ] Handle expiry visible (tiny.place/#211) — not rendered anywhere (RegistryTab shows "Updated" only). (upstream not-built.)
  • [ ] Transfer handle — missing. registry_export (manifest.rs:2465) only dumps identity JSON to a <pre> (backup, not transfer); no transfer RPC, no "list my handle for sale" UI.
  • [ ] Auto-renewal / bulk actions (tiny.place/#211) — absent (upstream not-built, expected).
  • [x] x402 USDC Solana support (#4199) — same evidence as register; SOL native also routed (payment.rs:123).

8. Profiles

  • [x] View own profile — via graphql.user(cryptoId) (real, manifest.rs:4570), fallback directory.reverse (:207). (Note: profiles_get/users_get are real handlers with zero UI callers.)
  • [ ] Edit name / bio / avatar — missing. users_update_profile (real, manifest.rs:410) has 0 UI callers app-wide; no form, no avatar upload.
  • [ ] View another user's profile — own-wallet-only (fetchWalletStatus→own cryptoId); no route/param for an arbitrary user.
  • [~] Follow / unfollow from profile — follows_* real but wired only in Directory/Feed; ProfilesSection reads follows.stats only (:262), no follow button.
  • [~] Shows posts / bounties / identities — renders identities/skills/attestations/followStats, but NOT posts/bounties; profiles_activity (real, manifest.rs:319) never called.
  • [~] Agent profile via orchestration pairing (#4400) — Human/Agent badge rendered (:295-304) but agent_card handlers unwired here. (needs-runtime for the pairing path.)
  • [x] Profile visible after tinyplace init — no onboarding gate; states wallet_locked / no_handle / ok (:456-491).
  • [ ] Profile URL / shareable link — none.

Confirmed broken / missing — candidate sub-issues (no existing issue; for manager review)

World

  1. World shows fake/local demo agents only — no real users; updateAgentState (GameWorld.ts:578) is dead code, never called. No relay/real-time sync path exists for the world surface.

Feed 2. Feed has no pagination / infinite scroll (hardcoded limit:50; offset/before supported by core, never sent). 3. Feed has no real-time push (streams.rs unused by Feed). 4. Feed posts have no media/images (composer text-only; content_type plumbed but no UI).

Messages 5. DMs-only surface: Inbox list, unread badge, and the real inbox WS stream are implemented but hidden (VISIBLE_TABS=['dms'], MessagingSection.tsx:1351). No DM conversation list — one peer at a time. 6. No message status / read receipts (messages_acknowledge never called from UI). 7. No block/report (contacts_* handlers exist; UI makes zero contacts.* calls). 8. No attachments/media in DMs. 9. No conversation search. 10. 403 not_a_contact not handled gracefully — PR #4773 not merged into this branch (only 404 missing-bundle is mapped).

Ledger 11. No wallet balance shown on the ledger surface (balance lives only in the x402 confirm card). 12. No pagination (explicit TODO), no asset filter, no direction/in-out filter, no copy/export of tx ID, no real-time updates — all supported by the SDK, none wired.

Bounties 13. Approve/award (payout trigger) is hidden as "admin-only" (BountiesSection.tsx:422) — a claimant can't drive payout from the UI. No status/asset filter or history view.

Directory 14. DirectorySection is largely inert: no search box, no type filter, card click doesn't navigate to a profile, no "Send DM", no pagination.

Identities 15. No transfer-handle path and no "list my handle for sale" UI (export is JSON backup only).

Profiles 16. Edit profile (name/bio/avatar) not wired — users_update_profile has zero UI callers; no avatar upload. 17. Cannot view another user's profile (own-wallet-only); no follow button on the profile; posts/bounties not shown (profiles_activity never called); no shareable profile link.

Cross-cutting 18. Dead-but-implemented core relays (registered + real impl, but no UI caller): profiles_get/activity/groups/broadcasts/attestations/agent_card, users_get/update_profile, users_*_email_verification, graphql_agent_card, directory_resolve, plus the hidden inbox_* family. Either surface them or mark them internal.

Needs runtime verification (staging + unlocked Solana wallet)

  • World — whether WebGL actually initializes inside CEF/Chromium on a real first visit (#4193 code paths are correct; adapter behavior is runtime).
  • Feed / all — live relay GraphQL shapes match the SDK types; mutations (post/like/comment/includeSelf) persist server-side.
  • Messages — full Signal encrypt→relay→decrypt round-trip; inbox WS stream delivery; agent/orchestrator DM ingest (#4425).
  • Ledger — bounty payouts materialize as ledger tx types; ledger balance ↔ wallet balance parity (#4218).
  • Bounties — full submit→approve/council→on-chain escrow release→ledger emission (only the client legs are statically verifiable; they are real).
  • Identities — actual on-chain USDC settlement for register/buy (#4199); marketplace availability (tiny.place/#232).
  • Profiles — #4400 agent-card orchestration-pairing end-to-end.

Static code audit by M3gA-Mind (W2). Runtime e2e on staging with a wallet is still required for every needs-runtime item above. Sub-issues listed but not opened — flagged for manager review.

M3gA-Mind avatar Jul 13 '26 13:07 M3gA-Mind

Audit findings — §7 Identities (code-level, vs upstream/main 3cca4f3f3)

W4 read-only trace UI→apiClient→openhuman.tinyplace_*→manifest.rs→SDK (vendor/tinyplace/sdk/rust/). Every UI-called registry_*/marketplace_*/directory_* RPC has a handler in manifest.rs and is registered in schemas.rs — no missing-handler defects. Gaps are UI-layer or SDK-not-bridged. x402 spend flows are untestable-headless (every payment handler short-circuits when the wallet signer is None); verdicts are static-trace only.

Table features

Feature Verdict Evidence (file:line + RPC)
Register a new handle (x402 USDC) [x] IdentitiesSection.tsx:380 registry.register({confirmed:true}) → tinyplace_registry_register → manifest.rs:548 (challenge→fulfill_payment :622→resubmit)
Multi-identity: switch active handle [x] ProfilesSection.tsx:248 registry.assignPrimary → tinyplace_registry_assign_primary → manifest.rs:2477 → SDK registry.rs:284 (#4198)
Handle detail page [~] registry.get (invokeApiClient.ts:1840) is availability-only; no dedicated per-handle detail route — detail == ProfileCard export in ProfilesSection
For-sale / listing status visible in list [~] Status badge IdentitiesSection.tsx:640-648 + Trading "Auction" badge :802-806; split across Registry/Trading tabs, no unified for-sale flag (tiny.place/#231 not fully closed)
Auto-renewal [ ] Not built. SDK registry.rs:232 renew + autoRenew?/lastRenewalTx types exist but un-wired (no handler, no UI) — tiny.place/#211
Bulk handle actions [ ] Not built. No bulk-select UI or multi-target RPC anywhere — tiny.place/#211
Handle expiry visible in list [ ] Data present (Identity.expires_at SDK types/identity.rs:35; expiresAt on Identity/IdentityListing invokeApiClient.ts:308/463) but never rendered — table cols are Handle/Seller/Updated/Status/Price only (:623-627)
Transfer handle [ ] Broken/missing — SDK registry.rs:254 transfer() exists; no handle_tinyplace_registry_transfer, no apiClient method, no UI. Un-wired end-to-end → sub-issue
x402 asset support (USDC Solana) [x] Challenge network/asset/mint threaded: ensure_cluster_matches manifest.rs:616, bid/offer send amount/asset/network :1093-1099/1143-1149; UI threads listing.price.network IdentitiesSection.tsx:871-873

Checkboxes

  • [x] Register handle with USDC Solana mint (#4199) — wired (manifest.rs:614-640); settlement untestable-headless (needs staging + unlocked signer).
  • [x] Switch active handle from multi-identity list (#4198) — ProfilesSection.tsx:345-371 → assignPrimary → manifest.rs:2477.
  • [~] For-sale status visible in handle overview (tiny.place/#231) — partial; status/auction badges exist but no unified overview.
  • [ ] Handle expiry date visible — expiresAt available end-to-end, never surfaced in any Identities/Profiles view.
  • [ ] Transfer works end-to-end — SDK-only; no core/apiClient/UI bridge (sub-issue filed).

Counts: [x] 4 · [~] 3 · [ ] 4 (of which Transfer is a filed sub-issue; auto-renewal/bulk/expiry track under tiny.place/#211).

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

Audit findings — §9 Trading (Identities marketplace) (code-level, vs upstream/main 3cca4f3f3)

Data path traced: IdentitiesSection UI → apiClient.marketplace|graphql (invokeApiClient.ts) → openhuman.tinyplace_* → manifest.rs handler → SDK marketplace.rs.

Feature / checkbox Status Evidence
Buy a handle — #4217 [x] IdentitiesSection.tsx:708 marketplace.buyIdentity → invokeApiClient.ts:1807 tinyplace_marketplace_buy_identity → manifest.rs:959 — proper x402: challenge → fulfill_payment (1015) → settle_retry (1032), with Hard/Exhausted error messages
Sell / list a handle for sale [ ] No path anywhere — no method in invokeApiClient.ts marketplace, no create_listing/sell handler in manifest.rs, none in SDK marketplace.rs. Filed #4920
Make an offer [x] IdentitiesSection.tsx:753 .offer() → invokeApiClient.ts:1824 tinyplace_marketplace_offer → manifest.rs:1137 create_offer_with_payment (signed x402 commitment — correctly NO fulfill_payment; the pre-flagged concern is a non-issue)
Place a bid [x] IdentitiesSection.tsx:752 .bid() → invokeApiClient.ts:1816 tinyplace_marketplace_bid → manifest.rs:1087 place_bid_with_payment. [~] edge: a 402-deposit-required response is surfaced as an error (no confirm-before-spend), unlike buy
Accept / reject offer [ ] No path anywhere (frontend/core/SDK) — offers "settle on acceptance" (manifest.rs:1134) but there is no acceptance entry point. Filed #4920
Wallet balance shown in confirmation — #4218 [x] manifest.rs:1000-1006 returns walletBalance/walletAddress on confirmed:false; useX402Buy.ts:71-74 probes + carries balance into the dialog
Identity marketplace accessible — tiny.place/#232 [x] app-side IdentitiesSection.tsx:70,91 graphql.identityListings → invokeApiClient.ts:2291 tinyplace_graphql_identity_listings → manifest.rs:4417; also list_identities (manifest.rs:472). Rendered in the listings table (802+). Backend tiny.place/#232 is a server-side dep — untestable-headless
Floor price / listings / sales load [x] identity_floor (manifest.rs:419), list_identities (472), recent (invokeApiClient.ts:1772), identity_sale_history (1775) — all SDK-wired, not stubs
Trading history in ledger [~] Recent sales via marketplace.recent() (IdentitiesSection.tsx:218) + identitySaleHistory; the Ledger-section rendering is W2's scope — from §9 the read RPCs exist

§9 counts: [x] 6 · [~] 1 (+bid deposit edge) · [ ] 2 (both in #4920).


Audit findings — §10 Cross-cutting / infrastructure (code-level, vs upstream/main 3cca4f3f3)

Checkbox Status Evidence
Relay endpoint follows OPENHUMAN_APP_ENV — #4611 [x] state.rs:91 resolve_base_url (explicit override wins) → :99 default_base_url_for_app_env maps staging→staging-api.tiny.place (:24), else prod→api.tiny.place (:21); unit-tested (state.rs tests)
Rust SDK vendor up to date — #4560 [x] Vendored tinyplace crate v2.0.2 (vendor/tinyplace/sdk/rust/Cargo.toml:3), path-pinned (Cargo.toml:401). "Latest upstream" is untestable-headless
Pricing displayed matches actual charges — #3825 / #4215 [x] Confirm dialog shows the backend 402 challenge amount (manifest.rs:1000-1006); fulfill_payment pays that same challenge (:1015) → displayed == charged
Works on macOS / Windows / Linux desktop [~] untestable-headless No platform-gated code in the Tiny Place path (uniform RPC via relay_http_rpc); needs live desktop runs to confirm
Works via web (tinyhumans.ai), not just desktop [~] untestable-headless coreRpcClient supports non-Tauri transports (_activeTransport tunnel/cloud + direct fetch fallback, coreRpcClient.ts:682), but Tiny Place RPC relays through a local openhuman-core; pure web with no reachable core can't round-trip. Architectural, needs live web verification
Auth token / JWT refresh doesn't break session [x] N/A No frontend JWT — identity is the wallet signer, resolved server-side per request (invokeApiClient header comment; buy_identity uses signer.agent_id()). coreRpcClient classifies 401→auth_expired. No mid-session token to expire
Offline / disconnected handled gracefully [~] WS surfaces disconnected/failed status (no silent crash) — useTinyplaceStream.ts:23, streams.rs:189,201 — but no auto-reconnect by design (streams.rs:16 "No auto-reconnect in v1"). Known limitation
Error states (network/403/404/500) user-friendly — #4708 [~] Each section renders an inline error component with state.message (e.g. MarketplaceSection.tsx); coreRpcClient.classifyRpcError maps 401/429/etc. and captures httpStatus. Not a silent crash, but some messages are raw String(err) — humanization partial

§10 counts: [x] 4 · [~] 4 · [ ] 0. No new sub-issue (the [~] items are known/documented limitations or untestable-headless, not code defects).


Auditor: W5 · Sub-issue filed: #4920 (seller-side identity marketplace missing). No code changed.

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

Audit findings — §8 Profiles (code-level, vs upstream/main 3cca4f3f3)

W4 read-only trace. Root finding: ProfilesSection.tsx (495 L) is a display-only "your own wallet" card mounted at the fixed route /agent-world/profiles (AgentWorld.tsx:176, no :username). It calls only graphql.user (:115), directory.reverse fallback (:142), follows.stats (:263), registry.export (:230), registry.assignPrimary (:248). Every richer profile RPC (users.updateProfile, profiles.get/activity/groups/broadcasts/agent_card, follows.follow/unfollow) is fully plumbed to the SDK with a registered handler, but has no UI caller in this section — so the gaps are UI-layer, not missing handlers. Live renders are untestable-headless.

Table features

Feature Verdict Evidence (file:line + RPC)
View own profile [x] ProfilesSection.tsx:100 walletStatus→:115 graphql.user → tinyplace_graphql_user manifest.rs:4564 (fallback directory.reverse :142)
Edit name / bio / avatar [ ] No edit form. users.updateProfile (invokeApiClient.ts:1746 → tinyplace_users_update_profile manifest.rs:400 → SDK users.rs:35) has zero production callers (only invokeApiClient.test.ts) → sub-issue
View another user's profile [ ] Section hard-wired to own wallet (:100). profiles.get/graphql.profile (invokeApiClient.ts:1728/2278) plumbed but unused — no username input/route → sub-issue
Follow / unfollow from profile [ ] here ProfilesSection only reads follows.stats (:263); no follow button / is-following load. Follow/unfollow do round-trip but from DirectorySection.tsx:211/216 + FeedSection.tsx:686/688 → manifest.rs:1801/1811
Profile shows posts, bounties, identities [~] Identities [x] (:345-385) + attestations/tags/follow-counts; posts & bounties NOT rendered (profiles.activity/groups invokeApiClient.ts:1730/1732 never called here)
Agent profile (via orchestration pairing) #4400 [ ] profiles.agentCard/graphql.agentCard (invokeApiClient.ts:1739/2290 → manifest.rs:372) plumbed, zero UI callers; Brain tabs are welcome/graph/goals/sources/sync/subconscious only (Brain.tsx:36) — tinyplace moved to /orchestration → sub-issue
Profile visible after tinyplace init onboard [~] No tinyplace_init RPC exists; profile appears after handle registration (registry.register manifest.rs:548); ProfilesSection reflects it on reloadKey, else shows "Register one in the Identities tab" (:464-471)
Profile URL / shareable link [ ] Fixed route /agent-world/profiles, no :username deep-link; no copy/share code in ProfilesSection. "Export Identity" (:416) dumps JSON, not a link

Checkboxes

  • [ ] Own profile loads and is editable — loads [x] (:115), not editable (no form; updateProfile unused).
  • [ ] Name, bio, avatar save and display correctly — display works (:206/:276/:311), no save UI → save never round-trips.
  • [ ] Other user profiles viewable — no other-user view path in this section.
  • [x] Follow state persists — via viewerIsFollowing (DirectorySection.tsx:127) + follow/unfollow manifest.rs:1801/1811 ↔ SDK follows.rs:25/35; not surfaced in Profiles. Live persistence untestable-headless.
  • [ ] Agent profiles visible in Brain tab (#4400) — agent-card RPCs plumbed, no UI caller, no Brain tab.

Counts: [x] 2 · [~] 2 · [ ] 6. Three UI-layer gaps filed as sub-issues (profile editing, other-user/agent-card viewer, — see below). Posts/bounties-on-profile, follow-from-profile, and shareable-link are noted but folded into the viewer sub-issue as the same root cause (ProfilesSection is a minimal own-wallet card).

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

Audit findings — Bounties (§5) & Directory (§6) (code-level, vs upstream/main 3cca4f3f3)

W3. Traced each checkbox UI→apiClient→invokeApiClient.ts→openhuman.tinyplace_*→manifest.rs→SDK. [x] full round-trip · [~] partial/gap · [ ] broken/missing. "untestable-headless" = needs live staging + funded wallet to confirm behavior.

§5 Bounties

Issue checkboxes

Item Verdict Evidence
Create bounty completes without 30s RPC timeout — #4201 [x] Fixed. invokeApiClient.ts:64 X402_SPEND_TIMEOUT_MS=120_000 applied to create at :2065; handler manifest.rs:4943 = x402 confirm→fulfill_payment→settle_retry (:5034,:5049). #4201 CLOSED.
Claim flow works e2e and triggers payout [x] Submit BountiesSection.tsx:684 → tinyplace_bounties_submit (manifest.rs:5088); payout via Run Council :872 → tinyplace_bounties_run_council (manifest.rs:5222); payoutTxSig shown BountiesSection.tsx:373.
Autonomous bounty worker runs on schedule — #3925 [x] Seeded cron tinyplace_autopilot, hourly, created disabled/opt-in, runs tinyplace_agent (cron/seed.rs:225-258); Settings toggle flips enabled (AgentAccessPanel.tsx:110-116).
Bounty appears in ledger on payout [~] untestable-headless. payoutTxSig recorded on the bounty (BountiesSection.tsx:373); whether it surfaces in Ledger is §4 (W2) + needs a live payout.
Cancel/expire path works [~] Cancel wired (BountiesSection.tsx:858 → tinyplace_bounties_cancel manifest.rs:5068). No client "expire" action (deadline expiry is server/relay-driven). Minor: cancel & runCouncil failures are swallowed (empty catch :860,:874) — no user feedback despite the "surfaced inline" comment.

Feature-table rows

Feature Verdict Evidence
List open bounties [x] bounties.list → tinyplace_bounties_list (manifest.rs:4905)
Create a bounty [x] see above
Claim a bounty [x] submit path
Bounty completion + payout [x] run_council + payout tx; #3824 success toast (BountiesSection.tsx:955)
Autonomous bounty worker (opt-in) [x] see above
Bounty detail page [x] inline expand loads get+list_comments (BountiesSection.tsx:157-160)
Cancel / expire a bounty [~] cancel yes; expire server-side
Filter bounties (by status, asset) [ ] No filter UI; list() called with no params (BountiesSection.tsx:840). Missing feature (broad completion tracked in #4190).
Bounty history (created / claimed) [ ] No history / "my bounties" view. Missing feature (#4190).
(cross-cut) i18n [~] Entire section is hardcoded English (BountiesSection.tsx:953).

§5 counts — checkboxes: 3 [x], 2 [~], 0 broken · rows: 6 [x], 2 [~], 2 [ ] (both "missing feature", not defects; no sub-issue filed — folded into #4190).


§6 Directory

The Directory (DirectorySection.tsx) is a read-only browse grid: data loads and Follow works, but the audited interactions (search, pagination, click-through to profile, DM) are not implemented.

Issue checkboxes

Item Verdict Evidence
Directory loads and paginates [~] Loads via graphql.agents() (DirectorySection.tsx:88 → tinyplace_graphql_agents manifest.rs:4331, graceful degrade :4360). No pagination — called with no limit/cursor, flat grid renders the whole list (:351).
Search returns correct results [ ] No search input / filter anywhere in the section (fetches all, renders all). Missing.
Click through to profile works [ ] Dead path. Card is role="button" but onClick={() => setSelected(s => !s)} (:241) only toggles a border/ring style — nothing opens a profile. → sub-issue below.
Follow / DM actions work from directory [~] Follow/unfollow wired (:211,:216 → tinyplace_follows_follow/unfollow manifest.rs:1801,1811). DM not present — no message action.
Own handle appears after registration [~] untestable-headless. isSelf is handled (:174, viewer id = Solana address :117-125); actual appearance is backend/data-dependent.

Feature-table rows

Feature Verdict Evidence
Browse agent/user directory [x] graphql.agents() round-trips (manifest.rs:4331)
Search by handle / name [ ] no UI
Filter by type (agent, human, org) [ ] no UI
View profile from directory entry [ ] no navigation (:241)
Follow from directory [x] :211,:216
Send DM from directory [ ] no UI
Directory data freshness / pagination [~] no pagination
Own listing visible in directory [~] isSelf handled, data-dependent

Good: 402 payment_required and wallet-locked states are handled gracefully (DirectorySection.tsx:316,:328).

§6 counts — checkboxes: 0 [x], 3 [~], 2 [ ] · rows: 2 [x], 2 [~], 4 [ ].

Sub-issue filed: Directory browse-only gaps (click-through/search/pagination/DM) → #4927. No existing dup found (#3853 is a design-port; Directory had no prior audit).

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

Audit findings — World (code-level, vs upstream/main 3cca4f3f3)

Traced UI → apiClient → invokeApiClient.ts → openhuman.tinyplace_* → manifest.rs → vendored SDK. Headline: the World is a fully self-contained PixiJS/WebGL procedural simulation — it makes zero backend/relay round-trips. Grep over app/src/agentworld/iso/ and WorldSection.tsx finds no apiClient/coreRpcClient/relay_http_rpc/WebSocket/useTinyplaceStream reference.

§1 checkboxes

Item Status Evidence
World renderer loads on first visit (no "Could not start the world renderer") — #4193 [x] Fix for #4193 (CLOSED) present: iso/GameWorld.ts:46 forces WebGL (CEF/WebGPU hang guard), :49 + :301-329 race init against a 10s timeout → RendererInitError :52-57; WorldSection.tsx:94 in-app error copy + Retry button :133-142, plus a 15s boot backstop :16,55-61. No RPC.
All rooms navigable (Poker, Court, Office, Home, World) [x] iso/rooms.ts:455-486 ROOM_REGISTRY defines all 5; GameWorld.ts:390-436 setRoom; WorldSection.tsx:114-126 handler + button grid :167-177. Purely local.
Other users/agents visible [~] Agents render but are client-side NPCs: GameWorld.ts:710-742 spawnAgents seeds from hardcoded names/tints/lines :114-145; iso/Agent.ts has no network source. updateAgentState :578-611 is documented as an "external control" entry point but no relay/RPC ever calls it. Visible, but not real/networked participants.
Real-time world state sync via relay [ ] No backend integration exists. Grep for apiClient/RPC/WS/stream/tinyplace in iso/ and WorldSection.tsx returns nothing; WorldSection.tsx:1-5 imports only React/i18n/../iso. The relay hook hooks/useTinyplaceStream.ts exists but is consumed only by Messaging. → #4922.
No crash on resize or tab switch [x] GameWorld.ts:999-1012 ResizeObserver → applySize :1014-1036 guards null-app / non-positive dims; destroy() :363-374 nulls the observer + this.app before app.destroy; React cleanup WorldSection.tsx:97-104. Minor: no visibilitychange pause on tab hide (throttled rAF, no crash path) — cosmetic only.

Feature-table extras: "Agent enters/exits room" [~] (local setRoom respawn only, GameWorld.ts:390-436); "Works on macOS/Windows/Linux" untestable-headless (WebGL/Pixi is cross-platform; CEF WebGL preference chosen at GameWorld.ts:41-46; per-OS needs a live desktop build).

World counts: [x] 3 · [~] 2 · [ ] 1 (+1 untestable-headless).


Audit findings — Feed (code-level, vs upstream/main 3cca4f3f3)

Feed write/read paths are fully wired to the real vendored SDK (vendor/tinyplace/sdk/rust/src/api/{feeds,follows,graphql}.rs) — no todo!/mock/stub in any handler. Identity is signer-resolved server-side (anti-spoof). Gaps are in pagination, media, and real-time.

§2 checkboxes

Item Status Evidence
Compose → publish → appears in feed [x] FeedSection.tsx:250-261 submit() → apiClient.feeds.createPost → openhuman.tinyplace_feeds_create_post (manifest.rs:4659 → SDK feeds::create_post feeds.rs:79); on success onPostCreated :261 = refetchFeed :841 reloads homeFeed() :745.
Delete uses in-app confirmation modal — #4197 [x] #4197 CLOSED. ConfirmDialog imported FeedSection.tsx:34, used for post :845-850 and comment :573-578; comment at :730 explicitly "replaces the native window.confirm — #4197". No window.confirm anywhere in the file.
Own posts visible in feed — #4072 [x] #4072 MERGED. apiClient.graphql.homeFeed({ limit: 50, includeSelf: true }) FeedSection.tsx:658,745,760 → openhuman.tinyplace_graphql_home_feed (manifest.rs:3878 → SDK graphql::home_feed). includeSelf plumbs through.
Display names resolve correctly (not raw public keys) [x] Server-side: GraphQL author { … displayName … } (SDK graphql.rs:591) → FeedAuthor.display_name (types/graphql.rs:11-22). FE renders `post.author.displayName
Feed sorts correctly [x] #3833 CLOSED. FE sorts newest-first: sortedHomeFeedItems() by createdAt desc FeedSection.tsx:82-89, applied :661. Minor [~]: server score/reason ranking (SDK types/graphql.rs:109-115) is surfaced only as a "Recommended" badge :469; ordering is recency and there is no recent/popular selector — enhancement, not a defect.
Pagination / infinite scroll works [ ] Single fixed fetch apiClient.graphql.homeFeed({ limit: 50 }) FeedSection.tsx:658 — no offset follow-up, no load-more, no infinite scroll. Server type GqlHomeFeedResult { items, count } (types/graphql.rs:117-124) returns no cursor / hasNextPage; limit/offset exist on the wire (manifest.rs:3880-3881) but are unused by the UI. → #4923.

Feature-table extras:

  • View feed posts (own + followed) [x] — homeFeed({includeSelf:true}) (above); follows_feed wired (manifest.rs:1875 → SDK follows::feed).
  • Like / react [x] — FeedSection.tsx:712-713 → tinyplace_feeds_like_post/_unlike_post (manifest.rs:4811/4843).
  • Reply / thread [x] — FeedSection.tsx:182 addComment → tinyplace_feeds_add_comment (manifest.rs:4728); comments render :546+.
  • Images / media in posts [ ] — not built end-to-end: SDK GqlPost (types/graphql.rs:26-46) has no image/media/attachment field; post body renders as plain text FeedSection.tsx:462; only author avatars are <img> :410. → #4924.
  • Feed updates in real-time (push) [ ] — no feed WS topic: streams.rs:36-39 StreamKind is only Inbox/Conversation; SDK feeds::stream (feeds.rs:238) is never wired into StreamManager. Refresh is explicit-load() only. (Streams also cap at 5, no auto-reconnect — streams.rs:16,29.) → #4926.

Feed counts: [x] 8 · [~] 0 · [ ] 3.


Audited by W1 against upstream/main 3cca4f3f3 (read-only). Sub-issues filed: World sync #4922, Feed pagination #4923, Feed media #4924, Feed real-time #4926; all cross-ref Part of #4776 (Tiny Place epic #4190).

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

Audit findings — §3 Messages (DMs) (code-level, vs upstream/main 3cca4f3f3)

Path traced UI → apiClient (invokeApiClient.ts) → openhuman.tinyplace_* → manifest.rs handler → SDK. DMs are live (E2E_MESSAGING_ENABLED = true, MessagingSection.tsx:46).

Legend: [x] wired · [~] partial/gap · [ ] broken/missing · (headless) = code-complete, needs live wallet/peer to fully verify.

Feature Verdict Evidence (file:line + RPC)
View inbox / conversation list [~] Inbox list wired: apiClient.inbox.list (MessagingSection.tsx:869) → tinyplace_inbox_list (manifest.rs:1539). But the DM panel has no conversation list — you open a DM only by typing a handle (handleOpenDm :1276).
Open a DM thread [x] handleOpenDm resolves handle via apiClient.directory.resolve (:1294) → ActiveDmView (:1265). base58 pubkeys open directly (:1287).
Send a message to another handle [x] apiClient.signal.sendMessage({recipient,plaintext}) (:1083) → tinyplace_signal_send_message (manifest.rs:3298), full X3DH/Signal encrypt.
Receive a message (real-time) [~] Inbox stream is live (useTinyplaceStream('inbox') :874 → version bump → refetch :893-898). The open DM thread is NOT live — useDirectMessages refreshes only on mount/after-send (:1041-1109), no stream. E2E test #4624. → sub-issue.
Message status (sent / delivered / read) [ ] DM view shows an optimistic "You" bubble only (:1086-1096); no delivered/read receipts.
E2E encryption (Signal ratchet) [x] (headless) SignalSession encrypt on send (manifest.rs:3298), decrypt via apiClient.signal.decryptMessage (:1050) → tinyplace_signal_decrypt_message (manifest.rs:3494). Round-trip needs a live peer; E2E test #4624 exists.
Unread count / badge [x] apiClient.inbox.counts (:870) → tinyplace_inbox_counts (manifest.rs:1521); badge :913; refetched on stream event :893-898. Caveat: streams.rs has no auto-reconnect, so after a WS drop the count silently stops updating until remount.
Search conversations [ ] No search UI in MessagingSection (only a per-peer message filter :1046).
Send from agent / orchestrator (#4425) [x] Orchestration ingest wired via bus subscriber orchestration::ingest (orchestration/bus.rs:61,84 → ingest_stream_message); ingest.rs decrypt→classify→persist→ack.
Block / report sender [~] RPCs exist — apiClient.contacts.block (invokeApiClient.ts:1965 → tinyplace_contacts_block) — but not wired into the messaging UI (MessagingSection never calls apiClient.contacts.*).
Attachments / media [ ] DM compose is text-only (<input type="text"> :1200, plaintext send). No attachment path.
DM to an agent (orchestration ingest, #4425) [x] ingest.rs classify_v1/v2 + persist_message (:221/:272/:470); bus subscriber above.

Checkbox summary

  • [~] Send DM → recipient receives in real-time — inbox-level yes; open DM thread not live (no stream in useDirectMessages).
  • [x] Inbox unread count updates — stream→refetch; caveat: no WS auto-reconnect (streams.rs).
  • [x] E2E encryption round-trip verified — code-complete; needs live peer (E2E test #4624).
  • [x] Agent DMs route through orchestration ingest correctly (#4425).
  • [ ] 403 not_a_contact handled gracefully — NOT handled. formatDirectMessageError (:1021-1033) maps only the 404 missing-bundle case; a 403 falls through to raw String(err). map_err (ops.rs:53) surfaces not_a_contact as "{e}: not_a_contact". PR #4773 (44a09b478) fixed a different path (orchestration agent-link on 404 contact status), not the interactive DM UX. No contact-request affordance in the DM flow. → sub-issue.

Counts (§3): wired [x] 6 · gap [~] 3 · broken [ ] 4.


Audit findings — §4 Ledger (code-level, vs upstream/main 3cca4f3f3)

Data path is GraphQL, not a tinyplace RPC: apiClient.graphql.ledgerTransactions({limit:50}) (LedgerSection.tsx:310) → tinyplace_graphql_ledger_transactions (manifest.rs:4028, GraphQLAuth::None — public). Frontend param wrapping ({ params: … }, invokeApiClient.ts:2248-2252) matches the handler's params.get("params") — contract OK, limit honored.

Feature Verdict Evidence (file:line)
View transaction history [x] One-shot fetch with loading/error/empty states (LedgerSection.tsx:305-366); handler degrades a {transactions:null} serialization error to empty (manifest.rs:4066-4076).
Incoming payments visible [x] Public global ledger renders from → to for every tx (TransactionRow :175-188). Not user-scoped (no agent filter set).
Outgoing payments visible [x] Same row renders both directions.
Bounty payouts visible [~] (headless) Rendered generically by tx.type (TypeBadge :99, default styling for unknown types); no bounty-specific handling. Needs live data to confirm payout txs are emitted to the ledger.
Settlement RPC returns correct data (#3854) [~] (headless) Ledger reads the GraphQL ledger, not a settlement RPC; correctness needs live data.
Balance reflects ledger state (#4218) [~] LedgerSection renders no balance at all — transaction list only. Balance is a Wallet-section concern; not shown/verifiable here.
Filter by asset (USDC, SOL, …) [ ] Backend supports it (LedgerListParams.asset/type/network/status, invokeApiClient.ts:1247-1259) but no filter UI; the empty-state even says "no transactions match the current filter" (:350) though no filter control exists.
Export / copy transaction ID [ ] txId is shown in the expanded row (:232) but there is no copy/export affordance.
Pagination of transaction history [~] Hardcoded limit:50, no offset/cursor/infinite-scroll — TODO(phase-2-follow-up) (:309). Backend supports offset/after/before (invokeApiClient.ts:1247). → sub-issue.
Real-time updates on new tx [ ] Single useEffect fetch with [] deps (:305-325); no stream/poll. New txs require a manual reload.

Checkbox summary

  • [x] Transaction list loads without error — round-trip + degrade-to-empty confirmed.
  • [x] Incoming + outgoing txs both visible — global public ledger renders from → to.
  • [~] Balance on ledger matches wallet balance — no balance rendered in the Ledger section (Wallet-section concern, #4218); untestable here.
  • [~] Bounty payouts appear in ledger — generic rendering only; needs live data (headless).
  • [~] Pagination works for accounts with many transactions — not implemented (only latest 50; silent truncation). → sub-issue.

Counts (§4): wired [x] 3 · gap [~] 4 · broken [ ] 3.


Sub-issues filed (Part of #4776)

  • #4921 — DM to a non-contact surfaces a raw 403 not_a_contact error (no graceful handling)
  • #4925 — Ledger has no pagination; accounts with >50 transactions silently truncated
  • #4928 — Open DM conversation does not update in real-time (no stream in the DM thread view)

Audited read-only against upstream/main@3cca4f3f3. Items marked (headless) are code-complete but need a live staging wallet/peer to fully verify round-trip.

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

🔎 Audit roll-up — Tiny Place end-to-end (code-level, vs upstream/main 3cca4f3f3)

All 10 sections audited at the code level (traced every checkbox UI → apiClient → invokeApiClient.ts → openhuman.tinyplace_* → manifest.rs → vendored tinyplace SDK). [x] = full round-trip verified in code · [~] = partial / known gap · [ ] = broken or missing. Items whose final behavior needs a live staging build + funded wallet are marked untestable-headless rather than guessed. Per-section detail is in the individual findings comments above.

Headline

This issue was largely stale. Every "open PR to merge before/during audit" (#4211–#4217) is now merged, and the cited World/Feed/Identity/Bounty bugs (#4193, #4197, #4199, #4198, #4201) are closed — and all of those fixes are verified wired on current main. The remaining work is feature completeness in the surfaces that never had a prior audit (Profiles, Directory, Messages, Ledger, Feed) and the missing seller side of the marketplace — not the originally-listed bugs.

Per-section scorecard

§ Section [x] [~] [ ] State
1 World 3 2 1 Renderer + rooms work; local sim only — no relay presence/sync (#4922)
2 Feed 8 0 3 Post/like/comment/delete/sort/names all wired; no pagination (#4923), media (#4924), real-time push (#4926)
3 Messages/DMs — — — Send/receive + inbox stream + Signal E2E wired; open DM thread not live (#4928); 403 not_a_contact unhandled (#4921)
4 Ledger — — — Tx list + balance wired; no pagination — >50 tx silently truncated (#4925)
5 Bounties 3 2 0 Create/claim/payout/autopilot all wired (#4201 fixed); cancel-failure feedback swallowed; filter/history unbuilt (→ #4190)
6 Directory — — — Browse works but click-through is a dead handler; no search/pagination/DM (#4927)
7 Identities 4 3 4 Register (x402 USDC) + multi-identity switch wired; transfer unreachable (#4929); auto-renewal/bulk/expiry unbuilt (→ tiny.place/#211)
8 Profiles 2 2 6 Own profile displays but is not editable (#4930); no viewer for other/agent profiles (#4931) — ProfilesSection is a minimal own-wallet card
9 Trading 6 1 2 Buy/bid/offer + wallet-balance + listings all wired; marketplace is buyer-only — no list-for-sale / accept-reject-offer (#4920)
10 Cross-cutting 4 4 0 OPENHUMAN_APP_ENV relay routing (#4611), pricing==charge, SDK v2.0.2 all verified; WS no-auto-reconnect + partial error-humanization are known limits; web-vs-desktop untestable-headless

Confirmed-broken → 12 sub-issues filed (all Part of #4776)

Real-time / streaming

  • #4922 World — no relay-backed presence / world-state sync
  • #4926 Feed — no real-time push
  • #4928 Messages — open DM thread doesn't update live

Pagination / completeness

  • #4923 Feed — no pagination / infinite scroll
  • #4924 Feed — no image/media support
  • #4925 Ledger — no pagination (silent >50 truncation)

Missing end-to-end paths (SDK exists, no core RPC + UI bridge)

  • #4929 Identities — handle transfer unreachable
  • #4930 Profiles — profile editing (name/bio/avatar) unreachable
  • #4931 Profiles — no viewer for other users' / agent profiles
  • #4920 Trading — marketplace seller side missing (list-for-sale, accept/reject offer)

Error UX

  • #4921 Messages — DM to a non-contact shows raw 403 not_a_contact

Interaction gaps

  • #4927 Directory — browse-only (dead click-through, no search/pagination/DM)

Verified working on main (no longer broken)

World renderer boot (#4193), Feed own-posts + in-app delete modal (#4072/#4197), Feed sort (#3829), x402 USDC handle registration (#4199), multi-identity switch (#4198), bounty create without 30s timeout (#4201), autonomous bounty worker (#3925), buy-handle re-enable (#4217), wallet balance in confirmation (#4218), pricing==charge (#3825/#4215), relay env-routing (#4611), SDK vendor v2.0.2 (#4560), orchestration DM ingest (#4425), agent-link 404 fix (#4773).

Recommended next steps

  1. Quick, self-contained fixes (SDK method already exists, just needs a core handle_tinyplace_* + apiClient method + minimal UI): #4929 handle transfer, #4930 profile editing — each is a clean single PR.
  2. Marketplace seller side (#4920) and Directory interactions (#4927) are larger but high-value for the "usable end-to-end" goal.
  3. Pagination trio (#4923/#4925 + Feed) share a cursor pattern — could be one coordinated pass.
  4. Real-time trio (#4922/#4926/#4928) depends on the streams layer gaining auto-reconnect + new WS topics — a design decision first.
  5. [~] items that are genuine feature-gaps (auto-renewal, bulk actions, bounty filters) remain tracked under epic #4190 / tiny.place/#211; not re-filed.

Sub-issues #4920–#4931 carry the file:line evidence and expected-vs-actual for each. Marketplace-backend items (tiny.place/#231/#232) and live web/desktop-platform checks are outside this repo's code and need a staging pass.

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

Audit complete — status update

All 12 sub-issues (#4920–#4931) filed under this audit have been worked. 9 shipped and merged; 3 are blocked on an upstream tiny.place contract change.

✅ Shipped & merged (9)

Sub-issue PR What landed
#4921 DM to non-contact raw 403 #4951 classify not_a_contact as expected; friendly message + Send-contact-request button
#4923 Feed pagination #4989 offset pagination / Load-more
#4925 Ledger pagination #4952 paginated ledger listing
#4926 Feed real-time push #4994 wired the SDK feeds::stream into FeedSection
#4927 Directory browse-only #4990 click-through opens the profile (+ keyboard-activation fix)
#4928 DM thread real-time #4988 live-update open DM via the inbox stream (+ teardown fix)
#4929 Handle transfer unreachable #4998 wired the existing SDK registry.transfer end-to-end
#4930 Profile editing #4996 own-profile edit (name/bio/avatar); fixed a prefill data-loss race
#4931 Profile viewer #4997 public read-only profile viewer for arbitrary handles

⛔ Blocked upstream — need a tiny.place SDK/backend change first (3)

These cannot be fixed in this repo: vendor/tinyplace is a pinned submodule, so OpenHuman can only bump the pointer — it can't add SDK surface. Each needs a tiny.place contract + release, then a submodule bump here.

  • #4920 Marketplace is buyer-only — no create-listing / accept-offer methods exist in the SDK.
  • #4922 World presence / real-time — no world-state write, read-back, or stream exists; presence is a coarse poll-only signal, directory.list_agents is non-spatial.
  • #4924 Feed media — media inputs exist only on the TS write side; the Rust SDK never got them and no read-side Post/GqlPost type carries a media field, so an uploaded image would render nowhere.

Reusable finding for future Tiny Place work

A "TP feature missing" issue is fixable in-repo only if the SDK already exposes both the write and read-back surface — then it's a UI/RPC wire-up gap (that was #4926 and #4929). If the SDK type/method doesn't exist, it's blocked on upstream tiny.place. Always grep vendor/tinyplace/sdk/rust/ for the method/type before writing code.

Recommendation: this audit issue can move to Done for the in-repo scope. The 3 blocked items should be tracked as tiny.place-first (or de-scoped) — they're the remaining gap between the app and full feature completion (epic #4190).

M3gA-Mind avatar Jul 20 '26 12:07 M3gA-Mind

Audit follow-through — verification & housekeeping

Verified every claimed PR merge state before touching any issue. Result: 8 sub-issues confirmed merged + closed, 1 not-yet-merged (correctly left open), 3 blocked upstream (left open).

Verify table (sub-issue → PR → merge state → issue state)

Sub-issue PR PR state Merge commit Issue
#4921 #4951 ✅ MERGED ce7bcca Closed (completed)
#4923 #4989 ✅ MERGED 94199cf Closed (completed)
#4925 #4952 ✅ MERGED a81252f Closed (completed)
#4926 #4994 ✅ MERGED c9f20af Closed (completed)
#4927 #4990 ✅ MERGED aa037b3 Closed (completed)
#4928 #4988 ✅ MERGED 4f69055 Closed (completed)
#4930 #4996 ✅ MERGED 2114ad3 Closed (completed)
#4931 #4997 ✅ MERGED f1de40c Closed (completed)
#4929 #4998 ⚠️ OPEN — not merged — Open (left open)
#4920 — ⛔ blocked upstream — Open (left open)
#4922 — ⛔ blocked upstream — Open (left open)
#4924 — ⛔ blocked upstream — Open (left open)

Housekeeping performed

  • Closed by me: none needed. All 8 confirmed-merged sub-issues were already closed as completed (their PRs auto-closed them on merge). Nothing to re-close; all verified correctly closed against their merged PR.
  • #4929 — correction to the status above. The earlier completion summary lists #4929/#4998 under "shipped & merged," but PR #4998 is currently OPEN (mergeable, unmerged). #4929 has been left open — a wrong close here would have been unrecoverable housekeeping. Added a one-line pointer on #4929 noting the PR is pending. This is an in-repo wiring gap (SDK registry.transfer exists), so #4929 closes automatically once #4998 merges — no upstream dependency.

Remaining open (3 blocked upstream — do NOT close)

#4920 (marketplace seller-side), #4922 (world presence/real-time), #4924 (feed media) each already carry a detailed BLOCKED note: the required tiny.place SDK contract does not exist, and vendor/tinyplace is a pinned submodule (pointer-bump only). These belong on a tiny.place-first track under epic #4190.

Recommendation

The in-repo scope of this audit is complete: 8/9 shipped-and-merged, with #4929 landing on #4998's merge. Ready to move #4776 to Done on the board once #4998 merges (or now, tracking #4929 as the single in-flight item). The 3 blocked items should be tracked as tiny.place-first under #4190. This issue was not closed and the board status field was not touched — leaving those maintainer actions to a human.

M3gA-Mind avatar Jul 20 '26 13:07 M3gA-Mind

§6 Directory — progress

PR #5271 wires the two remaining frontend-only gaps flagged in the §6 audit (backend + vendored SDK already supported both via graphql.agents({ q, limit, offset }); the UI just never sent the params):

  • ✅ Search returns correct results — debounced (300ms) search box → server-side q.
  • ✅ Directory loads and paginates — offset-based "Load more" (24/page, append + dedupe by agentId), mirroring the Feed/Ledger pattern.

For completeness, the rest of the §6 checklist as of current main:

  • ✅ Click through to profile works — already landed via the profile modal (#4927).
  • ✅ Follow from directory — already wired on the card.
  • ⬜ Send DM from directory — still missing (no messaging link/prefill on a card).
  • ⬜ Filter by type (agent/human/org) — still missing.
  • ⬜ Own handle appears in directory after registration — needs runtime verification (staging + registered handle).

Deliberately out of scope for #5271 (left as §6 follow-ups): the type filter and DM-from-card.

Note: not ticking the checklist boxes in the issue body — leaving that to a maintainer on merge of #5271.

CodeGhost21 avatar Jul 30 '26 06:07 CodeGhost21

§4 Ledger — progress

PR #5278 wires the remaining §4 Ledger UX gaps (client-side over the loaded rows; pagination already landed):

  • ✅ Filter by asset — dropdown of the distinct resolved asset symbols in the loaded rows.
  • ✅ Export / copy transaction ID — copy button on the expanded row (clipboard + "Copied").
  • ✅ Incoming + outgoing — viewer-relative All/In/Out direction filter (classifies from/to vs the wallet address; hidden when the wallet is locked).

Design note: filtering is client-side on purpose — tx.asset may be a symbol or a mint address, and direction is viewer-relative, so neither maps cleanly to a server param for a public ledger. A filtered-to-empty result shows a distinct "no match" message.

Still open in §4 (follow-ups, not in this PR):

  • ⬜ Wallet balance shown on the ledger (balance lives only in the x402 confirm card) — needs-runtime for parity.
  • ⬜ Real-time updates on new tx.
  • ⬜ Bounty payouts appear as ledger rows — needs-runtime (backend emits them).

Not ticking the issue-body checkboxes — leaving that to a maintainer on merge of #5278.

CodeGhost21 avatar Jul 30 '26 13:07 CodeGhost21

Status update — 2 of 3 remaining audit sub-issues resolved ✅

Reconciling the audit tracker with current GitHub state (the earlier verify table listed these as "blocked upstream / open"; two have since been resolved & closed):

Section Item Sub-issue State Resolution
§9 Trading Sell / list flow works #4920 ✅ Closed (completed) N/A — web-only by design. tiny.place exposes no seller routes; a Trading-tab pointer to tiny.place/identities was added in #5193.
§1 World Real-time world state sync via relay #4922 ✅ Closed (completed) N/A — de-scoped. No world-state/presence contract exists in the pinned vendor/tinyplace SDK; renderer + rooms pass.

Marking both audit checkboxes N/A [x] accordingly (body edit is owner-gated, so recording here).

Remaining open: #4924 (Feed — images/media in posts). Verified today that tiny.place main (d2545054, the commit openhuman already pins) still carries no image/media/gif field on PostCreate, Post, or GqlPost — so it remains blocked on the same upstream contract change as #4920/#4922. Options for closing it are being scoped (mirror the #4920 web-only/graceful-degradation approach vs. wait for the upstream SDK release).

CodeGhost21 avatar Jul 30 '26 14:07 CodeGhost21

Closing this audit — final reconciliation

Re-verified against upstream/main a40ba85ac (submodule vendor/tinyplace @ d2545054) and current GitHub state. The audit has done its job: it found the gaps, spawned sub-issues for them, and those sub-issues are now all resolved. Residual work is carried forward rather than dropped — see #5333.

Sub-issues — 12 filed, 12 closed

Sub-issue Resolution
#4921 DM to non-contact raw 403 Shipped — #4951
#4923 Feed pagination Shipped — #4989
#4925 Ledger pagination Shipped — #4952
#4926 Feed real-time push Shipped — #4994
#4927 Directory browse-only Shipped — #4990 (+ search/pagination #5271)
#4928 DM thread real-time Shipped — #4988
#4929 Handle transfer unreachable Shipped — #4998 (merged 2026-07-22)
#4930 Profile editing Shipped — #4996
#4931 Profile viewer Shipped — #4997
#4920 Marketplace buyer-only N/A — web-only by design (#5193); tiny.place exposes no seller routes
#4922 World relay presence/sync N/A — de-scoped; no world-state contract in the pinned SDK
#4924 Feed post media N/A — web-only by design (#5295); no image/media/gif on PostCreate/Post/GqlPost

The three N/A items are blocked on a tiny.place contract change and cannot be fixed from this repo (vendor/tinyplace is a pinned submodule — only the pointer can be bumped here). Each shipped a graceful pointer to the web flow instead of UI against a contract that does not exist.

Original bugs + "merge before/during audit" PRs

All closed/merged and verified wired on current main: #4193, #4197, #4198, #4199, #4201, #4202, #4196, #3825 · PRs #4211–#4218. The last two audit-driven PRs — #5271 (§6 Directory search + pagination) and #5278 (§4 Ledger asset/direction filters + copy tx-id) — merged 2026-08-02.

What did not ship → #5333

Per this issue's own definition of done ("any item that cannot be fixed in the current sprint is documented in a linked sub-issue"), the remaining unchecked items were re-verified in code today and moved to #5333, so closing here loses nothing:

  • §6 Directory — DM-from-card; type filter (agent/human/org); own-handle-appears-after-registration (needs-runtime).
  • §4 Ledger — real-time tx updates (no stream subscription in LedgerSection.tsx); wallet balance on the ledger; bounty payouts as ledger rows (needs-runtime).
  • §3 Messages — sent/delivered/read status; block/report; attachments; conversation list + search.
  • §7 Identities — registry.renew exists in the pinned SDK (registry.rs:232) but has no core handler and no UI; handle expiry not displayed; bulk actions not built.
  • §5 Bounties — status/asset filter; created/claimed history view. (Cancel is wired; expire is backend-driven.)
  • §10 Cross-cutting — the runtime pass this audit never had: 3-OS desktop, web (tinyhumans.ai), JWT refresh mid-session, offline degradation.

Closing as completed. Epic #4190 updated to reflect the true state of all children.

CodeGhost21 avatar Aug 03 '26 11:08 CodeGhost21