A correct population is a set of distinct agents. If two slots hold the same
live Agent (built once and reused), they share memory, counters, and
identity, which silently couples the actors that should be independent. Each
Agent carries a stable id, so a duplicate id among the population's slots is
direct evidence of one reused instance. contamination_report() detects
exactly that.
Arguments
- society
A
society().
Value
An object of class society_contamination: a tibble with columns
agent_id, name, slots (the positions sharing that id), and n (how
many slots), one row per id that appears more than once. A clean
attribute records whether any duplicate was found.
