fix: cap wall flags and scene extra as opaque objects (#35)

One shared validator next to the property caps: 8 KB serialized, 64 keys
per object, depth 8 (top-level object = 1). At a cap is accepted; over
is invalid and applies nothing. Both call sites use it, and a refusal is
logged once with the field and limit, never the value. Token flags and
props keep their existing rules; stored over-cap rows still load as
stored.
This commit is contained in:
2026-11-20 21:46:53 +01:00
parent 41c2fe695b
commit b0e1633aa9
9 changed files with 264 additions and 8 deletions
+9
View File
@@ -77,6 +77,8 @@ same numbering.
- v0.31 records #32 (the dispatch guard: the `internal` refusal code and unconditional rollback on
every unwind path) in 4.2, 6.2, 6.5, 14
- v0.32 records #35 (the opaque-object caps on wall `flags` and scene `extra`: 8 KB, 64 keys per
object, depth 8) in 6.1, 14
All of Q1-Q24 are RESOLVED or DEFERRED; none OPEN.
@@ -855,6 +857,13 @@ helpers roll back on every unwind path (`Defect` included) so the shared connect
the handler's own ack was already enqueued, it stands and no second ack is appended. `internal` is
additive in proto 2. A `Defect` is bounded damage, not a restart policy. See current 4.2, 6.2, 6.5.
Owner also decided 2026-11-20 [FIXED (owner-delegated, 2026-11-20, #35)]: wall `flags` and scene
`extra` are opaque but capped uniformly, on the same measure as a prop value: serialized JSON at
most 8 KB, at most 64 keys per object (per object, not summed) and nesting depth at most 8 (a
top-level object is depth 1). At a cap is accepted; over is `invalid` and applies nothing. The caps
live next to the property caps and are read from one shared validator; token `flags`, props and
stored values above a cap are out of scope. See current 6.1.
## D. Superseded statements removed from the current spec
Each entry quotes the superseded statement (excerpt) and names the surviving rule.