Repository navigation
Use Internet Identity's access-level wording in the runtime messages - #116
Merged
Merged
Conversation
The write guard and the model-facing instructions told users to "turn OFF the read-only option" on Internet Identity's consent screen and described that screen as defaulting to read-only. Neither is true: the screen requires an explicit choice between "Questions only" and "Actions & questions", and there is no toggle to turn off. A user following the old message looks for a control that does not exist. Four runtime strings now name the choice the user actually has: - identities.rs READ_ONLY_MSG, returned by the require_write guard. - get_app_principal's query-only annotation. - icp_canister_status's tool description. - The initialize instructions the model reads at connect. Internal names (read_only, is_read_only, READ_ONLY_MSG) and the technical sense of read-only (the MCP readOnlyHint, permissions = "queries") are unchanged; only the wording that describes the consent screen to a human moves. The doc comments that asserted the read-only default are corrected so the wrong mental model does not survive in the code. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
There was a problem hiding this comment.
Pull request overview
Updates runtime guidance to match Internet Identity’s actual consent-screen access levels.
Changes:
- Replaces incorrect read-only toggle guidance with “Questions only” and “Actions & questions.”
- Updates related comments without changing internal permission semantics.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/identities.rs |
Updates guard messaging and access-level comments. |
src/tools.rs |
Updates tool annotations, descriptions, and initialization guidance. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MRmarioruci
approved these changes
Aug 3, 2026
5 of 7 tasks
3 tasks done
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.
Summary
Four runtime strings told users to "turn OFF the read-only option" on Internet Identity's consent screen, and described that screen as defaulting to read-only. Neither is true: the screen requires an explicit choice between "Questions only" and "Actions & questions", and there is no toggle to turn off. A user following the old message goes looking for a control that does not exist, and the model relaying it sends them there.
This is the same correction already applied to the privacy policy (#114), the served
/termspage (#115), and the README (#62) — the code strings were the remaining place the wrong mental model survived.The technical sense of read-only is untouched: the MCP
readOnlyHintannotations,permissions = "queries", and the internal names (read_only,is_read_only,READ_ONLY_MSG,require_write) all stay as they are. Only the wording that describes the consent screen to a human moves, plus the two doc comments that asserted the read-only default.What each message says now
identities.rsREAD_ONLY_MSG(returned by therequire_writeguard)get_app_principal's query-only annotationicp_canister_status's tool descriptioninitializeinstructions the model reads at connectRelated issues
Follows #114 (privacy policy), #115 (
/terms), and #62 (README) — the same terminology correction, applied to the code paths.Changes
src/identities.rs: rewriteREAD_ONLY_MSGand its doc comment; correct the two doc comments that described a read-only default or an "off" toggle (PrincipalOutput::read_only,require_write).src/tools.rs: rewrite the query-only annotation inget_app_principal,icp_canister_status's description, and the consent-screen paragraph in the server instructions.Testing
cargo build --locked --all-targets— the two pre-existing warnings are unchanged (verified againstmainby stashing)cargo test --locked --all-targets— 151 lib + 2 bin + 8 router tests passcargo fmt --all/cargo clippy --all-targets— not run: the toolchain here reformats ~380 untouched files, so running it would bury the changenpm test --prefix monitoring/mcp-status— n/a, dashboard unchangedChecklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
Generated by Claude Code