Repository navigation
TD-5301: what no phone permission opens - #127
Merged
Merged
Conversation
A paired phone is refused, with any grant, when it would release the computer-use stop, shut the daemon down, send a saved key to a server it does not already reach, or point the mail server elsewhere without typing the password. Checked against a live test daemon first: the mail-host change was open to any paired phone with no grant, a saved key's host could be moved once "Adding models and keys" was on, and shutdown stopped the daemon. The rules read off the message stay in phone_verbs; the ones that depend on what is saved are in phone_never, asked by Hub.intercept before the permission check through a callable the daemon passes with its live config, so peer_policy.check stays a pure table. The key rule reuses TD-5182's key_refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Owner decision #5: a paired phone can never release a computer-use stop, shut the daemon down, send a saved key to another server, or change the mail server without typing the password. These are hard refusals (
loopback_only), with or without a grant.Runtime check before the change (live test daemon, paired phone, unchanged main):
set_email_notifywith a new SMTP host and no password: accepted with no grant. The saved password would have gone to the new server on the next send.set_credentialmoving the saved OpenRouter key's host: refused without a grant, accepted once "Adding models and keys" was on.add_modelreusing a saved key at another URL: already refused for every client (TD-5182).shutdownfrom a phone: accepted; the daemon stopped.Change
phone_verbs.never_from_a_phonenow also coversshutdown.phone_never.pyholds the rules that depend on saved config: aset_credentialthat changes or clears an existing key's host, aset_tier_credentialthat binds a key saved without a host to a model on another server, and an SMTP host change without a password. It reuseskey_hosts.key_refusal.Hub.interceptruns these before the permission check, so the answer doesn't depend on a grant.set_api_key(the phone types the key), and moving mail with the password typed in the same message.Tests:
test_phone_never.py(19). Full core suite 9031 passed; ruff, mypy, tsc and vitest are clean; release scan 0 hits.🤖 Generated with Claude Code