Complete M6.3 read-only environment views

This commit is contained in:
dingo
2026-09-27 07:50:21 -04:00
parent 52af3bd0b4
commit 965a33ca48
14 changed files with 657 additions and 4 deletions
+34
View File
@@ -1738,3 +1738,37 @@ or new sanitizer claims. Local Docker CLI exists, but docker version could not c
because the dockerDesktopLinuxEngine named pipe is absent. Consequently the corrected
Linux TSan container invocation requires confirmation in Gitea CI; it was not run
locally. No application deployment or World0 changes.
## M6.3 read-only environment views - 2026-09-27
Added ADR-0052 and a bounded canonical footprint query with typed mass/energy,
exact concentration/moisture, habitat resolution, explicit caller tick, field
watermark and sampled chunk revisions. FieldStore gained read-only identity and
capacity accessors. Views own copied samples and retain private non-owning store/
chunk tokens for freshness checks. Existing formats, versions and goldens are unchanged.
Executed on Windows x64 / MSVC 19.44:
- `tools/windows-check.ps1 -Preset release -Action check`: 51/51 passed on final code.
- `tools/windows-check.ps1 -Preset analysis -Action check`: clang-tidy 19 and
51/51 passed. Removed an ineffective move of a trivially copyable sample after
the initial analysis diagnostic.
- `tools/windows-check.ps1 -Preset asan -Action check`: 51/51 passed on final code.
- `tools/windows-check.ps1 -Preset release -Action format`: passed.
- `git diff --check`: passed.
Tests cover negative/positive chunk seams, input permutation, missing site/chunk,
absent versus zero/unrequested fields, all moisture statuses, invalid masks and
footprints, exact quantities/ratios, maximum 256-site footprint with all ten fields,
and unchanged terrain/field snapshots after queries. Freshness checks cover changed
tick, restored foreign stores, successful versus rejected field transfers, global
field invalidation, unrelated terrain activity, sampled dirty marking, excavation
and eviction/reload. The query never loads missing chunks or authorizes consumption.
Linux/UBSan/TSan and cluster execution were not run locally; existing CI includes
the new CTest without additional scratch mounts (this test writes no files).
Host tick/store pairing and single-owner execution are explicit preconditions.
ChunkStore does not yet bind a world identity, so coherent field/terrain pairing
cannot be independently authenticated by this view. Combined ownership, reservation,
atomic inventory transfer and retry outcomes remain M6.4. No deployment or World0
operation occurred.