Skip to main content

Module progressive

Module progressive 

Source
Expand description

Progressive extraction: after each owner exchange, a fast model proposes durable facts, and the ones that are new, evidenced and not already stored are written.

Structs§

Exchange
The exchange extraction reads, and where its facts are scoped.
InlineFact
A fact proposed by progressive extraction.
ProgressiveExtractor
Proposes facts from an exchange with a model, a bounded number of calls at a time, and writes the ones worth keeping.

Enums§

FactStance
How the user’s message relates to a proposed fact. Only Asserted facts are stored; a missing or unrecognized stance is Unstated.
FactSubject
Whom a proposed fact is about, as the extractor reads the user’s message. An owner identity fact (the user’s own name) is stored only when it is Owner: a name the user merely mentions (“Tell Jordan hi”) is Other. Missing or unknown values are Unstated.
Inadmissible
Why a proposed fact is not stored, before any store call.

Functions§

admissibility
Whether a proposal may be stored: the user asserted it, its evidence is a quote found in the user’s own message, and it does not restate a fact already stored. The evidence check validates a citation against its source; it does not interpret what the words mean.
identity_fact_lacks_quoted_self_statement
Consolidation’s identity guard: an owner identity fact (e.g. user.name) is admitted only when its extractor typed it as the owner’s own (FactSubject::Owner) and its evidence quotes the owner’s own messages (user_text). The quote check validates a citation against its source; it does not interpret what the words mean.
identity_fact_lacks_self_statement
True when a proposed owner identity fact (e.g. user.name) lacks the extractor’s typed statement that the user gave it about themselves (FactSubject::Owner), or its value is empty. A name the user only mentions (“Tell Jordan hi”) never becomes the owner’s.
may_extract
Whether owner memory may be extracted from a turn: only the owner’s own words, and never on an untrusted public platform.
owner_writes_during_run
owner_writes_since over the store’s active facts. A store error reads as no writes, so extraction proceeds as it would without any.
owner_writes_since
Facts owner-authored (stated by the owner or saved by the agent on the owner’s behalf) that were written or refreshed at or after since: what the agent itself stored during a run that started then. Superseded rows are left out.
parse_inline_facts
The JSON array in a reply, leniently: anything around it is ignored, and a reply with no parseable array has no facts.
worth_extracting
Whether a user message is long enough to hold a durable fact. Shorter messages (acknowledgments, greetings, single emoji) are not worth an extraction call.