persona-wire-core 0.2.2

persona-wire core: Domain (Graph + Specification + Compute + Constraint + AutoVersion + CRUD) + Application (NamedProjection registry, Use Case) + Infrastructure (SQLite storage, Rendering adapter). Transport-agnostic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Constraint primitive — evaluate edges of `kind="constraint"` against current graph state.

use crate::domain::graph::Edge;

#[derive(Debug, Clone)]
pub struct ConstraintViolation {
    pub edge_id: String,
    pub message: String,
}

pub fn evaluate(_edge: &Edge) -> Option<ConstraintViolation> {
    // TODO(P3): evaluate metadata.expr (Lua snippet or DSL) per design.
    None
}