{
  "schemaVersion": "4.0",
  "product": "Celery",
  "independentProject": true,
  "binanceEndorsement": false,
  "configurationStatus": "candidate; final model and implementation evidence must pass before freeze",
  "skill": "/agent/celery/SKILL.md",
  "deployment": "/deployment.json",
  "requiredDeploymentSchema": 4,
  "contracts": [
    "usdt",
    "celery",
    "rules",
    "nft",
    "renderer",
    "treasury",
    "mint",
    "reforge",
    "fusion",
    "market",
    "factory",
    "gate",
    "registry",
    "vrf",
    "upgrade"
  ],
  "optionalContracts": [
    "wheel",
    "oracle",
    "aggregator",
    "arena",
    "season",
    "battleRules",
    "blacklistHook",
    "ladderBook"
  ],
  "abi": "/agent/abis.json",
  "abiKeys": [
    "usdt",
    "celery",
    "rules",
    "nft",
    "renderer",
    "treasury",
    "mint",
    "reforge",
    "fusion",
    "market",
    "factory",
    "gate",
    "registry",
    "vrf",
    "upgrade",
    "pool",
    "wheel",
    "oracle",
    "arena",
    "season",
    "battleRules",
    "blacklistHook",
    "ladderBook"
  ],
  "cli": {
    "repositoryPath": "protocol/scripts/agent.mjs",
    "usage": "node agent.mjs <inspect|work|prepare|receipt|plan|queue|advise> '<single JSON object>'",
    "commands": [
      "inspect",
      "work",
      "prepare",
      "receipt",
      "plan",
      "queue",
      "advise"
    ],
    "operationCount": 54,
    "defaultBaseUrl": "http://127.0.0.1:5174",
    "readPrepareOnly": true,
    "acceptsPrivateKeys": false,
    "siteBootstrap": {
      "client": "/agent/celery/agent.mjs",
      "package": "/agent/client-package.json",
      "savePackageAs": "package.json",
      "integrity": "/agent/celery/client-integrity.json",
      "installArgv": [
        "npm",
        "install",
        "--omit=dev",
        "--ignore-scripts"
      ],
      "entrypoint": "node agent.mjs",
      "requiresRepositoryAccess": false,
      "requiresFoundry": false,
      "optionalClients": {
        "mcp-server.mjs": "/agent/celery/mcp-server.mjs"
      }
    },
    "readOnlyPlanners": {
      "plan": "ordered next actions with exact prepare inputs, honors a budget (default zero spend), dry-run through prepare",
      "queue": "plan's snapshot expanded into an ordered to-do list: every step with exact prepare input, requires, worst-case cost; a suggestion not an authorization, receipt verified=true then replan after each step",
      "advise": "fusion set completion plus upgrade/reforge expected value with explicit assumptions; arena lineups, probability/XP estimates and genes costs with assumptions, no cash ROI"
    },
    "mcp": {
      "repositoryPath": "protocol/scripts/mcp-server.mjs",
      "client": "/agent/celery/mcp-server.mjs",
      "transport": "stdio JSON-RPC 2.0, newline-delimited; protocol 2025-06-18 (2025-03-26, 2024-11-05 negotiated)",
      "entrypoint": "node mcp-server.mjs",
      "requires": "agent.mjs, package.json and installed node_modules in the same directory",
      "tools": [
        "celery_inspect",
        "celery_work",
        "celery_prepare",
        "celery_receipt",
        "celery_plan",
        "celery_queue",
        "celery_advise",
        "celery_operations"
      ],
      "env": {
        "CELERY_BASE_URL": "pins the site; a different per-call baseUrl is refused"
      },
      "readPrepareOnly": true,
      "acceptsPrivateKeys": false,
      "reference": "/agent/celery/references/mcp.md"
    }
  },
  "references": {
    "playbook": "/agent/celery/references/playbook.md",
    "gameplay": "/agent/celery/references/gameplay.md",
    "operations": "/agent/celery/references/operations.json",
    "state-machines": "/agent/celery/references/state-machines.json",
    "economy": "/agent/celery/references/economy.json",
    "recovery": "/agent/celery/references/recovery.json",
    "binance": "/agent/celery/references/binance.json",
    "local-simulation": "/agent/celery/references/local-simulation.json",
    "mcp": "/agent/celery/references/mcp.md"
  },
  "transport": {
    "relativeRPC": "Resolve deployment.rpcUrl against baseUrl origin; /rpc remains same-origin",
    "snapshot": "read/simulate at fixed block; preserve reprepareInput across prerequisites",
    "money": "decimal strings in selected asset raw units; native value=0 wei"
  },
  "networks": {
    "56": "Official baw connection/settings/claim-status/address/preview/execute; actual requestId and required user/App confirmation; no mainnet validation claimed",
    "31337": "Explicit localSimulation and private endpoints; mock registry/VRF and separate project test signer, no real Binance service"
  },
  "governance": {
    "acceptOwnershipTargets": [
      "nft",
      "celery",
      "treasury",
      "mint"
    ],
    "rule": "All binding completed first; only recorded pendingOwner accepts; CLI does not nominate owners or execute transactions"
  },
  "verification": "receipt verified=true plus fresh inspect; hash alone is not success",
  "mechanicsVersion": 4,
  "configurationVersion": "balance-candidate-0.7",
  "upgrade": {
    "class": "Upgrade",
    "bindings": [
      "nft.upgradeController",
      "treasury.upgradeController"
    ],
    "fees": "feeByQuality(0..3), configured through upgradePolicy.feeByQualityRaw",
    "feeHashScope": "upgradeFeesHash hashes only abi.encode(uint256[4] actualFees); it is not a hash of all mechanics"
  },
  "reforge": {
    "positiveFeeMultiplierGetter": "POSITIVE_FEE_MULTIPLIER_BPS",
    "factorDisplay": "BPS / 10000 as exact decimal (20000=2x; 25000=2.5x)",
    "feeRule": "ceil(already-rounded full GameRules fee including protection * BPS / 10000); use actual quoteReforgeMode",
    "genes": {
      "feeSlots": 2,
      "protectMultiplier": 2,
      "maxShared": 5,
      "masks": [
        0,
        1,
        2
      ],
      "pKeeps": true
    }
  },
  "arena": {
    "version": "arena-0.2",
    "battleSpecVersion": 2,
    "sigma": 600,
    "bandPermille": 1120,
    "resBonus": 40,
    "roleBonus": 30,
    "synCap": 80,
    "kFactor": 24,
    "kFirst": 36,
    "firstGames": 10,
    "handPoints": 300,
    "ratingWindow": 100,
    "xpInit": 1000,
    "xpFloor": 600,
    "xpCeiling": 3000,
    "resetDivisor": 2,
    "tierMinXp": [
      600,
      960,
      1020,
      1080
    ],
    "entryFeesRaw": [
      "5000000000000000000",
      "10000000000000000000",
      "15000000000000000000",
      "20000000000000000000"
    ],
    "minGames": 20,
    "minDistinct": 10,
    "minTierGames": 10,
    "minTierDistinct": 6,
    "minQualified": 20,
    "lowGamesM": 10,
    "pairCap": 3,
    "winnerBps": 8000,
    "drawBps": 4000,
    "rewardCurve": 1,
    "tierNames": [
      "启程",
      "竞锋",
      "凌云",
      "巅峰"
    ],
    "seasonLengthSeconds": 1209600,
    "graceSeconds": 172800,
    "challengeTtlSeconds": 86400,
    "dailyCap": 20,
    "excludedAccounts": [],
    "sameTierOnly": true,
    "maxActivePerPlayer": 1,
    "promotionShieldGames": 0,
    "seasonTierFloor": false,
    "season": {
      "poolMode": "PER_TIER",
      "trees": "ONE_PER_TIER",
      "proposerBondRaw": "500000000000000000000",
      "challengeWindowSeconds": 172800,
      "bountyBps": 10,
      "bountyCapRaw": "2000000000000000000000"
    },
    "linearCurve": "floor(D/(n*(n+1)/2)) * (n-index)",
    "exitsNeverActionHooked": true,
    "entryOptIn": true,
    "blacklist": "CELERY transfers only; credit settlement and NFT unlock remain available",
    "seasonFiles": "/api/arena/seasons/{seasonId}/tiers/{tier}"
  },
  "recycle": {
    "baseBps": 8000,
    "windowSeconds": 3600,
    "startsAt": "DailyMint.resultReadyAt",
    "directDrawsOnly": true,
    "tradeLockedDuringWindow": true,
    "upgradeOutputsEligible": false,
    "bonuses": false
  }
}
