Stamp every knowledge row with its own acquisition revision (PA.f44)
The recency marker was `minted_at > last_acted_at`, and minted_at is set only by a speech or a display event's own fan-out. A row AcquireKnowledge lands, a row Witness lands, and a row declaration-time seeding lands all carry no minted_at, so `new` computed with `>` a `None` was always false for them: a fact landed by a patch, a seed, or a ruling could never surface to a Persona as new, however long after the subject's last act it arrived. Knowledge now carries acquired_at: u64, the revision this write's own commit resolves to (matching how DecisionEvent.revision and the minted_at scan built from it are computed: one past the pre-increment state.revision apply runs against). Every writer of the knowledge map sets it: AcquireKnowledge, Communicate's fan-out, Display's fan-out, and Witness. The marker becomes `acquired_at > last_acted_at`, with a subject that never acted (last_acted_at is None) seeing every row it holds as new outright, matching the ruling exactly rather than leaning on Option ordering. minted_at keeps its own meaning — which act minted a spoken or displayed claim — and stays on KnowledgeSnapshot and on the wire; no schema bump, since no consumer.v6 store exists yet. AcquireKnowledge's own no-op refusal now compares confidence and source alone, not the whole row, so a later acquired_at cannot make an identical re-assertion stop refusing as "knowledge operation changes nothing". Tests: a row AcquireKnowledge lands after the subject's last act is new; one that lands before it is not; the acquisition revision survives a journal reopen; and the Cut 0 stimulus test's third row — seeded with no minted_at, previously "new": false — now reads "new": true, because its subject never acted and PA.f44 says every row such a subject holds is new. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
14d85dac59
commit
3b1f412b92
3 changed files with 344 additions and 29 deletions
|
|
@ -417,6 +417,12 @@ pub(crate) enum KnowledgeSource {
|
|||
pub(crate) struct Knowledge {
|
||||
pub(crate) confidence: Confidence,
|
||||
pub(crate) source: KnowledgeSource,
|
||||
/// The revision at which this subject acquired this row: witnessed,
|
||||
/// told, shown, or seeded by an author. Written by every writer of this
|
||||
/// map (PA.f44), so the Projector's recency marker can tell a row minted
|
||||
/// with no `minted_at` — a patch, a seed, a ruled fact — from one the
|
||||
/// subject already held before its last act.
|
||||
pub(crate) acquired_at: u64,
|
||||
}
|
||||
|
||||
/// The source an author may write. `Told` is unrepresentable here: only
|
||||
|
|
|
|||
Loading…
Reference in a new issue