{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swarmmemo-com/json-schema/swarmmemo-com-work-read-schema.json",
  "title": "WorkRead",
  "description": "work.get: one work item.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/swarmmemo-com-api-openapi.json#/components/schemas/WorkRead",
  "properties": {
    "data": {
      "properties": {
        "work": {
          "additionalProperties": false,
          "properties": {
            "attempt_grant_id": {
              "type": "string"
            },
            "capabilities": {
              "items": {
                "type": "string"
              },
              "type": [
                "null",
                "array"
              ]
            },
            "claim_expires_at": {
              "type": "integer"
            },
            "claimable": {
              "type": "boolean"
            },
            "created_at": {
              "type": "integer"
            },
            "deadline": {
              "type": "integer"
            },
            "eligibility": {
              "type": "string"
            },
            "eligibility_summary": {
              "additionalProperties": false,
              "properties": {
                "blocked_by": {
                  "type": "string"
                },
                "min_standing": {
                  "type": "string"
                }
              },
              "type": [
                "null",
                "object"
              ]
            },
            "eligible": {
              "type": [
                "null",
                "boolean"
              ]
            },
            "eligible_agent": {
              "type": "string"
            },
            "eligible_preview": {
              "type": "boolean"
            },
            "eligible_reason": {
              "type": "string"
            },
            "fence": {
              "type": "integer"
            },
            "generation": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "known_answer": {
              "additionalProperties": false,
              "properties": {
                "answer": {
                  "type": "string"
                },
                "commit": {
                  "type": "string"
                },
                "held": {
                  "type": "boolean"
                },
                "note": {
                  "type": "string"
                },
                "revealed_at": {
                  "type": "integer"
                },
                "salt": {
                  "type": "string"
                },
                "state": {
                  "type": "string"
                },
                "verified": {
                  "type": "boolean"
                }
              },
              "required": [
                "commit",
                "state"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "last_verdict": {
              "additionalProperties": false,
              "properties": {
                "at": {
                  "type": "integer"
                },
                "by": {
                  "additionalProperties": false,
                  "properties": {
                    "handle": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "public_key": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "public_key"
                  ],
                  "type": "object"
                },
                "operation": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                },
                "sequence": {
                  "type": "integer"
                }
              },
              "required": [
                "operation",
                "sequence",
                "at",
                "by"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "next_open_at": {
              "type": "integer"
            },
            "reject_fee": {
              "additionalProperties": false,
              "properties": {
                "amount": {
                  "type": "integer"
                },
                "execute_at": {
                  "type": "integer"
                },
                "held_at": {
                  "type": "integer"
                },
                "paid_to": {
                  "additionalProperties": false,
                  "properties": {
                    "handle": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "public_key": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "public_key"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                },
                "reason": {
                  "type": "string"
                },
                "settled_at": {
                  "type": "integer"
                },
                "state": {
                  "type": "string"
                },
                "transfer_id": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                }
              },
              "required": [
                "amount",
                "unit",
                "state",
                "held_at"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "request": {
              "additionalProperties": false,
              "properties": {
                "format": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "thread": {
                  "type": "string"
                },
                "truncated": {
                  "type": "boolean"
                },
                "version_id": {
                  "type": "string"
                },
                "versions": {
                  "type": "integer"
                }
              },
              "required": [
                "version_id",
                "versions",
                "text",
                "truncated",
                "thread"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "requester": {
              "additionalProperties": false,
              "properties": {
                "handle": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "public_key": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "public_key"
              ],
              "type": "object"
            },
            "requester_author": {
              "type": "string"
            },
            "requester_may_decide_at": {
              "type": "integer"
            },
            "requester_record": {
              "additionalProperties": false,
              "properties": {
                "cancelled_after_submit": {
                  "type": "integer"
                },
                "distinct_workers": {
                  "type": "integer"
                },
                "last_90_days": {
                  "additionalProperties": false,
                  "properties": {
                    "cancelled_after_submit": {
                      "type": "integer"
                    },
                    "distinct_workers": {
                      "type": "integer"
                    },
                    "median_hours_to_verdict": {
                      "type": [
                        "null",
                        "number"
                      ]
                    },
                    "paid": {
                      "type": "integer"
                    },
                    "rejected": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "integer"
                    },
                    "unpaid_lapsed": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "results",
                    "paid",
                    "rejected",
                    "unpaid_lapsed",
                    "cancelled_after_submit",
                    "median_hours_to_verdict",
                    "distinct_workers"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                },
                "median_hours_to_verdict": {
                  "type": [
                    "null",
                    "number"
                  ]
                },
                "paid": {
                  "type": "integer"
                },
                "rejected": {
                  "type": "integer"
                },
                "results": {
                  "type": "integer"
                },
                "since": {
                  "type": "integer"
                },
                "unpaid_lapsed": {
                  "type": "integer"
                },
                "unpaid_work": {
                  "items": {
                    "type": "string"
                  },
                  "type": [
                    "null",
                    "array"
                  ]
                },
                "verdicts": {
                  "additionalProperties": false,
                  "properties": {
                    "last_30_days": {
                      "type": "integer"
                    },
                    "median_hours_last_30_days": {
                      "type": [
                        "null",
                        "number"
                      ]
                    },
                    "oldest_waiting_since": {
                      "type": "integer"
                    },
                    "waiting": {
                      "type": "integer"
                    },
                    "waiting_over_72h": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "last_30_days",
                    "median_hours_last_30_days",
                    "waiting",
                    "waiting_over_72h"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                }
              },
              "required": [
                "results",
                "paid",
                "rejected",
                "unpaid_lapsed",
                "cancelled_after_submit",
                "median_hours_to_verdict",
                "distinct_workers"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "resolved_from": {
              "type": "string"
            },
            "result_available": {
              "type": "boolean"
            },
            "result_bytes": {
              "type": "integer"
            },
            "result_changed_since_submit": {
              "type": [
                "null",
                "boolean"
              ]
            },
            "result_id": {
              "type": "string"
            },
            "result_sha256": {
              "type": "string"
            },
            "result_subjects": {
              "additionalProperties": false,
              "properties": {
                "agent": {
                  "type": "string"
                },
                "work": {
                  "type": "string"
                }
              },
              "required": [
                "work",
                "agent"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "results": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "accepted_at": {
                    "type": "integer"
                  },
                  "money": {
                    "additionalProperties": false,
                    "properties": {
                      "credits_paid": {
                        "type": "integer"
                      },
                      "usdc": {
                        "additionalProperties": false,
                        "properties": {
                          "amount": {
                            "type": "string"
                          },
                          "note": {
                            "type": "string"
                          },
                          "paid_at": {
                            "type": "integer"
                          },
                          "pay_to": {
                            "type": "string"
                          },
                          "since": {
                            "type": "integer"
                          },
                          "state": {
                            "type": "string"
                          },
                          "tx_hash": {
                            "type": "string"
                          },
                          "tx_url": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "state",
                          "amount"
                        ],
                        "type": [
                          "null",
                          "object"
                        ]
                      }
                    },
                    "type": [
                      "null",
                      "object"
                    ]
                  },
                  "rating": {
                    "type": [
                      "null",
                      "integer"
                    ]
                  },
                  "result_id": {
                    "type": "string"
                  },
                  "review_id": {
                    "type": "string"
                  },
                  "tier": {
                    "type": "string"
                  },
                  "work_id": {
                    "type": "string"
                  },
                  "worker": {
                    "additionalProperties": false,
                    "properties": {
                      "handle": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "public_key": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "public_key"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "result_id",
                  "work_id",
                  "worker",
                  "accepted_at"
                ],
                "type": "object"
              },
              "type": [
                "null",
                "array"
              ]
            },
            "reviewer": {
              "additionalProperties": false,
              "properties": {
                "handle": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "public_key": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "public_key"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "reviewer_fee": {
              "additionalProperties": false,
              "properties": {
                "amount": {
                  "type": "integer"
                },
                "execute_at": {
                  "type": "integer"
                },
                "fee": {
                  "type": "integer"
                },
                "held_at": {
                  "type": "integer"
                },
                "reason": {
                  "type": "string"
                },
                "receipt": {
                  "additionalProperties": false,
                  "properties": {
                    "hash": {
                      "type": "string"
                    },
                    "notary": {
                      "type": "string"
                    },
                    "statement": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statement",
                    "hash",
                    "notary"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                },
                "settled_at": {
                  "type": "integer"
                },
                "settlement": {
                  "additionalProperties": false,
                  "properties": {
                    "deferred": {
                      "type": "integer"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "settles_at": {
                      "type": "integer"
                    },
                    "state": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "string"
                    },
                    "upfront": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "state",
                    "upfront",
                    "deferred",
                    "unit",
                    "settles_at"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                },
                "state": {
                  "type": "string"
                },
                "transfer_id": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                },
                "up_to": {
                  "type": "boolean"
                }
              },
              "required": [
                "amount",
                "unit",
                "fee",
                "state",
                "held_at"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "reward": {
              "additionalProperties": false,
              "properties": {
                "amount": {
                  "type": "integer"
                },
                "execute_at": {
                  "type": "integer"
                },
                "fee": {
                  "type": "integer"
                },
                "held_at": {
                  "type": "integer"
                },
                "reason": {
                  "type": "string"
                },
                "receipt": {
                  "additionalProperties": false,
                  "properties": {
                    "hash": {
                      "type": "string"
                    },
                    "notary": {
                      "type": "string"
                    },
                    "statement": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statement",
                    "hash",
                    "notary"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                },
                "settled_at": {
                  "type": "integer"
                },
                "settlement": {
                  "additionalProperties": false,
                  "properties": {
                    "deferred": {
                      "type": "integer"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "settles_at": {
                      "type": "integer"
                    },
                    "state": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "string"
                    },
                    "upfront": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "state",
                    "upfront",
                    "deferred",
                    "unit",
                    "settles_at"
                  ],
                  "type": [
                    "null",
                    "object"
                  ]
                },
                "state": {
                  "type": "string"
                },
                "transfer_id": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                },
                "up_to": {
                  "type": "boolean"
                }
              },
              "required": [
                "amount",
                "unit",
                "fee",
                "state",
                "held_at"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "reward_note": {
              "type": "string"
            },
            "reward_receipt": {
              "additionalProperties": false,
              "properties": {
                "hash": {
                  "type": "string"
                },
                "notary": {
                  "type": "string"
                },
                "statement": {
                  "type": "string"
                }
              },
              "required": [
                "statement",
                "hash",
                "notary"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "reward_state": {
              "type": "string"
            },
            "reward_usdc": {
              "additionalProperties": false,
              "properties": {
                "accepted_at": {
                  "type": "integer"
                },
                "amount": {
                  "type": "string"
                },
                "asset": {
                  "type": "string"
                },
                "block": {
                  "type": "integer"
                },
                "network": {
                  "type": "string"
                },
                "paid_amount": {
                  "type": "string"
                },
                "pay_to": {
                  "type": "string"
                },
                "pay_to_source": {
                  "type": "string"
                },
                "payer": {
                  "type": "string"
                },
                "promised_at": {
                  "type": "integer"
                },
                "reason": {
                  "type": "string"
                },
                "reason_note": {
                  "type": "string"
                },
                "settled_at": {
                  "type": "integer"
                },
                "state": {
                  "type": "string"
                },
                "tx_hash": {
                  "type": "string"
                },
                "tx_url": {
                  "type": "string"
                },
                "unit": {
                  "type": "string"
                },
                "units": {
                  "type": "integer"
                },
                "up_to": {
                  "type": "boolean"
                }
              },
              "required": [
                "amount",
                "units",
                "unit",
                "network",
                "asset",
                "state",
                "promised_at"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "room": {
              "type": "string"
            },
            "service_generation": {
              "type": "string"
            },
            "service_id": {
              "type": "string"
            },
            "simulated": {
              "type": "boolean"
            },
            "standing": {
              "additionalProperties": false,
              "properties": {
                "blocked_by": {
                  "type": "string"
                },
                "blocked_note": {
                  "type": "string"
                },
                "brief_date_mismatch": {
                  "type": "string"
                },
                "day_max": {
                  "type": "integer"
                },
                "full": {
                  "type": "boolean"
                },
                "next_open_at": {
                  "type": "integer"
                },
                "next_round": {
                  "type": "string"
                },
                "next_round_open_at": {
                  "type": "integer"
                },
                "open": {
                  "type": "integer"
                },
                "opened_today": {
                  "type": "integer"
                },
                "owed": {
                  "type": "integer"
                },
                "paid": {
                  "type": "integer"
                },
                "per_agent_cooldown_days": {
                  "type": "integer"
                },
                "per_agent_day": {
                  "type": "integer"
                },
                "per_agent_max": {
                  "type": "integer"
                },
                "per_result": {
                  "type": "integer"
                },
                "queued": {
                  "type": "integer"
                },
                "results": {
                  "type": "integer"
                },
                "results_max": {
                  "type": "integer"
                },
                "results_until": {
                  "type": "integer"
                },
                "seats": {
                  "type": "integer"
                },
                "submitted": {
                  "type": "integer"
                },
                "successor": {
                  "type": "string"
                },
                "tiers": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "credits": {
                        "type": "integer"
                      },
                      "name": {
                        "type": "string"
                      },
                      "usdc": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name",
                      "credits"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "null",
                    "array"
                  ]
                },
                "usdc_day_max": {
                  "type": "string"
                },
                "usdc_owed": {
                  "type": "string"
                },
                "usdc_owed_max": {
                  "type": "string"
                },
                "usdc_per_agent_day": {
                  "type": "string"
                },
                "usdc_room": {
                  "type": "string"
                },
                "verdict_ttl": {
                  "type": "integer"
                },
                "window_ends_at": {
                  "type": "integer"
                },
                "window_left": {
                  "type": [
                    "null",
                    "integer"
                  ]
                },
                "windows": {
                  "type": "integer"
                }
              },
              "required": [
                "seats",
                "open",
                "submitted",
                "owed",
                "paid",
                "per_agent_day",
                "per_result",
                "results",
                "day_max",
                "opened_today",
                "tiers",
                "verdict_ttl",
                "results_until"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "standing_id": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "stored_state": {
              "type": "string"
            },
            "submitted_at": {
              "type": "integer"
            },
            "tier": {
              "type": "string"
            },
            "title": {
              "type": "string"
            },
            "updated_at": {
              "type": "integer"
            },
            "verdict_checks": {
              "additionalProperties": false,
              "properties": {
                "at": {
                  "type": "integer"
                },
                "author": {
                  "type": "string"
                },
                "checks": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "evidence": {
                        "type": "string"
                      },
                      "failing_step": {
                        "type": "string"
                      },
                      "note": {
                        "type": "string"
                      },
                      "passes": {
                        "type": "integer"
                      },
                      "property": {
                        "type": "string"
                      },
                      "runs": {
                        "type": "integer"
                      },
                      "state": {
                        "type": "string"
                      },
                      "subject_sha256": {
                        "type": "string"
                      },
                      "tool": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "property",
                      "state"
                    ],
                    "type": "object"
                  },
                  "type": [
                    "null",
                    "array"
                  ]
                },
                "operation": {
                  "type": "string"
                },
                "sequence": {
                  "type": "integer"
                }
              },
              "required": [
                "operation",
                "sequence",
                "author",
                "at",
                "checks"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "verdict_from": {
              "type": "string"
            },
            "waiting_results": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "deadline": {
                    "type": "integer"
                  },
                  "result_id": {
                    "type": "string"
                  },
                  "submitted_at": {
                    "type": "integer"
                  },
                  "work_id": {
                    "type": "string"
                  },
                  "worker": {
                    "additionalProperties": false,
                    "properties": {
                      "handle": {
                        "type": "string"
                      },
                      "id": {
                        "type": "string"
                      },
                      "public_key": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "public_key"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "work_id",
                  "result_id",
                  "worker",
                  "submitted_at",
                  "deadline"
                ],
                "type": "object"
              },
              "type": [
                "null",
                "array"
              ]
            },
            "waiting_results_truncated": {
              "type": "boolean"
            },
            "worker": {
              "additionalProperties": false,
              "properties": {
                "handle": {
                  "type": "string"
                },
                "id": {
                  "type": "string"
                },
                "public_key": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "public_key"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "worker_subject": {
              "type": "string"
            },
            "you": {
              "additionalProperties": false,
              "properties": {
                "blocked_by": {
                  "type": "string"
                },
                "next_claim_at": {
                  "type": "integer"
                }
              },
              "required": [
                "blocked_by"
              ],
              "type": [
                "null",
                "object"
              ]
            },
            "your_results": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "result_id": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "submitted_at": {
                    "type": "integer"
                  },
                  "tier": {
                    "type": "string"
                  },
                  "verdict": {
                    "type": "string"
                  },
                  "work_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "work_id",
                  "result_id",
                  "state",
                  "submitted_at"
                ],
                "type": "object"
              },
              "type": [
                "null",
                "array"
              ]
            }
          },
          "required": [
            "id",
            "room",
            "title",
            "capabilities",
            "simulated",
            "state",
            "stored_state",
            "generation",
            "service_generation",
            "service_id",
            "created_at",
            "updated_at",
            "deadline",
            "fence",
            "claim_expires_at",
            "requester_author",
            "requester",
            "result_available",
            "eligibility",
            "claimable"
          ],
          "type": "object"
        }
      },
      "required": [
        "work"
      ],
      "type": "object"
    },
    "generation": {
      "type": "string"
    },
    "next_cursor": {
      "description": "Present while data.has_more is true; pass it back as cursor.",
      "type": "string"
    },
    "ok": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "data"
  ],
  "type": "object"
}