openapi: 3.2.0 info: title: HiveMorph v0.1 Runrate API description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.' version: 0.1.0 tags: - name: runrate paths: /v1/runrate/tick: post: tags: - runrate summary: Runrate Tick description: 'Execute one orchestrator tick. Dispatches all drivers whose cadence is due (or force_drivers if specified). Returns the full tick summary. This is the same logic as scripts/runrate_tick.py but invocable via HTTP. Useful for manual smoke tests and Render health checks.' operationId: runrate_tick_v1_runrate_tick_post parameters: - name: force_drivers in: query required: false schema: anyOf: - type: string - type: 'null' description: Comma-separated driver names to force-fire (bypasses cadence gate) title: Force Drivers description: Comma-separated driver names to force-fire (bypasses cadence gate) - name: base_url in: query required: false schema: anyOf: - type: string - type: 'null' description: Override prod base URL (for testing) title: Base Url description: Override prod base URL (for testing) responses: '200': description: Successful Response content: application/json: schema: title: Response Runrate Tick V1 Runrate Tick Post '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /v1/runrate/status: get: tags: - runrate summary: Runrate Status description: 'Return current run-rate snapshot without firing any drivers. Reads from /v1/insights + /v1/receipts (live prod endpoints) with local DB fallback.' operationId: runrate_status_v1_runrate_status_get responses: '200': description: Successful Response content: application/json: schema: title: Response Runrate Status V1 Runrate Status Get /v1/runrate/ledger: get: tags: - runrate summary: Runrate Ledger description: Return the last N entries from runrate_ledger.jsonl. operationId: runrate_ledger_v1_runrate_ledger_get parameters: - name: n in: query required: false schema: type: integer maximum: 1000 minimum: 1 description: Number of recent entries to return default: 50 title: N description: Number of recent entries to return responses: '200': description: Successful Response content: application/json: schema: title: Response Runrate Ledger V1 Runrate Ledger Get '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' /v1/runrate/schedule: get: tags: - runrate summary: Runrate Schedule description: 'Return driver schedule: cadence, last_run, next_due per driver.' operationId: runrate_schedule_v1_runrate_schedule_get responses: '200': description: Successful Response content: application/json: schema: title: Response Runrate Schedule V1 Runrate Schedule Get components: schemas: HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError