event_apply
Apply an event to a game state and receive the rule verdict with citations and the stamped next state. Validates actions against budgets, conditions, and SRD 5.2.1 rules.
Instructions
The reducer (fold): apply one declared event to a state object and receive the verdict plus the stamped next_state (lineage: predecessor hash, causing event, rule ids, rule-vs-ruling kind). Event types: turn-start (budgets reset, Reaction returns), round-advance, action / bonus-action / reaction / free-interaction / move / stand-up (validated against budgets and conditions; may carry spell:{level} and concentration_on), condition-gained, condition-ended, ruling (GM discretion — recorded and tagged as discretion, never as a rule). srdcheck never produces an event, never advances time on its own, never generates randomness: the caller owns the loop; this is the fold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| state | Yes | current state per the adapter's state_schema.json (state travels; it never resides here) |