# invinoveritas Strategy Overfitting Validator

> invinoveritas Strategy Overfitting Validator is a paid API for AI agents from api.babyblueviper.com, paid per call via x402, $0.181606/call, status unknown (last checked 2026-09-15).

Statistically validates trading strategy returns for overfitting using Deflated Sharpe Ratio, permutation tests, and k-fold out-of-sample decay analysis

## Facts

- Endpoint: POST https://api.babyblueviper.com/validate
- Price: $0.181606/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/invinoveritas-strategy-overfitting-validator-e0493fc3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y4AEYYphbN4Sj9DyLlOTt

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 invinoveritas-strategy-overfitting-validator-e0493fc3 -d '<json body>'
```

Example prompt: Run invinoveritas on my strategy's monthly returns [0.02, -0.01, 0.03, 0.015, -0.005, 0.04, 0.01, -0.02, 0.025, 0.03, -0.01, 0.02] — I tested 47 variants before settling on this one, so I need the deflated Sharpe haircut and an overfit verdict.

## When to prefer this

Use this endpoint when an AI agent or quant needs an objective, statistically rigorous check of a trading strategy's backtested returns before committing capital — especially when multiple variants were tried, making naive Sharpe ratios misleading. Prefer over simple Sharpe ratio calculators when data snooping or overfitting risk is the core concern.

## Known failure modes

- Missing or empty returns array returns validation error
- n_variants_tried of zero or negative may cause division errors or undefined deflation haircut
- Returns array too short for meaningful k-fold cross-validation may yield unreliable results
- Malformed numeric values in returns array cause schema rejection
- Insufficient balance of USDC for x402 payment causes 402 Payment Required before processing

## How this service works

A neutral verdict before an irreversible action, a signed proof after, and a public track record of being right you recompute — not a score you trust. The verdict is provably committed before the outcome it's graded against: no TEE, no trusted scorer.

## Output

A JSON object containing a verdict ('overfit' or similar), permutation p-value indicating statistical significance, deflated Sharpe ratio after correcting for multiple testing, and k-fold out-of-sample decay percentage showing how much the strategy degrades on unseen data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "returns": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "Realized per-period returns of the strategy (never the strategy itself)"
  },
  "n_variants_tried": {
   "type": "integer",
   "description": "How many variants you tested (drives the Deflated Sharpe haircut)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "invinoveritas.validate.v1",
  "verdict": "overfit",
  "disclaimer": "Statistical edge-reality check, not financial advice.",
  "permutation_p": 0.42,
  "deflated_sharpe": 0.31,
  "kfold_oos_decay_pct": 61
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/invinoveritas-strategy-overfitting-validator-e0493fc3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.babyblueviper.com](https://www.zero.xyz/host/api.babyblueviper.com/llms.txt)
