/** * Event source — where the event originated. Drives the engine's base * confidence via the provenance trust ladder (higher = more trusted): * * policy 0.95 organizational mandate * verified 0.90 authoritative / validated (alias: validator) * tool 0.80 reliable tool output (alias: executor) * document 0.75 published source (e.g. an uploaded file) * user 0.70 user feedback (valuable but subjective) * assistant 0.60 model inference (alias: agent, model) * derived 0.55 second-hand synthesis * system 0.50 system-generated * * Confidence is 25% of the retrieval rank, so the source you stamp matters. * Preferred names + accepted deprecated aliases are both listed. */ export type EventSource = "policy" | "verified" | "tool" | "document" | "user" | "assistant" | "derived" | "system" | "validator" | "executor" | "agent" | "model";