1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! # urge-meta — The Figure 26 Pipeline
//!
//! This crate is the operational heart of URGE: it implements the complete
//! Adaptive Processing Workflow — the Figure 26 pipeline, named for the
//! diagram in the original design document.
//!
//! ## Pipeline stages (direct mapping to Figure 26)
//!
//! ```text
//! ┌──────────────────────────────────────────────────────────────────────┐
//! │ ADAPTIVE PROCESSING WORKFLOW │
//! │ (Figure 26) │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 1: TOKENIZATION │
//! │ Input text → Token stream via Unicode Semantic Dictionary │
//! │ Every symbol classified by paradigm before any evaluation │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 2: PARADIGM DETECTION │
//! │ Token paradigm annotations → ParadigmSet (compact bitset) │
//! │ Determines which engines will be activated │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 3: AST CONSTRUCTION │
//! │ Tokens → typed expression tree (Pratt parser) │
//! │ Each node annotated with its paradigm(s) │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 4: ENGINE ROUTING (SWITCH) │
//! │ For each active paradigm → route AST to matching engine │
//! │ Deterministic dispatch — no learned gating, no inference │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 5: ENGINE EVALUATION │
//! │ Each selected engine evaluates its portion of the AST │
//! │ Returns partial Verdict with local confidence and trace │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 6: CROSS-SYSTEM VALIDATION ◄── DIFFERENTIATOR │
//! │ All engine verdicts checked for inter-paradigm consistency │
//! │ Contradictions detected, flagged, and resolved │
//! ├──────────────────────────────────────────────────────────────────────┤
//! │ STAGE 7: VERDICT SYNTHESIS │
//! │ Aggregate confidence, merge traces, produce final Verdict │
//! │ Formal notation emitted for audit │
//! └──────────────────────────────────────────────────────────────────────┘
//! ```
extern crate alloc;
pub use ;
pub use Tokenizer;