Forecast aggregate workforce capacity risk
Forecast aggregate role-capacity shortfall with a partially pooled discrete-time competing-risk model that learns cause-specific hazards from right-censored employment spells, simulates the active role portfolio, exposes unseen-role and unsupported-period extrapolation, and never produces named-person attrition scores.
What it's for
Gives executives and investors a forward capacity-risk view by role and cause, with uncertainty and data-support disclosure, while avoiding speculative individual attrition scoring.
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 |
|---|---|---|---|
| confidence_level | number ≥ 0.8, ≤ 0.99 | Your calibration | Optional |
| current_role_portfolio | array of objects (4 fields) ≥ 1 item | Evidence | Yes |
| event_types | array of string ≥ 1 item | Evidence | Yes |
| historical_spells | array of objects (4 fields) ≥ 50 items | Evidence | Yes |
| horizon_periods | integer ≥ 1, ≤ 60 | Your calibration | Yes |
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| maximum_shortfall_probability | number ≥ 0, ≤ 1 | Your calibration | Optional |
| period_days | number ≥ 1, ≤ 366 | Your calibration | Optional |
| role_prior_strength | number ≥ 0.1, ≤ 1000 | Your calibration | Optional |
| seed | integer | Numerical control | Optional |
| simulations | integer ≥ 500, ≤ 20000 | Numerical control | Optional |
Each current_role_portfolio
record
| Field | Type | Required |
|---|---|---|
| active_positions | integer (≥ 0, ≤ 100000) | Yes |
| capacity_per_position | number (≥ 0) | Yes |
| required_capacity | number (≥ 0) | Yes |
| role_id | string (non-empty) | Yes |
{
"current_role_portfolio": [
{
"active_positions": 8,
"capacity_per_position": 1,
"required_capacity": 6,
"role_id": "platform"
},
{
"active_positions": 12,
"capacity_per_position": 1,
"required_capacity": 9,
"role_id": "product"
}
],
"event_types": [
"voluntary_exit"
],
"historical_spells": [
{
"duration_days": 30,
"event_type": "voluntary_exit",
"id": "workforce-spell-0",
"role_id": "product"
},
{
"duration_days": 60,
"event_type": "censored",
"id": "workforce-spell-1",
"role_id": "platform"
},
{
"duration_days": 90,
"event_type": "censored",
"id": "workforce-spell-2",
"role_id": "product"
},
{
"duration_days": 120,
"event_type": "censored",
"id": "workforce-spell-3",
"role_id": "platform"
},
{ Truncated for display — the full payload is 323 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.
{
"assumptions": [
"Historical spells use stable role definitions, censoring is non-informative conditional on role and observed duration, and the future hazard regime is comparable.",
"Role-period hazards are partially pooled toward the organization and current positions are exchangeable within role for aggregate planning.",
"The no-replacement forecast is a capacity stress baseline; hiring, transfers, retention interventions, leave returns, and ramp dynamics should be layered as explicit scenarios."
],
"configuration": {
"event_types": [
"voluntary_exit"
],
"horizon_periods": 6,
"maximum_shortfall_probability": 0.2,
"period_days": 30,
"role_prior_strength": 20,
"simulations": 500
},
"decision": "aggregate_workforce_capacity_risk",
"executive_summary": {
"highest_risk_role": "product",
"horizon_capacity_p50": 13,
"horizon_shortfall_probability": 0.774,
"maximum_shortfall_probability": 0.774,
"required_capacity": 15,
"starting_capacity": 20
},
"expected_capacity_loss_by_cause": [
{
"event_type": "voluntary_exit",
"expected_capacity_loss": 7.242
}
],
"interpretation": "This is aggregate role-capacity risk, not an attrition score for a named person. It cannot identify who will leave or justify employment action.",
"method": "hierarchical_dirichlet_competing_workforce_capacity_simulation_v1",
"period_forecast": [
{
"capacity_p10": 18,
"capacity_p50": 19,
"capacity_p90": 20,
"confidence_interval": [
17,
20
],
"period": 0,
"probability_capacity_shortfall": 0.002, Truncated for display — the full payload is 139 lines.
How it works
Forecasting & survival — Estimate when something completes or fails, with censoring and unresolved work handled honestly rather than dropped.
- 1 Convert each historical role spell into period-at-risk outcomes—one declared cause or continued exposure—while retaining right-censored spells rather than treating them as non-events.
- 2 Estimate organization-period Dirichlet outcome distributions, then partially pool each role-period distribution toward them using the governed prior strength; carry the last supported organization hazard into explicitly labeled unsupported future periods.
- 3 For every simulation, draw role-period competing-risk probabilities and remove aggregate positions once across causes using conditional multinomial sampling, preserving that one position cannot experience two exits.
- 4 Translate surviving positions to capacity, compare role and total capacity with governed requirements by period, and return shortfall probabilities, quantiles, cause-attributed expected loss, unseen-role flags, and extrapolation warnings.
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
- Training examples precede their outcomes, censoring and unresolved work are represented, and deployment populations remain comparable to validation cohorts.
- Role definitions and event causes are stable, event dates and censoring dates are complete, censoring is conditionally non-informative, and the future hazard regime is comparable to the estimation window.
- Positions are exchangeable within aggregate role for planning, capacity-per-position and required capacity are decision-owner scenarios, and no-replacement is the intended stress baseline.
- A predictive interval or risk estimate is not a deadline promise, causal explanation, or individual-performance judgment.
- This is an aggregate capacity stress forecast, not a prediction that a named person will leave and not a basis for hiring, firing, surveillance, compensation, or investigation of an individual.
- A no-replacement baseline deliberately excludes hiring, transfers, leave returns, interventions, and ramp time; compose those as explicit governed scenarios before treating shortfall as a plan.
Minimum evidence
- historical_spells: at least 50 rows/items
- current_role_portfolio: at least 1 rows/items
- event_types: at least 1 rows/items
- horizon_periods: 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
- right-censored employment spells and mutually exclusive governed exit causes
- role-level active-position counts and rolling-origin hazard calibration
- role taxonomy, event taxonomy, cohort window, censoring date, and period width
- capacity per position, required capacity, prior strength, shortfall tolerance, and explicit hiring/transfer/retention scenarios
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 aggregate rolecapacity shortfall with a" }
→ finds "forecast_aggregate_workforce_capacity_risk"
gitrevio_capability_describe
{ "capability_id": "forecast_aggregate_workforce_capacity_risk" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "forecast_aggregate_workforce_capacity_risk", "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 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 probability policy subgroup equity
Audit an aggregate probability-driven policy across governed groups using weighted selection, error-rate, predictive-value, Brier, and calibration disparities; within-group bootstrap uncertainty; practical tolerances; privacy/support abstention; and Benjamini-Hochberg false-discovery control.
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 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.
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.