{
  "projectId": "polymarket-agents",
  "title": "Polymarket Agents · 源码静态检查与执行边界",
  "summary": "默认 one_best_trade 示例会选择市场并构造交易建议，但最终市场单调用被注释。独立 Polymarket 客户端仍提供真实签名与下单接口，因此不能把整个仓库视作只读研究工具。",
  "scope": "2024-11-05 对应固定 commit 的官方源码 ZIP 清单与 Python 代码检查；未运行示例或连接钱包。",
  "status": "partial",
  "analyzedAt": "2026-10-13",
  "tool": {
    "name": "REA",
    "version": "6.4.0"
  },
  "findings": [
    {
      "title": "REA 已固定源码归档身份与文件清单",
      "detail": "inspect_artifact 返回 53 个内容节点、53 个文件/目录出现项。这个结果证明本次检查输入的身份和结构，不证明 Python、Go 或 Rust 代码运行行为，也不等同于完成产品逆向。",
      "evidenceType": "observed",
      "evidenceIds": [
        "ev_ee0232b82fd3cdb453ca175fca281c08cfe53be284cbaefc107b95f080000880"
      ],
      "sourceUrls": [
        "https://codeload.github.com/Polymarket/agents/zip/081f2b5594c37edeb9d3780a778c084d5b6f2743"
      ]
    },
    {
      "title": "主交易示例并未启用最终下单行",
      "detail": "agents/application/trade.py 的 one_best_trade 先检索、筛选市场并生成交易参数；第 59–61 行将 execute_market_order 和成交输出注释掉。其 docstring 描述自动执行，但当前固定代码的这条路径在下单处停住。",
      "evidenceType": "code_inference",
      "evidenceIds": [],
      "sourceUrls": [
        "https://github.com/Polymarket/agents/blob/081f2b5594c37edeb9d3780a778c084d5b6f2743/agents/application/trade.py#L27",
        "https://github.com/Polymarket/agents/blob/081f2b5594c37edeb9d3780a778c084d5b6f2743/agents/application/trade.py#L54"
      ]
    },
    {
      "title": "客户端仍存在真实交易能力",
      "detail": "客户端从 POLYGON_WALLET_PRIVATE_KEY 环境变量读取私钥；初始化会调用 create_or_derive_api_creds，默认 _init_approvals(False) 跳过链上授权。execute_market_order 仍可构造签名市场单后调用 post_order，使用 FOK。因此示例下单行被注释不等于整个客户端是只读工具。",
      "evidenceType": "code_inference",
      "evidenceIds": [],
      "sourceUrls": [
        "https://github.com/Polymarket/agents/blob/081f2b5594c37edeb9d3780a778c084d5b6f2743/agents/polymarket/polymarket.py#L46",
        "https://github.com/Polymarket/agents/blob/081f2b5594c37edeb9d3780a778c084d5b6f2743/agents/polymarket/polymarket.py#L69",
        "https://github.com/Polymarket/agents/blob/081f2b5594c37edeb9d3780a778c084d5b6f2743/agents/polymarket/polymarket.py#L341"
      ]
    },
    {
      "title": "异常会递归重试整个研究流程",
      "detail": "one_best_trade 捕获 Exception 后递归调用自身，未在该函数内看到次数上限。由代码推断，持续失败可能重复整个检索流程并增加调用成本；本次没有通过运行验证这一行为。",
      "evidenceType": "code_inference",
      "evidenceIds": [],
      "sourceUrls": [
        "https://github.com/Polymarket/agents/blob/081f2b5594c37edeb9d3780a778c084d5b6f2743/agents/application/trade.py#L63"
      ]
    }
  ],
  "limitations": [
    "REA 仅完成源码 ZIP 清单；Python 控制流程结论来自人工静态阅读，不是 REA 动态轨迹。",
    "源码快照较早，不能据此保证当前 Polymarket API 的兼容性。",
    "未测试账户初始化、审批交易、API 身份验证、订单创建或收益。"
  ],
  "artifacts": [
    {
      "label": "官方源码归档 · 081f2b5594c3",
      "url": "https://codeload.github.com/Polymarket/agents/tar.gz/081f2b5594c37edeb9d3780a778c084d5b6f2743",
      "sha256": "8d8290329530dc452c2bfd7d344a6bb030e77c332ea8ea9751d1e1bac80c701f",
      "bytes": 98424
    },
    {
      "label": "REA 输入：官方源码 ZIP · 081f2b5594c3",
      "url": "https://codeload.github.com/Polymarket/agents/zip/081f2b5594c37edeb9d3780a778c084d5b6f2743",
      "sha256": "f1338e340f8adff5d3372ddaf1c8104c522243c85df04a025317560ec0a74707",
      "bytes": 110715
    }
  ],
  "evidenceIds": [
    "ev_ee0232b82fd3cdb453ca175fca281c08cfe53be284cbaefc107b95f080000880"
  ],
  "reportUrl": "/research/rea/polymarket-agents.json",
  "methodology": "REA 原始输出负责产物身份、文件结构或原生元数据；code_inference 结论来自带固定版本引用的源码阅读。未完成动态运行、实盘测试、完整安全审计或收益验证。",
  "sourceCommit": "081f2b5594c37edeb9d3780a778c084d5b6f2743",
  "releasedArtifactAvailable": false,
  "analysisInput": {
    "sha256": "f1338e340f8adff5d3372ddaf1c8104c522243c85df04a025317560ec0a74707",
    "format": "zip",
    "evidenceId": "ev_ee0232b82fd3cdb453ca175fca281c08cfe53be284cbaefc107b95f080000880",
    "operation": "inspect_artifact",
    "publicSourceUrls": [
      "https://codeload.github.com/Polymarket/agents/zip/081f2b5594c37edeb9d3780a778c084d5b6f2743"
    ]
  },
  "analysisAttempts": [
    {
      "command": "rea inspect-artifact <polymarket-agents source directory> --format json",
      "result": "unavailable",
      "code": "target_unavailable",
      "reason": "REA CLI 的此入口拒绝普通目录；已改用明确记录的 ZIP 输入。"
    },
    {
      "command": "rea inspect-artifact polymarket-agents-source.zip --format json",
      "result": "completed",
      "evidenceIds": [
        "ev_ee0232b82fd3cdb453ca175fca281c08cfe53be284cbaefc107b95f080000880"
      ],
      "coverage": "public_source_archive_inventory"
    }
  ]
}
