ingest: filter Alpine _x_refreshXForScope teardown as noise (BIT-874)

Treat ERRSIG:3057b44e2230 (crm-wdmi / wdmi-store JS capture) as transient
frontend noise: Alpine v3 internal during scope teardown. Bump noise ruleset
to 1.0.1; critical level still bypasses noise rules.

Paperclip-Task-Id: 5f3e304a-63e9-4088-9625-0972a811456d
Made-with: Cursor
This commit is contained in:
Peter Spark committed 2026-04-05 01:47:26 +00:00
1 parent 550a5cdd3f
commit f828f08235
2 files changed
+33 -1

No files matched your search

+24
View File
@@ -51,4 +51,28 @@ describe("evaluateNoise", () => {
it("exports a semver-ish ruleset version", () => {
expect(NOISE_RULESET_VERSION).toMatch(/^\d+\.\d+\.\d+$/);
});
it("matches Alpine _x_refreshXForScope teardown noise", () => {
const _r = evaluateNoise({
level: "error",
message:
"Uncaught TypeError: Cannot read properties of undefined (reading '_x_refreshXForScope')",
filePathHint: "/data/wwwroot/crm-wdmi/app/Modules/ErrorMonitoring/Controllers/ErrorMonitoringController.php",
});
expect(_r).toEqual({
matched: true,
ruleId: "alpine_refresh_x_for_scope_teardown",
reason: "filtered_transient_frontend_noise",
});
});
it("does not suppress Alpine teardown noise at critical level", () => {
const _r = evaluateNoise({
level: "critical",
message:
"Uncaught TypeError: Cannot read properties of undefined (reading '_x_refreshXForScope')",
filePathHint: "",
});
expect(_r).toEqual({ matched: false });
});
});
+9 -1
View File
@@ -4,7 +4,7 @@ import { normalizeLevelToSeverity } from "./normalize.js";
* Versioned ruleset id (document in release notes when rules change).
* Rule inventory and validation steps: `docs/operations/ingest-hardening-runbook.md`.
*/
export const NOISE_RULESET_VERSION = "1.0.0";
export const NOISE_RULESET_VERSION = "1.0.1";
export type NoiseEvaluation =
| { matched: false }
@@ -115,6 +115,14 @@ const _RULES: NoiseRule[] = [
reason: "filtered_transient_frontend_noise",
match: (i) => i.message.includes("Unhandled Promise Rejection: Error: parser Error"),
},
/** Alpine.js v3 internal during teardown / navigation when scope is already gone (crm-wdmi / wdmi-store). */
{
id: "alpine_refresh_x_for_scope_teardown",
reason: "filtered_transient_frontend_noise",
match: (i) =>
i.message.includes("_x_refreshXForScope") ||
i.message.includes("reading '_x_refreshXForScope'"),
},
];
/**