Commit graph

6 commits

Author SHA1 Message Date
Jan-Peter von Hunnius
f0659421e7 sb-api: label helpers wiring + gym/stat_value + policy constants (WI-2, issue #2) 2026-10-03 12:08:21 +02:00
Jan-Peter von Hunnius
423997f2d7 sb-core: DomainError + signature conversions (WI-2, issue #2) 2026-10-03 12:00:11 +02:00
Jan-Peter von Hunnius
093012af20 sb-core: constants module (WI-2, issue #2) 2026-10-03 11:58:02 +02:00
Jan-Peter von Hunnius
337e9bcf2c fmt: repo-wide baseline (WI-2, issue #2) 2026-10-03 11:53:59 +02:00
Jan-Peter von Hunnius
61fef27917 WI-1: injectable RNG - request_rng() single construction point (StdRng::from_os_rng), thread rng through create_character and run_adventure, seeded determinism test (PSP1, issue #1) 2026-10-03 09:56:41 +02:00
Jan-Peter von Hunnius
6410e0a86d Implement auth, persistence, typed responses, and injectable RNG
Auth: JWT tokens (sb-auth) with argon2 password hashing, login/register
endpoints, Bearer token middleware protecting all routes except auth.
Authorization checks ensure users can only access their own characters.

Persistence: SQLite via rusqlite (sb-db) with write-through on all
mutations. Optional via SB_DB_PATH env var; falls back to in-memory.

Typed responses: ~20 response DTOs in sb-shared replacing ad-hoc JSON.

Combat: Injectable RNG via &mut impl Rng for deterministic tests.

Clean Architecture: Combat types and response DTOs in sb-shared; domain
services in sb-core; auth in sb-auth; persistence in sb-db.
2026-08-09 16:51:52 +02:00