# Validation Rule Results — Duplicate Key Report + Trailing Mean Series

> Validation Rule Results — Duplicate Key Report + Trailing Mean Series is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Analyzes validation rule result records to detect duplicate keys and compute a trailing mean time series for passed_rules or total_rules metrics.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-analytics-08-061?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/validation-rule-results-duplicate-key-report-trailing-mean-series-3a5bb96e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZqF_jcdv5E3kR8XwKJyw_

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 validation-rule-results-duplicate-key-report-trailing-mean-series-3a5bb96e -d '<json body>'
```

Example prompt: Check my validation rule results for duplicate keys and compute a trailing mean for passed_rules with a window of 3 — here are my records: row-1 on 2026-10-01 in group-a with 10 passed out of 1 total, row-2 on 2026-10-02 in group-b with 20 passed out of 2 total, row-3 on 2026-10-03 in group-a with 15 passed out of 3 total.

## When to prefer this

Choose this endpoint when you need to simultaneously detect duplicate key issues and compute smoothed rolling averages in validation rule result datasets. It is purpose-built for data quality monitoring workflows where both data integrity (duplicates) and trend analysis (trailing mean) on rule pass/fail counts are needed together. Prefer it over generic analytics endpoints when your data follows the row_id + dataset_group + date + passed_rules + total_rules schema.

## Known failure modes

- Fewer than 1 row submitted — validation error
- More than 200 rows submitted — exceeds maxItems limit
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- Window size below 2 or above 200 — rejected input
- Unknown field value outside enum ['passed_rules','total_rules'] — schema error
- Null numeric values may affect trailing mean computation

## How this service works

Validation rule results — Duplicate key report + Trailing mean series: Duplicate key report + Trailing mean series for supplied validation rule results records (passed_rules, total_rules). Up to 200 …

## Output

Returns a duplicate key report identifying any row_id values that appear more than once in the input, plus a trailing mean time series for the selected field (passed_rules or total_rules) computed over the specified rolling window across the submitted records.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "dataset_group",
     "date",
     "passed_rules",
     "total_rules"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "total_rules": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "passed_rules": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "dataset_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "total_rules": 1,
     "passed_rules": 10,
     "dataset_group": "group-a"
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "total_rules": 2,
     "passed_rules": 20,
     "dataset_group": "group-b"
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "total_rules": 3,
     "passed_rules": 15,
     "dataset_group": "group-a"
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "total_rules": 4,
     "passed_rules": 30,
     "dataset_group": "group-b"
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "passed_rules",
    "total_rules"
   ],
   "type": "string",
   "default": "passed_rules"
  },
  "window": {
   "type": "integer",
   "default": 2,
   "maximum": 200,
   "minimum": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/validation-rule-results-duplicate-key-report-trailing-mean-series-3a5bb96e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
