Verification
The verify module implements multi-model verification for quality assurance.
Multi-Model Verification
sequenceDiagram
participant T as Transaction
participant P as Proposer LLM
participant S as Decision Store
participant R as Reviewer LLM
participant H as Human
T->>P: propose(category)
P->>S: store(proposal)
S->>R: review(proposal)
alt agreed
R-->>S: verdict(agree)
S-->>T: result(confidence=0.9)
else rejected
R-->>S: verdict(disagree, reason)
S->>H: flag_for_review
H-->>T: approved/rejected
end
The system uses a two-model approach:
- Proposer: Primary model generates the classification/decision
- Reviewer: Second model reviews and validates the proposal
Verifier
#![allow(unused)]
fn main() {
pub struct Verifier {
proposer: ModelClient,
reviewer: ModelClient,
}
}
Process
- Proposer generates a candidate classification
- Reviewer evaluates the candidate against constraints
- If reviewer rejects, human review is flagged
- Confidence score reflects agreement between models
Usage
#![allow(unused)]
fn main() {
let verifier = Verifier::new(model_a, model_b);
let result = verifier.verify(&transaction, Proposal::Classify);
}