Skip to main content

Module agent_changes

Module agent_changes 

Source
Expand description

What the person sees instead of a card: the changes agents made that they have not looked at yet, and what they can do about each (docs/specs/SPEC_VAULT_AGENT_ADDS_AND_EDITS_WITHOUT_ASKING_2026_11_25.md §5).

A change is a history line an agent wrote. The list is read from the history, so it cannot disagree with it. Seen is a mark on this machine only, and it also trusts the value or place the agent set (agent_set). Undo puts back what the change replaced (the earlier value, the earlier details) or removes an entry an agent added, as the person’s own action. Nothing here holds a value.

Structs§

AgentChange
One change by an agent.
ProposalInfo
A pending proposal’s field, what is proposed and what the login has now.

Constants§

RESTORED_DETAILS
The Activity action of the person putting earlier details back.

Functions§

list
The changes by agents, newest first, of one entry (entry) or all, with the ones the person has marked seen left out unless include_seen. A proposal, and a new value on an entry the person made, come first.
seen
The person has looked at the change recorded by line seq (one an agent wrote): it leaves the list, and the value or place the agent set is trusted from now on, as if they had answered a use of it, once no other change by an agent on the entry is left unseen.
seen_all
seen for every change listed now except a proposal, which waits for Accept or Dismiss and so stays listed.
undo
The person puts back what the change recorded by line seq replaced, or removes the entry it added: their own action, recorded as theirs. Refused when there is nothing to put back (past its 7 days).