server: scene.set closes the 29-intent catalogue, plus a log-leak fault hook (#25)

This commit is contained in:
2026-11-15 12:52:17 +01:00
parent df2b186267
commit 70a984c55a
7 changed files with 453 additions and 11 deletions
+6 -3
View File
@@ -40,7 +40,7 @@ suite "envelope (6.5 step 2)":
test "the catalogue is the 29 intents of 6.1 and the built set is a subset":
check IntentCatalogue.len == 29
check ImplementedIntents.len == 28 # 29 - `scene.set`, which is slice 10
check ImplementedIntents.len == 29 # slice 10 (#25): `scene.set` closed the last gap
for t in ImplementedIntents:
check t in IntentCatalogue
check isCatalogueIntent(t)
@@ -66,9 +66,12 @@ suite "envelope (6.5 step 2)":
for t in ["player.setname", "player.rename", "key.show", "token.resize", "status.set",
"status.clear", "prop.set", "prop.unset", "character.create", "character.update",
"character.remove", "character.reassign", "name.reveal", "name.reveal_all",
"encountered.remove"]:
"encountered.remove", "scene.set"]:
check isImplementedIntent(t)
check isGmOnlyIntent("scene.set") # scene edits are GM-only (6.1)
# Every catalogue intent has a handler now (#25): no `unknown-type` gap is left.
for t in IntentCatalogue:
check isImplementedIntent(t)
check not isImplementedIntent("scene.set") # the only catalogue intent left for slice 10
suite "intent rate limit (6.4: 30/s, burst 100)":
test "a fresh bucket allows exactly the burst, then refuses":