MBMarket BenderSpecification system
17.01 · Verification ledger

Claims, consequences and follow-up

ID / claimStatusPrimary sourceImplementation consequenceFollow-up
CLM-001
t3code is the upstream interface/runtime foundation and Market Bender should integrate through additive packages and adapters.
Checked 2026-07-16
Project decisionPrimary sourcePin an upstream revision; keep a compatibility ledger and isolate product code.Prove the selected tool/auth extension points against the pinned revision.
CLM-002
Current t3code is a React/Vite client with Node WebSocket orchestration and provider adapters; it supports more than Claude.
Checked 2026-07-16
VerifiedPrimary sourceClaude-first is a Market Bender default, not an upstream limitation. Integrate behind the provider boundary.Record exact upstream commit and package/API touchpoints in Prompt 02.
CLM-003
Market Bender can keep t3code substantially unmodified while exposing product tools.
Checked 2026-07-16
ConditionalPrimary sourcePrefer the existing provider/MCP/tool session seam; any core patch requires a compatibility-ledger entry.Prototype tool injection and Privy auth adapter before declaring zero upstream changes.
CLM-004
A Privy access-token `sub` is the user's wallet address.
Checked 2026-07-16
OutdatedPrimary sourceUse the Privy DID as identity and persist an explicit user-to-master-wallet mapping.Remove wallet-address-as-sub assumptions from authentication code and tests.
CLM-005
Hyperliquid agent/API wallets sign trading actions for a master account and should be isolated by trading process.
Checked 2026-07-16
VerifiedPrimary sourceUse a fresh signer per process/account scope, an atomic nonce sequencer, expiry, rotation, and revocation.Test registration, expiry, deregistration, and replay resistance on testnet.
CLM-006
An agent wallet can be treated as incapable of every sensitive account action.
Checked 2026-07-16
ConditionalPrimary sourceEnforce a strict allowlist in the signing service and Privy policies; keep master-only operations on a separate authorization path.Build an action-by-action permission matrix and negative tests.
CLM-007
HIP-3 perps use the unified exchange API but require per-DEX discovery and encoded asset IDs.
Checked 2026-07-16
VerifiedPrimary sourceNever hardcode IDs; cache network-scoped metadata and resolve `{dex}:{coin}` from current info responses.Record mainnet/testnet discovery fixtures and stale-metadata behavior.
CLM-008
`@nktkas/hyperliquid` is the selected TypeScript boundary and supports shared HTTP/WebSocket transports and typed clients.
Checked 2026-07-16
Project decisionPrimary sourcePin the package version, wrap it behind Market Bender interfaces, and do not leak SDK shapes into domain contracts.Reverify constructors/methods at implementation time; current research found 0.33.2.
CLM-009
Hyperliquid WebSocket reconnect snapshots are sufficient without reconciliation.
Checked 2026-07-16
UnclearPrimary sourceTreat streams as acceleration, not sole truth; reconcile orders, fills, positions, funding, and equity through info endpoints.Define cursor/deduplication rules and outage test fixtures.
CLM-010
A Durable Object is appropriate for authoritative per-match coordination.
Checked 2026-07-16
VerifiedPrimary sourceRoute one match ID to one object; persist every critical transition and use timestamp truth rather than in-memory timers.Test restart, migration, alarm delay, duplicate message, and split-client scenarios.
CLM-011
Cloudflare Queues consumers may receive a message more than once.
Checked 2026-07-16
VerifiedPrimary sourceAll consumers require stable idempotency keys and a dead-letter path.Add replay tests and DLQ operations runbook.
CLM-012
Workers KV is suitable for authoritative financial or match state.
Checked 2026-07-16
OutdatedPrimary sourceUse KV only for non-authoritative cached configuration; it is eventually consistent.Add architecture test/lint rule forbidding authoritative repositories from binding KV.
CLM-013
D1 may be used as the transactional authority for an active match.
Checked 2026-07-16
ConditionalPrimary sourceKeep active-match authority in the Durable Object; use D1 for relational indexes/records and session bookmarks where read replication is enabled.Specify which tables are derived versus authoritative.
CLM-014
The approved settlement model is winner-takes-all from a frozen deadline equity snapshot, with deterministic custody/accounting in the additive layer.
Checked 2026-07-16
Project decisionPrimary sourceHarden formula, timestamps, evidence, idempotency, refund/tie rules, and administrative constraints without substituting a different custody model.Obtain legal/operational review before real-money production.
CLM-015
The current elemental market list is live and reproducibly refreshed.
Checked 2026-07-16
UnclearPrimary sourceTreat dated market commentary as research, not runtime configuration; discover markets from the exchange.Build a retrieval script with timestamps and raw response evidence.
17.02 · Source register

Curated by system

t3code

Checked 2026-07-16

t3code repository

Upstream topology, provider adapters, WebSocket runtime, compatibility baseline

Privy

Checked 2026-07-16

Access tokens

Token verification and subject identity semantics

Hyperliquid

Checked 2026-07-16

Asset IDs

Native, HIP-3, spot and network-specific identifiers

Checked 2026-07-16

Info endpoint

Metadata, account state, fills, orders and reconciliation

Checked 2026-07-16

Fees

Fee treatment and tier behavior

HIP-3

TypeScript SDK

Cloudflare

Checked 2026-07-16

R2 overview

Replay artifacts and large append-only records

Security

17.03 · Research policy

Primary facts, project choices, specialist review

Reverify implementation-sensitive claims at the affected prompt stage and pin versions/commits. Market data requires raw responses and capture timestamps. Legal/operational requirements for wagering, custody, derivatives, sanctions, KYC, disputes and jurisdiction must be reviewed by qualified specialists and are never presented as vendor-verified.

Legacy blueprint archive · Dated markets research archive

Navigate specification

Search pages and sections