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.
What it's for
Gives CTOs and investors a defensible bus-factor view that distinguishes a genuinely concentrated critical code surface from missing identities, bot activity, generated code and stale repository-level commit counts.
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 |
| contribution_events | array of objects (10 fields) ≥ 0 items | Evidence | Yes |
| eligible_contributors | array of objects (5 fields) ≥ 0 items | Evidence | Yes |
| knowledge_units | array of objects (7 fields) | Evidence | Yes |
| lookback_days | number ≥ 1 | Your calibration | Optional |
| max_detail_rows | integer ≥ 1, ≤ 500 | Numerical control | Optional |
| maximum_top_contributor_share | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_effective_owner_count | number ≥ 1 | Your calibration | Optional |
| minimum_event_evidence_coverage | number ≥ 0, ≤ 1 | Your calibration | Optional |
| minimum_identity_confidence | number ≥ 0, ≤ 1 | Your calibration | Optional |
| posterior_draws | integer ≥ 200, ≤ 20000 | Numerical control | Optional |
| recency_half_life_days | number ≥ 1 | Your calibration | Optional |
| seed | integer ≥ 0, ≤ 4294967295 | Numerical control | Optional |
Each contribution_events
record
| Field | Type | Required |
|---|---|---|
| bot_or_automation | boolean | Yes |
| contributor_ref | string (non-empty) | Yes |
| event_kind | one of "substantive_change", "review", "incident_response", "documentation" | Yes |
| evidence_verified | boolean | Yes |
| id | string (non-empty) | Yes |
| identity_confidence | number (≥ 0, ≤ 1) | Yes |
| information_cutoff_ms | number (≥ 0) | Yes |
| knowledge_unit_id | string (non-empty) | Yes |
| occurred_at_ms | number (≥ 0) | Yes |
| substantive_weight | number (≥ 0) | Yes |
{
"as_of_ms": 100000,
"contribution_events": [
{
"bot_or_automation": false,
"contributor_ref": "opaque-a",
"event_kind": "substantive_change",
"evidence_verified": true,
"id": "event-0",
"identity_confidence": 1,
"information_cutoff_ms": 98000,
"knowledge_unit_id": "payments",
"occurred_at_ms": 99000,
"substantive_weight": 1
},
{
"bot_or_automation": false,
"contributor_ref": "opaque-a",
"event_kind": "review",
"evidence_verified": true,
"id": "event-1",
"identity_confidence": 1,
"information_cutoff_ms": 97999,
"knowledge_unit_id": "payments",
"occurred_at_ms": 98999,
"substantive_weight": 1
},
{
"bot_or_automation": false,
"contributor_ref": "opaque-a",
"event_kind": "substantive_change",
"evidence_verified": true,
"id": "event-2",
"identity_confidence": 1,
"information_cutoff_ms": 97998,
"knowledge_unit_id": "payments",
"occurred_at_ms": 98998,
"substantive_weight": 1
},
{
"bot_or_automation": false,
"contributor_ref": "opaque-a",
"event_kind": "review",
"evidence_verified": true, Truncated for display — the full payload is 132 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": {
"event_kind_weights": {
"documentation": 0.8,
"incident_response": 1.2,
"review": 0.65,
"substantive_change": 1
},
"individual_performance_inference_permitted": false,
"lookback_days": 1,
"posterior_draws": 200,
"posterior_prior": "independent Dirichlet(0.5) over observed eligible contributors",
"recency_half_life_days": 1
},
"decision": "review_concentration",
"event_diagnostics": {
"bot_or_automation_event_count": 0,
"duplicate_contributor_reference_count": 0,
"future_event_count": 0,
"future_information_event_count": 0,
"low_identity_confidence_event_count": 0,
"prewindow_event_count": 0,
"unknown_or_ineligible_contributor_event_count": 0,
"unknown_unit_event_count": 0,
"unverified_event_count": 0
},
"knowledge_unit_diagnostics": [
{
"concentrated": true,
"criticality_weight": 10,
"currently_active_knowledge_share": 1,
"effective_owner_count": 1.3795,
"event_evidence_coverage": 1,
"evidence_supported": true,
"herfindahl_index": 0.8224,
"knowledge_unit_id": "payments",
"leave_top_owner_out_retained_share": 0.0985,
"observed_owner_count": 2,
"posterior_p10_effective_owner_count": 1.1129,
"posterior_p90_top_contributor_share": 0.9777,
"probability_concentrated": 1,
"repository_id": "repo-a",
"top_contributor_share": 0.9015,
"unit_class_id": "critical-service" Truncated for display — the full payload is 61 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 Freeze the complete in-scope knowledge-unit and eligible-contributor cohorts at the as-of cutoff; exclude generated/vendor content, bots, future information, stale events and unresolved identities while preserving every exclusion in coverage diagnostics.
- 2 Combine governed event-kind weights, identity confidence and exponential recency decay into contributor-by-unit exposure mass, then estimate observed and Dirichlet-posterior top share, entropy-effective owner count, HHI, active knowledge share and leave-top-owner-out retained share.
- 3 Gate the concentration result on criticality-weighted evidence coverage and immutable lineage; prioritize technical knowledge units for review while suppressing named-person rankings and abstaining when the source cohort is incomplete.
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.
- Knowledge-unit boundaries, generated/vendor exclusions, canonical opaque identities, eligibility intervals, event semantics, criticality and the as-of cutoff were governed before inspection.
- Posterior probability and adaptive selection are model-conditional; they are not substitutes for randomized propensities or guaranteed safety.
- Contribution exposure is not mastery, replaceability, individual value or misconduct evidence; show unit-level resilience outside restricted operational workflows and never use this output for automated employment action.
Minimum evidence
- knowledge_units: required and organization-defined
- contribution_events: at least 0 rows/items
- eligible_contributors: at least 0 rows/items
- as_of_ms: 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
- one zero-inclusive contributor-by-knowledge-unit event projection with stable unit boundaries, event-kind semantics, substantive weights, identity confidence, information cutoff, evidence status and recency-ready timestamps
- knowledge-unit grain and criticality, in-scope/generated/vendor policy, event-kind weights, lookback and recency half-life, identity-confidence and evidence-coverage gates, concentration/effective-owner thresholds, restricted opaque-identity access and accountable reviewer
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": "audit file module service or repository" }
→ finds "audit_code_knowledge_concentration_integrity"
gitrevio_capability_describe
{ "capability_id": "audit_code_knowledge_concentration_integrity" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "audit_code_knowledge_concentration_integrity", "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
Forecast knowledge continuity semimarkov
Forecast critical code-knowledge continuity with a company-local hierarchical Bayesian semi-Markov model whose state-exit hazard depends on time already resilient, concentrated, orphaned or recovering; require a strict latest-period holdout improvement over persistence, simulate coherent common shocks, and expose orphaning, delay, recovery-cost and portfolio VaR/CVaR without predicting named departures.
Optimize knowledge resilience portfolio
Choose one baseline, cross-training, paired-review, rotation, documentation or backup-owner posture per critical knowledge unit using prospectively identified transport-weighted Beta-binomial relative-failure effects, contributor-availability and common-loss scenarios, exact or disclosed beam search, mentor/learner capacity, budget, expected-failure, CVaR and Pareto 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 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 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.