Monitor forecast calibration eprocess
Continuously monitor binary forecasts for calibration drift with an anytime-valid mixture e-process that does not incur a repeated-peeking penalty.
What it's for
Makes real-time probabilities accountable after deployment with a sequential alarm whose false-positive guarantee survives continuous inspection.
What you give it
Every tool is a pure function: it computes from what you pass it and reads nothing on its own. Inputs split into evidence you supply from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.
| Field | Type | Role | Required |
|---|---|---|---|
| alpha | number ≥ 0.001, ≤ 0.2 | Your calibration | Optional |
| alternative_prior_scale | number ≥ 0.05, ≤ 5 | Your calibration | Optional |
| checkpoint_every | integer ≥ 1, ≤ 10000 | Your calibration | Optional |
| forecasts | array of objects (3 fields) | Evidence | Yes |
| mixture_points | integer ≥ 3, ≤ 31 | Your calibration | Optional |
Each forecasts
record
| Field | Type | Required |
|---|---|---|
| id | string (non-empty) | Yes |
| outcome | one of "0", "1" | Yes |
| predicted_probability | number (> 0, < 1) | Yes |
{
"checkpoint_every": 5,
"forecasts": [
{
"id": "release-risk-0",
"outcome": 1,
"predicted_probability": 0.2
},
{
"id": "release-risk-1",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "release-risk-2",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "release-risk-3",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "release-risk-4",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "release-risk-5",
"outcome": 1,
"predicted_probability": 0.2
},
{
"id": "release-risk-6",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "release-risk-7",
"outcome": 0,
"predicted_probability": 0.2
},
{ Truncated for display — the full payload is 105 lines.
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.
{
"alarm": {
"alpha": 0.05,
"e_value_threshold": 20,
"ever_crossed": false,
"first_crossing_observation": null
},
"anytime_p_value_bound": 0.8377,
"assumptions": [
"Under the null, each outcome is conditionally Bernoulli with its immutable pre-outcome forecast probability.",
"The finite mixture alternative changes calibration through a shared log-odds intercept; other drift forms may need separate monitors.",
"The anytime guarantee permits continuous inspection but not retrospective editing, selective outcome omission, or duplicated events.",
"An alarm justifies model and data investigation; it does not identify a cause by itself."
],
"current_e_value": 0.4927,
"decision": "continue_monitoring",
"estimated_drift": {
"direction": "events_less_frequent_than_forecast",
"mean_predicted_probability": 0.2,
"observed_event_rate": 0.2,
"posterior_log_odds_shift": -0.0574,
"posterior_odds_multiplier": 0.9442
},
"maximum_e_value": 1.1937,
"method": "bernoulli_calibration_mixture_eprocess_v1",
"monitoring_path": [
{
"anytime_p_value_bound": 0.8377,
"e_value": 0.7502,
"mean_predicted_probability": 0.2,
"observations": 5,
"observed_event_rate": 0.2
},
{
"anytime_p_value_bound": 0.8377,
"e_value": 0.6258,
"mean_predicted_probability": 0.2,
"observations": 10,
"observed_event_rate": 0.2
},
{
"anytime_p_value_bound": 0.8377,
"e_value": 0.5474,
"mean_predicted_probability": 0.2, Truncated for display — the full payload is 60 lines.
How it works
Sequential Bayesian & bandits — Learn while deciding — update beliefs as evidence arrives and choose where the next unit of effort is worth spending.
- 1 Continuously monitor binary forecasts for calibration drift with an anytime-valid mixture e-process that does not incur a repeated-peeking penalty.
- 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
- The likelihood or reward model, prior support, action logging, delayed outcomes, and any stationarity assumptions match the deployment process.
- Posterior probability and adaptive selection are model-conditional; they are not substitutes for randomized propensities or guaranteed safety.
Minimum evidence
- forecasts: required and organization-defined
How to validate it
Use chronological train/calibration/test windows, compare proper scores and decision value with a simple baseline, and recalibrate only from outcomes resolved after prediction time.
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 20 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": "continuously monitor binary forecasts for calibration" }
→ finds "monitor_forecast_calibration_eprocess"
gitrevio_capability_describe
{ "capability_id": "monitor_forecast_calibration_eprocess" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "monitor_forecast_calibration_eprocess", "arguments": { ... } }
→ returns the result shown above Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.