Complete M6.1 environmental units and coupling contract

This commit is contained in:
dingo
2026-09-27 00:06:24 -04:00
parent 5aeb18a4aa
commit 750afcd4d4
13 changed files with 550 additions and 4 deletions
+34
View File
@@ -1649,3 +1649,37 @@ turn did not execute Linux, UBSan, physical power-cut, target-server or cluster
checks. ASan is not UBSan. Process restarts are graceful; M5.7 fault injection
remains separate coverage. No production durability or planet capacity claim.
No Argo or World0 operation occurred. Next: M6.1 units and environmental coupling.
## M6.1 environmental units and coupling - 2026-09-27
Added ADR-0050, ENVIRONMENTAL_UNITS.md, checked local habitat geometry, exact mass
concentration/water saturation and rational pJ/tick integration helpers. No field
storage, density converter, source scheduler, gameplay or snapshot format changed.
Terrain volume still cannot be credited as biological mass.
Executed on Windows x64 / MSVC 19.44:
- `tools/windows-check.ps1 -Preset release -Action check`: 49/49 passed.
- `tools/windows-check.ps1 -Preset analysis -Action check`: clang-tidy 19 and
49/49 passed.
- `tools/windows-check.ps1 -Preset asan -Action check`: 49/49 passed.
- After strengthening independent balance sums, open-boundary and rollback tests,
reconfigured each preset, rebuilt `evo-environment-units-tests`, and ran
`ctest --test-dir build/<preset> -R '^environment-units-contracts$' --output-on-failure`:
passed in Release, analysis and ASan. Final code-only adjustment was an explicit
cstddef include; CTest registration was grouped with other world tests.
- `tools/windows-check.ps1 -Preset release -Action format`: passed.
- `git diff --check`: passed.
Coverage includes each invalid box axis, zero/maximum inputs, exact dimensional
examples, concentration/type separation, dry/saturated/excess water, multiplication
and addition overflow, invalid denominators/residuals, and 78,660 repeated-addition
oracle comparisons of split versus combined intervals. The closed/open accounting
example uses a finite boundary reservoir, independently sums balances and verifies
rejected overdraft leaves all balances unchanged. Documentation's large terrain
mass example was checked using exact BigInteger division (1e21 / 65535).
Linux/UBSan and target-cluster checks were not executed locally; existing CI includes
the new CTest. There is no new concurrency requiring TSan work. Helpers do not enforce
owner identity, interval deduplication or residual persistence; those remain explicit
M6.2-6.7 obligations. No deployment or World0 operation occurred. Next: M6.2.