Skip to main content

Module sharing

Module sharing 

Source
Expand description

Whether a fact just remembered goes to the team, decided when it is remembered (3.12.3): ctx_knowledge remember and lean-ctx knowledge remember say "local only: <reason>" with how to fix it, instead of a plain OK that the capture gate later turns into a silent rejection.

This checks what a person or agent can fix now (the statement rules and a missing reference); the gate makes the final decision at sync (it also checks that each reference exists, screening, budget).

Structs§

RejectedFact
One fact the capture gate kept on this machine.

Enums§

Sharing
Where a remembered fact goes.

Constants§

MAX_REJECTED
At most this many rejected facts are kept per vault (the newest).

Functions§

decide
Where value, just remembered in project_root, goes. None on a machine not connected to Cloud (nothing to say).
note
decide for this machine, as the line under a remember answer (None: not connected to Cloud). has_ref as in problem; a fact LeanCTX anchored to code carries that reference itself.
problem
The statement rules and the reference rule for value; has_ref: the call named a source (refs or anchors), or the fact already has anchors.
record_rejected
Note what the gate refused in one sync of vault_id (dropped as crate::knowledge::learn::LearnPlan::dropped: category/key, reason). A fact refused again replaces its earlier row.
rejected_now
The rejected facts of vault_id still waiting for a fix: the fact is current in knowledge and was not changed since (a changed fact is considered again by the next sync).