Repository navigation
org: hosted chat rows carry the asker's verbs from the server - #2905
Merged
Merged
Conversation
Every row of the hosted list (the caller's own and shared) and the answer that makes a chat now name the verbs the caller holds on that chat, decided by the same function the guest's wire re-reads every heartbeat, so a row and the wire cannot come from two readings of the policy. A bot's rows hold its person's verbs narrowed by its scope. An operator-only row holds none, and a verbs field the chats' host wrote is replaced. The wire's enforcement is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…role table The hosted door worked out a guest's verbs from the default policy's roles, gave an owner every verb, and read an unknown role as view. An organization whose policy differs from the default was therefore shown the wrong controls. The door now reads the verbs on each list row and on the answer that makes a chat; a row with none reads view only, which only hides controls because the server's wire refuses what the person does not hold. The client role table is removed, and the desk-facing HostedFacts.Verbs shape is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Nov 25, 2026
…ack (#2903) The hosted organisation line: a team-mode org server deciding every request through one access model (verbs, roles, grants and policy in SQLite), hosted chats run by the sessionhost under a per-chat uid inside a Landlock fence with minted model bearers, sealed keys and a git helper, shared chats acting through verbs, bots owned by their creator, the Hosting and chats policy settings, and a self-hosting stack (deploy/org Docker Compose, published images behind a leak gate, a Railway path). Consolidates #2894 #2895 #2896 #2898 #2899 #2900 and the follow-ups #2904 #2905 #2907 #2908 #2910 #2911 #2912 #2913 #2915 #2916 #2918 #2927 #2936 #2944. Proven by the full suite, a keyless Compose smoke, a hostile wire client, sandbox escape probes, a real-model run and a production-style install from the published images. Co-Authored-By: Santosh kumar <[email protected]> Co-Authored-By: ZeroPoint95 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What changes
The desktop engine's hosted door worked out a person's verbs on a hosted chat itself, from the default policy's role table (
appHostedRoles): the owner got every verb, a guest got the verbs of the role's name, and an unknown role gotview. The organization server's roles and policy are configurable, so on any server whose policy differs from the default the window showed the wrong controls.Now the server says it:
GET /v1/hosted/sessions(sessionsandshared), and the answer toPOST /v1/hosted/sessions, carriesverbs: what the caller holds on that chat under the policy as it stands when the list is read. It is the guest wire's own decision (hostedGuestVerbs, re-read every heartbeat), so a row and the wire cannot come from two readings of the policy. A bot's rows hold its person's verbs narrowed by its scope. An operator-only row holds none. Averbsfield the chats' host wrote is replaced.verbsand nothing else. A row with no verbs (an older server) readsviewonly, for another person's chat and for the person's own. That is safe because it only hides controls: the wire refuses what the person does not hold, and nothing on the client enforces anything.appHostedRolesand the role mapping are removed.HostedFacts.Verbs []stringshape. I grepped the desk'sorg/hosted-routingworktree read-only: it only readsagent.hosted.verbsand tests it withincludes("run" | "steer" | "answer"), so the desk needs no change.deploy/org/README.md(the list row),docs/design/app-v3/PROTOCOL.md(hosted rows), and the manual pageorganization-hosted-sessions.md(the first section said the window shows "the actions your role allows").Validation contract
TestHostedListRowsCarryTheAskersVerbsFromTheLivePolicy(default policy, then a policy saved with no restart),TestHostedCreateAnswerCarriesTheMakersVerbs,TestHostedRowVerbsOfABotAreItsScope, andTestP2_2_HostedListKeepsOwnRowsAndLimitsSharedMetadata(shape, operator rows, single-chat read).HostedFacts.Verbsis what the server enforces:TestHostedRowVerbsMatchWhatTheWireEnforces(server: each verb a row names is forwarded by the guest wire, each left out is refused, under a policy where edit cannot steer and the owner role cannot run, steer or manage) andTestAppHostedV2ListOnlyOwnAndSharedplusTestAppHostedV1CreateOnOrganizationServer(engine: facts equal the server's verbs exactly, for a custom edit role and a restricted owner).viewonly, never owner-equivalent:TestAppHostedV2ListOnlyOwnAndShared(own row with none, unknown role, familiar role with none, empty list, unknown verbs; order and duplicates normalised).TestHostedWithVerbsReplacesTheHostsOwnFieldpins that the host never decides.appHostedRolesremoved; the desk shape is unchanged.Worth knowing
runis attached by the byte-for-byte proxy, which has no verb table. Their row names what the policy gives them, which can be fewer verbs than the wire would let through (a policy where the owner role hasrunbut notsteer). That errs toward hiding a control, never showing one the wire refuses.🤖 Generated with Claude Code