Agentic MarketAgentic Market Docs
Protocol Architecture

Open Decisions & Pre-Mainnet Gates

Complete sign-off record of locked V1 parameters (OD-1 through OD-12) and remaining pre-mainnet external gates (EXT-1).

Every core V5.0 protocol parameter (OD-1 through OD-12) is signed off and enforced in Solidity, and the production AgentIdAdapter (EXT-1) is VERIFIED for BSC Mainnet (56). Only pre-broadcast operational gates (OD-1 live Chainlink proxy/heartbeat check, mainnet-fork testing against the SPACE ID .ai registry, private MEV-protected Guardian RPC provisioning, and role key separation) remain before mainnet deployment.


Locked V1 Protocol Decisions (OD-1 – OD-12)

IDTopicLocked V1 DecisionStatus
OD-1Price Market OracleChainlink Data Feeds (AggregatorV3Interface) with 2-call historical bracketing, phaseId + 1 rollover, 2x heartbeat staleness cap, 24h voidIfStale grace.Locked (Mainnet proxy/heartbeat = Pre-Deploy Gate)
OD-2Dispute WindowsTrend disputeWindow in [6h, 72h] (24h default); RAPID_VOID_WINDOW = 6h on Paused markets.Locked
OD-3Dynamic & Opening FeesSymmetric 100 -> 300 bps linear ramp (15m for 1h BTC, 30m for 4h/trend, ceilDiv); opening fee 250 -> 100 bps over 120s on price markets.Locked
OD-4Price Tie RuleendPrice >= startPrice resolves UP (0); endPrice < startPrice resolves DOWN (1).Locked
OD-5Position & Min Trade CapsMIN_TRADE_AMOUNT = 1 USDT (full exits exempt); maxPosition = min(1.5 * seed, 500 USDT).Locked
OD-6Adaptive Seed BoundsDEEP_SEED_THRESHOLD = 100 USDT; lean [15%, 85%], deep [10%, 90%]; hard floor R_MIN = 5 USDT.Locked
OD-7Bond FormulaSymmetric clamp(max(1% * collateral, feeAcc), 10 USDT, 250 USDT) (BOND_BPS = 100).Locked
OD-8Schedule & TWAPBTC 1h cutoff 55m (twapWindow = 1800s); BTC 4h cutoff 3h45m (twapWindow = 3600s); 120s checkpoint interval, 64-slot ring.Locked
OD-9Hard TimeoutsRAPID_VOID = 6h, dispute = 24h, FALLBACK = sourceTimeout/2, PAUSE_EXPIRY = 72h, ARBITER_TIMEOUT = 7d.Locked
OD-10Vault Leaky BucketRolling 7d maxOutflowPerWindow = 25% of Active Float; vaultBalance >= 2x Active Float.Locked
OD-11Scope & Governance TriggerBinary-First V1 (BinaryEngine); MultiEngine V1.1. Phase 0 Operator transitions to 2-of-3 Multisig + 48h timelock at $100k cumulative volume or 60 days.Locked
OD-12Settlement LedgerInternal vaultBalance & bondFree/bondLocked ledgers only in V1; traders settle 100% directly in BEP-20 USDT.Locked

Pre-Mainnet External Gates (EXT-1)

BSC Mainnet (56) Deployment Lock

DeployTestnet.s.sol hard-reverts on block.chainid == 56, and DeployMainnet.s.sol defaults to a non-broadcasting dry run unless CONFIRM_MAINNET_BROADCAST=true (plus explicit GOVERNANCE_ADDRESS) is supplied. BSC Mainnet remains locked until every pre-broadcast operational gate below is completed by the Operator:

  1. Official Agent ID Adapter (EXT-1 — VERIFIED): BSC Mainnet (56) uses the SPACE ID .ai ERC-721 registry at 0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F (balanceOf(account) > 0), implemented by immutable contract/src/AgentIdAdapter.sol (354 B runtime) and installed in AdapterRegistry's constructor list by contract/script/DeployMainnet.s.sol. BSC Testnet (97) has no official registry and continues using MockAgentIdAdapter.
  2. Mainnet-Fork Registry Suite (EXT-1 Ops Gate): Run a BSC Mainnet (56) fork test suite against the live SPACE ID .ai registry (0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F) to confirm end-to-end gas (<= 50k per staticcall) and return behavior before any broadcast.
  3. Chainlink & USDT BscScan / cast Verification (OD-1): Confirm decimals(), latestRoundData(), and official heartbeat on Chainlink BTC/USD proxy 0x264990fbd0A4796A3E3d8E37C4d5F87a3aCa5Ebf, and confirm canonical BEP-20 USDT 0x55d398326f99059fF775485246999027B3197955 on BscScan.
  4. MEV-Protected Private RPC (EXT-1 Ops Gate): Provision primary and fallback private BSC RPC endpoints exclusively for Guardian pause().
  5. Role Key Separation & Deep Invariant Run: Separate hardware/KMS signers for GOV, KEEPER, GUARDIAN, RESOLVER, and ARBITER, and execute workflow_dispatch with run_deep_invariants=true on the exact release commit.