Independent synthetic runoff recovery suite Run from out/: python3 -I -B generate.py ../inputs/round1_by_municipality.csv generated S1 1 Use S1 through S7 and any nonnegative integer seed. Only numpy and the Python standard library are required. No model, model output, network, or other study files were consulted. Scenarios and interpretation details are in scenarios.json. Rebuild the municipality suite, metadata, checks and manifest with: python3 -I -B build_suite.py The generator reads the supplied CSV and writes only the two named output files. Official national runoff target fractions are frozen in generate.py, taken from the supplied official_national_totals.json. Unit variation uses round-1 counts, state labels and seeded noise only. All original column values and column order are preserved; CSV quoting/newlines may be normalized. Additional section keys are retained. Empty units are supported; invalid source partitions are rejected. Determinism: default_rng(seed + scenario_number * 1000003), sorted states, fixed operation order, no timestamps or output paths in artifacts. Same input order, scenario and seed produce byte-identical artifacts in the same Python/numpy runtime; numpy versions/platforms are not claimed to have bitwise RNG/math compatibility. Changing input row order changes noise/draw assignments. The build checks fresh-process byte equality for every run. Calibration/noise and sampling use the same seeded stream, in documented code order. Probabilities are constructed as an N x 8 x 4 array, then nationally calibrated by common column odds multipliers (S1,S2,S4-S7), preserving contextual odds contrasts. S3 fixes switching and voter attrition and solves the remaining abstainer row. An infeasible S3 population raises an error instead of silently relaxing rates. Sequential conditional binomial draws are exactly multinomial per unit/source row; calls are vectorized over units and rows, with no per-unit RNG loop. Input CSV parsing/writing uses standard-library csv. At about 500,000 units, arrays and preserved input strings require substantial memory (roughly a gigabyte or more, depending on field count); computation has no unit-by-unit optimization. Per-unit identities: r2_electorate = r1_electorate r2_turnout = r2_c13 + r2_c22 + r2_blank r2_electorate = r2_turnout + r2_abstention r2_null = r2_annulled = 0; r2_final = s r2_blank contains all simulated runoff blank/null/annulled votes. The round-1 abstention source is electorate minus turnout, including abroad non-voters. Truth JSON layout: scenario_id, seed; row_labels (8), column_labels (4) drawn_national_table: 8 x 4 integer source-to-destination votes drawn_state_tables: uf -> 8 x 4 integer votes (including ZZ) expected_national_row_shares: 8 x 4, count-weighted planted row probabilities before sampling, after calibration; zero for a source with zero national count round1_national_row_counts; expected_national_table (floating-point votes) official_target_electorate_shares; expected_national_electorate_shares; achieved_national_electorate_shares; calibration parameters Rows: Lula, Flávio, Cury, Renan, Caiado, Others, BlankNull, Abstention. Columns: Lula, Flávio, BlankNull, Abstention. Expected national rows use source-vote weights, not an average of unit rates. Per-unit latent tables are not exported. Drawn state tables sum to national truth. S3 interpretation: 5-10% turnout churn is measured against total electorate in each direction, with source-row candidate switching constrained to 2-5%. Source-row 5-10% in BOTH turnout directions is mathematically incompatible with the requested calibration on these margins; scenarios.json gives the bound. All voter rows have 6.5% attrition. Abstainer mobilization is necessarily higher as a fraction of abstainers. Manifest records the achieved gross flows. S5 preserves the real first-round margins: concentration refers to the three states holding the most Caiado votes, whose fraction is in scenarios.json. manifest.txt records achieved national electorate shares, all identity, calibration, truth/state consistency and determinism checks, and SHA256 for every generated CSV/truth file plus code and documentation. Calibration tolerance is 2 percentage points per destination for each DRAWN scenario/seed. Expected shares are calibrated much more tightly. Hashes freeze the planted national truth for subsequent method scoring; manifest excludes its own hash.