# Heal-Anything — Polymorphic Diagnostic & Self-Healing Engine > Deterministic 5-class API, DOM, and payload self-healing engine at https://heal.fastmesh.dev exposing fake-200 soft-block diagnosis, JSON/OpenAPI schema drift remapping patches, HTML CSS selector rot fallback recovery, 429/5xx circuit-breaker policy generation, and dirty encoding/webhook/CSV sanitization over HTTP REST, native Streamable MCP (`POST /mcp`), Causal Bazaar (`a08_heal_anything_v1`), and `treg hub` (0% seller commission). Every heal emits a tamper-evident 24-hour SHA-256 `SLACertificate` with strict `$0` billing on HTTP `422`, SSRF blocks, errors, or empty results. ## Core Guarantees & Trust Policy - **Strict `$0` Billing on 422 / Error / Empty**: Charges apply ONLY on billable diagnostic or healing results backed by a valid 64-hex `sha256_attestation`. Invalid/junk payloads, private/loopback/link-local SSRF targets (`HTTP 422`), upstream timeouts, `INCONCLUSIVE` outcomes, or empty results strictly return `billed_micros = 0` with a non-empty `zero_bill_reason`. - **Zero CAPTCHA Bypasses**: `fake_200` detects Cloudflare, Turnstile, reCAPTCHA, hCaptcha, DataDome, PerimeterX, login walls, and quota exhaustion wrapped in HTTP `200`, reports the block honestly, triggers `ArchiveCache` invalidation, and recommends backup provider switchover—never solving or bypassing access controls. - **Executable Patches Over Alert-Only Paging**: Unlike Checkly (`$24–$64/mo`), Better Stack (`$21–$25/mo`), Datadog Synthetics (`$5–$7.20/10k API`), or Sentry (`$26–$80/mo`), Heal-Anything emits deterministic JSON remapping patches restoring 100% of baseline schemas, ranked CSS fallback chains, backoff/jitter configs, and sanitized UTF-8/CSV/JSON outputs. - **Zero Conversation & Payload Resale**: Customer payloads, schemas, and healing traces are never sold, licensed, or reused to train third-party models. - **Support**: `ops@fastmesh.dev` - **Base URLs**: `https://heal.fastmesh.dev` (public gateway) · `http://127.0.0.1:8808` (local runtime) ## Endpoints & Agent Discovery - [Web Console & 5-Second Try-Now](https://heal.fastmesh.dev/): Zero-signup interactive workbench with 5 fault presets (`GET /`). - [Health Check](https://heal.fastmesh.dev/health): Live service liveness, active 5 fault classes, ledger, and MCP readiness (`GET /health`). - [Diagnosis Endpoint](https://heal.fastmesh.dev/diagnose): Non-mutating fault diagnosis across 5 degradation classes (`POST /diagnose`, `$0.015` / `15000` micros; `$0` on `422`/error/empty). - [Self-Healing Endpoint](https://heal.fastmesh.dev/heal): Diagnose degradation and emit executable patch, `healed_payload`, and signed 24h SHA-256 `SLACertificate` (`POST /heal`). - [SLA Certificate Endpoint](https://heal.fastmesh.dev/sla-cert): Issue or verify a 24-hour SHA-256 SLA Health Certificate (`POST /sla-cert` and `GET /sla-cert/{cert_id}`). - [Native Streamable MCP Endpoint](https://heal.fastmesh.dev/mcp): JSON-RPC 2.0 MCP server (`initialize`, `tools/list`, `tools/call`: `diagnose_fault`, `heal_anything`, `issue_sla_cert`, `verify_sla_cert`). - [OpenAPI 3.1.0 Specification](https://heal.fastmesh.dev/openapi.json): Complete machine-readable REST + MCP schema (`GET /openapi.json`). - [Agent Skill Playbook](https://heal.fastmesh.dev/skill.md): Concrete agent invocation rules, payloads, and offline SHA-256 `verify_sla_certificate()` code (`GET /skill.md`). - [Technical Self-Healing Guides](https://heal.fastmesh.dev/guides): 25 long-tail engineering guides and interactive payload examples (`GET /guides` and `GET /guides/{slug}`). - [Creem Payment Webhook](https://heal.fastmesh.dev/webhooks/creem): HMAC-SHA256 verified idempotent prepaid credit settlement (`POST /webhooks/creem`). ## 5 Polymorphic Healing Classes & Micro-USD Pricing - **`fake_200`** (Fake-200 Soft-Block Diagnoser): `$0.020` (`20000` micros; `$0.002` 10% repeat cache) — Detects CAPTCHA challenges, SSO/login walls, quota exhaustion, empty SPA shells (`
`), truncated bodies, and Content-Type contradictions behind HTTP `200`, returning honest switchover advice and `ArchiveCache` invalidation. - **`schema_drift`** (JSON/OpenAPI Schema Drift Self-Healing Adapter): `$0.050` (`50000` micros; `$0.005` 10% repeat cache) — Scores token Jaccard (`0.45`) + character similarity (`0.25`) + type/format compatibility (`0.30`) against a baseline schema, emitting an executable remapping patch (`rename`, `extract_path`, `coerce_type`, `derive_concat`, `derive_split`) and `healed_payload` restoring 100% of baseline keys. - **`selector_rot`** (HTML DOM / Selector Rot Self-Healing Engine): `$0.040` (`40000` micros; `$0.004` 10% repeat cache) — Penalizes brittle `:nth-child`, hashed CSS-in-JS classes, and deep combinator chains; recovers elements via a 5-tier anchor ladder (`data-testid`/`data-qa` -> non-hashed `#id`/ARIA -> `name`/`href`/`type` -> text/heading anchor -> semantic container) + diff patch. - **`circuit_breaker`** (Upstream 429/5xx/Latency Circuit-Breaker Policy Generator): `$0.030` (`30000` micros; `$0.003` 10% repeat cache) — Classifies `429/502/503` vs `504/0` (`DO_NOT_REROUTE` on writes) vs `401/403/404/410`; emits exponential backoff + full jitter (`250ms` base, `30s` cap, `Retry-After <= 60s`), `60s` isolation, `19.5%` single-provider share cap, `3-sigma` trip, and backup failover config. - **`payload_sanitizer`** (Dirty Encoding / Malformed Webhook / Truncated CSV Sanitizer): `$0.030` (`30000` micros; `$0.003` 10% repeat cache) — Strips UTF-8 BOM, NUL bytes, and C0 control chars; decodes `utf-8 -> cp1252 -> latin-1` cleanly; repairs trailing commas/newlines/truncated JSON webhooks; repairs ragged/unclosed-quote CSVs with formula-injection guards (`=`, `+`, `-`, `@`); and triggers `ArchiveCache` invalidation. - **`sla_cert`** (Standalone 24h SHA-256 SLA Health Certificate Issuance): `$0.020` (`20000` micros; `GET /sla-cert/{cert_id}` & `verify_sla_cert` free/`$0`). ## Creem Prepaid Credit Packs (Non-Expiring, One-Time) - **Starter (`$9`)**: `sku_heal_starter_9` — `$9.00` credit value (`9,000,000` micros, `0` bonus) — https://www.creem.io/product/prod_heal_anything_starter_9 - **Growth (Recommended) (`$29`)**: `sku_heal_growth_29` — `$32.00` credit value (`32,000,000` micros, `+$3.00` bonus) — https://www.creem.io/product/prod_heal_anything_growth_29 - **Pro (`$99`)**: `sku_heal_pro_99` — `$115.00` credit value (`115,000,000` micros, `+$16.00` bonus) — https://www.creem.io/product/prod_heal_anything_pro_99 - **Scale (`$249`)**: `sku_heal_scale_249` — `$310.00` credit value (`310,000,000` micros, `+$61.00` bonus) — https://www.creem.io/product/prod_heal_anything_scale_249 ## Multi-Channel Distribution - **Causal Bazaar Public Card**: `a08_heal_anything_v1` (`hand_id: a08_heal_anything_hand_v1`, `is_public: 1`, `price_micros: 30000`, runner `run_hand.py`). - **Treg Hub 0%-Commission Recipe**: `heal-anything` (`treg_hub/recipe.json`, `treg_hub/run.js`, `treg_hub/check.json`, `commission_pct: 0`, strict `$0` on 422/error/empty). ## Technical Self-Healing Guides (25 Pages) - [Detect Fake HTTP 200 Cloudflare & CAPTCHA Soft Blocks Automatically](https://heal.fastmesh.dev/guides/detect-fake-200-cloudflare-captcha-soft-blocks): `fake_200` — Target query: `detect fake HTTP 200 Cloudflare CAPTCHA soft block API` - [Catch Login & SSO Walls Returning HTTP 200 OK in Data Pipelines](https://heal.fastmesh.dev/guides/catch-sso-login-wall-returning-http-200): `fake_200` — Target query: `catch login wall SSO redirect returning HTTP 200 OK` - [Detect Empty SPA Shells and Rate-Limit Envelopes Inside HTTP 200](https://heal.fastmesh.dev/guides/detect-empty-spa-shell-quota-wall-http-200): `fake_200` — Target query: `detect empty React Next root shell and quota error in HTTP 200` - [Catch Silent Filter-Ignoring & Content-Type Contradictions on APIs](https://heal.fastmesh.dev/guides/catch-silent-filter-ignoring-content-type-mismatch): `fake_200` — Target query: `detect API ignoring query filters returning 200 OK noise` - [Stop Paying $24-$80/mo for Alert-Only Monitors: Fake-200 Diagnostics at $0.02](https://heal.fastmesh.dev/guides/checkly-better-stack-alternative-fake-200-diagnostics): `fake_200` — Target query: `Checkly Better Stack alternative fake 200 detection API` - [Auto-Heal Renamed JSON API Keys With Executable Remapping Patches](https://heal.fastmesh.dev/guides/auto-heal-renamed-json-api-keys-remapping-patch): `schema_drift` — Target query: `auto heal renamed JSON API fields remapping patch` - [Flatten Nested OpenAPI Payload Drift Back to 100% Baseline Schema](https://heal.fastmesh.dev/guides/flatten-nested-openapi-payload-schema-drift): `schema_drift` — Target query: `fix nested JSON object schema drift restore baseline contract` - [Deterministic String-to-Number Type Coercion & Currency Scaling Patches](https://heal.fastmesh.dev/guides/deterministic-type-coercion-currency-scaling-patch): `schema_drift` — Target query: `coerce stringified JSON fields and currency units automatically` - [Derive Missing full_name, first_name, and domain Fields deterministically](https://heal.fastmesh.dev/guides/derive-missing-identity-fields-schema-drift): `schema_drift` — Target query: `derive full_name first_name email domain on API schema drift` - [MCP Tool for Self-Healing Third-Party API Schema Drift in AI Agents](https://heal.fastmesh.dev/guides/mcp-tool-api-schema-drift-self-healing-agents): `schema_drift` — Target query: `MCP tool auto heal third party API schema drift for AI agents` - [Recover Broken CSS Selectors When :nth-child and Hashed Classes Rot](https://heal.fastmesh.dev/guides/recover-broken-css-selectors-nth-child-css-in-js): `selector_rot` — Target query: `recover broken CSS selector hashed class nth-child rot` - [Multi-Tier DOM Anchor Fallback Ladder (data-testid, ARIA, Text, Semantic)](https://heal.fastmesh.dev/guides/dom-anchor-fallback-ladder-data-testid-aria): `selector_rot` — Target query: `DOM selector fallback strategy data-testid aria label anchor` - [Portable Selector Diff Patches vs Locked-In Datadog Browser Tests](https://heal.fastmesh.dev/guides/datadog-synthetics-alternative-portable-selector-patches): `selector_rot` — Target query: `Datadog Synthetics alternative exportable CSS selector patch` - [Self-Healing Price & Table Scraper Selectors Using Anchor Text Hints](https://heal.fastmesh.dev/guides/self-healing-price-table-scraper-anchor-text): `selector_rot` — Target query: `self healing HTML scraper selector using anchor text fallback` - [Zero-SSRF HTML Snapshot Selector Recovery With $0 Billing on 422](https://heal.fastmesh.dev/guides/zero-ssrf-html-selector-recovery-422-guard): `selector_rot` — Target query: `safe HTML selector recovery API with SSRF 422 protection` - [Generate 429 & 503 Exponential Backoff + Full Jitter Circuit-Breaker Policies](https://heal.fastmesh.dev/guides/tune-429-503-exponential-backoff-full-jitter-circuit-breaker): `circuit_breaker` — Target query: `HTTP 429 503 exponential backoff full jitter circuit breaker config` - [Prevent Double Billing on 504 Timeouts With DO_NOT_REROUTE Write Locks](https://heal.fastmesh.dev/guides/prevent-double-billing-504-timeout-do-not-reroute): `circuit_breaker` — Target query: `HTTP 504 timeout idempotency lock DO_NOT_REROUTE writes` - [Cap Single-Provider Share at 19.5% & Enforce 60s Bad-Neighbor Isolation](https://heal.fastmesh.dev/guides/provider-concentration-cap-bad-neighbor-isolation): `circuit_breaker` — Target query: `multi provider circuit breaker traffic share cap 60s isolation` - [Global Storm Gate & 3-Sigma Anomaly Tripping for Upstream API Outages](https://heal.fastmesh.dev/guides/global-storm-gate-three-sigma-circuit-breaker): `circuit_breaker` — Target query: `prevent cascading false circuit breaker trips global storm gate` - [Sentry & Checkly Alternative: Actionable 429/5xx Failover Configs via API](https://heal.fastmesh.dev/guides/sentry-checkly-alternative-circuit-breaker-config-api): `circuit_breaker` — Target query: `Sentry uptime alert alternative executable failover policy API` - [Strip UTF-8 BOM, CP1252 Mojibake, and NUL Bytes in Webhook Payloads](https://heal.fastmesh.dev/guides/strip-utf8-bom-cp1252-nul-bytes-webhooks): `payload_sanitizer` — Target query: `fix UTF-8 BOM CP1252 mojibake NUL bytes malformed JSON webhook` - [Repair Trailing Commas, Raw Newlines, and Truncated JSON at EOF](https://heal.fastmesh.dev/guides/repair-trailing-commas-truncated-json-webhook): `payload_sanitizer` — Target query: `repair trailing comma raw newline truncated JSON webhook payload` - [Sanitize Ragged CSV Exports, Unclosed Quotes, and Formula Injection](https://heal.fastmesh.dev/guides/sanitize-ragged-csv-unclosed-quotes-formula-injection): `payload_sanitizer` — Target query: `sanitize malformed CSV unclosed quotes formula injection API` - [ArchiveCache Invalidation & Error Non-Poisoning for Healed Payloads](https://heal.fastmesh.dev/guides/archive-cache-invalidation-error-non-poisoning): `payload_sanitizer` — Target query: `prevent stale cache poisoning on upstream API soft blocks` - [Signed 24-Hour SHA-256 SLA Health Certificates With Offline Verification](https://heal.fastmesh.dev/guides/signed-24h-sha256-sla-health-certificates): `payload_sanitizer` — Target query: `signed 24h SHA-256 SLA health certificate API offline verify`