Skip to content

docs(rpc): a paired client runs commands as you; say so when pairing - #27317

Merged
OrcaWin merged 3 commits into
mainfrom
OrcaWin/d2q1-authority
Oct 10, 2026
Merged

OrcaWin merged 3 commits into
mainfrom
OrcaWin/d2q1-authority

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36

ELI5

Pairing a browser or another computer with an Orca server lets it open terminals there, so it can already do anything you can do in a shell on that server. This PR writes that down in the code and tells people in the pairing screens, instead of pretending that some settings are a separate safety line.

What Changed

  • Before: the pairing screens only said "Pair with Orca running on another computer" and "Create a revocable access grant". Nothing told the person that a paired device can run commands as them. The permission list in code did not say what workspace really allows, so audits (Gate privileged RPCs the same way host-only account APIs are gated #18269) read skill installs, launch environment settings and folder browsing as privilege escalations.

  • After: both pairing screens add one plain sentence:

    • Add remote server dialog (the device being paired): "This device will be able to run commands as you on this server."
    • Share this Orca server (the server making the link): "A paired client can run commands as you on this computer."

    Translated in all six locales.

  • Mechanism: rpc-method-permission.ts now documents that workspace equals running commands as the host's user, so browsing directories, installing skills, changing launch env or SSH targets is not a boundary for a workspace caller. Those tiers stay separate only so narrower callers (mobile, an SSH host's orca CLI) can still be refused them. The real boundaries for a paired client are desktop-control (granted per device at pairing) and pairing-admin (never granted to a paired client). No permission, grant or mobile allowlist changes.

Why

A paired client can open a terminal and type any command, so gating skills or launch env for it would be a gate the same client walks around in one step, and it would break existing phone and web features. The owner chose this reading (design D2, decision Q1 = b). Saying it in the pairing UI is what makes the existing power an informed choice.

Linked Issue

Refs #18269 (the skills, launch-env settings and browse bullets are closed as by design after merge; desktop-control stays an explicit grant).

Visual Proof

N/A for screenshots: copy-only change (one muted sentence in each pairing screen, same text-xs text-muted-foreground style as the surrounding help text). No layout or behavior changes.

Testing

  • pnpm tc, pnpm lint (owner-routing ratchet stays at 0), pnpm run check:code-quality:changed

  • pnpm test src/renderer/src/i18n config/scripts/verify-localization-catalogs.test.mjs src/main/runtime/rpc/rpc-caller-scope.test.ts

  • verify:localization-extraction and verify:localization-catalogs pass with the new keys.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

No new tests: no runtime behavior changes. Existing caller-scope tests already pin the grants described in the comment.

Review

P0/P1 review by two independent reviewers; see comments.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Security: no access widened or narrowed. Cross-platform, SSH, mobile: no behavior change.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 10, 2026 22:17
@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9450a9d7-c657-47a2-80d0-b2931c0a07df

📥 Commits

Reviewing files that changed from the base of the PR and between eaf5dbe and c52f987.


📒 Files selected for processing (10)
  • src/main/runtime/rpc/rpc-caller-scope.ts
  • src/main/runtime/rpc/rpc-method-permission.ts
  • src/renderer/src/components/settings/RuntimePairingGeneratorForm.tsx
  • src/renderer/src/components/sidebar/AddRemoteHostServerFormPanel.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.



📝 Walkthrough

Walkthrough

Permission comments now describe the capabilities of workspace and the boundaries for paired-client desktop control and pairing administration. Remote-host setup and access-link generation display translated notices stating that paired devices can run commands as the user on the relevant computer or server.


Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to c52f9

No actionable merge-blocking risk was identified in this documentation and notice-only change.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (6 skipped: 6 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the main change: documenting that paired clients can run commands as the user and communicating this during pairing.
Description check Passed The description is complete and focused. It explains the user impact, implementation, rationale, linked issue reference, visual proof decision, testing, security considerations, and checklist status.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (6 skipped: 6 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • 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

Comment @coderabbitai help to get the list of available commands.

@OrcaWin
OrcaWin merged commit e7ee93e into main Oct 10, 2026
51 of 53 checks passed
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