# Service Worker Readiness Decision

> Service Worker Readiness Decision is a paid API for AI agents from webtechnik.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-17).

Passively inspects a public URL to determine whether it has a service worker registered, returning a verdict, evidence, threshold, and recommended action.

## Facts

- Endpoint: POST https://webtechnik.halowerk.com/v1/service-worker-decision?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/service-worker-readiness-decision-e4ab1284
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iPmPqL0Lr5rbVRyta26Jm

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 service-worker-readiness-decision-e4ab1284 -d '<json body>'
```

Example prompt: Can you check whether https://example.com has a service worker registered and tell me if it passes the readiness criterion — include the evidence source and any limitations?

## When to prefer this

Use this endpoint when you need a lightweight, passive, non-invasive verdict on whether a specific public URL has a service worker registered, especially as part of a broader PWA or web performance audit pipeline. Prefer it over manual Lighthouse runs or browser DevTools when you need a programmatic, automatable check with structured output including evidence provenance and action recommendations. Ideal for CI/CD gates, competitive benchmarking, or regression monitoring when combined with a baseline snapshot.

## Known failure modes

- Target URL is unreachable or returns a non-200 status — check may return an inconclusive or error verdict
- Bare domain normalized to HTTPS may fail if site only serves HTTP
- Service worker registered via dynamic runtime injection may not be detected by passive inspection
- Rate limiting or bot-blocking on the target site may prevent evidence retrieval
- Malformed or oversized target URL (exceeding 2048 characters) will be rejected

## How this service works

Service worker readiness decision fetches current public evidence from the supplied target and evaluates the documented criterion. It returns the observation, threshold, verdict, exact evidence source, limitations and a mode-specific action. The check is passive: no login attempt, payload injection, exploit, purchase, form submission or load test is performed.

## Output

Returns a structured result containing the observation (what was found on the target), the threshold that determines pass/fail, a verdict (pass/fail/unknown), the exact evidence source (e.g. the specific HTTP response or script tag inspected), noted limitations of the passive check, and a mode-specific action recommendation. No authentication, login, exploit, or form submission is performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 3,
   "description": "Public HTTP(S) URL or domain to inspect. A bare domain is normalized to HTTPS."
  },
  "context": {
   "type": "object",
   "description": "Optional non-secret correlation labels returned unchanged only in the request lifecycle.",
   "maxProperties": 12,
   "additionalProperties": {
    "type": [
     "string",
     "number",
     "boolean",
     "null"
    ]
   }
  },
  "baseline": {
   "type": [
    "object",
    "null"
   ],
   "description": "Optional baseline returned by a previous snapshot call.",
   "additionalProperties": true
  },
  "compare_url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 3,
   "description": "Optional public comparison URL. Used by change and monitoring services."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/service-worker-readiness-decision-e4ab1284/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from webtechnik.halowerk.com](https://www.zero.xyz/host/webtechnik.halowerk.com/llms.txt)
