fix(ingest): filter BIT-<id> smoke-test probes in noise policy (BIT-32681) #19

Merged
spark merged 1 commits from fix/BIT-32681-smoke-probe-noise-filter into master 2026-11-20 10:03:25 +00:00
Owner

Summary

Error Loop BIT-32681 was auto-created from a hand-sent pipe-liveness probe whose message was BIT-32663 smoke test. The ingest noise policy only filters the reserved BIT-SMOKE- token and the deploy-probe ribbon; the BIT-<id> smoke test probe shape (bare or bracketed) matched neither, so it passed ingest and opened a false-positive issue. The fleet audit already treats the bracketed [BIT-<id>] ... smoke test form as synthetic, but its regex required brackets + an extra token, so the two layers disagreed.

Changes

  • ingest-api/src/lib/noisePolicy.ts — add _BIT_ID_SMOKE_PROBE_RE matching bare (BIT-32663 smoke test) and bracketed ([BIT-30527] ... smoke test) probe forms; filtered at every severity under the existing bitreport_smoke_marker rule. Ruleset 1.0.7 → 1.0.8.
  • ingest-api/src/lib/noisePolicy.test.ts — bare, bracketed, critical-level, and a negative case (Smoke detector sensor offline stays unfiltered).
  • tools/paperclip/paperclip_fleet_error_reporting_audit_once.py — relax _SYNTHETIC_EVENT_RE to the same bare/bracketed shape so ingest and fleet audit agree.
  • docs/operations/ingest-hardening-runbook.md — document the new probe shape.

Verification

  • npm test (ingest-api): 44 passed | 14 skipped; reporter context contract ok.
  • npm run typecheck: clean.
  • python3 -m py_compile fleet audit: ok.

Paperclip-Issue: BIT-32681

## Summary Error Loop BIT-32681 was auto-created from a hand-sent pipe-liveness probe whose message was `BIT-32663 smoke test`. The ingest noise policy only filters the reserved `BIT-SMOKE-` token and the deploy-probe ribbon; the `BIT-<id> smoke test` probe shape (bare or bracketed) matched neither, so it passed ingest and opened a false-positive issue. The fleet audit already treats the bracketed `[BIT-<id>] ... smoke test` form as synthetic, but its regex required brackets + an extra token, so the two layers disagreed. ## Changes - `ingest-api/src/lib/noisePolicy.ts` — add `_BIT_ID_SMOKE_PROBE_RE` matching bare (`BIT-32663 smoke test`) and bracketed (`[BIT-30527] ... smoke test`) probe forms; filtered at every severity under the existing `bitreport_smoke_marker` rule. Ruleset `1.0.7` → `1.0.8`. - `ingest-api/src/lib/noisePolicy.test.ts` — bare, bracketed, critical-level, and a negative case (`Smoke detector sensor offline` stays unfiltered). - `tools/paperclip/paperclip_fleet_error_reporting_audit_once.py` — relax `_SYNTHETIC_EVENT_RE` to the same bare/bracketed shape so ingest and fleet audit agree. - `docs/operations/ingest-hardening-runbook.md` — document the new probe shape. ## Verification - `npm test` (ingest-api): 44 passed | 14 skipped; reporter context contract `ok`. - `npm run typecheck`: clean. - `python3 -m py_compile` fleet audit: ok. Paperclip-Issue: BIT-32681
spark added 1 commit 2026-11-20 09:42:27 +00:00
fix(ingest): filter BIT-<id> smoke-test probes in noise policy (BIT-32681)
CI / Test ingest-api (pull_request) Successful in 24s
CI / Test api (pull_request) Successful in 26s
CI / Lint and typecheck admin-ui (pull_request) Successful in 1m58s
CI / Validate Docker build (pull_request) Successful in 3m33s
b8ca70709e
Hand-sent pipe-liveness probes referenced by a BIT task id (e.g.
`BIT-32663 smoke test` or `[BIT-30527] ... smoke test`) were not matched
by the ingest noise policy: they lack the reserved `BIT-SMOKE-` token and
the bracket-only fleet-audit regex, so they passed ingest and opened a
false-positive Error Loop issue (BIT-32681 / ERRCLUSTER a513bc4e4505).

- noisePolicy.ts: add `_BIT_ID_SMOKE_PROBE_RE` matching bare and bracketed
  `BIT-<id> ... smoke test` forms; filtered at every severity under the
  existing `bitreport_smoke_marker` rule. Bump ruleset 1.0.7 -> 1.0.8.
- noisePolicy.test.ts: cover bare, bracketed, critical-level, and a
  negative case (`Smoke detector sensor offline` stays unfiltered).
- paperclip_fleet_error_reporting_audit_once.py: relax `_SYNTHETIC_EVENT_RE`
  to the same bare/bracketed shape so ingest and fleet audit agree.
- docs/operations/ingest-hardening-runbook.md: document the new probe shape.

Verified locally: ingest-api vitest 44 passed | 14 skipped; typecheck clean;
reporter context contract ok; fleet audit py_compile ok.

Paperclip-Agent: José Alves (urlKey jos-alves; id 11179220-3cec-4f0f-880d-2771ff64fce8)
Paperclip-Issue: BIT-32681
Paperclip-Run: 64667793-6ac7-404b-80bc-f369f0c4f9e0
CODEOWNERS rules requested review from founding-engineer 2026-11-20 09:42:27 +00:00
paperclip-review-bot left a comment
Member

auto-approve: CI success on b8ca70709e (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on b8ca70709e6a (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success on b8ca70709e (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on b8ca70709e6a (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success on b8ca70709e (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on b8ca70709e6a (gitea_auto_approve_open_prs_once.py)
spark merged commit baac48a632 into master 2026-11-20 10:03:25 +00:00
Sign in to join this conversation.