Skip to content

refactor: make session store operations deterministic with redis support#40

Open
sammargolis wants to merge 1 commit intofeat/authz-note-generation-routefrom
refactor/session-store-redis-reliability
Open

refactor: make session store operations deterministic with redis support#40
sammargolis wants to merge 1 commit intofeat/authz-note-generation-routefrom
refactor/session-store-redis-reliability

Conversation

@sammargolis
Copy link
Collaborator

Summary

  • introduces explicit SessionStore contract and deterministic async mutating operations
  • adds Redis-backed hosted session persistence/event fanout path with TTL semantics
  • updates transcription routes/e2e tests to await session mutations

Security impact

  • improves hosted multi-instance reliability and consistency for protected transcription flows
  • no relaxation of auth or route protection controls

PHI handling impact

  • keeps session data ephemeral with expiry semantics
  • no new durable PHI database writes introduced by this change

Tests executed

  • pnpm build:test
  • pnpm exec tsc --project apps/web/tsconfig.json --noEmit

Rollback plan

  • revert this PR to restore in-memory-only session store behavior

@sammargolis sammargolis force-pushed the feat/authz-note-generation-route branch from b001c3d to 85ce49a Compare March 2, 2026 17:17
@sammargolis sammargolis force-pushed the refactor/session-store-redis-reliability branch from d7922d6 to db32532 Compare March 2, 2026 17:17
@sammargolis sammargolis force-pushed the feat/authz-note-generation-route branch from 85ce49a to 27622a7 Compare March 2, 2026 17:19
@sammargolis sammargolis force-pushed the refactor/session-store-redis-reliability branch from db32532 to e9b4c2f Compare March 2, 2026 17:19
@sammargolis sammargolis force-pushed the feat/authz-note-generation-route branch from 27622a7 to e9d6052 Compare March 2, 2026 17:23
@sammargolis sammargolis force-pushed the refactor/session-store-redis-reliability branch from e9b4c2f to e57573e Compare March 2, 2026 17:23
@sammargolis sammargolis force-pushed the feat/authz-note-generation-route branch from e9d6052 to b532975 Compare March 3, 2026 00:13
@sammargolis sammargolis force-pushed the refactor/session-store-redis-reliability branch from e57573e to b52ad16 Compare March 3, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant