diff --git a/CMakeLists.txt b/CMakeLists.txt index 006bebb..838f706 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -636,6 +636,14 @@ if(BUILD_TESTING) set_tests_properties(resolution-sensitivity PROPERTIES TIMEOUT 120) endif() +add_executable(evo-reserve-strata experiments/resolution/reserve_strata.cpp) +target_link_libraries(evo-reserve-strata PRIVATE evo::ecology) +evo_owned_target(evo-reserve-strata) +if(BUILD_TESTING) + add_test(NAME reserve-strata-qualification COMMAND evo-reserve-strata --verify) + set_tests_properties(reserve-strata-qualification PROPERTIES TIMEOUT 120) +endif() + add_executable(evo-chunk-layout experiments/world/chunk_layout.cpp) target_link_libraries(evo-chunk-layout PRIVATE evo::world) evo_owned_target(evo-chunk-layout) diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 4d6e8bc..cf8a293 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -642,6 +642,10 @@ M12 supplies sustained world ecology rather than short-session evidence alone. ## M12 - Persistent ecology +2026-10-16: 12.2b's [exact-reserve/age experiment](engineering/M12_RESERVE_STRATA_EXPERIMENT.md) +matches all 83 synthetic trajectories without replacing the rejected M4 baseline. +It does not qualify an M11 cellular population model or automatic tier policy. + 2026-10-15: 12.1 engineering evidence policy and explicit deferrals are documented in [ADR-0133](adr/0133-ecological-identity-and-time-evidence.md). M11's product review and 12.2's model qualification remain open; automatic tiers stay disabled. diff --git a/docs/STATUS.md b/docs/STATUS.md index 0c9e371..84c4e7d 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -1,5 +1,16 @@ # Project status and next steps +## M12.2b experiment - 2026-10-16 + +A separate exact-reserve/age candidate matches 83 synthetic histories, including +40 held-out cases, at every tick on MSVC and GCC. The old failed aggregation +fixture and evidence remain unchanged. Compact active controls show that cost +benefits depend on compiler and workload; no production capacity is inferred. +See [the experiment report](engineering/M12_RESERVE_STRATA_EXPERIMENT.md). +Release tests pass 70/70, with clang-format/tidy 19 and Linux ASan/UBSan checks. +M12.2 still needs M11 cellular multi-genome qualification and target-host fallback +budgets; M12.3-12.5 and the unrecorded M11 product review remain open. + ## M12 start - 2026-10-15 M12.1 defines ecological identity, viability evidence and time boundaries in diff --git a/docs/adr/0134-reserve-strata-population-experiment.md b/docs/adr/0134-reserve-strata-population-experiment.md new file mode 100644 index 0000000..68806af --- /dev/null +++ b/docs/adr/0134-reserve-strata-population-experiment.md @@ -0,0 +1,79 @@ +# ADR-0134: Exact reserve-strata population experiment + +## Status + +Accepted for the isolated M12.2b research instrument (2026-10-16). No runtime +tier policy, biological rule, public API, persistent version or golden changes. + +## Context + +ADR-0041 and M12.2a reproduce false extinctions when an age class pays upkeep +from its mean reserve. Narrower age bins do not reliably repair this. Before +approximating M11 cellular ecology, test whether retaining exact age/reserve +variation removes that mechanism in the original synthetic model. + +## Decision + +Add an experiment using exact per-member age/energy/matter, run-length encoded +only across contiguous identities with identical state. Retain monotonic identity +ranges and oldest-first, then identity-first birth priority. Partial reproduction +splits a range; equal newborns can share a range. Dead members leave the working +representation; no averaging, resampling, age reset or death-rounding occurs. +Keep the existing failed fixture, benchmark and goldens unchanged. + +Predeclare the acceptance instrument before measurement: + +- Every tick must exactly match identified living portraits, population, reserve, + cumulative births/deaths, environment, detritus and conserved totals against the + retained individual reference. No terminal-only tolerance. Any mismatch fails. +- Revisit supplies 240/300/360 for 10,000 ticks from the original 100 founders. +- Seeds 0-7 are development and 8-15 held out. For each seed, test supplies + 180/240/300/360/480 for 1,500 ticks. Generate blocks of five identical founders + with seeded heterogeneous ages/reserves, so both compression and variation occur. + These are declared synthetic regimes, not M11 calibration or diversity evidence. +- Check contested partial births with same-age unequal reserves, empty/dead input, + fragmented identities, conservation and interval partitioning without enlarging + the model's one-tick integration quantum. +- Report local time, peak active rows, state payload and vector capacity alongside + error. Timing runs exclude verification and setup; no portable timing assertion. + Report the historical reference's retained-dead-row bias explicitly. Include an + identified compact-individual cost control that retires dead rows while keeping + birth priority, and check its identified outcomes against the same reference. + +The candidate representation is **not** Cohort v1: that contract retains only +age-class totals and cannot recover the exact reserve distribution. No converter +is provided that silently upgrades v1. This experiment retains identified state; +it must not be described as statistically sampled ancestry or a production model. + +## Alternatives considered + +Changing the old fixture would invalidate the rejection evidence. Exact individual +rows provide a useful control but cannot demonstrate any grouping benefit. Reserve +bins that still mix viable and starving members need an error/viability model; +test the exact sufficient-state control first. Directly wiring the old aggregate +into the cellular owner remains prohibited by ADR-0041. + +## Benefits + +Tests a specific repair with an independent implementation of interval accounting +and identified outcomes. Shared scalar Rule predicates keep the synthetic biology +constant while the representation changes. + +## Costs + +Heterogeneous states may require one row per living member. Identity order can +prevent merging otherwise identical states. Per-tick splitting and sorting cost +time and temporary memory; report rather than assume a speedup. + +## Risks + +This single-genome, nonspatial fixture lacks M11 controller, contact, predation, +mutation, budding placement and suspension. Exact synthetic fidelity does not +qualify current cellular workloads or establish a target-host fallback budget. + +## Consequences + +Add release-safe CTest coverage and run formatting, analysis and ASan/UBSan for +the experiment. Publish results with limitations. M12.2 remains open until M11 +paired ensembles, supported-state admission and target-host cost/error evidence +are accepted; M12.3-12.5 remain dependent on that qualification. diff --git a/docs/adr/README.md b/docs/adr/README.md index 03ad669..bae29f1 100644 --- a/docs/adr/README.md +++ b/docs/adr/README.md @@ -1,5 +1,7 @@ # Architecture decision records +- [ADR-0134: Exact reserve-strata population experiment](0134-reserve-strata-population-experiment.md) - M12.2b isolated exact-state candidate and predeclared instrument; no runtime tier qualification. + - [ADR-0133: Ecological identity and time evidence](0133-ecological-identity-and-time-evidence.md) - M12.1 engineering evidence, viability/time boundaries and explicit deferrals; no runtime changes or qualified aggregation. - [ADR-0100: Primitive lives and persistent control](0100-primitive-lives-and-persistent-control.md) - accepted M11.2 direction: finite spawn pools, equal full-grown founders, new cellular checkpoint and atomic life publication. 11.2a adds in-memory funded creation; durability/integration follow. diff --git a/docs/biology/ECOLOGY_MODEL.md b/docs/biology/ECOLOGY_MODEL.md index c7107a1..751d7bc 100644 --- a/docs/biology/ECOLOGY_MODEL.md +++ b/docs/biology/ECOLOGY_MODEL.md @@ -7,6 +7,10 @@ sections below retain their original implementation scope; no population model or automatic tier policy has qualified. See the [M12 delivery plan](../engineering/M12_DELIVERY_PLAN.md). +M12.2b's isolated [exact-state experiment](../engineering/M12_RESERVE_STRATA_EXPERIMENT.md) +repairs the synthetic averaging failure by retaining per-member age/reserve and +identity order. It is not Cohort v1, an M11 cellular model or a production tier. + Locked: scalable tiers and independent persistent descendants. Contracts below are recommended; population math, lineage/species classifications are experiments. diff --git a/docs/engineering/M12_DELIVERY_PLAN.md b/docs/engineering/M12_DELIVERY_PLAN.md index ffd5cf9..6e2064d 100644 --- a/docs/engineering/M12_DELIVERY_PLAN.md +++ b/docs/engineering/M12_DELIVERY_PLAN.md @@ -4,12 +4,12 @@ Requested scope: ecological identity, population qualification, durable automati tier transitions, unattended scheduling/migration and environmental coupling. Commit and push each validated scoped segment separately. -## Gate status (2026-10-15) +## Gate status (2026-10-16) | Subset | State | Evidence or condition for completion | |---|---|---| | 12.1 | Engineering evidence policy and explicit deferrals documented | ADR-0133, identity/time contract and worked histories; no new game rules or runtime versions. | -| 12.2 | Baseline reproduction complete (12.2a); qualification open | All 15 scenarios reproduce the historical results, including eight false extinctions; zero widths qualify. See M12_POPULATION_QUALIFICATION. A model against M11 rules, hold-outs and target-host budgets remains required. | +| 12.2 | Baseline reproduction (12.2a) and exact-strata instrument (12.2b) complete; cellular qualification open | The old widths remain rejected. The new exact-state experiment matches 83 synthetic trajectories, including 40 held-out cases. M11 paired multi-genome ensembles and target-host fallback budgets remain required. | | 12.3 | Blocked on 12.2 | No accepted population model, deterministic durable conversion sample or profile integrating cellular/cohort state. | | 12.4 | Blocked on 12.2-12.3 | Existing cellular worker pauses without sessions/lingering players; bounded unattended recovery and biological migration escrow remain unimplemented. | | 12.5 | Blocked on 12.2-12.4 | Finite M6 process fixtures do not qualify coupled persistent cellular/cohort atmosphere/water budgets. | @@ -23,6 +23,13 @@ Executed 12.2a results and remaining limits: [M12_POPULATION_QUALIFICATION](M12_POPULATION_QUALIFICATION.md). Release CTest passed 69/69 outside the filesystem sandbox. No production model was adopted. +12.2b now implements the separately versioned exact-reserve/age research candidate +proposed below: [experiment results](M12_RESERVE_STRATA_EXPERIMENT.md), ADR-0134. +It removes the synthetic false-extinction mechanism but often retains one row per +individual. Release CTest passed 70/70, with Linux analysis and ASan/UBSan checks. +Next is the M11 paired cellular instrument and supported-state/model review; +neither exact synthetic fidelity nor workstation costs qualify a production tier. + ## Architectural conflict and resolution Automatic transitions or regional aggregation now would conflict with ADR-0041 @@ -31,8 +38,8 @@ conserving inventory. The M4 test-only model is not the M11 spatial cellular mod wrapping its in-memory conversion primitives in persistence would not qualify it. Under the engineering constitution, stop expanding the affected implementation. -Resolve this by retaining the failed baseline and adding a separately versioned -candidate experiment that preserves relevant age/reserve/genome variation. Before +The isolated 12.2b candidate retains the failed baseline and exact age/reserve +variation; it does not yet address cellular/genome variation. Before running it, declare population/biomass/diversity trajectory bounds, extinction criteria, supported cellular states and hold-out seed/regime splits. Compare against the accepted M11 controller, contact, contested intake, budding, death and diff --git a/docs/engineering/M12_POPULATION_QUALIFICATION.md b/docs/engineering/M12_POPULATION_QUALIFICATION.md index 7c4f11c..4359107 100644 --- a/docs/engineering/M12_POPULATION_QUALIFICATION.md +++ b/docs/engineering/M12_POPULATION_QUALIFICATION.md @@ -1,5 +1,9 @@ # M12.2 population qualification: baseline reproduction +Follow-up (2026-10-16): [M12.2b](M12_RESERVE_STRATA_EXPERIMENT.md) tests a separate +exact-reserve/age candidate and matches 83 synthetic trajectories on MSVC/GCC. +The baseline rejection below remains valid; no production cellular tier qualifies. + ## Result (2026-10-15) M12.2a reproduces the rejected M4.6 baseline without modifying its model or diff --git a/docs/engineering/M12_RESERVE_STRATA_EXPERIMENT.md b/docs/engineering/M12_RESERVE_STRATA_EXPERIMENT.md new file mode 100644 index 0000000..75db863 --- /dev/null +++ b/docs/engineering/M12_RESERVE_STRATA_EXPERIMENT.md @@ -0,0 +1,128 @@ +# M12.2b: Exact reserve-strata experiment + +## Result (2026-10-16) + +The exact-state candidate removes the synthetic baseline's false-extinction +mechanism: **all 83 comparisons match every identified living state, census, +birth/death count and resource compartment at every tick** on MSVC and GCC. +This includes 40 development cases, 40 held-out cases and three original scarcity +runs. All 83 comparison records are identical across platforms. Conservation is +exact. No old model, rejection result, persistent format or golden was replaced. + +This completes the isolated M12.2b research segment under +[ADR-0134](../adr/0134-reserve-strata-population-experiment.md). It does **not** +complete M12.2 or authorize automatic tier selection. Exact-state retention can +require one row per living individual and is not yet a cellular population model. + +Source: `experiments/resolution/reserve_strata.hpp` and `reserve_strata.cpp`. +Raw results: [MSVC 19.44](results/m12-2b-strata-msvc1944.jsonl) and +[GCC 14.2](results/m12-2b-strata-gcc14.jsonl). + +## Representation and predeclared instrument + +Age-class averages lose which members can pay upkeep. The candidate instead holds +exact per-member age, energy and matter in run-length encoded contiguous identity +ranges. It merges only identical states. Parent priority stays oldest-first then +original identity; partially reproducing ranges split before their reserves are +debited. Dead working rows retire without renumbering surviving identities. + +The original fixture's shared scalar `Rule` predicates are unchanged. An independent +group implementation performs the five phases and checked inventory arithmetic. +No sampler, approximate birth count, age-bin midpoint or resource averaging enters +the candidate. The original identified implementation remains the reference. +A third, compact-individual implementation invokes that reference step and retires +dead rows while retaining original identities and tie order. It is checked against +the same identified outcomes before being used as a cost control. + +ADR-0134 declared zero per-tick error before running the experiment. The instrument +checks identified portraits rather than census agreement alone, so charging the +wrong parent at a capacity boundary fails. Controls cover partial reproduction, +same-age unequal reserves, compressed identical members, starvation of a subset, +fragmented identities, empty populations, interval partitioning at unchanged +one-tick quantum, unsupported underfunded breeding and checked-product overflow. + +The original 100-founder distribution runs at supplies 240/300/360 for 10,000 +ticks. The seeded suite uses 100 founders in blocks of five identical members, +with heterogeneous seeded ages and reserves. Seeds 0-7 are development and 8-15 +held out, each at supplies 180/240/300/360/480 for 1,500 ticks. These regimes stress +the research instrument; they do not model M11 spatial competition or diversity. + +## Costs + +Local Ryzen 7 9800X3D workstation, 8 cores/16 logical processors; Windows x64 +MSVC 19.44 Release and Ubuntu WSL2 GCC 14.2 Release. No affinity/frequency lock, +RSS profiling or controlled production runner. One warmup plus three fresh +samples, with strata/reference order alternated. Median milliseconds over +10,000 steps follow; verification and setup are outside the timed loop. + +| Supply | MSVC historical | MSVC compact | MSVC strata | GCC historical | GCC compact | GCC strata | +|---|---:|---:|---:|---:|---:|---:| +| 240 | 27.898 | 3.824 | 5.162 | 26.315 | 6.211 | 2.452 | +| 300 | 30.206 | 4.202 | 8.549 | 27.543 | 6.425 | 2.957 | +| 360 | 35.342 | 4.867 | 9.112 | 32.771 | 7.583 | 3.153 | + +The candidate beats the historical retained-dead reference on both compilers, but +is slower than compact individuals on MSVC and faster on GCC. Therefore the old +benchmark's apparent aggregation advantage includes dead-row scanning, and these +local observations do not justify a production capacity promise or universal win. + +| Supply | Historical peak rows | Compact peak active rows | Strata peak rows | +|---|---:|---:|---:| +| 240 | 2471 | 120 | 120 | +| 300 | 2625 | 131 | 131 | +| 360 | 3156 | 148 | 140 | + +Peak state payloads for compact/strata are 4800/4800, 5240/5240 and 5920/5600 +bytes respectively. Both carry exact identity, age and reserves; little grouping +is possible in these original heterogeneous histories. Peak group count and +peak individual count may occur at different ticks. Raw files also report vector +capacity; allocator growth differs between MSVC and libstdc++. Payload/capacity +exclude object bytes, per-step temporary vectors/sort scratch, allocator metadata +and RSS. They are not peak working-memory budgets or persisted-size estimates. + +## Reproduction and checks + +```powershell +./tools/windows-check.ps1 -Preset release -Action check +./build/release/evo-reserve-strata.exe +``` + +The existing Ubuntu WSL build directories use the checked-in presets with explicit +binary-directory overrides, keeping native and Linux object files separate: + +```sh +cmake --preset release -B build/linux-release +cmake --build build/linux-release --target evo-reserve-strata +./build/linux-release/evo-reserve-strata +cmake --preset analysis -B build/linux-analysis +cmake --build build/linux-analysis --target evo-reserve-strata format-check +ctest --test-dir build/linux-analysis -R reserve-strata-qualification --output-on-failure +cmake --preset asan -B build/linux-asan +cmake --build build/linux-asan --target evo-reserve-strata +ctest --test-dir build/linux-asan -R reserve-strata-qualification --output-on-failure +``` + +Executed: native Release build and **70/70 CTests**; GCC Release experiment and +its CTest; clang-format 19 repository check (now includes experiment headers); +clang-tidy 19 analysis build and its debug CTest; GCC ASan/UBSan experiment CTest. +`--verify` runs the full controls and comparison matrix without timing. JSONL +validation checked 83 comparison and 27 timing rows per platform and exact +cross-platform equality of comparison records. Tests throw under `NDEBUG`. + +## Remaining qualification + +The candidate is not representable by Cohort v1's age-class totals. There is no +automatic conversion, persisted representation, spatial support or ancestry +codec. Retained synthetic IDs do not supply new individual-parent history. +Mixed genomes, M11 contact/predation/controllers, funded bud placement, mutation, +offline suspension, viable reproductive reserves and migrations remain unsupported. +No runtime adapter silently admits these states. + +Next, predeclare paired M11 cellular ensembles and demographic/biomass/diversity +bounds, retain a compact active control, and evaluate whether any supported state +can safely group or approximate without erasing spatial/viability distinctions. +Any new representation needs its own complete public/durable contract. Measure +full-region/conversion and active fallback costs on the target Linux host, with +explicit backpressure. WSL2 workstation evidence is not the R730xd qualification. +M11.9 human product acceptance also remains unrecorded. See the +[delivery plan](M12_DELIVERY_PLAN.md) for dependent gates. diff --git a/docs/engineering/VALIDATION.md b/docs/engineering/VALIDATION.md index 2edebe6..5bf4fd4 100644 --- a/docs/engineering/VALIDATION.md +++ b/docs/engineering/VALIDATION.md @@ -1,5 +1,36 @@ # Validation report +## 2026-10-16 - M12.2b exact reserve-strata experiment + +ADR-0134 scopes a new research executable, not a public library/runtime change. +Original fixture, goldens, persistent versions and rejected measurements preserved. +The candidate retains exact age/energy/matter and identity ranges; an identified +compact-individual cost control prevents dead-row retention from masquerading as +an aggregation benefit. Both match identified reference states every tick. + +Executed checks on final source: + +- MSVC 19.44 `release` configure/build with warnings-as-errors, **70/70 CTests** + outside the sandbox (existing hard-link fixtures require it). +- GCC 14.2 Ubuntu WSL2 `release` preset, separate `build/linux-release`, experiment + build and `reserve-strata-qualification` CTest passed. +- `analysis` preset in `build/linux-analysis`, clang-tidy 19 warnings-as-errors + build of the experiment, its debug CTest and repository clang-format 19 check + passed. Formatting coverage now includes experiment `.hpp` files. +- `asan` preset in `build/linux-asan`, GCC address/undefined sanitizers, experiment + CTest passed without reports (21.04 s). No threads added; TSan not applicable. +- Recorded and parsed both native/GCC Release raw files: 83 comparison and 27 timing + records each. All per-tick identified/stock comparisons exact, no false extinction; + all 83 comparison records identical across platforms. Checked `git diff --check`. + +Full methodology, costs, commands, raw links and limitations: +[M12_RESERVE_STRATA_EXPERIMENT](M12_RESERVE_STRATA_EXPERIMENT.md). The local Ryzen +9800X3D/WSL2 measurements are not target-host budgets. The candidate can need one +row per living member and is slower than compact individuals in the MSVC run. +No M11 mixed-genome/spatial ecology, durable conversions, automatic selection, +unattended workers, migration or coupled regional atmosphere/water qualification +is claimed. M12.2 and the unrecorded M11 product acceptance remain open. + ## 2026-10-15 - M12.2a rejected baseline reproduction No C++ changes. MSVC 19.44 `release` configure/build passed. Sandboxed CTest was diff --git a/docs/engineering/results/m12-2b-strata-gcc14.jsonl b/docs/engineering/results/m12-2b-strata-gcc14.jsonl new file mode 100644 index 0000000..7535fc9 --- /dev/null +++ b/docs/engineering/results/m12-2b-strata-gcc14.jsonl @@ -0,0 +1,111 @@ +{"kind":"metadata","candidate":"exact-reserve-strata-1","reference":"resolution-fixture-2","founders":100,"production_qualified":false,"compiler":"GCC 14.2.0","build":"release"} +{"kind":"comparison","split":"historical","seed":0,"supply":240,"ticks":10000,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":120,"peak_living":120,"final_living":108} +{"kind":"timing","tier":"exact_strata","supply":240,"sample":1,"elapsed_ns":1471384,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5120,"final_living":108} +{"kind":"timing","tier":"compact_individual","supply":240,"sample":1,"elapsed_ns":6052751,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":7424,"final_living":108} +{"kind":"timing","tier":"historical_individual","supply":240,"sample":1,"elapsed_ns":30611244,"peak_rows":2471,"peak_payload_bytes":79072,"peak_capacity_bytes":102400,"final_living":108} +{"kind":"timing","tier":"historical_individual","supply":240,"sample":2,"elapsed_ns":26314635,"peak_rows":2471,"peak_payload_bytes":79072,"peak_capacity_bytes":102400,"final_living":108} +{"kind":"timing","tier":"compact_individual","supply":240,"sample":2,"elapsed_ns":6305020,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":7424,"final_living":108} +{"kind":"timing","tier":"exact_strata","supply":240,"sample":2,"elapsed_ns":2452414,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5120,"final_living":108} +{"kind":"timing","tier":"exact_strata","supply":240,"sample":3,"elapsed_ns":2493413,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5120,"final_living":108} +{"kind":"timing","tier":"compact_individual","supply":240,"sample":3,"elapsed_ns":6211485,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":7424,"final_living":108} +{"kind":"timing","tier":"historical_individual","supply":240,"sample":3,"elapsed_ns":25624317,"peak_rows":2471,"peak_payload_bytes":79072,"peak_capacity_bytes":102400,"final_living":108} +{"kind":"comparison","split":"historical","seed":0,"supply":300,"ticks":10000,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":131,"peak_living":131,"final_living":75} +{"kind":"timing","tier":"exact_strata","supply":300,"sample":1,"elapsed_ns":2951810,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":10240,"final_living":75} +{"kind":"timing","tier":"compact_individual","supply":300,"sample":1,"elapsed_ns":6548618,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":8448,"final_living":75} +{"kind":"timing","tier":"historical_individual","supply":300,"sample":1,"elapsed_ns":27543393,"peak_rows":2625,"peak_payload_bytes":84000,"peak_capacity_bytes":102400,"final_living":75} +{"kind":"timing","tier":"historical_individual","supply":300,"sample":2,"elapsed_ns":27397190,"peak_rows":2625,"peak_payload_bytes":84000,"peak_capacity_bytes":102400,"final_living":75} +{"kind":"timing","tier":"compact_individual","supply":300,"sample":2,"elapsed_ns":6403829,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":8448,"final_living":75} +{"kind":"timing","tier":"exact_strata","supply":300,"sample":2,"elapsed_ns":2990564,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":10240,"final_living":75} +{"kind":"timing","tier":"exact_strata","supply":300,"sample":3,"elapsed_ns":2957133,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":10240,"final_living":75} +{"kind":"timing","tier":"compact_individual","supply":300,"sample":3,"elapsed_ns":6424799,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":8448,"final_living":75} +{"kind":"timing","tier":"historical_individual","supply":300,"sample":3,"elapsed_ns":28064211,"peak_rows":2625,"peak_payload_bytes":84000,"peak_capacity_bytes":102400,"final_living":75} +{"kind":"comparison","split":"historical","seed":0,"supply":360,"ticks":10000,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":140,"peak_living":148,"final_living":130} +{"kind":"timing","tier":"exact_strata","supply":360,"sample":1,"elapsed_ns":3152715,"peak_rows":140,"peak_payload_bytes":5600,"peak_capacity_bytes":10240,"final_living":130} +{"kind":"timing","tier":"compact_individual","supply":360,"sample":1,"elapsed_ns":7562437,"peak_rows":148,"peak_payload_bytes":5920,"peak_capacity_bytes":8448,"final_living":130} +{"kind":"timing","tier":"historical_individual","supply":360,"sample":1,"elapsed_ns":31697958,"peak_rows":3156,"peak_payload_bytes":100992,"peak_capacity_bytes":102400,"final_living":130} +{"kind":"timing","tier":"historical_individual","supply":360,"sample":2,"elapsed_ns":32771499,"peak_rows":3156,"peak_payload_bytes":100992,"peak_capacity_bytes":102400,"final_living":130} +{"kind":"timing","tier":"compact_individual","supply":360,"sample":2,"elapsed_ns":7587005,"peak_rows":148,"peak_payload_bytes":5920,"peak_capacity_bytes":8448,"final_living":130} +{"kind":"timing","tier":"exact_strata","supply":360,"sample":2,"elapsed_ns":3152355,"peak_rows":140,"peak_payload_bytes":5600,"peak_capacity_bytes":10240,"final_living":130} +{"kind":"timing","tier":"exact_strata","supply":360,"sample":3,"elapsed_ns":3161419,"peak_rows":140,"peak_payload_bytes":5600,"peak_capacity_bytes":10240,"final_living":130} +{"kind":"timing","tier":"compact_individual","supply":360,"sample":3,"elapsed_ns":7583064,"peak_rows":148,"peak_payload_bytes":5920,"peak_capacity_bytes":8448,"final_living":130} +{"kind":"timing","tier":"historical_individual","supply":360,"sample":3,"elapsed_ns":32834820,"peak_rows":3156,"peak_payload_bytes":100992,"peak_capacity_bytes":102400,"final_living":130} +{"kind":"comparison","split":"development","seed":0,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":140,"final_living":65} +{"kind":"comparison","split":"development","seed":0,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":150,"final_living":85} +{"kind":"comparison","split":"development","seed":0,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":200,"final_living":110} +{"kind":"comparison","split":"development","seed":0,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":165,"final_living":125} +{"kind":"comparison","split":"development","seed":0,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":195,"final_living":165} +{"kind":"comparison","split":"development","seed":1,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":65} +{"kind":"comparison","split":"development","seed":1,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"development","seed":1,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":165,"final_living":150} +{"kind":"comparison","split":"development","seed":1,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":185,"final_living":120} +{"kind":"comparison","split":"development","seed":1,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":30,"peak_living":190,"final_living":170} +{"kind":"comparison","split":"development","seed":2,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":65} +{"kind":"comparison","split":"development","seed":2,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":90} +{"kind":"comparison","split":"development","seed":2,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":30,"peak_living":180,"final_living":110} +{"kind":"comparison","split":"development","seed":2,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":31,"peak_living":200,"final_living":125} +{"kind":"comparison","split":"development","seed":2,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":32,"peak_living":200,"final_living":190} +{"kind":"comparison","split":"development","seed":3,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":65} +{"kind":"comparison","split":"development","seed":3,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":80} +{"kind":"comparison","split":"development","seed":3,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":160,"final_living":150} +{"kind":"comparison","split":"development","seed":3,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":160,"final_living":115} +{"kind":"comparison","split":"development","seed":3,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":32,"peak_living":190,"final_living":170} +{"kind":"comparison","split":"development","seed":4,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":130,"final_living":65} +{"kind":"comparison","split":"development","seed":4,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":130,"final_living":80} +{"kind":"comparison","split":"development","seed":4,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":145,"final_living":105} +{"kind":"comparison","split":"development","seed":4,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":145,"final_living":125} +{"kind":"comparison","split":"development","seed":4,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":180,"final_living":170} +{"kind":"comparison","split":"development","seed":5,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":170,"final_living":55} +{"kind":"comparison","split":"development","seed":5,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":170,"final_living":85} +{"kind":"comparison","split":"development","seed":5,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":170,"final_living":105} +{"kind":"comparison","split":"development","seed":5,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":200,"final_living":180} +{"kind":"comparison","split":"development","seed":5,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":200,"final_living":150} +{"kind":"comparison","split":"development","seed":6,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":155,"final_living":70} +{"kind":"comparison","split":"development","seed":6,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"development","seed":6,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":160,"final_living":105} +{"kind":"comparison","split":"development","seed":6,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":180,"final_living":125} +{"kind":"comparison","split":"development","seed":6,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":195,"final_living":180} +{"kind":"comparison","split":"development","seed":7,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":150,"final_living":65} +{"kind":"comparison","split":"development","seed":7,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"development","seed":7,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":170,"final_living":105} +{"kind":"comparison","split":"development","seed":7,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":200,"final_living":145} +{"kind":"comparison","split":"development","seed":7,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":30,"peak_living":200,"final_living":170} +{"kind":"comparison","split":"holdout","seed":8,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":135,"final_living":65} +{"kind":"comparison","split":"holdout","seed":8,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":135,"final_living":85} +{"kind":"comparison","split":"holdout","seed":8,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":160,"final_living":105} +{"kind":"comparison","split":"holdout","seed":8,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":185,"final_living":125} +{"kind":"comparison","split":"holdout","seed":8,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":33,"peak_living":200,"final_living":165} +{"kind":"comparison","split":"holdout","seed":9,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":165,"final_living":70} +{"kind":"comparison","split":"holdout","seed":9,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":165,"final_living":85} +{"kind":"comparison","split":"holdout","seed":9,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":175,"final_living":105} +{"kind":"comparison","split":"holdout","seed":9,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":200,"final_living":130} +{"kind":"comparison","split":"holdout","seed":9,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":200,"final_living":185} +{"kind":"comparison","split":"holdout","seed":10,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":21,"peak_living":130,"final_living":65} +{"kind":"comparison","split":"holdout","seed":10,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":85} +{"kind":"comparison","split":"holdout","seed":10,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":150,"final_living":105} +{"kind":"comparison","split":"holdout","seed":10,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":150,"final_living":125} +{"kind":"comparison","split":"holdout","seed":10,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":185,"final_living":160} +{"kind":"comparison","split":"holdout","seed":11,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":65} +{"kind":"comparison","split":"holdout","seed":11,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"holdout","seed":11,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":105} +{"kind":"comparison","split":"holdout","seed":11,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":200,"final_living":135} +{"kind":"comparison","split":"holdout","seed":11,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":31,"peak_living":200,"final_living":175} +{"kind":"comparison","split":"holdout","seed":12,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":150,"final_living":65} +{"kind":"comparison","split":"holdout","seed":12,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":150,"final_living":90} +{"kind":"comparison","split":"holdout","seed":12,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":105} +{"kind":"comparison","split":"holdout","seed":12,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":195,"final_living":135} +{"kind":"comparison","split":"holdout","seed":12,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":33,"peak_living":200,"final_living":180} +{"kind":"comparison","split":"holdout","seed":13,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":20,"peak_living":125,"final_living":65} +{"kind":"comparison","split":"holdout","seed":13,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":20,"peak_living":125,"final_living":85} +{"kind":"comparison","split":"holdout","seed":13,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":150,"final_living":150} +{"kind":"comparison","split":"holdout","seed":13,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":150,"final_living":120} +{"kind":"comparison","split":"holdout","seed":13,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":190,"final_living":170} +{"kind":"comparison","split":"holdout","seed":14,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":140,"final_living":65} +{"kind":"comparison","split":"holdout","seed":14,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":140,"final_living":85} +{"kind":"comparison","split":"holdout","seed":14,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":155,"final_living":105} +{"kind":"comparison","split":"holdout","seed":14,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":175,"final_living":120} +{"kind":"comparison","split":"holdout","seed":14,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":31,"peak_living":195,"final_living":180} +{"kind":"comparison","split":"holdout","seed":15,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":125,"final_living":60} +{"kind":"comparison","split":"holdout","seed":15,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":130,"final_living":90} +{"kind":"comparison","split":"holdout","seed":15,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":135} +{"kind":"comparison","split":"holdout","seed":15,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":165,"final_living":160} +{"kind":"comparison","split":"holdout","seed":15,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":185,"final_living":170} diff --git a/docs/engineering/results/m12-2b-strata-msvc1944.jsonl b/docs/engineering/results/m12-2b-strata-msvc1944.jsonl new file mode 100644 index 0000000..0a092db --- /dev/null +++ b/docs/engineering/results/m12-2b-strata-msvc1944.jsonl @@ -0,0 +1,111 @@ +{"kind":"metadata","candidate":"exact-reserve-strata-1","reference":"resolution-fixture-2","founders":100,"production_qualified":false,"compiler":"MSVC 1944","build":"release"} +{"kind":"comparison","split":"historical","seed":0,"supply":240,"ticks":10000,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":120,"peak_living":120,"final_living":108} +{"kind":"timing","tier":"exact_strata","supply":240,"sample":1,"elapsed_ns":5253300,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5640,"final_living":108} +{"kind":"timing","tier":"compact_individual","supply":240,"sample":1,"elapsed_ns":3730500,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5928,"final_living":108} +{"kind":"timing","tier":"historical_individual","supply":240,"sample":1,"elapsed_ns":27639700,"peak_rows":2471,"peak_payload_bytes":79072,"peak_capacity_bytes":81696,"final_living":108} +{"kind":"timing","tier":"historical_individual","supply":240,"sample":2,"elapsed_ns":28297200,"peak_rows":2471,"peak_payload_bytes":79072,"peak_capacity_bytes":81696,"final_living":108} +{"kind":"timing","tier":"compact_individual","supply":240,"sample":2,"elapsed_ns":3902300,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5928,"final_living":108} +{"kind":"timing","tier":"exact_strata","supply":240,"sample":2,"elapsed_ns":5162100,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5640,"final_living":108} +{"kind":"timing","tier":"exact_strata","supply":240,"sample":3,"elapsed_ns":5105700,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5640,"final_living":108} +{"kind":"timing","tier":"compact_individual","supply":240,"sample":3,"elapsed_ns":3824000,"peak_rows":120,"peak_payload_bytes":4800,"peak_capacity_bytes":5928,"final_living":108} +{"kind":"timing","tier":"historical_individual","supply":240,"sample":3,"elapsed_ns":27898300,"peak_rows":2471,"peak_payload_bytes":79072,"peak_capacity_bytes":81696,"final_living":108} +{"kind":"comparison","split":"historical","seed":0,"supply":300,"ticks":10000,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":131,"peak_living":131,"final_living":75} +{"kind":"timing","tier":"exact_strata","supply":300,"sample":1,"elapsed_ns":8555800,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":5640,"final_living":75} +{"kind":"timing","tier":"compact_individual","supply":300,"sample":1,"elapsed_ns":4098900,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":5928,"final_living":75} +{"kind":"timing","tier":"historical_individual","supply":300,"sample":1,"elapsed_ns":30206300,"peak_rows":2625,"peak_payload_bytes":84000,"peak_capacity_bytes":122528,"final_living":75} +{"kind":"timing","tier":"historical_individual","supply":300,"sample":2,"elapsed_ns":29874400,"peak_rows":2625,"peak_payload_bytes":84000,"peak_capacity_bytes":122528,"final_living":75} +{"kind":"timing","tier":"compact_individual","supply":300,"sample":2,"elapsed_ns":4271100,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":5928,"final_living":75} +{"kind":"timing","tier":"exact_strata","supply":300,"sample":2,"elapsed_ns":8549100,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":5640,"final_living":75} +{"kind":"timing","tier":"exact_strata","supply":300,"sample":3,"elapsed_ns":8507500,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":5640,"final_living":75} +{"kind":"timing","tier":"compact_individual","supply":300,"sample":3,"elapsed_ns":4202000,"peak_rows":131,"peak_payload_bytes":5240,"peak_capacity_bytes":5928,"final_living":75} +{"kind":"timing","tier":"historical_individual","supply":300,"sample":3,"elapsed_ns":30700800,"peak_rows":2625,"peak_payload_bytes":84000,"peak_capacity_bytes":122528,"final_living":75} +{"kind":"comparison","split":"historical","seed":0,"supply":360,"ticks":10000,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":140,"peak_living":148,"final_living":130} +{"kind":"timing","tier":"exact_strata","supply":360,"sample":1,"elapsed_ns":9972600,"peak_rows":140,"peak_payload_bytes":5600,"peak_capacity_bytes":5640,"final_living":130} +{"kind":"timing","tier":"compact_individual","supply":360,"sample":1,"elapsed_ns":4867400,"peak_rows":148,"peak_payload_bytes":5920,"peak_capacity_bytes":6488,"final_living":130} +{"kind":"timing","tier":"historical_individual","supply":360,"sample":1,"elapsed_ns":35342100,"peak_rows":3156,"peak_payload_bytes":100992,"peak_capacity_bytes":122528,"final_living":130} +{"kind":"timing","tier":"historical_individual","supply":360,"sample":2,"elapsed_ns":35924500,"peak_rows":3156,"peak_payload_bytes":100992,"peak_capacity_bytes":122528,"final_living":130} +{"kind":"timing","tier":"compact_individual","supply":360,"sample":2,"elapsed_ns":4975100,"peak_rows":148,"peak_payload_bytes":5920,"peak_capacity_bytes":6488,"final_living":130} +{"kind":"timing","tier":"exact_strata","supply":360,"sample":2,"elapsed_ns":9075800,"peak_rows":140,"peak_payload_bytes":5600,"peak_capacity_bytes":5640,"final_living":130} +{"kind":"timing","tier":"exact_strata","supply":360,"sample":3,"elapsed_ns":9111800,"peak_rows":140,"peak_payload_bytes":5600,"peak_capacity_bytes":5640,"final_living":130} +{"kind":"timing","tier":"compact_individual","supply":360,"sample":3,"elapsed_ns":4799800,"peak_rows":148,"peak_payload_bytes":5920,"peak_capacity_bytes":6488,"final_living":130} +{"kind":"timing","tier":"historical_individual","supply":360,"sample":3,"elapsed_ns":35010300,"peak_rows":3156,"peak_payload_bytes":100992,"peak_capacity_bytes":122528,"final_living":130} +{"kind":"comparison","split":"development","seed":0,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":140,"final_living":65} +{"kind":"comparison","split":"development","seed":0,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":150,"final_living":85} +{"kind":"comparison","split":"development","seed":0,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":200,"final_living":110} +{"kind":"comparison","split":"development","seed":0,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":165,"final_living":125} +{"kind":"comparison","split":"development","seed":0,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":195,"final_living":165} +{"kind":"comparison","split":"development","seed":1,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":65} +{"kind":"comparison","split":"development","seed":1,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"development","seed":1,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":165,"final_living":150} +{"kind":"comparison","split":"development","seed":1,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":185,"final_living":120} +{"kind":"comparison","split":"development","seed":1,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":30,"peak_living":190,"final_living":170} +{"kind":"comparison","split":"development","seed":2,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":65} +{"kind":"comparison","split":"development","seed":2,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":90} +{"kind":"comparison","split":"development","seed":2,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":30,"peak_living":180,"final_living":110} +{"kind":"comparison","split":"development","seed":2,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":31,"peak_living":200,"final_living":125} +{"kind":"comparison","split":"development","seed":2,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":32,"peak_living":200,"final_living":190} +{"kind":"comparison","split":"development","seed":3,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":65} +{"kind":"comparison","split":"development","seed":3,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":80} +{"kind":"comparison","split":"development","seed":3,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":160,"final_living":150} +{"kind":"comparison","split":"development","seed":3,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":160,"final_living":115} +{"kind":"comparison","split":"development","seed":3,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":32,"peak_living":190,"final_living":170} +{"kind":"comparison","split":"development","seed":4,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":130,"final_living":65} +{"kind":"comparison","split":"development","seed":4,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":130,"final_living":80} +{"kind":"comparison","split":"development","seed":4,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":145,"final_living":105} +{"kind":"comparison","split":"development","seed":4,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":145,"final_living":125} +{"kind":"comparison","split":"development","seed":4,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":180,"final_living":170} +{"kind":"comparison","split":"development","seed":5,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":170,"final_living":55} +{"kind":"comparison","split":"development","seed":5,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":170,"final_living":85} +{"kind":"comparison","split":"development","seed":5,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":170,"final_living":105} +{"kind":"comparison","split":"development","seed":5,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":200,"final_living":180} +{"kind":"comparison","split":"development","seed":5,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":200,"final_living":150} +{"kind":"comparison","split":"development","seed":6,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":155,"final_living":70} +{"kind":"comparison","split":"development","seed":6,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"development","seed":6,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":160,"final_living":105} +{"kind":"comparison","split":"development","seed":6,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":180,"final_living":125} +{"kind":"comparison","split":"development","seed":6,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":195,"final_living":180} +{"kind":"comparison","split":"development","seed":7,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":150,"final_living":65} +{"kind":"comparison","split":"development","seed":7,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"development","seed":7,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":170,"final_living":105} +{"kind":"comparison","split":"development","seed":7,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":200,"final_living":145} +{"kind":"comparison","split":"development","seed":7,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":30,"peak_living":200,"final_living":170} +{"kind":"comparison","split":"holdout","seed":8,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":135,"final_living":65} +{"kind":"comparison","split":"holdout","seed":8,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":135,"final_living":85} +{"kind":"comparison","split":"holdout","seed":8,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":160,"final_living":105} +{"kind":"comparison","split":"holdout","seed":8,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":185,"final_living":125} +{"kind":"comparison","split":"holdout","seed":8,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":33,"peak_living":200,"final_living":165} +{"kind":"comparison","split":"holdout","seed":9,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":165,"final_living":70} +{"kind":"comparison","split":"holdout","seed":9,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":165,"final_living":85} +{"kind":"comparison","split":"holdout","seed":9,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":175,"final_living":105} +{"kind":"comparison","split":"holdout","seed":9,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":200,"final_living":130} +{"kind":"comparison","split":"holdout","seed":9,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":200,"final_living":185} +{"kind":"comparison","split":"holdout","seed":10,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":21,"peak_living":130,"final_living":65} +{"kind":"comparison","split":"holdout","seed":10,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":85} +{"kind":"comparison","split":"holdout","seed":10,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":150,"final_living":105} +{"kind":"comparison","split":"holdout","seed":10,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":150,"final_living":125} +{"kind":"comparison","split":"holdout","seed":10,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":185,"final_living":160} +{"kind":"comparison","split":"holdout","seed":11,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":65} +{"kind":"comparison","split":"holdout","seed":11,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":155,"final_living":85} +{"kind":"comparison","split":"holdout","seed":11,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":105} +{"kind":"comparison","split":"holdout","seed":11,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":200,"final_living":135} +{"kind":"comparison","split":"holdout","seed":11,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":31,"peak_living":200,"final_living":175} +{"kind":"comparison","split":"holdout","seed":12,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":150,"final_living":65} +{"kind":"comparison","split":"holdout","seed":12,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":25,"peak_living":150,"final_living":90} +{"kind":"comparison","split":"holdout","seed":12,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":165,"final_living":105} +{"kind":"comparison","split":"holdout","seed":12,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":195,"final_living":135} +{"kind":"comparison","split":"holdout","seed":12,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":33,"peak_living":200,"final_living":180} +{"kind":"comparison","split":"holdout","seed":13,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":20,"peak_living":125,"final_living":65} +{"kind":"comparison","split":"holdout","seed":13,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":20,"peak_living":125,"final_living":85} +{"kind":"comparison","split":"holdout","seed":13,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":150,"final_living":150} +{"kind":"comparison","split":"holdout","seed":13,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":23,"peak_living":150,"final_living":120} +{"kind":"comparison","split":"holdout","seed":13,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":26,"peak_living":190,"final_living":170} +{"kind":"comparison","split":"holdout","seed":14,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":140,"final_living":65} +{"kind":"comparison","split":"holdout","seed":14,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":140,"final_living":85} +{"kind":"comparison","split":"holdout","seed":14,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":155,"final_living":105} +{"kind":"comparison","split":"holdout","seed":14,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":27,"peak_living":175,"final_living":120} +{"kind":"comparison","split":"holdout","seed":14,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":31,"peak_living":195,"final_living":180} +{"kind":"comparison","split":"holdout","seed":15,"supply":180,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":125,"final_living":60} +{"kind":"comparison","split":"holdout","seed":15,"supply":240,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":22,"peak_living":130,"final_living":90} +{"kind":"comparison","split":"holdout","seed":15,"supply":300,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":145,"final_living":135} +{"kind":"comparison","split":"holdout","seed":15,"supply":360,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":24,"peak_living":165,"final_living":160} +{"kind":"comparison","split":"holdout","seed":15,"supply":480,"ticks":1500,"identified_trajectory_exact":true,"false_extinction":false,"population_gap_ppt":0,"energy_gap_ppt":0,"matter_gap_ppt":0,"peak_strata":29,"peak_living":185,"final_living":170} diff --git a/experiments/resolution/reserve_strata.cpp b/experiments/resolution/reserve_strata.cpp new file mode 100644 index 0000000..ad11e6f --- /dev/null +++ b/experiments/resolution/reserve_strata.cpp @@ -0,0 +1,308 @@ +#include "reserve_strata.hpp" + +#include "evo/core/random.hpp" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace { +using namespace evo::fixture; +using evo::experiment::ReserveStrata; + +// Cost control: retire dead rows while retaining original identities and tie order. +// It still invokes the historical scalar stepping rule, including its sort/scratch. +struct CompactIndividual { + IndividualRun run; + std::vector identities; + std::uint64_t next_identity{}; + explicit CompactIndividual(const IndividualRun& source) : run{source} { + next_identity = source.members.size(); + for (std::size_t index = 0; index < source.members.size(); ++index) { + identities.push_back(index); + } + compact(); + } + void compact() { + std::size_t written = 0; + for (std::size_t index = 0; index < run.members.size(); ++index) { + if (run.members[index].alive) { + run.members[written] = run.members[index]; + identities[written] = identities[index]; + ++written; + } + } + run.members.resize(written); + identities.resize(written); + } + void step() { + run.step(); + while (identities.size() < run.members.size()) { + identities.push_back(next_identity++); + } + compact(); + } + [[nodiscard]] Census census() const { + return run.census(); + } + [[nodiscard]] std::vector portrait() const { + std::vector result; + for (std::size_t index = 0; index < run.members.size(); ++index) { + const auto& member = run.members[index]; + result.push_back({identities[index], member.age, member.energy, member.matter}); + } + return result; + } +}; + +std::vector identified(const IndividualRun& run) { + std::vector result; + for (std::size_t index = 0; index < run.members.size(); ++index) { + const auto& member = run.members[index]; + if (member.alive) { + result.push_back({index, member.age, member.energy, member.matter}); + } + } + return result; +} + +void matches(const IndividualRun& individual, const ReserveStrata& strata) { + insist(individual.census() == strata.census(), "strata census mismatch"); + insist(identified(individual) == strata.portrait(), "strata identified portrait mismatch"); + insist(individual.members.size() == strata.next_identity(), "strata identity mismatch"); + insist(individual.environment == strata.environment(), "strata environment mismatch"); + insist(individual.matter_store == strata.matter_store(), "strata matter store mismatch"); + insist(individual.detritus_energy == strata.detritus_energy(), "strata energy sink mismatch"); + insist(individual.detritus_matter == strata.detritus_matter(), "strata matter sink mismatch"); +} + +void controls() { + // Same age, distinct reserves, a compressed range and a partially funded birth + // range. Census-only comparison cannot detect paying the wrong parent. + auto contested = founding_contested(0, 6); + contested.members = {{50, 120, 80}, {50, 120, 80}, {50, 120, 80}, {50, 200, 90}}; + ReserveStrata partial{contested}; + insist(partial.groups().size() == 2, "strata did not compress identical members"); + for (unsigned tick = 0; tick < 80; ++tick) { + contested.step(); + partial.step(); + matches(contested, partial); + } + insist(partial.census().births > 0, "strata control never reproduced"); + + auto fragmented = founding_individuals(5); + fragmented.members = { + {10, 0, 5, false}, {10, 1, 5}, {10, 1, 5}, {10, 0, 5, false}, {10, 200, 5}}; + ReserveStrata gaps{fragmented}; + fragmented.step(); + gaps.step(); + matches(fragmented, gaps); + insist(gaps.census().living == 1, "strata did not preserve viable outlier"); + insist(gaps.portrait().front().identity == 4, "strata compacted away identity"); + + auto empty = founding_individuals(0); + ReserveStrata vacant{empty}; + empty.step(); + vacant.step(); + matches(empty, vacant); + + const auto source = founding_individuals(100); + ReserveStrata whole{source}; + ReserveStrata partitioned{source}; + whole.advance(401); + partitioned.advance(0); + partitioned.advance(1); + partitioned.advance(63); + partitioned.advance(337); + insist(whole.portrait() == partitioned.portrait() && whole.census() == partitioned.census() && + whole.total_energy() == partitioned.total_energy() && + whole.total_matter() == partitioned.total_matter() && + whole.environment() == partitioned.environment() && + whole.matter_store() == partitioned.matter_store() && + whole.next_identity() == partitioned.next_identity(), + "strata partition mismatch"); + + auto invalid = source; + invalid.rule.threshold_energy = invalid.rule.investment_energy - 1; + bool rejected = false; + try { + (void)ReserveStrata{invalid}; + } catch (const ModelViolation&) { + rejected = true; + } + insist(rejected, "strata admitted unsupported underfunded rule"); + rejected = false; + try { + (void)evo::experiment::checked_product(std::numeric_limits::max(), 2); + } catch (const ModelViolation&) { + rejected = true; + } + insist(rejected, "strata product overflow was not rejected"); +} + +IndividualRun seeded(std::uint64_t seed, std::uint64_t supply) { + auto run = founding_individuals(0); + run.rule.environment_energy = supply; + evo::Random random{seed}; + for (unsigned block = 0; block < 20; ++block) { + // Fixed modulo fixture sampling; no gameplay distribution is selected. + const Member member{random.next() % 400, random.next() % 180, random.next() % 150}; + for (unsigned index = 0; index < 5; ++index) { + run.members.push_back(member); + } + } + return run; +} + +void compare(IndividualRun reference, std::uint64_t seed, std::string_view split, + std::uint64_t ticks) { + ReserveStrata strata{reference}; + CompactIndividual compact{reference}; + const auto energy = reference.total_energy(); + const auto matter = reference.total_matter(); + std::size_t peak_rows = strata.groups().size(); + std::uint64_t peak_living = reference.census().living; + matches(reference, strata); + for (std::uint64_t tick = 0; tick < ticks; ++tick) { + reference.step(); + strata.step(); + compact.step(); + matches(reference, strata); + insist(compact.census() == reference.census() && compact.portrait() == strata.portrait() && + compact.run.total_energy() == energy && compact.run.total_matter() == matter && + compact.run.environment == reference.environment && + compact.run.matter_store == reference.matter_store && + compact.run.detritus_energy == reference.detritus_energy && + compact.run.detritus_matter == reference.detritus_matter, + "compact cost control diverged"); + insist(reference.total_energy() == energy && strata.total_energy() == energy, + "strata energy conservation failure"); + insist(reference.total_matter() == matter && strata.total_matter() == matter, + "strata matter conservation failure"); + peak_rows = std::max(peak_rows, strata.groups().size()); + peak_living = std::max(peak_living, strata.census().living); + } + std::cout << "{\"kind\":\"comparison\",\"split\":\"" << split << "\",\"seed\":" << seed + << ",\"supply\":" << reference.rule.environment_energy << ",\"ticks\":" << ticks + << ",\"identified_trajectory_exact\":true,\"false_extinction\":false," + "\"population_gap_ppt\":0,\"energy_gap_ppt\":0,\"matter_gap_ppt\":0," + "\"peak_strata\":" + << peak_rows << ",\"peak_living\":" << peak_living + << ",\"final_living\":" << strata.census().living << "}\n"; +} + +template void timed(Run run, std::uint64_t supply, unsigned sample) { + std::size_t peak_rows = 0, peak_payload = 0, peak_capacity = 0; + const auto observe = [&] { + std::size_t rows = 0, payload = 0, capacity = 0; + if constexpr (std::is_same_v) { + rows = run.members.size(); + payload = rows * sizeof(Member); + capacity = run.members.capacity() * sizeof(Member); + } else if constexpr (std::is_same_v) { + rows = run.run.members.size(); + payload = rows * sizeof(Member) + run.identities.size() * sizeof(std::uint64_t); + capacity = run.run.members.capacity() * sizeof(Member) + + run.identities.capacity() * sizeof(std::uint64_t); + } else { + rows = run.groups().size(); + payload = rows * sizeof(evo::experiment::ReserveStratum); + capacity = run.capacity_bytes(); + } + peak_rows = std::max(peak_rows, rows); + peak_payload = std::max(peak_payload, payload); + peak_capacity = std::max(peak_capacity, capacity); + }; + observe(); + const auto start = std::chrono::steady_clock::now(); + for (unsigned tick = 0; tick < 10'000; ++tick) { + run.step(); + observe(); + } + const auto ns = std::chrono::duration_cast( + std::chrono::steady_clock::now() - start) + .count(); + if (sample == 0) { + return; + } + constexpr auto tier = [] { + if constexpr (std::is_same_v) { + return "historical_individual"; + } else if constexpr (std::is_same_v) { + return "compact_individual"; + } else { + return "exact_strata"; + } + }(); + std::cout << "{\"kind\":\"timing\",\"tier\":\"" << tier << "\",\"supply\":" << supply + << ",\"sample\":" << sample << ",\"elapsed_ns\":" << ns + << ",\"peak_rows\":" << peak_rows << ",\"peak_payload_bytes\":" << peak_payload + << ",\"peak_capacity_bytes\":" << peak_capacity + << ",\"final_living\":" << run.census().living << "}\n"; +} +} // namespace + +int main(int argc, char** argv) try { + if (argc > 2 || (argc == 2 && std::string_view{argv[1]} != "--verify")) { + std::fputs("usage: evo-reserve-strata [--verify]\n", stderr); + return 2; + } + std::cout << "{\"kind\":\"metadata\",\"candidate\":\"exact-reserve-strata-1\"," + "\"reference\":\"resolution-fixture-2\",\"founders\":100," + "\"production_qualified\":false,\"compiler\":\"" +#if defined(__clang__) + << "Clang " << __clang_version__ +#elif defined(_MSC_VER) + << "MSVC " << _MSC_VER +#else + << "GCC " << __VERSION__ +#endif + << "\",\"build\":\"" +#if defined(NDEBUG) + << "release" +#else + << "debug" +#endif + << "\"}\n"; + controls(); + for (const auto supply : {240U, 300U, 360U}) { + Rule rule; + rule.environment_energy = supply; + compare(founding_individuals(100, rule), 0, "historical", 10'000); + if (argc == 1) { + for (unsigned sample = 0; sample <= 3; ++sample) { + const auto source = founding_individuals(100, rule); + if (sample % 2 == 0) { + timed(source, supply, sample); + timed(CompactIndividual{source}, supply, sample); + timed(ReserveStrata{source}, supply, sample); + } else { + timed(ReserveStrata{source}, supply, sample); + timed(CompactIndividual{source}, supply, sample); + timed(source, supply, sample); + } + } + } + } + for (std::uint64_t seed = 0; seed < 16; ++seed) { + for (const auto supply : {180U, 240U, 300U, 360U, 480U}) { + compare(seeded(seed, supply), seed, seed < 8 ? "development" : "holdout", 1'500); + } + } + return 0; +} catch (const evo::fixture::ModelViolation& error) { + std::fprintf(stderr, "%s\n", error.what); + return 1; +} catch (const std::exception& error) { + std::fprintf(stderr, "%s\n", error.what()); + return 1; +} catch (...) { + std::fputs("unknown reserve-strata failure\n", stderr); + return 1; +} diff --git a/experiments/resolution/reserve_strata.hpp b/experiments/resolution/reserve_strata.hpp new file mode 100644 index 0000000..51d5ed1 --- /dev/null +++ b/experiments/resolution/reserve_strata.hpp @@ -0,0 +1,218 @@ +#pragma once + +// ADR-0134: an isolated exact-state experiment, not Cohort v1 or runtime biology. +#include "../../tests/fixtures/resolution_model.hpp" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace evo::experiment { +using fixture::insist; + +inline std::uint64_t checked_add(std::uint64_t left, std::uint64_t right) { + insist(right <= std::numeric_limits::max() - left, "strata sum overflow"); + return left + right; +} +inline std::uint64_t checked_product(std::uint64_t left, std::uint64_t right) { + insist(right == 0 || left <= std::numeric_limits::max() / right, + "strata product overflow"); + return left * right; +} + +struct ReserveStratum { + std::uint64_t first{}, count{}, age{}, energy{}, matter{}; + auto operator<=>(const ReserveStratum&) const = default; +}; +struct IdentifiedReserve { + std::uint64_t identity{}, age{}, energy{}, matter{}; + auto operator<=>(const IdentifiedReserve&) const = default; +}; + +class ReserveStrata { + public: + explicit ReserveStrata(const fixture::IndividualRun& source) + : rule_{source.rule}, next_identity_{source.members.size()}, + environment_{source.environment}, matter_store_{source.matter_store}, + detritus_energy_{source.detritus_energy}, detritus_matter_{source.detritus_matter}, + births_{source.births}, deaths_{source.deaths} { + insist(rule_.threshold_energy >= rule_.investment_energy, + "strata unsupported underfunded breeding rule"); + for (std::size_t index = 0; index < source.members.size(); ++index) { + const auto& member = source.members[index]; + if (member.alive) { + append(groups_, {index, 1, member.age, member.energy, member.matter}); + } + } + // Validate the exact totals rather than trusting wrapped reference sums. + (void)total_energy(); + (void)total_matter(); + } + + [[nodiscard]] std::span groups() const noexcept { + return groups_; + } + [[nodiscard]] std::size_t capacity_bytes() const noexcept { + return groups_.capacity() * sizeof(ReserveStratum); + } + [[nodiscard]] fixture::Census census() const { + fixture::Census result; + result.births = births_; + result.deaths = deaths_; + for (const auto& group : groups_) { + result.living = checked_add(result.living, group.count); + result.energy = checked_add(result.energy, checked_product(group.count, group.energy)); + result.matter = checked_add(result.matter, checked_product(group.count, group.matter)); + } + return result; + } + [[nodiscard]] std::uint64_t total_energy() const { + return checked_add(checked_add(environment_, detritus_energy_), census().energy); + } + [[nodiscard]] std::uint64_t total_matter() const { + return checked_add(checked_add(matter_store_, detritus_matter_), census().matter); + } + [[nodiscard]] std::uint64_t environment() const noexcept { + return environment_; + } + [[nodiscard]] std::uint64_t matter_store() const noexcept { + return matter_store_; + } + [[nodiscard]] std::uint64_t detritus_energy() const noexcept { + return detritus_energy_; + } + [[nodiscard]] std::uint64_t detritus_matter() const noexcept { + return detritus_matter_; + } + [[nodiscard]] std::uint64_t next_identity() const noexcept { + return next_identity_; + } + + [[nodiscard]] std::vector portrait() const { + std::vector result; + for (const auto& group : groups_) { + for (std::uint64_t index = 0; index < group.count; ++index) { + result.push_back( + {checked_add(group.first, index), group.age, group.energy, group.matter}); + } + } + return result; + } + + void advance(std::uint64_t ticks) { + // Interval partitioning only; never replace fixed steps with a larger dt. + for (std::uint64_t tick = 0; tick < ticks; ++tick) { + step(); + } + } + + void step() { + const auto share = rule_.per_capita(census().living); // Before starvation, like reference. + for (auto& group : groups_) { + if (rule_.starves(group.energy)) { + retire(group); + continue; + } + group.energy -= rule_.upkeep_energy; + detritus_energy_ = + checked_add(detritus_energy_, checked_product(group.count, rule_.upkeep_energy)); + const auto paid = std::min(group.matter, rule_.upkeep_matter); + group.matter -= paid; + detritus_matter_ = checked_add(detritus_matter_, checked_product(group.count, paid)); + const auto energy = checked_product(group.count, share); + const auto matter = checked_product(group.count, rule_.matter_intake); + insist(environment_ >= energy, "strata environment depleted"); + insist(matter_store_ >= matter, "strata matter store depleted"); + environment_ -= energy; + matter_store_ -= matter; + group.energy = checked_add(group.energy, share); + group.matter = checked_add(group.matter, rule_.matter_intake); + group.age = checked_add(group.age, 1); + if (group.age >= rule_.lifespan) { + retire(group); + } + } + std::erase_if(groups_, [](const auto& group) { return group.count == 0; }); + + auto population = census().living; + std::vector order(groups_.size()); + std::iota(order.begin(), order.end(), std::size_t{0}); + std::ranges::sort(order, [&](std::size_t left, std::size_t right) { + if (groups_[left].age != groups_[right].age) { + return groups_[left].age > groups_[right].age; + } + return groups_[left].first < groups_[right].first; + }); + std::vector reproducing(groups_.size()); + std::uint64_t newborns = 0; + for (const auto index : order) { + const auto& group = groups_[index]; + if (population >= rule_.capacity) { + break; + } + if (!rule_.breeds(group.age, group.energy) || group.matter < rule_.investment_matter) { + continue; + } + const auto count = std::min(group.count, rule_.capacity - population); + reproducing[index] = count; + population = checked_add(population, count); + newborns = checked_add(newborns, count); + } + std::vector after; + for (std::size_t index = 0; index < groups_.size(); ++index) { + auto group = groups_[index]; + const auto count = reproducing[index]; + if (count != 0) { + append(after, + {group.first, count, group.age, group.energy - rule_.investment_energy, + group.matter - rule_.investment_matter}); + group.first = checked_add(group.first, count); + group.count -= count; + } + append(after, group); + } + append(after, + {next_identity_, newborns, 0, rule_.investment_energy, rule_.investment_matter}); + next_identity_ = checked_add(next_identity_, newborns); + births_ = checked_add(births_, newborns); + groups_ = std::move(after); + } + + private: + static void append(std::vector& target, ReserveStratum group) { + if (group.count == 0) { + return; + } + (void)checked_add(group.first, group.count); + if (!target.empty()) { + auto& previous = target.back(); + if (checked_add(previous.first, previous.count) == group.first && + previous.age == group.age && previous.energy == group.energy && + previous.matter == group.matter) { + previous.count = checked_add(previous.count, group.count); + return; + } + } + target.push_back(group); + } + void retire(ReserveStratum& group) { + detritus_energy_ = + checked_add(detritus_energy_, checked_product(group.count, group.energy)); + detritus_matter_ = + checked_add(detritus_matter_, checked_product(group.count, group.matter)); + deaths_ = checked_add(deaths_, group.count); + group.count = 0; + } + fixture::Rule rule_; + std::uint64_t next_identity_{}; + std::vector groups_; + std::uint64_t environment_{}, matter_store_{}, detritus_energy_{}, detritus_matter_{}; + std::uint64_t births_{}, deaths_{}; +}; +} // namespace evo::experiment diff --git a/tools/check-format.cmake b/tools/check-format.cmake index 56e5734..d2d4995 100644 --- a/tools/check-format.cmake +++ b/tools/check-format.cmake @@ -8,7 +8,7 @@ endif() file(GLOB_RECURSE sources "${SOURCE_ROOT}/include/*.hpp" "${SOURCE_ROOT}/src/*.cpp" "${SOURCE_ROOT}/src/*.hpp" "${SOURCE_ROOT}/tests/*.hpp" "${SOURCE_ROOT}/apps/*.cpp" "${SOURCE_ROOT}/tests/*.cpp" - "${SOURCE_ROOT}/experiments/*.cpp") + "${SOURCE_ROOT}/experiments/*.cpp" "${SOURCE_ROOT}/experiments/*.hpp") execute_process(COMMAND "${FORMATTER}" --dry-run --Werror ${sources} RESULT_VARIABLE result) if(NOT result EQUAL 0) message(FATAL_ERROR "Formatting check failed")