Skip to content

Revoke other Owner devices on password change - #4928

Draft
DoodleBears wants to merge 24 commits into
mainfrom
codex/4899-owner-password-revocation
Draft

DoodleBears wants to merge 24 commits into
mainfrom
codex/4899-owner-password-revocation

Conversation

@DoodleBears

@DoodleBears DoodleBears commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Owner password rotation #4899 | Merged sign-in PR #4915

Why the change

The Owner can change a Host password and end access from other password-enrolled devices while keeping the initiating device and QR-paired devices connected.

Harness / Model

Harness: codex
Model: gpt-6.2-sol

Special things to note

  • Merge risk: two-way code rollout, medium blast radius. Reverting restores the previous password-change flow. Devices already revoked can enroll again with the current password. Review authenticated device identity, selective database updates, and stream closure after commit.
  • Design review: Remote Connections reuses the Provider subscription ListCard for connection routes, paired devices, and Tobs Connect. Settings → Team and remote Connections share the password dialog. When changing an existing password, the device sign-out checkbox defaults to checked. The standalone setup form keeps its username and password flow.
  • Verification: The updated branch has a clean merge preview against main. The Client, Provider subscriptions, CLI, and inventory tests passed. All eight Noise authorization tests passed on an isolated rerun after four timeouts in the parallel job. TypeScript and build passed. The earlier live Web and CLI run passed all ten checks at d1047a048. The Team security run at that revision passed 12 of 18 scenarios. Installed Windows Desktop QA, the narrow-window long-address stress case, CI, and Human approval remain open.

Change outline

Settings → Team / remote Host → Connections / deepseekbot team-mode owner-password
  → Shared credential writer verifies the current password and Owner authority
  → One transaction saves the password and revokes eligible password-enrolled devices
  → Devices closes the affected live connections after commit

Team security run summary

Remote Connections

The routes, paired devices, and Tobs Connect action use the Provider subscription ListCard. The English Web captures use anonymized Host labels and addresses. Before is the prior draft d1047a048. After is the current PR head 41bfc6b8.

Light, 1440 × 960

Before

Before, Light, remote Connections rows in the prior draft

After

After, Light, connection routes and paired devices in ListCards

Dark, 1440 × 960

Before

Before, Dark, remote Connections rows in the prior draft

After

After, Dark, connection routes and paired devices in ListCards

Narrow window, 800 × 900

After

After, Light, narrow window with the route and device cards visible

The standard test address and actions fit. A separate stress check with a long unbroken synthetic address detected an overlap with Check route at this width.

Owner password dialog

The current captures show Sign out other devices that used your password checked by default. Light dialog · Dark dialog

Local Team password dialog, Dark, 1440 × 960

Before shows the existing password-change fields. After shows the same fields with the device sign-out choice.

Before, Dark, local Team password dialog

After, Dark, local Team password dialog with sign-out checked

The historical local Team captures are from f489d9c4 and d1047a048. The earlier review explainer covers d1047a048. For the remaining local Team Light pair, dismiss the first-run tour, then open Settings → Team → Your password → Change in both builds. The tour covered the form in both Light captures.

Implementation task codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd. Merge integration task codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e. Issue claim

Closes #4899

BotHarness added 16 commits November 22, 2026 03:16
Issue: #4898
Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898
Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898
Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
…olicy

Issue: #4898
Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ffa6-e6a0-75a0-bb06-711b17edf1f7
Issue: #4898

Agent-Task: codex/local/01a1ffa6-e6a0-75a0-bb06-711b17edf1f7
Issue: #4899

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4899

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Issue: #4898
Agent-Task: codex/local/01a1ffa6-e6a0-75a0-bb06-711b17edf1f7
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Product Terms Follow The Glossary Warning Checked the PR-only changes (merge-base 4fd8bb8 to head 41bfc6b, 31 files) against GLOSSARY.md. Most product nouns follow the glossary. The new UI strings ("Connection routes", "Sign out other dev… Change the device-retention wording in docs/bot-cli.md and docs/bot-cli.zh.md so that it uses the glossary term. For example, in English use "QR-paired devices and the active Owner device retain access" (or "the current Owner Paired Device"…
Passed Passed checks: 3 passed

Check name Status Explanation
Fix Targets The Root Cause Passed The check is inapplicable. It applies only when the PR title starts with "fix". The contributor title is "Revoke other Owner devices on password change", which does not start with "fix". The PR is pro…
Consistent With Adrs And Existing Features Passed The check applies. PR #4928 changes behavior: an Owner password change now revokes other password-enrolled devices. ADR contradiction: docs/adr/ holds nine ADRs (0353–0361). None covers Team credentia…
Touched Features Are Verified Passed Summary: Two mapped features have runtime code changes in this PR. Their verification notes name runs, so the FAIL condition is not met. Method: I compared the PR diff (merge-base 4fd8bb8 to HEAD 41…
Full details: Fix Targets The Root Cause

Explanation

The check is inapplicable. It applies only when the PR title starts with "fix". The contributor title is "Revoke other Owner devices on password change", which does not start with "fix". The PR is provider-reported as GitHub BotHarness/DeepSeekBot #4928, from codex/4899-owner-password-revocation into main, by author DoodleBears. The PR adds an Owner password-change option that revokes other password-enrolled devices. It does not present itself as a bug fix, so the root-cause criteria do not apply. No code inspection was needed for this decision.

Full details: Consistent With Adrs And Existing Features

Explanation

The check applies. PR #4928 changes behavior: an Owner password change now revokes other password-enrolled devices. ADR contradiction: docs/adr/ holds nine ADRs (0353–0361). None covers Team credentials, password change, paired devices, or device revocation. The ADRs that the wider branch touches do not conflict with the diff: - ADR-0353 (accepted): the Codex device sign-in is covered by its own amendment. - ADR-0359 (accepted): the Worker reads headers only. No image-decoding library appears in packages/market/src or packages/host-protocol/src. - ADR-0361 (accepted): the preset sub-choice work matches the ADR. ADR-0355 and ADR-0360 are Proposed, so they do not bind this PR. Duplicate implementation: the PR reuses existing modules. - Stream closing and revocation go through DevicePairing.revoke (packages/core/src/devices/pairing.ts:701-719), which closes live streams. - The owner dialog reuses the shared OwnerPasswordDialog. - Sign-in discovery is shared through sign-in-discovery.ts, and encrypted-sign-in.ts is shared by owner-sign-in.ts and team-sign-in.ts. - The remote Connections rows use the existing Provider subscription ListCard. One point to note: setOwnerPassword (packages/core/src/team/member-auth.ts:195-218) writes the paired_devices revoked_at column inline. That write duplicates the single-row UPDATE inside DevicePairing.revoke. It runs in the same transaction as the credential write. The same pattern already exists in member-lifecycle.ts revokeMember (lines 85-93) and in changePassword. This extends an established pattern. It does not add a second revocation mechanism. This is a design observation, not a failure of this check. Limits: I did not review docs/decisions/team-mode.md, because the check names docs/adr/ only. I sampled the 1,008-file branch diff. I checked the password, device, and sign-in areas in depth.

Full details: Touched Features Are Verified

Explanation

Summary: Two mapped features have runtime code changes in this PR. Their verification notes name runs, so the FAIL condition is not met. Method: I compared the PR diff (merge-base 4fd8bb8 to HEAD 41bfc6b) with the ## Sources globs of every file in .agents/skills/verify-deepseekbot/features/. Mapped features touched: - remote-hosts.md. Matching runtime files: packages/client/src/client/owner-password-dialog.tsx and packages/client/src/client/connection-hosts.tsx. The base Sources already matched owner-password-dialog.tsx, so the match does not depend on the Sources line this PR adds. - team-mode.md. Matching runtime files: owner-password-dialog.tsx, team-bridge.ts, team-settings.tsx, packages/core/src/features/team/rpc.ts, packages/core/src/team/{bridge,http,member-auth,service}.ts. Verification notes (PR description, "Verification"): - They name runs. "The earlier live Web and CLI run passed all ten checks at d1047a0." "The Team security run at that revision passed 12 of 18 scenarios." A linked Team security run summary is also given. - They name reasons for work not yet run. "Installed Windows Desktop QA, the narrow-window long-address stress case, CI, and Human approval remain open." - The remote-hosts journey "Change the Owner password (#4899)" was added in this PR. The notes do not name that journey by its heading. Whether the live Web and CLI run covered it is inferred, not stated. Limits and caveats: - The named runs were at d1047a0. The PR head is 41bfc6b. The check does not require a run at head, but the gap is real. - The linked Team security run summary could not be opened from this sandbox. Its content is unverified. - Because the notes do name runs and open items, the check's explicit FAIL condition is not met. The result is a PASS with the caveats above.

Full details: Product Terms Follow The Glossary

Explanation

Checked the PR-only changes (merge-base 4fd8bb8 to head 41bfc6b, 31 files) against GLOSSARY.md. Most product nouns follow the glossary. The new UI strings ("Connection routes", "Sign out other devices that used your password", "Signing out other devices requires --confirm.") and the architecture, changes/ and verify-deepseekbot copy use no Avoid word for a glossary term. The PR description uses Host, Owner, Remote Connections and Tobs Connect without a conflicting Avoid word. One line does conflict. In docs/bot-cli.md (and the zh counterpart docs/bot-cli.zh.md), the text reads "QR-paired devices and the active Owner session retain access." The glossary entry Paired Device lists "session" under Avoid. The entry Member Credential also lists "session" under Avoid, and says sign-in yields a Paired Device grant. The sentence describes the Owner's sign-in access, which the glossary treats as a Paired Device grant, and it calls it a "session". The architecture doc describes the same retained access as "the current device" from the authenticated connection. The copy therefore uses the avoided word for a glossary product noun. The "Session" glossary term (DSH execution unit) does not apply here, so this is not a clear case of an Avoid word used for something else. The standing prior FAIL has no retrievable details. I cannot name its claims, so I cannot refute or address them. This line is the only glossary conflict I found, and it is consistent with that prior concern. Result: FAIL.

Resolution

Change the device-retention wording in docs/bot-cli.md and docs/bot-cli.zh.md so that it uses the glossary term. For example, in English use "QR-paired devices and the active Owner device retain access" (or "the current Owner Paired Device"). In Chinese, replace "当前 Owner 会话" with "当前 Owner 设备" and check that the term matches the zh glossary. Keep "session" only where the glossary Session term (DSH execution unit) is meant. Then re-run the check to refresh the prior failure details.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added the needs-human A human maintainer must decide whether to merge this PR label Nov 22, 2026
@DoodleBears DoodleBears added ci:full Run the complete verification test plan for this pull request harness:codex model:gpt-6.2-sol Code authored by GPT-6.2 Sol needs-human A human maintainer must decide whether to merge this PR labels Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Human merge required (needs-human)

  • Auth, secrets or permissions
    • packages/core/src/features/team/rpc.ts

Merge policy

@DoodleBears
DoodleBears marked this pull request as draft November 22, 2026 07:36
@DoodleBears

Copy link
Copy Markdown
Contributor Author

Download the Owner password rotation review explainer

The explainer covers head d1047a04817c8e9598a6f3e2014ab7fe4b53f927 and stack base f489d9c4c76caae0f2cbb4d642c6397aeb117b92. The integrated isolated Web and CLI Noise journey passed all ten live checks. The draft tracks the remaining merge gates.

BotHarness added 2 commits November 22, 2026 20:49
Issue: #4898

Agent-Task: codex/local/01a1ff25-bf04-7871-9287-3625c3cb9dcd
Base automatically changed from codex/4898-pr-prep to main November 22, 2026 16:34
BotHarness added 2 commits November 23, 2026 01:35
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e
BotHarness added 4 commits November 23, 2026 01:50
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e
Issue: #4899

Agent-Task: codex/local/01a20227-5819-7d43-ab77-f7e1ed665c7e

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the complete verification test plan for this pull request harness:codex model:gpt-6.2-sol Code authored by GPT-6.2 Sol needs-human A human maintainer must decide whether to merge this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote Host 账密登录 T2:Owner 改密时退出其他账密设备

1 participant