{
  "openapi": "3.1.0",
  "info": {
    "title": "StillOS Machine Services",
    "version": "1.0.0",
    "description": "Calibrated prediction signals, claim notarization, and strategy grading. Machine-to-machine optimized. All outputs signed Ed25519.",
    "contact": {
      "email": "stillmarcus24@gmail.com"
    },
    "x-payment-standard": "x402",
    "x-payment-network": "base"
  },
  "servers": [
    {
      "url": "https://nolawealthfinancial.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/.well-known/stillos.json": {
      "get": {
        "operationId": "getDiscovery",
        "summary": "Service discovery — start here",
        "responses": {
          "200": {
            "description": "Service directory"
          }
        }
      }
    },
    "/.well-known/agent-card": {
      "get": {
        "operationId": "getAgentCard",
        "summary": "Machine-readable agent card",
        "responses": {
          "200": {
            "description": "Agent card"
          }
        }
      }
    },
    "/identity": {
      "get": {
        "operationId": "getIdentity",
        "summary": "Signed identity card (DID, public key)",
        "responses": {
          "200": {
            "description": "Identity document, signed"
          }
        }
      }
    },
    "/identity/capabilities": {
      "get": {
        "operationId": "getCapabilities",
        "summary": "All capabilities with schemas",
        "responses": {
          "200": {
            "description": "Capability registry"
          }
        }
      }
    },
    "/identity/trust": {
      "get": {
        "operationId": "getTrust",
        "summary": "Signed track record by model category",
        "responses": {
          "200": {
            "description": "Trust registry"
          }
        }
      }
    },
    "/identity/policy": {
      "get": {
        "operationId": "getPolicy",
        "summary": "Machine-readable pricing, SLA, rate limits",
        "responses": {
          "200": {
            "description": "Policy document"
          }
        }
      }
    },
    "/identity/reputation/{agent}": {
      "get": {
        "operationId": "getAgentReputation",
        "summary": "Per-agent interaction history",
        "parameters": [
          {
            "name": "agent",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Agent reputation"
          }
        }
      }
    },
    "/reputation/v1": {
      "get": {
        "operationId": "getReputationV1",
        "summary": "Global reputation registry alias",
        "responses": {
          "200": {
            "description": "Reputation registry"
          }
        }
      }
    },
    "/signal/cpi": {
      "get": {
        "operationId": "getCPISignal",
        "summary": "CPI probability signal (Cleveland Fed Nowcast)",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "KXCPI-26JUN-T-0.2"
          }
        ],
        "responses": {
          "200": {
            "description": "Calibrated CPI signal with receipt"
          },
          "429": {
            "description": "Free tier exhausted. X-Payment-Request header contains x402 payment details."
          }
        }
      }
    },
    "/signal/gdp": {
      "get": {
        "operationId": "getGDPSignal",
        "summary": "GDP probability signal (Atlanta Fed GDPNow)",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "GDP signal"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    },
    "/signal/portfolio": {
      "get": {
        "operationId": "getSignalPortfolio",
        "summary": "All active signals with edge >= 10¢",
        "responses": {
          "200": {
            "description": "Signal portfolio"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    },
    "/identity/transaction": {
      "get": {
        "operationId": "getTransactionGuide",
        "summary": "Transaction guide, callback registry, and live registry summary",
        "responses": {
          "200": {
            "description": "Transaction guide and registry"
          }
        }
      },
      "post": {
        "operationId": "postTransactionAction",
        "summary": "Quote, register callback, settle, or inspect transaction registry",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "action": {
                    "type": "string",
                    "enum": [
                      "quote",
                      "register_callback",
                      "settle",
                      "registry"
                    ]
                  },
                  "agent": {
                    "type": "string"
                  },
                  "counterparty": {
                    "type": "string"
                  },
                  "endpoint": {
                    "type": "string"
                  },
                  "callback_url": {
                    "type": "string"
                  },
                  "opportunity_id": {
                    "type": "string"
                  },
                  "amount_usd": {
                    "type": "number"
                  },
                  "receipt_hash": {
                    "type": "string"
                  },
                  "tx_hash": {
                    "type": "string"
                  },
                  "quote_id": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Transaction action result"
          }
        }
      }
    },
    "/notary/commit": {
      "post": {
        "operationId": "commitClaim",
        "summary": "Notarize a claim. x402 required ($0.10 USDC).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "agent",
                  "claim"
                ],
                "properties": {
                  "agent": {
                    "type": "string"
                  },
                  "claim": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed receipt"
          },
          "402": {
            "description": "Payment required (x402)"
          }
        }
      }
    },
    "/notary/grade-strategy": {
      "post": {
        "operationId": "gradeStrategy",
        "summary": "Grade a trade history: REAL_EDGE|REGIME_LUCK|NEGATIVE_EV|INSUFFICIENT_DATA",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "agent",
                  "trades"
                ],
                "properties": {
                  "agent": {
                    "type": "string"
                  },
                  "trades": {
                    "type": "array"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Signed grade verdict"
          }
        }
      }
    },
    "/notary/verify": {
      "get": {
        "operationId": "verifyReceipt",
        "summary": "Verify any StillOS receipt by hash. Always free. Permissionless.",
        "parameters": [
          {
            "name": "hash",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Verification result"
          }
        }
      }
    },
    "/schema/receipt/v1": {
      "get": {
        "operationId": "getReceiptSchema",
        "summary": "Receipt schema for autonomous verification",
        "responses": {
          "200": {
            "description": "Receipt schema"
          }
        }
      }
    },
    "/pricing/v1": {
      "get": {
        "operationId": "getPricingV1",
        "summary": "Machine-readable pricing policy",
        "responses": {
          "200": {
            "description": "Pricing policy"
          }
        }
      }
    },
    "/payment/v1": {
      "get": {
        "operationId": "getPaymentV1",
        "summary": "Machine-readable payment surface",
        "responses": {
          "200": {
            "description": "Payment surface"
          }
        }
      }
    },
    "/api/v1/verify": {
      "get": {
        "operationId": "verifyAnySurface",
        "summary": "Verify either a signature or a receipt hash",
        "responses": {
          "200": {
            "description": "Verification result"
          }
        }
      }
    }
  },
  "x-machine-identity": "https://nolawealthfinancial.com/identity",
  "x-trust-registry": "https://nolawealthfinancial.com/identity/trust",
  "x-policy-registry": "https://nolawealthfinancial.com/identity/policy"
}