Repository navigation
feat(rooms): a member may let a portal react in one room for 30 minutes without asking - #455
Merged
Merged
Conversation
…es without asking Every page write is confirmed in the wallet's own window, so a portal chat asked for a confirm on every emoji. The member now chooses, in a reaction's own confirm (made compact: the emoji, the message as the wallet read it, who signs), an unticked box: "let <portal> add and remove your reactions in <room> for 30 minutes without asking". - The grant is `reactionsUntil` on the share itself, so it is keyed exactly as the share is (origin, community, VTA, room, member) and ends with it: Stop sharing, the page's `forget`, a fresh `choose`, or the share lapsing. Capped at 30 minutes and at the share's own expiry; never extended by use. - While it is live, `react` / `unreact` from that origin for that room run with no window. Gates 1-3, the value checks and `recordMembersNotListed` still apply. Messages, notes and files are always confirmed. - Only that box on an approval grants it: `deliverConsentResult` passes it only with `approved`, and `requestRoomConsent` only from a prompt that offered it. The page cannot ask for or see a grant; the page contract is unchanged. - The console's Communities tab lists a live grant with the minutes left and a Stop, beside Stop sharing. - CLAUDE.md: "no remember" now names this one bounded exception, and widening it (beyond reactions, one room, 30 minutes, or renewing without the box) joins "What breaks it". Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
stormer78
added a commit
to OpenVTC/verifiable-trust-infrastructure
that referenced
this pull request
Nov 26, 2026
… grant (#2833) OpenVTC/vta-browser-plugin#455 lets a member grant a portal, in a reaction's own confirm, 30 minutes of reacting in one room without a window. The portal rooms entry said the wallet confirms every reaction; it now says so except under that grant, which the page can neither request nor see. Signed-off-by: Glenn Gore <glenn.g@affinidi.com>
This was referenced Nov 26, 2026
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.
Every page write is confirmed in the wallet's own window, so a portal chat asked for a confirm on every emoji (after #454). The user chose a bounded, revocable reaction grant (option A of the review).
What changes
reactionsUntilon the share itself, so it is keyed exactly as the share is (origin, community, VTA, room, member). It ends with the share: Stop sharing, the page'sforget, a freshchoose, or the share lapsing. It is capped at 30 minutes and at the share's expiry, and never extended by use.react/unreactfrom that origin for that room run without a window. Gates 1–3, the value checks andrecordMembersNotListedstill run. Messages, notes and files are always confirmed.deliverConsentResultpasses it only withapproved, andrequestRoomConsentonly from a prompt that offered it. The page can neither request nor see a grant; the page contract is unchanged.Design deviation from the brief
The brief keyed the grant as its own record
(origin, hostDid, vtaDid, roomId, kind=reaction). I put it on the share record instead: same key, same storage and revocation by construction, with no second record to keep in step.Tests
tests/room-page-reaction-grant.test.mts(9):The existing reply/react tests were updated for the offer. Locally:
npm run lint,npm test(extension 1609, core 1348, others) andnpm run buildall pass.