# Repo Compliance Scan

> Repo Compliance Scan is a paid API for AI agents from k2so.wrong.systems, paid per call via x402, $0.05/call, status down (last checked 2026-09-15).

Scans a GitHub repository and returns its license type, star count, maintenance status, reuse readiness score, and red flags like archived state, stale activity, or missing license in one call.

## Facts

- Endpoint: GET https://k2so.wrong.systems/api/services/repo-compliance-scan
- 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/repo-compliance-scan-e3257291
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FnobnoR9EeN9QhtgqVSzo

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 repo-compliance-scan-e3257291
```

Example prompt: Can you do a compliance scan on the GitHub repo github.com/expressjs/express — I want to know its license, whether it's actively maintained, any red flags like being archived or missing a license, and its overall reuse readiness score?

## When to prefer this

Choose this endpoint when you need a single-call summary of a GitHub repository's license compliance, health, and reuse safety — especially during dependency evaluation, open source procurement, or legal due diligence workflows. It is preferable over raw GitHub API calls because it synthesizes multiple signals (license, stars, archival state, staleness, missing license) into a scored, human-readable result with risk flags, saving the agent multiple round trips and interpretation work.

## Known failure modes

- Repository not found or URL malformed — scan returns ok:false with no result data
- Repository is private and inaccessible — handler may return ok:false or empty evidence
- Payment not processed — endpoint returns 402 Payment Required without result
- Rate limiting or GitHub API upstream failure — scan may time out or return partial evidence
- License file exists but is non-standard — may result in low confidence score rather than a clean license classification

## How this service works

GitHub repository health + license compliance in one call: license, stars, maintenance status, red flags (archived, stale, missing license), reuse readiness score.

## Output

Returns a JSON object containing: a boolean success flag, a reuse readiness score (numeric), a plain-language summary, an evidence object with raw signals (license, stars, maintenance indicators), an array of strengths, an array of risk factors, a confidence level string, and an ISO-8601 timestamp of when the scan was generated.

## 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": {
      "meta": {
       "enum": [
        "0",
        "1"
       ],
       "type": "string",
       "description": "Set to 1 for free metadata JSON (no payment required)"
      },
      "repo": {
       "type": "string",
       "description": "Composite input parameter"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "Repo Compliance Scan paid response",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "ok",
      "paid",
      "service",
      "provider",
      "result"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "paid": {
       "type": "boolean"
      },
      "result": {
       "type": "object",
       "required": [
        "ok",
        "service"
       ],
       "properties": {
        "ok": {
         "type": "boolean",
         "description": "Handler success"
        },
        "score": {
         "type": "number"
        },
        "service": {
         "type": "string",
         "description": "Service slug"
        },
        "summary": {
         "type": "string"
        },
        "evidence": {
         "type": "object"
        },
        "strengths": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "confidence": {
         "type": "string"
        },
        "generatedAt": {
         "type": "string",
         "description": "ISO-8601 timestamp"
        },
        "riskFactors": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      },
      "payment": {
       "type": "object",
       "properties": {
        "code": {
         "type": "string"
        },
        "payer": {
         "type": "string"
        },
        "detail": {
         "type": "string"
        },
        "selfPay": {
         "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true,
  "result": {
   "ok": true,
   "service": "repo-compliance-scan"
  },
  "service": "repo-compliance-scan",
  "provider": "K-2SO"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/repo-compliance-scan-e3257291/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from k2so.wrong.systems](https://www.zero.xyz/host/k2so.wrong.systems/llms.txt)
