# OIX RepoDiligence Health

> OIX RepoDiligence Health 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-15).

Returns a diligence health report for a public GitHub repository, scoring maintenance signals and returning ranked observations with evidence.

## Facts

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

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-health-b7492b43
```

Example prompt: Can you run a repository diligence health check on https://github.com/expressjs/express and show me the top maintenance observations with their evidence scores?

## When to prefer this

Choose this endpoint when you need cryptographically provable, scored diligence signals about a specific public GitHub repository's maintenance health — especially in agentic workflows requiring verifiable evidence (report digest + source digest) for audit trails. Prefer it over generic GitHub API calls when you need ranked, scored observations with OIX's evidence framework and x402 payment-gated provenance.

## Known failure modes

- Invalid or non-HTTPS target URL returns validation error
- Private or non-existent repository returns no observations
- minScore set too high returns empty observations list
- Payment not included or insufficient causes 402 response
- Rate limiting or upstream GitHub API unavailability causes timeout

## 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

A JSON report containing: asset metadata (name, slug, market), cryptographic proof (report and source digests), product offer details (price, settlement chain), and a decision object with ranked observations (each with URL, score, title, evidence), plus total monitored record count and returned observation count.

## 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 Health",
   "slug": "repodiligence-health",
   "market": "Repository maintenance health"
  },
  "proof": {
   "reportDigest": "sha256:…",
   "sourceDigest": "sha256:…"
  },
  "product": {
   "offer": "Public repository diligence report",
   "price": "0.05 USDC",
   "settlement": "x402 · Base mainnet"
  },
  "decision": {
   "buyer": "Technical diligence 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-health-b7492b43/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)
