Bayesian account risk triage
Prioritize human review of auditable account-security and policy-conflict evidence using Bayes factors and decision costs.
What it's for
Ranks account-security and policy-conflict evidence for human review by Bayes factor and the cost of being wrong, so the queue reflects risk rather than alert volume.
Adds defensible insider-risk and conflict-of-commitment triage without identity or nationality inference.
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 |
|---|---|---|---|
| cases | array of objects (5 fields) | Evidence | Yes |
| max_group_evidence_multiplier | number ≥ 1, ≤ 3 | Your calibration | Optional |
Each cases
record
| Field | Type | Required |
|---|---|---|
| case_id | string (non-empty) | Yes |
| impact_if_missed | number (> 0) | Yes |
| investigation_cost | number (≥ 0) | Yes |
| observations | array of objects (6 fields) | Yes |
| prior_probability | number (> 0, < 1) | Yes |
{
"cases": [
{
"case_id": "account-17",
"impact_if_missed": 500000,
"investigation_cost": 2000,
"observations": [
{
"evidence_id": "iam-alert-1",
"false_positive_rate": 0.01,
"independence_group": "identity_access",
"observed": true,
"sensitivity": 0.75,
"signal": "impossible_travel"
}
],
"prior_probability": 0.01
}
]
} 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.
{
"governance": [
"This is an account-risk triage model, not an identity, nationality, espionage, or guilt classifier.",
"Only auditable security events and explicit policy conflicts may be used; protected traits and nationality proxies are prohibited.",
"Investigation requires human review, corroboration, access controls, due process, and a recorded disposition; the model takes no automatic adverse action.",
"Concurrent employment is relevant only when an explicit policy applies and verified commitments conflict; asynchronous work patterns alone are not evidence."
],
"method": "cost_sensitive_bayesian_risk_triage_v1",
"triage_queue": [
{
"case_id": "account-17",
"decision_threshold": 0.004,
"evidence_groups": [
{
"capped_log_likelihood_ratio": 4.3175,
"correlation_cap_applied": false,
"evidence_ids": [
"iam-alert-1"
],
"independence_group": "identity_access",
"raw_log_likelihood_ratio": 4.3175
}
],
"evidence_ids": [
"iam-alert-1"
],
"expected_avoided_loss": 215517.24,
"investigation_cost": 2000,
"net_value_of_investigation": 213517.24,
"posterior_probability": 0.431,
"prior_probability": 0.01,
"recommendation": "human_investigation"
}
]
} 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 Prioritize human review of auditable account-security and policy-conflict evidence using Bayes factors and decision costs.
- 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
- cases: required and organization-defined
How to validate it
Backtest the chosen action against simple feasible baselines on held-out scenarios, sweep costs/constraints/risk tolerance, and require constraint feasibility under adverse inputs.
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": "prioritize human review of auditable accountsecurity" }
→ finds "bayesian_account_risk_triage"
gitrevio_capability_describe
{ "capability_id": "bayesian_account_risk_triage" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "bayesian_account_risk_triage", "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
Estimate role adjusted contribution
Estimate role-relative outcome contributions with empirical-Bayes shrinkage, uncertainty, provenance, and cohort privacy.
Audit cyber control evidence integrity
Audit whether claimed defense in depth is supported by current independent control tests mapped to declared attack-path steps, while preserving duplicate mappings and counting each exposed business asset only once.
Audit data sovereignty residency evidence integrity
Audit every governed data asset's point-in-time storage, processing, replica, backup, log/cache and key locations plus cross-region transfers against an effective counsel-supplied residency policy, independent evidence, encryption controls and retention limits.
Audit software supply chain integrity
Audit the deployed runtime software supply chain from application roots through resolved dependency edges: reconcile SBOM freshness, version resolution, source pinning, artifact attestation, support horizon, license policy, vulnerability disposition, evidence coverage and unique application value without treating repository text as provenance or exploitability evidence.
Audit workforce identity access evidence integrity
Audit the point-in-time chain from an opaque workforce subject through authorized accounts, independent identity evidence, approved least-privilege grants and MFA/device-backed access events.
Forecast cross border data restriction loss
Forecast migration, operating, contract and common jurisdiction loss from counsel-defined cross-border data restrictions with a Gamma-Poisson event model, pooled log-normal duration/cost and coherent tail scenarios.