Forecast governed attrition competing risks
Forecast voluntary departure, internal transfer and involuntary exit as calibrated discrete-time competing risks with company-local chronological validation, peer partial pooling, posterior intervals and an automatic abstention when the model does not beat role base rates.
What it's for
Replaces the site's fixed weighted attrition score and assumed exponential departure window with locally tested competing-risk probabilities and honest uncertainty that improve as real outcomes mature.
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 |
|---|---|---|---|
| as_of_ms | number ≥ 0 | Your calibration | Yes |
| current_subjects | array of objects (7 fields) | Evidence | Yes |
| feature_names | array of string | Evidence | Yes |
| historical_periods | array of objects (12 fields) | Evidence | Yes |
| holdout_fraction | number ≥ 0.1, ≤ 0.4 | Your calibration | Optional |
| horizon_periods | integer ≥ 1, ≤ 104 | Your calibration | Optional |
| max_detail_rows | integer ≥ 1, ≤ 1000 | Numerical control | Optional |
| maximum_voluntary_exit_ece | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_events_per_cause | integer ≥ 1 | Your calibration | Optional |
| minimum_holdout_periods | integer ≥ 10 | Your calibration | Optional |
| peer_prior_strength | number ≥ 0, ≤ 10 | Your calibration | Optional |
| posterior_draws | integer ≥ 100, ≤ 5000 | Numerical control | Optional |
| seed | integer ≥ 0, ≤ 4294967295 | Numerical control | Optional |
| target_scope_id | string non-empty | Your calibration | Yes |
Each historical_periods
record
| Field | Type | Required |
|---|---|---|
| at_risk | boolean | Yes |
| event_type_id | one of "none", "voluntary_exit", "internal_transfer", "involuntary_exit" | Yes |
| evidence_verified | boolean | Yes |
| features | object | Yes |
| id | string (non-empty) | Yes |
| outcome_mature | boolean | Yes |
| period_index | integer (≥ 0, ≤ 520) | Yes |
| period_start_ms | number (≥ 0) | Yes |
| role_id | string (non-empty) | Yes |
| scope_id | string (non-empty) | Yes |
| spell_id | string (non-empty) | Yes |
| subject_ref | string (non-empty) | Yes |
{
"as_of_ms": 1000,
"current_subjects": [
{
"data_cutoff_ms": 900,
"evidence_verified": true,
"features": {
"signal_a": 2,
"signal_b": 0
},
"id": "candidate-high",
"role_id": "engineer",
"scope_id": "company",
"supportive_use_authorized": true
},
{
"data_cutoff_ms": 900,
"evidence_verified": true,
"features": {
"signal_a": 0,
"signal_b": -2
},
"id": "candidate-low",
"role_id": "manager",
"scope_id": "company",
"supportive_use_authorized": true
}
],
"feature_names": [
"signal_a",
"signal_b"
],
"historical_periods": [
{
"at_risk": true,
"event_type_id": "voluntary_exit",
"evidence_verified": true,
"features": {
"signal_a": 2,
"signal_b": 0
},
"id": "period-0",
"outcome_mature": true,
"period_index": 0, Truncated for display — the full payload is 2421 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.
{
"configuration": {
"as_of_ms": 1000,
"feature_names": [
"signal_a",
"signal_b"
],
"holdout_fraction": 0.2,
"horizon_periods": 4,
"peer_prior_strength": 0.05,
"posterior_draws": 100,
"random_seed": 7,
"target_scope_id": "company",
"validation_calendar_cutoff_ms": 81
},
"decision": "supportive_forecast_ready",
"failed_gates": [],
"forecasts": [
{
"any_transition_probability": {
"median": 0.9999,
"p05": 0.9954,
"p95": 1
},
"internal_transfer_probability": {
"median": 0.001,
"p05": 0.0001,
"p95": 0.0095
},
"involuntary_exit_probability": {
"median": 0.0628,
"p05": 0.0099,
"p95": 0.2961
},
"median_transition_period": 1,
"subject_ref": "candidate-high",
"voluntary_exit_probability": {
"median": 0.9351,
"p05": 0.7027,
"p95": 0.9895
}
},
{
"any_transition_probability": { Truncated for display — the full payload is 99 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 Validate complete consecutive at-risk person-period histories and hold out the latest whole local employment spells so no subject crosses training and validation.
- 2 Fit a regularized multinomial hazard model with training-only scaling and role effects, shrinking local coefficients toward a peer-only model without counting local evidence twice.
- 3 Require later local log-loss improvement and voluntary-exit calibration, refit on all mature history, then propagate a diagonal Laplace posterior through cumulative competing incidence over the requested horizon.
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.
- Periods are equally spaced, terminal events are correctly typed and mature, people are at risk at period start, features predate outcomes, peer scopes are transportable enough for the chosen shrinkage, and opaque IDs cannot be reversed by the agent.
- Posterior probability and adaptive selection are model-conditional; they are not substitutes for randomized propensities or guaranteed safety.
- The model may support voluntary outreach only; it returns no forecast when local out-of-time evidence fails and never authorizes an adverse employment action.
Minimum evidence
- historical_periods: required and organization-defined
- current_subjects: required and organization-defined
- target_scope_id: required and organization-defined
- feature_names: required and organization-defined
- as_of_ms: 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
- a consecutive zero-inclusive person-period panel that stops after the first terminal event, with whole spells assigned to training or the latest local holdout and all feature values frozen at period start
- at-risk population, period width, event taxonomy and maturity, feature/proxy policy, peer transport set and shrinkage, holdout fraction, per-cause support, calibration gate, horizon, opaque-ID access, supportive-use authorization and human review
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": "forecast voluntary departure internal transfer and" }
→ finds "forecast_governed_attrition_competing_risks"
gitrevio_capability_describe
{ "capability_id": "forecast_governed_attrition_competing_risks" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "forecast_governed_attrition_competing_risks", "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
Audit attrition risk prediction integrity
Audit an attrition model's complete eligible cohort, point-in-time features, supportive-use governance, intervention-contaminated labels, competing outcomes, calibration, false positives and authorized subgroup error before any person-level use.
Optimize retention interventions by principal strata
Estimate who an optional retention intervention can actually help—not merely who looks likely to leave—from randomized principal strata, then allocate scarce capacity by conservative net value under harmed-stratum sensitivity, budget and fairness constraints.
Analyze info gap robust satisficing
Select a robust-satisficing action under severe uncertainty with Info-Gap Decision Theory: evaluate worst and best payoff across a governed nested uncertainty envelope, maximize the radius before a critical requirement fails, report windfall opportuneness, and use no scenario probabilities.
Audit attention fragmentation evidence integrity
Audit consented point-in-time contributor identity, availability, privacy-safe calendar metadata and work-session lineage before reporting aggregate meeting load, protected focus blocks or cross-project switching.
Audit code knowledge concentration integrity
Audit file, module, service, or repository knowledge concentration from point-in-time substantive changes, reviews, incident response and documentation using identity-confidence filtering, recency decay, Bayesian ownership uncertainty, entropy-effective owners, HHI and leave-top-owner-out resilience—without turning contribution evidence into a person-performance score.
Audit onboarding mentorship evidence integrity
Audit point-in-time onboarding cohorts, ordered autonomy milestones, source completeness and corroborated mentorship windows before publishing privacy-safe ramp evidence.