Files
Kaysser Kayyali 9f401692c8 feat(spec): add minPlayers/maxPlayers/passiveReveals to EncounterSpecSchema (Story 5.1)
CAP-17 minimal schema additions — unblocks Features A-E:
- minPlayers (int, min 1, default 1): party-size gating; omit/1 = solo-able.
- maxPlayers (int, optional): party-size cap.
- passiveReveals (optional array of {skill, threshold, revealText}):
  bot-applied passive-skill reveals at encounter start (Feature B).
  Group-visible only — no private delivery path (no interaction in flight
  at start to carry an ephemeral). threshold is a DC integer.

Also: declare explicit tools: list in specs/the-clock-maker.yaml (was
omitted; specsToolsConsistency requires explicit declaration). Update
docs/spec-authoring-guide.md (minPlayers/maxPlayers/passiveReveals docs
+ new pitfalls: no dice in revealText, threshold is a DC int, successRule
is a tool arg not a spec field, story-status never in spec prose).

Tests: 426 unit pass; tsc clean.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-20 23:21:58 +00:00
..