# Replica count does not determine attribute coverage

Three complete copies can survive every modeled single-attribute attack and
still be lost under every modeled two-attribute attack. The placement matters:
three copies with disjoint configurations survive those same attack budgets.

This is an exact, constructed example inspired by
[Phoenix informed replication](https://hesela.dev/terms/phoenix-recovery/).
It is not a reproduction of Phoenix, an empirical security assessment or a
durability estimate. It explains a placement condition, not how often an
exploit occurs.

## Three configurations, three different guarantees

Each row below describes three distinct hosts, each already holding a complete,
usable copy. A host fails when it has at least one targeted attribute.
Attributes a, b, c and s are abstract labels, not actual software vulnerabilities.

| Configuration | Host 1 | Host 2 | Host 3 |
| --- | --- | --- | --- |
| Overlapping | a, b | b, c | a, c |
| Disjoint | a | b | c |
| Shared component | a, s | b, s | c, s |

The attack universe is the union of the attributes present in that row. Count
each distinct unordered set of exactly k targeted attributes once. All
susceptible hosts fail simultaneously; no repair or replacement occurs.

| Configuration | k | All copies lost | Enumerated attacks |
| --- | ---: | ---: | ---: |
| Overlapping | 1 | 0 | 3 |
| Overlapping | 2 | 3 | 3 |
| Overlapping | 3 | 1 | 1 |
| Disjoint | 1 | 0 | 3 |
| Disjoint | 2 | 0 | 3 |
| Disjoint | 3 | 1 | 1 |
| Shared component | 1 | 1 | 4 |
| Shared component | 2 | 3 | 6 |
| Shared component | 3 | 4 | 4 |

These are counts, not observed probabilities. The denominators differ because
the first two rows have three attributes and the last has four. To convert a
row to a probability, an explicit distribution over attacks would be needed.
Uniform weighting would be an additional assumption, not a measurement.

In the overlapping configuration, attacking a leaves host 2 alive; b leaves
host 3 alive; c leaves host 1 alive. But any pair hits all three hosts. Every
pair of hosts shares an attribute, so no two-host subset has the one-attribute
guarantee. All three are required for that guarantee.

The disjoint configuration needs only two hosts to survive any single-attribute
attack. All three hosts are needed to survive any two-attribute attack. Adding
s to every host removes even the single-attribute guarantee: the attack {s}
alone destroys every copy.

## A condition that can be checked

Let S_i be the attribute set of host i, and A the attacked set. A surviving copy
exists precisely when at least one S_i has empty intersection with A.

Equivalently, an attack that destroys every copy is a hitting set: it contains
at least one attribute from each S_i. If the smallest such set has size t,
the configuration survives every modeled attack with at most t - 1 attributes.
The three examples have t equal to 2, 3 and 1, respectively.

This equivalence follows directly from the failure rule. A smaller defeating
attack would contradict minimality of t; the size-t hitting set supplies the
counterexample at the next budget. It is a finite combinatorial guarantee,
not statistical independence of hosts.

A minimal core is a host subset that retains the chosen guarantee but loses it
when any member is removed. Minimal does not mean that all cores have the same
size or that a placement algorithm will find a smallest core. The model
enumerates cores exhaustively only for small inputs.

## Connection to the historical design

Phoenix uses host configurations to place backup copies; its model distinguishes
single-attribute coverage from protection against multiple attributes.
[Model](https://www.usenix.org/legacy/publications/library/proceedings/usenix05/tech/general/full_papers/junqueira/junqueira_html/node4.html)
and [multi-attribute extension](https://www.usenix.org/legacy/publications/library/proceedings/usenix05/tech/general/full_papers/junqueira/junqueira_html/node16.html).

Its own service software remains a shared vulnerability.
[Attack analysis](https://www.usenix.org/legacy/publications/library/proceedings/usenix05/tech/general/full_papers/junqueira/junqueira_html/node19.html).

[Glacier](https://hesela.dev/terms/glacier/) illustrates a different placement
argument, based on extensive coded redundancy and assumptions about the failed
population. A host-count failure bound and an attribute-attack budget are
different inputs. Neither should silently replace the other.

## What an engineer should retain

Record which dependencies the placement rule actually separates, and which it
does not. A count of machines alone leaves that question unanswered. An empty
intersection across all host attributes proves only the single-attribute
condition. It does not prove the multi-attribute condition.

The synthetic model assumes correct, complete attribute lists, complete copies,
and permanent loss of susceptible hosts. It omits load balancing, network
partitions, detection, repair, encryption and transfer time. A surviving copy
is therefore not a promise of immediate service. Missing attributes are model
uncertainty, not evidence that a host is immune.

## Reproduce and inspect

Use Node.js 22 or newer; no packages, network, randomness or seed are required.
From this directory:

```sh
node model.mjs --check
node --test model.test.mjs
```

[Model](model.mjs), [tests](model.test.mjs), [complete results](results.json)
and [source provenance](sources.json) are available directly.
The results list every attack and its surviving host indices (zero-based).
The tests independently check 2,800 configurations of one to four hosts over
three attributes using bit masks, including minimal cores and loss counts.

To regenerate the JSON, run `node model.mjs --write`.
The code deliberately rejects more than twelve hosts or twelve attributes:
exhaustive enumeration is a teaching and checking method, not a production
placement algorithm.
