Every evidence row now records its derivation (direct, assertion, operator, external, prediction, consolidation, inference, reflection, dream, retrieval), its independent-source family (an actor, an integration, an operator, a prediction) and its root event or memory ids. Confidence groups evidence by family: the strongest primary item counts in full, each further primary item adds a quarter, capped at 1.5x, and derived items count only when the family has no primary member. Three derived re-expressions of one utterance therefore weigh exactly what the utterance weighs, while three independent families still add up. Producers (conversation, association, consolidation, predictions, metacognition, dreaming, operator and seed input, contradictions) supply their ancestry. Existing rows are marked legacy_unknown with family = source; nothing is invented. The belief page shows per-family contributions and the replay test checks that provenance is reconstructed identically in the sandbox. Migration 0017 is additive.
7 lines
222 B
SQL
7 lines
222 B
SQL
DROP INDEX IF EXISTS belief_evidence_family_idx;
|
|
ALTER TABLE belief_evidence
|
|
DROP COLUMN IF EXISTS provenance_status,
|
|
DROP COLUMN IF EXISTS root_ids,
|
|
DROP COLUMN IF EXISTS family,
|
|
DROP COLUMN IF EXISTS derivation;
|