Structural Dependency Criticality via PageRank: how far the ranking moves when the assumptions change

The ranking on the Criticality Scores page rests on four choices: the damping factor, the treatment of systems with no dependencies, the exact set of dependencies, and the map as a whole. This page varies each one.

Damping factor

\(\alpha\) is the probability that the random walk follows a dependency rather than restarting at a random system. The sweep runs from 0.5 to 0.99.

Display code
sw |>
  left_join(select(s, name, tier), by = "name") |>
  ggplot(aes(alpha, criticality, group = name, color = tier)) +
  geom_line(linewidth = 0.8) +
  geom_point(size = 1.6) +
  ggrepel::geom_text_repel(
    data = \(d) filter(d, alpha == max(alpha), name %in% s$name[s$rank_custom <= 6]),
    aes(label = name), size = 3, color = "#222222", direction = "y", hjust = 0,
    nudge_x = 0.02, segment.color = "#bbbbbb", seed = 1
  ) +
  facet_wrap(~tier, ncol = 2, scales = "free_y") +
  scale_color_manual(values = tier_colors, guide = "none") +
  scale_x_continuous(breaks = seq(0.5, 1, 0.1), expand = expansion(mult = c(0.02, 0.35))) +
  scale_y_continuous(labels = percent_format(1)) +
  labs(
    title = "PageRank across the damping factor",
    subtitle = "Every system, one panel per tier; each panel has its own vertical scale",
    x = "Damping factor (α)", y = "PageRank share"
  )

How to read the plot. Each line is one system, showing its PageRank share as the damping factor rises from 0.5 to 0.99. The damping factor is the chance that the random walk follows a dependency at each step instead of restarting at a random system. Each panel holds one tier and has its own vertical scale, so compare slopes within a panel rather than heights across panels.

What the plot tells you. The vault rises from 10.69% to 17.03% and cloud IAM from 9.95% to 15.21%, because a walk that restarts less often collects more weight at systems with no dependencies. Root_DNS also has no dependencies, but only one system relies on it, so it falls from 3.21% to 2.39%. Most of the remaining systems drift slowly downward. These are mechanical effects of the restart rate, not evidence about how tightly the architecture is coupled.

Display code
rank_changes |>
  left_join(select(s, name, rank_custom), by = "name") |>
  left_join(select(slopes, name, slope), by = "name") |>
  arrange(rank_custom) |>
  select(name, rank_custom, best, worst, slope) |>
  gt_house(title = "Rank stability across the damping factor",
           subtitle = paste0("Top 8 systems at α = ", res$params$pagerank$alpha, "; ranks across α = ", a_rng[1], " to ", a_rng[2])) |>
  cols_label(name = "Asset", rank_custom = paste0("Rank at α = ", res$params$pagerank$alpha), best = "Best rank",
             worst = "Worst rank", slope = "Change in share per 0.1 of α (pp)") |>
  fmt(columns = slope, fns = \(x) number(x * 10, accuracy = 0.01))
Rank stability across the damping factor
Top 8 systems at α = 0.85; ranks across α = 0.5 to 0.99
Asset Rank at α = 0.85 Best rank Worst rank Change in share per 0.1 of α (pp)
Secrets_Vault 1 1 1 1.29
Cloud_IAM 2 2 2 1.07
Kafka_Bus 3 3 3 0.09
Core_Postgres_DB 4 4 4 0.07
Redis_Session_Cache 5 5 5 0.06
IdP_Auth_Okta 6 6 6 0.04
Ledger_DB 7 7 7 -0.09
Payment_Execution_API 8 8 8 -0.09
Order_Routing_Svc 8 8 8 -0.09
User_Profile_Svc 8 8 8 -0.09

How to read the table. Each row is one of the eight highest-ranked systems at the standard damping factor of 0.85. The best and worst rank columns show the range of positions the system takes anywhere between 0.5 and 0.99. The last column is the average change in its PageRank share, in percentage points, for each 0.1 increase in the damping factor; a negative value means the share falls.

What the table tells you. The vault is first and cloud IAM second at every damping factor tested, so the headline ranking does not depend on this setting. The next systems down hold their ranks across the whole range as well. The vault and IAM gain about 1.3 and 1.1 points per 0.1 increase, while most others barely move. The conventional value of 0.85 affects the size of the scores, not the top of the ranking.

Dangling-node convention

Display code
dg |>
  filter(rank <= 10) |>
  arrange(option, rank) |>
  mutate(cell = paste0(name, " (", percent(score, 0.1), ")"), slot = row_number(), .by = option) |>
  select(option, slot, cell) |>
  pivot_wider(names_from = option, values_from = cell) |>
  gt_house(title = "Top 10 under three treatments of systems with no dependencies",
           subtitle = "Uniform is igraph's default and the convention used for headline results") |>
  cols_label(slot = "Position") |>
  sub_missing(missing_text = "–")
Top 10 under three treatments of systems with no dependencies
Uniform is igraph's default and the convention used for headline results
Position Business-weighted restart Self-loop on sinks Uniform (baseline)
1 Secrets_Vault (13.3%) Secrets_Vault (33.2%) Secrets_Vault (15.3%)
2 Payment_Execution_API (10.3%) Cloud_IAM (30.0%) Cloud_IAM (13.8%)
3 Cloud_IAM (8.8%) IdP_Auth_Okta (10.3%) Kafka_Bus (5.5%)
4 Order_Routing_Svc (8.4%) Root_DNS (5.7%) Core_Postgres_DB (5.2%)
5 Kafka_Bus (6.7%) Kafka_Bus (1.8%) Redis_Session_Cache (5.0%)
6 Settlement_API (5.7%) Core_Postgres_DB (1.7%) IdP_Auth_Okta (4.7%)
7 Web_Client_Gateway (5.7%) Redis_Session_Cache (1.6%) Ledger_DB (3.6%)
8 Mobile_API_Gateway (5.7%) Ledger_DB (1.2%) Payment_Execution_API (3.3%)
9 IdP_Auth_Okta (5.0%) Payment_Execution_API (1.1%) Order_Routing_Svc (3.3%)
10 Ledger_DB (4.3%) Order_Routing_Svc (1.1%) User_Profile_Svc (3.3%)
11 – User_Profile_Svc (1.1%) –

How to read the table. Each column lists the ten highest-scoring systems under one way of handling systems that depend on nothing, with each system’s PageRank share in brackets. Uniform, used for the headline results, spreads their weight evenly over all systems. Self-loop keeps the weight where it lands. Business-weighted restart sends it to the revenue-earning systems. Each row is a position in the ranking, from first to tenth.

What the table tells you. The vault is first under all three treatments, but its share ranges from 13.3% to 33.2%. Self-loops concentrate weight on the systems with no dependencies, lifting the identity provider and DNS into the top four. The business-weighted option instead brings revenue-earning services, such as the payment API and order routing, into the top four. The treatment changes the size of the scores substantially and the order below first place noticeably.

Display code
tau |>
  gt_house(title = "Agreement with the uniform convention", subtitle = "Kendall τ between each option's scores and the baseline scores, all systems") |>
  cols_label(option = "Option", tau = "Kendall τ") |>
  fmt_number(columns = tau, decimals = 2)
Agreement with the uniform convention
Kendall τ between each option's scores and the baseline scores, all systems
Option Kendall τ
Uniform (baseline) 1.00
Self-loop on sinks 0.91
Business-weighted restart 0.40

How to read the table. Each row compares one treatment of systems that depend on nothing with the uniform treatment used for the headline results. Kendall τ measures how similar two rankings are: 1 means identical order, 0 means no relationship, and −1 means the order is reversed. It is calculated over all 25 systems, not only the top ten shown in the table above.

What the table tells you. Self-loops keep the order close to the baseline (τ = 0.91), even though they more than double the vault’s share to 33.2%. The business-weighted option agrees much less (τ = 0.40), because it also changes where the walk starts, and systems that no revenue-earning system reaches fall to zero. That is a different question, not a different answer to the same one, and the vault is still first.

Single-edge scenarios

Each scenario adds dependencies that a real estate very likely has, one group at a time, then all together.

Display code
es |>
  filter(rank <= 5) |>
  arrange(scenario, rank, name) |>
  mutate(cell = paste0(name, " (", percent(score, 0.01), ")"), slot = row_number(), .by = scenario) |>
  filter(slot <= 5) |>
  select(scenario, edges_added, slot, cell) |>
  pivot_wider(names_from = slot, values_from = cell, names_prefix = "#") |>
  left_join(es |> filter(name == "Secrets_Vault") |> select(scenario, vault = score, vault_rank = rank), by = "scenario") |>
  gt_house(title = "Top 5 after adding plausible dependencies", subtitle = paste0("v1 map plus the listed edges, α = ", res$params$pagerank$alpha)) |>
  cols_label(scenario = "Scenario", edges_added = "Edges added", vault = "Secrets_Vault share", vault_rank = "Secrets_Vault rank") |>
  fmt_percent(columns = vault, decimals = 2)
Top 5 after adding plausible dependencies
v1 map plus the listed edges, α = 0.85
Scenario Edges added #1 #2 #3 #4 #5 Secrets_Vault share Secrets_Vault rank
Baseline 0 Secrets_Vault (15.27%) Cloud_IAM (13.79%) Kafka_Bus (5.45%) Core_Postgres_DB (5.20%) Redis_Session_Cache (4.95%) 15.27% 1
Vault authenticates via IAM 1 Cloud_IAM (23.70%) Secrets_Vault (13.52%) Kafka_Bus (4.83%) Core_Postgres_DB (4.60%) Redis_Session_Cache (4.38%) 13.52% 2
IAM federates via IdP 1 IdP_Auth_Okta (14.73%) Secrets_Vault (13.67%) Cloud_IAM (12.34%) Kafka_Bus (4.88%) Core_Postgres_DB (4.65%) 13.67% 2
Every asset uses DNS 23 Root_DNS (30.82%) Secrets_Vault (8.11%) Cloud_IAM (7.10%) Kafka_Bus (3.86%) Core_Postgres_DB (3.75%) 8.11% 2
All three combined 25 Root_DNS (27.76%) Cloud_IAM (9.88%) Secrets_Vault (7.60%) IdP_Auth_Okta (7.43%) Kafka_Bus (3.62%) 7.60% 3

How to read the table. Each row adds one group of plausible dependencies to the original map, and the last row adds all of them together. The middle column counts the arrows added. Columns #1 to #5 list the five highest-ranked systems afterward, with their PageRank shares in brackets. The final two columns track the vault’s share and rank, which makes the effect on the original first-ranked system easy to follow.

What the table tells you. A single added dependency is enough to change first place. If the vault authenticates through cloud IAM, as real vaults usually do, IAM rises to 23.70%. If IAM federates through the identity provider, the provider becomes first. Recording every system’s DNS dependency lifts Root_DNS from rank 14 to first, at 30.82%. First place is therefore a property of how completely the map was drawn, not only of the estate.

Random rewiring

To measure that sensitivity more generally, each of 1,000 replicates (seed 2026) removes 10% of the dependencies at random and adds the same number of random new ones. New dependencies run from a system to one in the same tier or a deeper tier, with no self-dependencies and no duplicates.

Display code
pert |>
  mutate(name = fct_reorder(name, -median - rank_custom / 100)) |>
  ggplot(aes(y = name, color = tier, shape = tier)) +
  geom_linerange(aes(xmin = lo, xmax = hi), linewidth = 1.6, alpha = 0.6) +
  geom_point(aes(x = median), size = 3.2) +
  geom_point(aes(x = rank_custom), shape = 4, size = 2.5, color = "#222222") +
  scale_x_continuous(breaks = c(1, 5, 10, 15, 20, 25)) +
  scale_color_manual(values = tier_colors, name = NULL) +
  scale_shape_manual(values = tier_shapes, name = NULL) +
  guides(color = guide_legend(nrow = 2), shape = guide_legend(nrow = 2)) +
  labs(
    title = "Rank intervals under random rewiring",
    subtitle = "Median rank (point), 5th–95th percentile (bar), baseline rank (×); 1 = most critical",
    x = "Rank", y = NULL
  )

How to read the plot. Each row is a system. The colored point is its median rank across 1,000 randomly rewired versions of the map, and the bar spans the middle 90% of its ranks, from the 5th to the 95th percentile. The black cross is its rank on the original map. Rank 1 is the most relied-on system, so further left means more critical, and a shorter bar means a more stable rank.

What the plot tells you. The vault is first in 56% of rewired maps and cloud IAM in 37%, and in 90% of maps both stay within the top 3. Below them the bars widen quickly: IdP_Auth_Okta, Kafka_Bus, Core_Postgres_DB, and Redis_Session_Cache each span four or more places, and Root_DNS ranges from 3 to 21. The top pair is robust to modest map errors; the next tier is not.

Second dependency map (v2)

The v2 map adds DNS dependencies for every system, the vault’s dependencies on IAM and object storage, IAM’s federation through the IdP, and a vault–IAM bootstrap cycle (Data & Topology).

Display code
s |>
  select(name, tier, p_v1 = p_custom, rank_v1 = rank_custom, blast_v1 = blast_value_hard) |>
  left_join(select(v2, name, p_v2 = p_custom, rank_v2 = rank_custom, blast_v2 = blast_value_hard), by = "name") |>
  arrange(rank_v2) |>
  slice_head(n = 12) |>
  gt_house(title = "v1 and v2 side by side", subtitle = "Top 12 systems by v2 PageRank") |>
  cols_label(name = "Asset", tier = "Tier", p_v1 = "PageRank", rank_v1 = "Rank", blast_v1 = "Value disabled (hard)",
             p_v2 = "PageRank", rank_v2 = "Rank", blast_v2 = "Value disabled (hard)") |>
  tab_spanner("v1 (original)", columns = c(p_v1, rank_v1, blast_v1)) |>
  tab_spanner("v2 (more complete)", columns = c(p_v2, rank_v2, blast_v2)) |>
  fmt_percent(columns = c(p_v1, p_v2), decimals = 2) |>
  fmt_percent(columns = c(blast_v1, blast_v2), decimals = 0)
v1 and v2 side by side
Top 12 systems by v2 PageRank
Asset Tier
v1 (original)
v2 (more complete)
PageRank Rank Value disabled (hard) PageRank Rank Value disabled (hard)
Root_DNS Tier 0: Foundational Core 2.62% 14 0% 25.51% 1 100%
Cloud_IAM Tier 0: Foundational Core 13.79% 2 100% 10.43% 2 100%
Secrets_Vault Tier 0: Foundational Core 15.27% 1 100% 10.17% 3 100%
IdP_Auth_Okta Tier 0: Foundational Core 4.73% 6 40% 6.03% 4 40%
S3_Asset_Store Tier 1: Data & Persistence 2.88% 13 10% 4.97% 5 100%
Kafka_Bus Tier 0: Foundational Core 5.45% 3 90% 3.44% 6 90%
Core_Postgres_DB Tier 1: Data & Persistence 5.20% 4 80% 3.34% 7 80%
Redis_Session_Cache Tier 1: Data & Persistence 4.95% 5 0% 3.13% 8 0%
Ledger_DB Tier 1: Data & Persistence 3.58% 7 65% 2.48% 9 65%
Order_Routing_Svc Tier 2: Microservices 3.30% 8 40% 2.28% 10 40%
Payment_Execution_API Tier 2: Microservices 3.30% 8 45% 2.28% 10 45%
User_Profile_Svc Tier 2: Microservices 3.30% 8 30% 2.28% 10 30%

How to read the table. Each row is one of the twelve highest-ranked systems on the more complete v2 map. For each map, the table shows the system’s PageRank share, its rank, and the share of business value that stops when it fails, counting hard dependencies only. Comparing the two groups of columns side by side shows how far the extra dependencies move each system, both in how much it is relied on and in what its failure would stop.

What the table tells you. On v2, Root_DNS ranks first at 25.51% and stops 100% of business value when it fails, matching its textbook status as a single point of failure. The vault and IAM stay in the top three, and because of the vault–IAM loop, each now takes the other down. Systems that stop at least half the business rise from 7 to 9. A more complete map makes concentration worse, not better.