Control online alert false discoveries
Control false discoveries across a prespecified live hypothesis stream with LORD++ and an infinite geometric alpha-spending sequence.
What it's for
Prevents an expanding real-time alert catalog from silently multiplying false positives while retaining an auditable threshold for every signal.
What you give it
Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.
| Field | Type | Role | Required |
|---|---|---|---|
| false_discovery_rate | number ≥ 0.001, ≤ 0.2 | Your calibration | Optional |
| gamma_decay | number ≥ 0.5, ≤ 0.999 | Your calibration | Optional |
| hypotheses | array of objects (2 fields) | Evidence | Yes |
| initial_wealth | number > 0 | Your calibration | Optional |
Each hypotheses
record
| Field | Type | Required |
|---|---|---|
| id | string (non-empty) | Yes |
| p_value | number (≥ 0, ≤ 1) | Yes |
{
"hypotheses": [
{
"id": "signal-0",
"p_value": 0.001
},
{
"id": "signal-1",
"p_value": 0.001
},
{
"id": "signal-2",
"p_value": 0.03
},
{
"id": "signal-3",
"p_value": 0.9
},
{
"id": "signal-4",
"p_value": 0.001
}
]
} What you get back
This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.
{
"assumptions": [
"Hypothesis order and p-value construction were fixed before each p-value was observed.",
"Null p-values are conditionally super-uniform and independent or satisfy the dependence conditions required by LORD++.",
"The geometric gamma sequence has infinite total mass one, so future tests retain nonzero testing levels.",
"A discovery controls the stream-level false-discovery rate under the design; it does not establish practical importance or causality."
],
"audit_path": [
{
"discoveries_so_far": 1,
"discovery": true,
"id": "signal-0",
"p_value": 0.001,
"sequence_number": 1,
"test_level": 0.0025
},
{
"discoveries_so_far": 2,
"discovery": true,
"id": "signal-1",
"p_value": 0.001,
"sequence_number": 2,
"test_level": 0.00475
},
{
"discoveries_so_far": 2,
"discovery": false,
"id": "signal-2",
"p_value": 0.03,
"sequence_number": 3,
"test_level": 0.009275
},
{
"discoveries_so_far": 2,
"discovery": false,
"id": "signal-3",
"p_value": 0.9,
"sequence_number": 4,
"test_level": 0.0083475
},
{
"discoveries_so_far": 3,
"discovery": true,
"id": "signal-4", Truncated for display — the full payload is 65 lines.
How it works
Decision analysis — Turn uncertainty, cost and risk appetite into a defensible choice, with the reasoning left inspectable.
- 1 Control false discoveries across a prespecified live hypothesis stream with LORD++ and an infinite geometric alpha-spending sequence.
- 2 Evaluate the method-specific diagnostics and gates returned by the function, then abstain unless the declared decision clears them under locally governed thresholds.
Before you trust it
Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.
Assumptions & guardrails
- Actions, outcomes, utilities, evidence boundaries, uncertainty representation, and accountable ownership match the actual decision.
- The result structures a governed choice; it does not replace accountable judgment or authorize action outside the declared decision boundary.
Minimum evidence
- hypotheses: required and organization-defined
How to validate it
Validate on future periods or held-out aggregate units, compare with a simple baseline, and require stability across plausible metric definitions and decision thresholds.
Calibrating it to your org
Same for everyone
The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.
Specific to you
- metric/outcome definitions, entity grain, observation window, costs, thresholds, priors, and constraints represented by the function inputs
Calibration workflow
- 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
- 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
- 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
- 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
- 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
- 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.
Call it from your AI
You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.
gitrevio_capabilities_search
{ "q": "control false discoveries across a prespecified" }
→ finds "control_online_alert_false_discoveries"
gitrevio_capability_describe
{ "capability_id": "control_online_alert_false_discoveries" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "control_online_alert_false_discoveries", "arguments": { ... } }
→ returns the result shown above Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.
Related tools
Analyze deep uncertainty minimax regret
Apply Savage minimax regret when scenario probabilities are not defensible, compare maximin and equal-weight choices, and use PRIM-style iterative peeling to discover compact context boxes where the robust choice remains vulnerable.
Audit aggregate metric reversal
Detect Simpson's-paradox-style sign reversals between an executive aggregate relationship and its weighted within-stratum fixed-effect relationship, with whole-stratum bootstrap uncertainty and practical-magnitude gates.
Audit informative metric missingness
Audit whether aggregate metric availability is associated with a governed outcome using permutation inference, bootstrap intervals, practical effect gates, and false-discovery control.
Audit joint metric dependency drift
Detect changes in cross-metric dependence with empirical-copula ranks, random-feature permutation inference, sliced Wasserstein magnitude, and FDR-controlled pair diagnostics.
Audit multivariate metric drift
Detect material distribution shifts with reference-fixed quantile bins, PSI, Jensen-Shannon divergence, standardized Wasserstein distance, permutation tests, and FDR control.
Audit point in time model integrity
Gate an analytical or AI model on point-in-time correctness by auditing actual feature availability, snapshot creation, target-window ordering, outcome resolution, source-record reuse, and embargoed train/calibration/test boundaries, with row and feature diagnostics rather than a generic leakage warning.