fix(demo): switch on the actions the seeded events use (DM28) #231

Merged
whitlocktech merged 1 commits from fix/demo-seed-enables-actions into main 2026-10-28 04:55:26 -05:00
Member

Fixes step-5 walk finding W1. On a fresh database, Server greeting, Treasure drop and Payday show as ready but fail when run with "not enabled on this deployment". The cause: no switchboard rows exist yet, so every change and irreversible action starts disabled.

seed:demo now switches on every action the seeded events' steps use, uncapped, when it writes the events. Nothing else gets switched on. The new pure helper eventActionIds is tested, including a check against the shipped fixture.

Checked

  • Server tests: 2318 run, 0 fail.
  • Real seed on a scratch database with the v0.6.1 module: rust.command.run, rust.dt.start and rust.coins.pay end up enabled with caps {}, and all three events are ready.

Design of record: docs#387 (DM28). The Steam-unlink fix (DM27) is Module-Rust only.

  • AI-assisted: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY

Fixes step-5 walk finding W1. On a fresh database, Server greeting, Treasure drop and Payday show as ready but fail when run with "not enabled on this deployment". The cause: no switchboard rows exist yet, so every `change` and `irreversible` action starts disabled. `seed:demo` now switches on every action the seeded events' steps use, uncapped, when it writes the events. Nothing else gets switched on. The new pure helper `eventActionIds` is tested, including a check against the shipped fixture. **Checked** - Server tests: 2318 run, 0 fail. - Real seed on a scratch database with the v0.6.1 module: `rust.command.run`, `rust.dt.start` and `rust.coins.pay` end up enabled with `caps {}`, and all three events are `ready`. Design of record: docs#387 (DM28). The Steam-unlink fix (DM27) is Module-Rust only. - [x] AI-assisted: Claude Code (Claude Opus 5.5) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
wtclaude added 1 commit 2026-10-28 04:45:00 -05:00
fix(demo): switch on the actions the seeded events use (DM28)
All checks were successful
PR Checks / bot-tests (pull_request) Successful in 54s
PR Checks / server-tests (pull_request) Successful in 6m6s
PR Checks / client-build (pull_request) Successful in 7m33s
ebedee146f
The step-5 walk found the demo's three seeded events (Server greeting,
Treasure drop, Payday) showing as ready but failing when run: a fresh
database has no switchboard rows, so every change and irreversible action
starts disabled ("not enabled on this deployment").

seed:demo now switches on, with the events, every action their steps use,
uncapped, as an admin flipping the switch without filling the cap boxes
would. Nothing else is switched on. The deny list (DM11) still keeps a
visitor's own command step harmless, and the wipe drops the rows with the
rest of the database.

Checked on a scratch database with the v0.6.1 module: the seed leaves
rust.command.run, rust.dt.start and rust.coins.pay enabled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
whitlocktech approved these changes 2026-10-28 04:48:01 -05:00
whitlocktech scheduled this pull request to auto merge when all checks succeed 2026-10-28 04:48:05 -05:00
whitlocktech merged commit 222bcb02fc into main 2026-10-28 04:55:26 -05:00
whitlocktech deleted branch fix/demo-seed-enables-actions 2026-10-28 04:55:27 -05:00
Sign in to join this conversation.
No description provided.