ingest: filter deploy ingest live-check failure ribbon (noise 1.0.4)

The wdmi-store/CRM post-deploy probe reports failures with the exact message
BIT-SMOKE error hub ingest live check, which did not match BIT-SMOKE- and
opened hub incidents (BIT-931 / ERRCLUSTER churn). Treat it like other smoke
traffic: skip at every level with bitreport_smoke_marker.

Document in RUNBOOK_INGEST_DEBUG and ingest-hardening-runbook; add unit and
integration coverage.

Made-with: Cursor
This commit is contained in:
Peter Spark committed 2026-04-05 12:21:33 +00:00
1 parent fe0c5fb122
commit 682f9cf5c8
5 files changed
+63 -3

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
3. **Credentials:** `Authorization: Bearer <token>` or `X-Api-Key`; key must be **active** and **unexpired** in `er_ingest_keys` (§2).
4. **HTTP codes:** `401` / `429` / `5xx` / timeouts — use sections below; CRM cURL timeouts are short (e.g. 4s) — slow proxies can fail smokes before the hub responds.
5. **HTTP 400 from schema validation** should be rare; the hub ignores unknown **event-level** JSON keys and unknown **top-level** keys on the batch object (only `events` is required). Required per event: `schema_version`, `occurred_at`, `level`, `message`.
6. **Intentional throw smokes (`BIT-SMOKE-*`)** — some reporters POST a deliberate error (e.g. `BIT-SMOKE-WDMI-DIRECT-INGEST`) to prove the pipe works. The ingest API **noise-filters** these when `BIT-SMOKE-` appears in the event `message` or client `stacktrace` (`noise_ruleset_version` from `noisePolicy.ts`; see [ingest-hardening-runbook](operations/ingest-hardening-runbook.md)). Expect `skipped: true` / `rule_id: bitreport_smoke_marker` and **no** new incident. If [BIT-309](/BIT/issues/BIT-309) reopens a closed smoke ticket after the hub change merged, treat as **production ingest not yet running that build** ([BIT-942](/BIT/issues/BIT-942)).
6. **Intentional throw smokes (`BIT-SMOKE-*`)** — some reporters POST a deliberate error (e.g. `BIT-SMOKE-WDMI-DIRECT-INGEST`) to prove the pipe works. The ingest API **noise-filters** these when `BIT-SMOKE-` appears in the event `message` or client `stacktrace` (`noise_ruleset_version` from `noisePolicy.ts`; see [ingest-hardening-runbook](operations/ingest-hardening-runbook.md)). Expect `skipped: true` / `rule_id: bitreport_smoke_marker` and **no** new incident. The **deploy live-check failure** title `BIT-SMOKE error hub ingest live check` (exact message; uses a space, not `BIT-SMOKE-`) is filtered the same way from ruleset **1.0.4** onward so ERRCLUSTER loops on that signature stop once production runs the new build. If [BIT-309](/BIT/issues/BIT-309) still reopens after that deploy, treat as **stale nodes or a different root cause** ([BIT-942](/BIT/issues/BIT-942)).
**After the root cause is fixed**
+1 -1
View File
@@ -32,7 +32,7 @@ Per-key overrides: set `rate_limit_max` and/or `rate_limit_window_ms` on the key
- Rules live in `ingest-api/src/lib/noisePolicy.ts`; ruleset id: `noise_ruleset_version` in the ingest response.
- **Check:** send a known-noise payload (for example ResizeObserver message at non-fatal level); expect `skipped: true`, `noise_filtered_count` incremented, and no new `er_incidents` row.
- **Check:** send the same pattern at `fatal` / `critical` level; expect **not** skipped (noise rules do not hide critical), **except** when the **message** or **client-provided stacktrace** contains reserved substring `BIT-SMOKE-` (intentional reporter smoke, e.g. wdmi-store `/smoke/wdmi.js`, CRM `/smoke/crm-main.php`) — those are skipped at every level (`rule_id`: `bitreport_smoke_marker`).
- **Check:** send the same pattern at `fatal` / `critical` level; expect **not** skipped (noise rules do not hide critical), **except** when the **message** or **client-provided stacktrace** contains reserved substring `BIT-SMOKE-` (intentional reporter smoke, e.g. wdmi-store `/smoke/wdmi.js`, CRM `/smoke/crm-main.php`) — those are skipped at every level (`rule_id`: `bitreport_smoke_marker`). The exact deploy-probe failure ribbon `BIT-SMOKE error hub ingest live check` (space after `BIT-SMOKE`, see [RUNBOOK_INGEST_DEBUG.md](../RUNBOOK_INGEST_DEBUG.md) §0) is also skipped at every level with the same `rule_id`.
## Rate limits