Skip to content

feat: add household profiles and scoped access - #39

Open
mahoshojoHCG wants to merge 2 commits into
mainfrom
codex/issue-17
Open

feat: add household profiles and scoped access#39
mahoshojoHCG wants to merge 2 commits into
mainfrom
codex/issue-17

Conversation

@mahoshojoHCG

Copy link
Copy Markdown
Contributor

Summary

  • add persistent household users, profiles, roles, login sessions, refresh rotation, PIN switching, recent-authentication checks, and immediate session/role revocation
  • migrate legacy playback, preferences, chat, and device credentials to the default Home profile while preserving upgrade history and refusing unsafe downgrades transactionally
  • isolate playback/continue/preferences/chat per profile and enforce action-level Admin, Member, and Viewer policies on the server
  • bind WebDAV/VFS/FUSE credentials to users with read scope, segment-safe virtual roots, expiry, and soft revocation; rewrite protocol roots and response paths
  • add account/profile/session/device management UI, step-up retry, role-aware controls, server-backed logout, and cross-tab auth synchronization that aborts stale requests/SSE and never replays writes across profiles

Verification

  • dotnet build SecondDimensionWatcherReDive.slnx --configuration Release: 0 warnings, 0 errors
  • dotnet test SecondDimensionWatcherReDive.slnx --configuration Release --no-build: 349 unit + 86 integration + 4 FUSE tests passed
  • PostgreSQL Testcontainers coverage includes legacy upgrade/history, clean registration, profile isolation/continue watching, switch/refresh/logout/revoke, admin concurrency, uniqueness conflicts, and safe downgrade refusal
  • yarn test: 22 passed
  • yarn tsc --noEmit: passed
  • yarn build: passed
  • EF Core pending-model check: no changes
  • git diff --check: passed

Closes #17

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T17:01:45.997476Z 7270967 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7270967865

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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.

[P2] 支持家庭用户、独立档案与权限范围

1 participant