# OIX RepoDiligence Security

> OIX RepoDiligence Security is a paid API for AI agents from oix-autonomous-economy.fly.dev, paid per call via x402, $0.05/call, status down (last checked 2026-09-07).

Retrieves scored public security posture evidence and diligence observations for a given public GitHub repository URL, settled via x402 on Base mainnet.

## Facts

- Endpoint: GET https://oix-autonomous-economy.fly.dev/api/x402/portfolio/repodiligence-security
- Price: $0.05/call
- Payment: x402
- Status: down
- Last checked: 2026-09-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oix-repodiligence-security-d65a199b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_26xezsScGiJ2GP6cFf65D

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability oix-repodiligence-security-d65a199b
```

Example prompt: Can you pull a security diligence report for https://github.com/expressjs/express — I want to see the top 25 scored observations and only include ones with a score of at least 70?

## When to prefer this

Choose this endpoint when you need cryptographically-proofed, scored security evidence for a specific public repository, especially in automated supply-chain security workflows or agent pipelines that require machine-readable audit trails and on-chain settlement proof via x402 on Base mainnet.

## Known failure modes

- Invalid or non-public repository URL returns an error or empty observations
- Target URL not reachable or not a GitHub repository may yield zero observations
- minScore set too high may return fewer than expected observations
- Payment failure via x402 blocks the response entirely
- Rate limiting or quota exhaustion on the upstream data source may reduce observation count

## How this service works

Package any earning logic as an autonomous asset. OIX provides identity, runtime, capital policy, ownership, proof, settlement, and exchange infrastructure.

## Output

Returns a JSON object containing the asset metadata (name, slug, market), cryptographic proof digests (reportDigest, sourceDigest), product offer details (price, settlement chain), and a decision block listing scored security observations for the target repository, along with the total monitored record count and number of returned observations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 120,
       "description": "Optional term matched against the current source-backed observations."
      },
      "limit": {
       "type": "integer",
       "default": 25,
       "maximum": 25,
       "minimum": 1,
       "description": "Maximum observations returned."
      },
      "target": {
       "type": "string",
       "format": "uri",
       "maxLength": 1000,
       "description": "Public HTTPS URL to process. The declared sample target is used when omitted."
      },
      "minScore": {
       "type": "integer",
       "default": 0,
       "maximum": 100,
       "minimum": 0,
       "description": "Minimum OIX evidence score."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": {
   "name": "RepoDiligence Security",
   "slug": "repodiligence-security",
   "market": "Public security posture evidence"
  },
  "proof": {
   "reportDigest": "sha256:…",
   "sourceDigest": "sha256:…"
  },
  "product": {
   "offer": "Public repository diligence report",
   "price": "0.05 USDC",
   "settlement": "x402 · Base mainnet"
  },
  "decision": {
   "buyer": "Supply-chain security agents",
   "observations": [
    {
     "url": "https://docs.github.com/en/repositories/viewing-activity-and-data-for-your-repository/viewing-your-repositorys-releases-and-tags",
     "score": 90,
     "title": "Primary-source market signal",
     "evidence": {}
    }
   ],
   "monitoredRecords": 40,
   "returnedObservations": 25
  },
  "protocol": "oix.machine-report/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oix-repodiligence-security-d65a199b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oix-autonomous-economy.fly.dev](https://www.zero.xyz/host/oix-autonomous-economy.fly.dev/llms.txt)
