# OSPF Graceful Restart Helper State Recovery

> OSPF Graceful Restart Helper State Recovery is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Recovers and validates OSPF graceful restart helper state, including admission topology, timeout ledger, and exit duties for RFC 3623 compliance.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-13/rfc3623-ospf-graceful-restart-helper-admission-topology-timeout-ledger?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ospf-graceful-restart-helper-state-recovery-5a8c1fc5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rPewLlvvsbVMslD6kDVum

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 ospf-graceful-restart-helper-state-recovery-5a8c1fc5 -d '<json body>'
```

Example prompt: Recover the OSPF graceful restart helper state from these grace LSA events — the grace period is 120 seconds, restart reason is 1 (software restart), and I need you to validate the admission topology and return the timeout ledger and exit duties.

## When to prefer this

Use this endpoint when you need to process and validate OSPF graceful restart helper state according to RFC 3623, particularly when you have raw grace LSA event streams and need to compute helper admission, track timeout ledgers, and determine exit conditions. Prefer this over general routing validators when you specifically need RFC 3623 helper-mode state machine computation.

## Known failure modes

- Invalid grace period value (outside 1–4294967295 range) causes schema validation failure
- Malformed LSA body_hex (non-hex characters or odd length) returns 400 Bad Request
- Too many events in array (exceeds 32 items) causes schema rejection
- Missing required fields (op, age, now, grace, reason, segment, interface_address, advertising_router) returns validation error
- Topology inconsistency detected causing helper to deny admission

## How this service works

Recover OSPF restart helper state and exit duties.

## Output

Returns the recovered OSPF graceful restart helper state including admission decision, timeout ledger entries, topology change flags, and exit duty status per RFC 3623 — structured as a JSON object reflecting whether the helper should continue assisting the restarting router and when it should exit helper mode.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "$defs": {
    "s0": {
     "type": "object",
     "properties": {
      "options": {
       "type": "integer",
       "maximum": 255,
       "minimum": 0
      },
      "body_hex": {
       "not": {
        "pattern": "[\\r\\n  ]"
       },
       "type": "string",
       "pattern": "^(?:[0-9a-f]{2}){0,256}$"
      }
     },
     "minProperties": 2,
     "additionalProperties": false
    },
    "s1": {
     "type": "object",
     "properties": {
      "lsa": {
       "type": "integer",
       "maximum": 31,
       "minimum": 0
      },
      "current": {
       "$ref": "#/properties/input/properties/body/properties/artifact/%24defs/s2"
      },
      "previous": {
       "$ref": "#/properties/input/properties/body/properties/artifact/%24defs/s2"
      }
     },
     "minProperties": 3,
     "additionalProperties": false
    },
    "s2": {
     "anyOf": [
      {
       "type": "null"
      },
      {
       "$ref": "#/properties/input/properties/body/properties/artifact/%24defs/s0"
      }
     ]
    },
    "s3": {
     "type": "array",
     "items": {
      "$ref": "#/properties/input/properties/body/properties/artifact/%24defs/s1"
     },
     "maxItems": 32
    },
    "json": {
     "anyOf": [
      {
       "type": "null"
      },
      {
       "type": "boolean"
      },
      {
       "type": "number"
      },
      {
       "type": "string",
       "maxLength": 16000
      },
      {
       "type": "array",
       "items": {
        "$ref": "#/properties/input/properties/body/properties/artifact/%24defs/json"
       },
       "maxItems": 16000
      },
      {
       "type": "object",
       "maxProperties": 16000,
       "additionalProperties": {
        "$ref": "#/properties/input/properties/body/properties/artifact/%24defs/json"
       }
      }
     ]
    }
   },
   "$schema": "https://json-schema.org/draft/2020-12/schema",
   "properties": {
    "ospfGrace": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "events": {
         "type": "array",
         "items": {
          "anyOf": [
           {
            "type": "object",
            "properties": {
             "op": {
              "enum": [
               "grace"
              ]
             },
             "age": {
              "type": "integer",
              "maximum": 3599,
              "minimum": 0
             },
             "now": {
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ospf-graceful-restart-helper-state-recovery-5a8c1fc5/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)
