Skip to main content

Module browser_signin

Module browser_signin 

Source
Expand description

Browser signin: an agent signs in with a saved sign-in, and the person says yes (SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §5.3).

The agent names its pane and, when the page could take more than one, the entry. Only a login of the tab’s profile saved for exactly the site of a sign-in form the page shows now can be used. The person is asked in the Vault’s own prompt, a window modal outside every pane, which no UI click reaches: “Allow once”, “Always for on ”, or “Deny”. Under an “Always” the pane shows “ is signing in to [Stop]” for 5 seconds first. The host types it as for the person’s own choice (§5.3); the agent is told only which entry was used and on which site, never a value.

Structs§

Chosen 🔒
The saved sign-in an agent means: its entry, label, site and user name, the tab’s profile, and the entry’s created_at, which tells it from one deleted and made again with the same id while the person was asked.
Refusal 🔒
Why nothing was typed: the outcome kept in the Vault’s activity, how the pane’s log shows it, and what the agent is told.
Showing 🔒
A notice showing: dropped when the sign-in goes ahead or is stopped, and also when the agent’s call is cancelled while it shows, so no notice is left on the pane with a Stop that stops nothing.
SigninRequest 🔒

Constants§

ANSWER_WAIT 🔒
How long the person has to answer.
BUSY 🔒
What the agent is told when another sign-in’s notice shows on the pane.
NOTICE 🔒
How long the notice shows before a sign-in under a grant is typed.
NOT_SHARED 🔒
What an agent is told when it names a login it may use for the page that the person hasn’t shared with it.
NO_PERSONAL 🔒
What a container agent is told when its tab would use Personal’s sign-ins (an Incognito tab uses them).
PENDING_META_KEY 🔒
The block meta key of the “is signing in” notice.

Statics§

PENDING 🔒
The notices showing, by id: the pane and what stops the sign-in.

Functions§

approve 🔒
The person’s yes: under an “Always” the notice shows and nobody pressed Stop; otherwise they answered the Vault’s prompt, in agent_pane. True when nobody answered it and it went ahead.
ask 🔒
Ask the person in the Vault’s prompt; an “Always” is kept under key. True when nobody answered and it went ahead.
choose 🔒
Which of the sign-ins the page can take, (entry, origin, user), is meant.
chosen 🔒
The saved sign-in of profile the agent means, among those that fit a sign-in form the page shows now.
grant_key 🔒
The key “Always for on this site” is kept under, in the grants table web forms use for sites: signin:<agent>|<profile>|<origin>, which can’t be a site’s origin. It names the site and profile the person approved, so an entry whose site or profile is edited afterwards is asked about again.
handle_signin 🔒
POST /api/v1/ui/browser/signin.
noted 🔒
notice 🔒
Show “ is signing in” for NOTICE (kind signin, or account for an agent making a new account, for as long as wait says): Some(true) when nobody stopped it, None when another notice already shows on the pane. One at a time per pane, so what waits to be typed is always what the pane shows and its Stop stops.
own_uid 🔒
The agent’s permanent uid when profile is its own browser profile: the one tab where a login shared with it is offered (A4). None for a tab of any other profile and for an agent that isn’t running.
profile_of 🔒
The tab’s profile, and whether it is Incognito, which keeps no sign-ins of its own: it may use Personal’s, asked each time.
register 🔒
browser.signin_stop, from the window only: the person’s [Stop] on the notice.
reset_notices 🔒
Clear the notice saved with every pane that has none showing. Called when the host registers: a notice lives in memory, and one saved with a pane from before srv restarted would show a Stop that stops nothing.
set_notice 🔒
share_removed 🔒
The person removed the share of login id with who (an agent’s uid, or *): a card still waiting on a sign-in asked through that share, from an agent the entry no longer names, is answered No, so it does not stay up for a sign-in that cannot go ahead (A7). Any other card on the entry (an ordinary sign-in, another agent’s share) is left for the person. A card answered or timing out later types nothing either if the entry changed: it was bound to the entry as shown.
shared_grant_key 🔒
grant_key for a login shared with the agent: it is used in the agent’s own profile (profile), and the key also names the profile the login is saved for (saved), so a login whose profile is edited afterwards is asked about again whatever writes it (A6).
still_allowed 🔒
The agent may still act on the pane after the wait: the person had time to pause it or take it over, and nothing is typed then. The call’s auth was checked when it came; the wait can outlast its freshness window.
stop 🔒
The person pressed [Stop] on notice id of pane block_id.
use_request 🔒