# CMS Widow-Orphan Page Plan Validator

> CMS Widow-Orphan Page Plan Validator is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-04).

Validates proposed page break positions in a CMS document against widow, orphan, and keep-next constraints and returns the minimum valid page count.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/cms/cms-widow-orphan-page-plan?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cms-widow-orphan-page-plan-validator-c73571bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I6RqR0dwhywGIPxTIOSpu

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 cms-widow-orphan-page-plan-validator-c73571bc -d '<json body>'
```

Example prompt: Check whether these page breaks are valid for my CMS document: I have 3 paragraphs (8 lines with orphan/widow min 2, keep-next false; 5 lines with orphan/widow min 2, keep-next true; 4 lines with orphan/widow min 2, keep-next false), a page capacity of 10 lines, and claimed breaks at lines 10 and 20 — are the breaks valid and what's the minimum page count?

## When to prefer this

Use this endpoint when an AI agent or CMS pipeline has proposed page breaks for an exported document and needs an authoritative check that those breaks satisfy typographic constraints (widow lines, orphan lines, keep-next paragraph pairs) and to confirm the minimum page count. Prefer this over manual logic when the constraint interactions between keep-next, widow, and orphan rules across multiple paragraphs make correctness difficult to guarantee without exhaustive checking.

## Known failure modes

- Invalid paragraph line counts outside 1-64 range return a validation error
- claimed_breaks containing values outside 1-1024 are rejected
- page_lines outside 1-128 causes a schema error
- More than 16 paragraphs or 1024 claimed breaks exceed schema limits and are rejected
- Malformed or missing required fields return a 400-level error

## How this service works

An agent that paginates an exported CMS document needs its proposed page breaks checked against orphan widow and keep-next constraints and the minimum possible page count.

## Output

Returns whether the claimed page break positions satisfy all widow, orphan, and keep-next constraints for the given paragraphs and page line capacity, and reports the minimum possible page count required for the content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "paragraphs",
    "page_lines",
    "claimed_breaks"
   ],
   "properties": {
    "page_lines": {
     "type": "integer",
     "maximum": 128,
     "minimum": 1
    },
    "paragraphs": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "lines",
       "orphans",
       "widows",
       "keep_next"
      ],
      "properties": {
       "lines": {
        "type": "integer",
        "maximum": 64,
        "minimum": 1
       },
       "widows": {
        "type": "integer",
        "maximum": 64,
        "minimum": 1
       },
       "orphans": {
        "type": "integer",
        "maximum": 64,
        "minimum": 1
       },
       "keep_next": {
        "type": "boolean"
       }
      },
      "additionalProperties": false
     },
     "maxItems": 16,
     "minItems": 1
    },
    "claimed_breaks": {
     "type": "array",
     "items": {
      "type": "integer",
      "maximum": 1024,
      "minimum": 1
     },
     "maxItems": 1024,
     "minItems": 1
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cms-widow-orphan-page-plan-validator-c73571bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
