{
  "receiptNumber": "RX-260430-001",
  "status": "DRAFT",
  "title": "Receipt · paper trading",
  "summary": "6 agent steps · 2 tool calls · 1 approvals (0 rejected) · 0 memories used · 1 deliverables · risk medium",
  "crewKey": "paper-trading",
  "missionStatus": "COMPLETED",
  "missionId": "cmoltkcss0001a2o7gg64vm16",
  "riskLevel": "MEDIUM",
  "integrityHash": "4674de65951257b252372c00ca3f010d346c2e6a061c6f6939b362c3747f3989",
  "generatedAt": "2026-04-30T18:31:45.135Z",
  "finalizedAt": null,
  "counts": {
    "agents": 6,
    "steps": 6,
    "toolCalls": 2,
    "approvals": 1,
    "memoryUsed": 0,
    "memoryChanged": 0,
    "deliverables": 1,
    "failedSteps": 0,
    "blockedActions": 0,
    "tokensIn": 4258,
    "tokensOut": 872,
    "estimatedCost": 0.000902
  },
  "content": {
    "mission": {
      "id": "cmoltkcss0001a2o7gg64vm16",
      "title": "paper trading",
      "objective": "Analyze AAPL and NVDA for a paper trade this week given the macro backdrop.",
      "crewKey": "paper-trading",
      "status": "COMPLETED",
      "priority": "low",
      "isDemo": false,
      "createdAt": "2026-04-30T18:30:34.444Z",
      "completedAt": "2026-04-30T18:31:33.233Z"
    },
    "requestedObjective": "Analyze AAPL and NVDA for a paper trade this week given the macro backdrop.",
    "agents": [
      {
        "key": "market-scout",
        "name": "Market Scout",
        "role": "Scans the watchlist and produces a market brief.",
        "status": "COMPLETED",
        "orderIndex": 0
      },
      {
        "key": "news",
        "name": "News Agent",
        "role": "Summarizes relevant news and event flow.",
        "status": "COMPLETED",
        "orderIndex": 1
      },
      {
        "key": "strategy",
        "name": "Strategy Agent",
        "role": "Builds a single, defensible trade thesis.",
        "status": "COMPLETED",
        "orderIndex": 2
      },
      {
        "key": "risk",
        "name": "Risk Agent",
        "role": "Calculates downside, invalidation, and sizing notes.",
        "status": "COMPLETED",
        "orderIndex": 3
      },
      {
        "key": "backtest",
        "name": "Backtest Agent",
        "role": "Runs a simple historical simulation from seeded data.",
        "status": "COMPLETED",
        "orderIndex": 4
      },
      {
        "key": "paper-execution",
        "name": "Paper Execution Agent",
        "role": "Records the simulated trade decision only.",
        "status": "COMPLETED",
        "orderIndex": 5
      }
    ],
    "steps": [
      {
        "id": "cmoltkkfi000ga2o7xd9tiuwt",
        "agentKey": "market-scout",
        "stepName": "Market Scout",
        "status": "COMPLETED",
        "tokensIn": 192,
        "tokensOut": 189,
        "latencyMs": 2986,
        "error": null
      },
      {
        "id": "cmoltknhp000ma2o7o3l3qwen",
        "agentKey": "news",
        "stepName": "News Agent",
        "status": "COMPLETED",
        "tokensIn": 272,
        "tokensOut": 243,
        "latencyMs": 3363,
        "error": null
      },
      {
        "id": "cmoltkqky000sa2o75hwlv4c7",
        "agentKey": "strategy",
        "stepName": "Strategy Agent",
        "status": "COMPLETED",
        "tokensIn": 523,
        "tokensOut": 67,
        "latencyMs": 1013,
        "error": null
      },
      {
        "id": "cmoltkruf000ya2o7jd93jam1",
        "agentKey": "risk",
        "stepName": "Risk Agent",
        "status": "COMPLETED",
        "tokensIn": 571,
        "tokensOut": 87,
        "latencyMs": 1390,
        "error": null
      },
      {
        "id": "cmoltktef0014a2o72btrlnd4",
        "agentKey": "backtest",
        "stepName": "Backtest Agent",
        "status": "COMPLETED",
        "tokensIn": 1912,
        "tokensOut": 208,
        "latencyMs": 3271,
        "error": null
      },
      {
        "id": "cmoltkx4e001ia2o7mtumxbax",
        "agentKey": "paper-execution",
        "stepName": "Paper Execution Agent",
        "status": "COMPLETED",
        "tokensIn": 788,
        "tokensOut": 78,
        "latencyMs": 1127,
        "error": null
      }
    ],
    "tools": [
      {
        "id": "cmoltkv1e0016a2o7tcql14vw",
        "agentKey": "backtest",
        "toolName": "price_series_lookup",
        "status": "FAILED",
        "requiresApproval": false,
        "error": "Invalid input: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"number\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"days\"\n    ],\n    \"message\": \"Required\"\n  }\n]"
      },
      {
        "id": "cmoltkvds001aa2o7s183naqp",
        "agentKey": "backtest",
        "toolName": "price_series_lookup",
        "status": "FAILED",
        "requiresApproval": false,
        "error": "Invalid input: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"number\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"days\"\n    ],\n    \"message\": \"Required\"\n  }\n]"
      }
    ],
    "approvals": [
      {
        "id": "cmoltkymb001qa2o7d08b97vf",
        "type": "TRADE_SIMULATION",
        "title": "Approve simulated trade: AAPL BUY",
        "status": "APPROVED",
        "decidedNote": null
      }
    ],
    "memoriesUsed": [],
    "memoryChanges": [],
    "deliverables": [
      {
        "id": "cmoltkyce001ma2o73s87z8tb",
        "type": "TRADE_JOURNAL",
        "title": "Paper trade: AAPL BUY"
      }
    ],
    "jobs": [],
    "auditEvents": [
      {
        "eventType": "mission.created",
        "actor": "user",
        "message": "Created mission \"paper trading\"",
        "occurredAt": "2026-04-30T18:30:34.444Z"
      },
      {
        "eventType": "mission.run_requested",
        "actor": "system",
        "message": "Run requested by operator.",
        "occurredAt": "2026-04-30T18:30:42.140Z"
      },
      {
        "eventType": "mission.started",
        "actor": "system",
        "message": "Mission started: paper trading",
        "occurredAt": "2026-04-30T18:30:42.916Z"
      },
      {
        "eventType": "agent.started",
        "actor": "market-scout",
        "message": "Market Scout started",
        "occurredAt": "2026-04-30T18:30:44.153Z"
      },
      {
        "eventType": "agent.completed",
        "actor": "market-scout",
        "message": "Market Scout completed",
        "occurredAt": "2026-04-30T18:30:48.028Z"
      },
      {
        "eventType": "agent.started",
        "actor": "news",
        "message": "News Agent started",
        "occurredAt": "2026-04-30T18:30:48.208Z"
      },
      {
        "eventType": "agent.completed",
        "actor": "news",
        "message": "News Agent completed",
        "occurredAt": "2026-04-30T18:30:52.037Z"
      },
      {
        "eventType": "agent.started",
        "actor": "strategy",
        "message": "Strategy Agent started",
        "occurredAt": "2026-04-30T18:30:52.214Z"
      },
      {
        "eventType": "agent.completed",
        "actor": "strategy",
        "message": "Strategy Agent completed",
        "occurredAt": "2026-04-30T18:30:53.677Z"
      },
      {
        "eventType": "agent.started",
        "actor": "risk",
        "message": "Risk Agent started",
        "occurredAt": "2026-04-30T18:30:53.855Z"
      },
      {
        "eventType": "agent.completed",
        "actor": "risk",
        "message": "Risk Agent completed",
        "occurredAt": "2026-04-30T18:30:55.692Z"
      },
      {
        "eventType": "agent.started",
        "actor": "backtest",
        "message": "Backtest Agent started",
        "occurredAt": "2026-04-30T18:30:55.869Z"
      },
      {
        "eventType": "tool.invalid_input",
        "actor": "tool",
        "message": "price_series_lookup input invalid",
        "occurredAt": "2026-04-30T18:30:58.439Z"
      },
      {
        "eventType": "tool.invalid_input",
        "actor": "tool",
        "message": "price_series_lookup input invalid",
        "occurredAt": "2026-04-30T18:30:58.711Z"
      },
      {
        "eventType": "agent.completed",
        "actor": "backtest",
        "message": "Backtest Agent completed",
        "occurredAt": "2026-04-30T18:31:00.507Z"
      },
      {
        "eventType": "agent.started",
        "actor": "paper-execution",
        "message": "Paper Execution Agent started",
        "occurredAt": "2026-04-30T18:31:00.690Z"
      },
      {
        "eventType": "agent.completed",
        "actor": "paper-execution",
        "message": "Paper Execution Agent completed",
        "occurredAt": "2026-04-30T18:31:02.275Z"
      },
      {
        "eventType": "mission.waiting_approval",
        "actor": "system",
        "message": "Mission complete — items awaiting approval.",
        "occurredAt": "2026-04-30T18:31:03.264Z"
      },
      {
        "eventType": "approval.approved",
        "actor": "user",
        "message": "Approve simulated trade: AAPL BUY → APPROVED",
        "occurredAt": "2026-04-30T18:31:32.877Z"
      },
      {
        "eventType": "mission.completed",
        "actor": "system",
        "message": "All approvals resolved.",
        "occurredAt": "2026-04-30T18:31:33.325Z"
      }
    ],
    "risk": {
      "level": "MEDIUM",
      "totalScore": 4,
      "factors": [
        {
          "key": "toolFailures",
          "label": "Tool failures",
          "count": 2,
          "weight": 1,
          "score": 2
        },
        {
          "key": "paperTradeCount",
          "label": "Simulated trade ticket present",
          "count": 1,
          "weight": 2,
          "score": 2
        }
      ]
    },
    "browserQa": null,
    "modelUsage": [
      {
        "model": "nousresearch/hermes-4-70b",
        "role": "default",
        "calls": 6,
        "tokensIn": 4258,
        "tokensOut": 872,
        "fallback": false
      }
    ],
    "media": null,
    "runtime": null,
    "counts": {
      "agents": 6,
      "steps": 6,
      "tools": 2,
      "approvals": 1,
      "memoriesUsed": 0,
      "memoryChanges": 0,
      "deliverables": 1,
      "failedSteps": 0,
      "blockedActions": 0,
      "failedJobs": 0,
      "rejectedApprovals": 0,
      "tokensIn": 4258,
      "tokensOut": 872,
      "estimatedCost": 0.000902,
      "cost": {
        "model": "nousresearch/hermes-4-70b",
        "priceSource": "openrouter-live",
        "pricedAt": "2026-04-30T18:31:44.954Z",
        "promptCostUsd": 0.00055354,
        "completionCostUsd": 0.00034879999999999997,
        "totalCostUsd": 0.00090234
      },
      "browserQaPagesChecked": 0,
      "browserQaHighIssues": 0
    },
    "schedule": null,
    "inboxOrigin": null,
    "timeline": [
      {
        "occurredAt": "2026-04-30T18:30:34.444Z",
        "type": "OBJECTIVE",
        "title": "Mission created",
        "detail": "Analyze AAPL and NVDA for a paper trade this week given the macro backdrop."
      },
      {
        "occurredAt": "2026-04-30T18:30:42.916Z",
        "type": "MISSION.STARTED",
        "title": "Mission started: paper trading"
      },
      {
        "occurredAt": "2026-04-30T18:30:44.334Z",
        "type": "AGENT_STEP",
        "title": "market-scout completed",
        "detail": "192↑ 189↓"
      },
      {
        "occurredAt": "2026-04-30T18:30:48.301Z",
        "type": "AGENT_STEP",
        "title": "news completed",
        "detail": "272↑ 243↓"
      },
      {
        "occurredAt": "2026-04-30T18:30:52.306Z",
        "type": "AGENT_STEP",
        "title": "strategy completed",
        "detail": "523↑ 67↓"
      },
      {
        "occurredAt": "2026-04-30T18:30:53.944Z",
        "type": "AGENT_STEP",
        "title": "risk completed",
        "detail": "571↑ 87↓"
      },
      {
        "occurredAt": "2026-04-30T18:30:55.959Z",
        "type": "AGENT_STEP",
        "title": "backtest completed",
        "detail": "1912↑ 208↓"
      },
      {
        "occurredAt": "2026-04-30T18:30:58.082Z",
        "type": "TOOL_CALL",
        "title": "backtest → price_series_lookup failed",
        "detail": "Invalid input: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"number\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"days\"\n    ],\n    \"message\": \"Required\"\n  }\n]"
      },
      {
        "occurredAt": "2026-04-30T18:30:58.529Z",
        "type": "TOOL_CALL",
        "title": "backtest → price_series_lookup failed",
        "detail": "Invalid input: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"number\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"days\"\n    ],\n    \"message\": \"Required\"\n  }\n]"
      },
      {
        "occurredAt": "2026-04-30T18:31:00.783Z",
        "type": "AGENT_STEP",
        "title": "paper-execution completed",
        "detail": "788↑ 78↓"
      },
      {
        "occurredAt": "2026-04-30T18:31:02.366Z",
        "type": "DELIVERABLE",
        "title": "TRADE_JOURNAL · Paper trade: AAPL BUY"
      },
      {
        "occurredAt": "2026-04-30T18:31:02.724Z",
        "type": "APPROVAL",
        "title": "TRADE_SIMULATION · APPROVED",
        "detail": "Approve simulated trade: AAPL BUY"
      },
      {
        "occurredAt": "2026-04-30T18:31:33.325Z",
        "type": "MISSION.COMPLETED",
        "title": "All approvals resolved."
      }
    ]
  }
}