Complete M6.2 optional finite environmental fields
This commit is contained in:
@@ -1683,3 +1683,41 @@ Linux/UBSan and target-cluster checks were not executed locally; existing CI inc
|
||||
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.
|
||||
|
||||
## M6.2 optional environmental fields - 2026-09-27
|
||||
|
||||
Added ADR-0051, FieldStore, field snapshot v1 and its byte schema. Optional water,
|
||||
N/P, organic matter/energy, incident-energy and heat channels have explicit finite
|
||||
openings. Material defaults specify water capacity only. Uniform baselines with
|
||||
optional 64-site pages preserve absence versus zero. Same-channel local transfers
|
||||
stage replacements before commit and persist a strictly increasing command watermark.
|
||||
There is no resource setter, site regeneration, cross-compartment or organism credit.
|
||||
|
||||
Executed on Windows x64 / MSVC 19.44:
|
||||
|
||||
- `tools/windows-check.ps1 -Preset release -Action check`: 50/50 passed on final code.
|
||||
- `tools/windows-check.ps1 -Preset analysis -Action check`: clang-tidy 19 and
|
||||
50/50 passed on final code.
|
||||
- `tools/windows-check.ps1 -Preset asan -Action check`: 50/50 passed on final code.
|
||||
- `tools/windows-check.ps1 -Preset release -Action format`: passed.
|
||||
- `git diff --check`: passed.
|
||||
|
||||
Initial build diagnostics corrected explicit aggregate initialization and bit widths.
|
||||
The hostile fixed-underlying-type enum test has a narrowly scoped analyzer suppression
|
||||
with rationale; actual channel validation remains exercised.
|
||||
|
||||
Tests cover uniform/sparse/varying memory, page seams and release, exhausted sources,
|
||||
source/capacity/budget/stale-command rollback, absent/present-zero restore, cross-field
|
||||
conserved-channel overflow, independent dense transfer continuation and all ten fields
|
||||
at 4096 sites. Maximum logical snapshot is 630880 bytes. A separately constructed
|
||||
170-byte absent-field fixture checks canonical schema bytes. Every truncation of a
|
||||
260-byte fixture, invalid/old versions, identity, malformed/resealed mappings and
|
||||
quantities, oversized snapshots and 256 repaired-checksum mutations are exercised.
|
||||
Memory observations are in ENVIRONMENTAL_FIELDS.md; accounted bytes are not RSS.
|
||||
|
||||
Existing terrain/simulation formats and goldens are unchanged. Field snapshot v1
|
||||
is a buffer codec, not LocalWorldFiles publication or combined terrain/biology
|
||||
durability. Rate sources and their interval/residual persistence are not enabled.
|
||||
Linux/UBSan, target-host performance, allocator-failure injection and cluster recovery
|
||||
were not executed locally. Existing Linux CTest CI includes the new test. No deployment
|
||||
or World0 operation occurred. Next: M6.3 read-only environment views.
|
||||
|
||||
Reference in New Issue
Block a user