tools: the details group, the leak scenario's props and three fault classes (#22)

tools/details.test.mjs is the slice's WS acceptance: the five intents and
their codes, a grow push clear of a wall, a squeeze in a corridor too narrow
for the grown token, stuck from a wall and from a GM placement cleared by a
removal and by a shrink, the GM source of a status, the caps and who reads
which bucket, and a restart that brings size, props and statuses back. Waits
use a cursor taken before the intent, so a repeated state cannot be matched
by an older frame.

The leak scenario gains a token in view with props in all three buckets, a
GM-sourced status, a resize, a wall over it and the clears; leakcheck refuses
the `gm` bucket (GM_PROP), the `owner` bucket on a non-controller
(OWNER_PROP) and any `source` on a player status entry (STATUS_SOURCE), so
`fault.test.mjs` now asserts all twelve classes. The schema-version fixtures
in smoke/persistence move to 6, and mutation.sh gains am-au plus the renames.
This commit is contained in:
2026-11-15 11:02:43 +01:00
parent 20575f2147
commit e103c3ed5c
9 changed files with 530 additions and 25 deletions
+3 -2
View File
@@ -89,8 +89,9 @@ test('token.create validation: the 6.1 table and the fields this slice cannot ho
{ ...base, flags: [1, 2] },
{ ...base, vision_radius: 0 },
{ ...base, vision_radius: 'big' },
{ ...base, radius: 30 }, // slice 7 (#4)
{ ...base, props: { public: {} } }, // slice 7 (#22)
{ ...base, radius: 0 }, // slice 7 (#4): a radius is > 0 or null
{ ...base, props: { secret: {} } }, // slice 7 (#22): the bucket names are closed
{ ...base, props: { public: { '': 1 } } },
{ ...base, character_id: 'abc' }, // slice 8 (#23)
{ ...base, controller: 'alice' },
]