Repository navigation
fix(lan-webui): enforce the ask ceiling and archived-project read-only - #2644
Merged
Merged
Conversation
A paired phone's turn computed the remote `ask` ceiling but never applied it: host-core authorized tools from the stored session mode, and an `inherit` session with an `auto` default did not even forward the value. Phone turns could therefore run tools without Desktop approval. The ceiling is now recorded on the durable turn and queue entry (schema v35) and host-core applies the stricter of it and the current session mode to every tool decision of that turn, including delegates, child sessions, session messages and background continuations. A Host that cannot record it starts no turn. The phone also offered Send and Queue in sessions of an archived project, because send admission checked only the session's own flag. Those conversations are now read-only with a project restore action, admission rechecks the current archive state, and a web archive refuses while a send is still being admitted. Records ADR turn-permission-ceiling and updates the LAN WebUI, storage, security and E2E specs.
Deploying pi-desktop with
|
| Latest commit: |
5ad6880
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a72d1c93.pi-desktop.pages.dev |
| Branch Preview URL: | https://fix-lan-permission-archive.pi-desktop.pages.dev |
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.
Why
LAN WebUI hardening (LAN-01, LAN-02):
askceiling for a paired phone, but host-core authorized tools from the stored session mode. Aninheritsession with anautodefault did not even forward the value, so a phone turn could run tools without Desktop approval.What
PERMISSION_CEILING_UNAVAILABLE); the draft is kept.turn-permission-ceiling; LAN WebUI, storage, security, rollout and E2E-270/272 specs updated.Behavior note: queue entries persisted before v35 use their admitted mode as their ceiling.
Validation (task candidate
5ad6880f7, basef92b18430)cargo test -p host-core: 1379 passed; 3 failures that also fail on unmodified main locally (macOS temp-path aliasing, plugin timestamp).cargo fmt --checkclean; clippy shows only two existing warnings in untouched files.node --test: new bridge and LAN archive/ceiling tests pass and fail on the old code; remaining failures also fail on unmodified main locally or need a renderer build.test:e2e:lan-webui(Electron): 7/7, including a new archived-project journey.