fix(mod-api): validate active block storage

This commit is contained in:
Bo Layer
2026-08-23 03:20:43 -06:00
parent 3b7fc42858
commit d17f0725d8
4 changed files with 15 additions and 3 deletions
@@ -89,6 +89,10 @@ Failure reasons are stable:
| Coordinate is negative or outside the active map | `block coordinates out of bounds` |
| Active block data is absent or malformed | `block unavailable` |
The block slot and the active map accessor must both contain the same valid
nonnegative integer. Missing or sparse storage and inconsistent accessor data
return `block unavailable`.
Requiring the expected map ID and rejecting all ambiguous input lets a mod
compare every cell in its version-specific signature before it calls an
existing mutation API. Red, Blue, and Yellow each use their own loaded map