//! What the read side gives CultNet's selection evaluator: the rows, the //! organ's closed vocabulary, and the door that checks the values a selection //! carries. Types, rules and boundaries only. //! //! The substrate owns the grammar of a selection's names, the order, the //! cursor, the hop and paging. This module owns what a row answers for each //! declared alias, which aliases and roles exist, and the value domain of //! every alias: `cultnet_rs::validate` refuses a name it does not know and //! never looks at a value, so a malformed filter would read as an empty //! answer. `refuse_values` is the door that closes that (S6). use std::collections::BTreeMap; use cultnet_rs::{Row, RowSet, Selection}; use eureka_pipeline::{ FindingConfidence, FindingOrigin, FindingSeverity, Label, OrgRepo, PipelineDocument, PipelineKind, PipelineRef, ResolutionOutcome, RulingAuthority, RunOperator, RunTurn, Slug, }; use crate::docs::{CitationRole, Held, kind_of_id, kind_of_type}; use crate::query::PipelineDocumentView; use crate::refusal::MindRefusal; /// The declared index aliases: what a row answers `values(alias)` with. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub(crate) enum Alias { /// The key's root segment: a campaign slug, or an instance for /// stewardships, hand-offs and the identity document. A resolution's root /// is its subject's. Root, InForce, Faculty, /// `OrgRepo` identity spelling (lowercase), read through `base`. Repo, /// The label in `cut-