MBMarket BenderSpecification system
16.01 · Accepted

Accepted decisions

ADR-001 · 2026-07-16

t3code remains upstream and substantially unmodified

Accepted

Build Market Bender as additive packages, adapters, services, contracts and UI surfaces. Pin upstream and ledger every unavoidable deviation.

Consequence: Upgradeability is favored over invasive convenience.

ADR-002 · 2026-07-16

Strategy belongs to the model; authority belongs to deterministic code

Accepted

The model emits typed intents/tool arguments. Risk, deadlines, signing, exchange submission, reconciliation and settlement remain deterministic.

Consequence: No credential or bypass path may enter model context.

ADR-003 · 2026-07-16

Privy master plus Hyperliquid agent wallet

Accepted

Privy authenticates the user and controls the master wallet. A fresh registered agent signer executes allowlisted trading actions through the signing service.

Consequence: Sensitive account actions remain master-authorized; identity maps Privy DID to wallet records.

ADR-004 · 2026-07-16

Hyperliquid native and supported HIP-3 markets

Accepted

Use dynamic, network-scoped discovery and the selected typed SDK behind an exchange adapter.

Consequence: No production asset ID is hardcoded.

ADR-005 · 2026-07-16

Cloudflare additive product layer

Accepted

Use Pages for this specification; future APIs use Workers, active-match authority uses one Durable Object per match, D1 indexes relational records, R2 stores replay artifacts, and KV caches non-authoritative configuration.

Consequence: Financial/match truth is never delegated to eventually consistent KV.

ADR-006 · 2026-07-16

Self and VS remain distinct product modes

Accepted

Self has persistent portfolio management and no wager. VS has an authoritative three-minute match, locked deadline, frozen scoring snapshot, flattening, settlement and replay.

Consequence: Shared trading controls do not erase different lifecycle/settlement semantics.

16.02 · Open

Open decisions

ADR-007 · 2026-07-16

Production wager custody and jurisdiction

Open

Approved functional baseline is additive-layer custody/accounting and deterministic settlement; exact regulated entity, account structure, geography and administrative authority require specialist approval.

Consequence: Real-money production is blocked; testnet/simulated evidence may proceed.

ADR-008 · 2026-07-16

Canonical initial risk limits

Open

The kernel contract is fixed, but numeric leverage/notional/price-band/cadence limits must be approved for testnet and production separately.

Consequence: Implement config validation and conservative test fixtures; do not invent production limits.

ADR-010 · 2026-07-16

Exact t3code tool/auth extension seam

Open

Prefer existing provider/tool/MCP seams; confirm against a pinned upstream commit before implementation.

Consequence: Any upstream patch must be minimal, tested and recorded.

16.03 · Superseded

Superseded decisions

ADR-009 · 2026-07-16

Privy JWT subject equals wallet address

Superseded

Superseded by explicit Privy DID identity plus user-to-wallet mapping.

Consequence: Migration and auth tests must reject the old assumption.

16.04 · Compatibility ledger

Required for every t3code update

FieldRequired evidence
UpstreamRepository, exact commit/tag and verification date
Integration seamsProvider adapter, tool/MCP registration, WebSocket/auth and event surfaces used
DeviationsPatch/file/reason/owner; “none” is explicit
Compatibility testsUpstream smoke, tool registration, auth mapping, streaming, provider selection and rebase result
MigrationChanged contracts/config, rollback and affected prompts/pages
16.05 · Changelog

Specification, implementation and deployment history

Specification

2026-07-16

Converted the monolithic blueprint into a 17-page authoritative specification system.

Research correction

2026-07-16

Corrected Privy identity: access-token subject is a Privy DID, not the wallet address.

Research correction

2026-07-16

Updated t3code description to its multi-provider adapter architecture while preserving Claude-first as a Market Bender decision.

Research correction

2026-07-16

Marked live-market commentary as dated research; runtime discovery must come from current Hyperliquid metadata.

Deployment

2026-07-16

Prepared generated static routes, validation, security headers, redirects and rollback recording for Cloudflare Pages.

Navigate specification

Search pages and sections