Skip to main content

Module agent_set

Module agent_set 

Source
Expand description

A value an agent had the Vault read is not trusted until the person has seen it (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md R11).

An import reads with the host’s own AWS setup and a capture reads a page or a command’s output, and neither asks the person first. So the entry they write is marked unseen: a use of it never goes ahead on silence and offers no Always, and the card says who set the value and when. The mark goes when the person marks the change seen, or answers a use of the entry with a yes. Marking also drops the entry’s Always grants, which skip the card on a use. A value the Vault made (generate, rotate) is not marked: nobody had it before.

A site, realm or proxy an agent chose for a login is marked the same way (R9): a use at a place the person never saw is the way a password reaches a site an agent picked.

Functions§

apply
Tells request that its entry’s value was set by an agent and not seen, when it was: who and when. A use of it then never goes ahead on silence and offers no Always. Leaves a use of an entry the person has seen as it is.
clear
The person has seen the entry’s value, or answered a use of it: it is trusted as any other.
is_unseen
Whether the entry’s value is one an agent set and the person has not seen.
mark
Marks the value of entry_id as set by agent and not yet seen by the person. A failure to mark is logged: the write it follows is already made, and the history line records it.
mark_site
mark for a site, realm or proxy an agent set on the login.