-
-
Notifications
You must be signed in to change notification settings - Fork 0
Data Schemas Reference
Cross-cutting reference. These are the conceptual shapes of the objects passed between components described throughout the wiki; canonical JSON Schema files live in schemas/ in the repository.
erDiagram
NormalizedMessage ||--o{ AnalysisResult : "scored into"
AnalysisResult ||--o| NegotiationBrief : "may generate"
AnalysisResult ||--o| DraftResponse : "may generate"
StyleProfile ||--o{ DraftResponse : "informs"
CapacityState ||--o{ AnalysisResult : "gates routing of"
NormalizedMessage {
string message_id
string source
string sender
string thread_id
string body_clean
datetime received_at
array pii_flags
}
AnalysisResult {
string message_id
object urgency
object sentiment
string priority_tier
array routing_target
}
StyleProfile {
string profile_id
int version
object lexical_features
object syntactic_features
object structural_features
}
NegotiationBrief {
string thread_id
int leverage_score
array leverage_factors
object pricing_recommendation
}
CapacityState {
int capacity_score
object contributing_factors
datetime computed_at
}
DraftResponse {
string message_id
string mask_applied
string draft_text
string status
}
Produced by Cortex Ingestion Pipeline. The canonical shape every downstream component consumes instead of raw channel-specific payloads.
{
"message_id": "string, fingerprint-derived",
"source": "email | chat | form | sms",
"sender": "normalized sender identity",
"thread_id": "string",
"body_clean": "string, sanitized",
"received_at": "ISO 8601 UTC",
"pii_flags": ["array of detected PII categories, not values"],
"explicit_priority": "string | null"
}Produced by Cortex Scoring Model. Note that every score field carries its contributing factors — this is a hard schema requirement, not optional, per the explainability principle in Design Philosophy.
{
"message_id": "string",
"urgency": { "score": "0-100", "factors": ["array of contributing signals"] },
"sentiment": { "label": "see Cortex Emotional Taxonomy", "confidence": "0-1" },
"priority_tier": "Critical | High | Normal | Low",
"routing_target": ["persona_draft", "negotiation_flag", "..."]
}Produced and versioned by Persona Stylometry Engine.
{
"profile_id": "string",
"version": "integer, monotonically increasing",
"lexical_features": { "...frequency distributions..." },
"syntactic_features": { "...sentence length, clause complexity..." },
"structural_features": { "...greeting/sign-off conventions..." },
"corpus_size": "integer, samples used to compute this version"
}Produced by Negotiation Intelligence Algorithms.
{
"thread_id": "string",
"leverage_score": "0-100",
"leverage_factors": [{ "factor": "string", "contribution": "signed number" }],
"pricing_recommendation": { "suggested": "number", "range": ["low", "high"], "basis": "string" },
"scarcity_signal": "string | null — must reference real evidence if present"
}Produced by the Energy Shield, combining Decision Fatigue Model output.
{
"capacity_score": "0-100",
"contributing_factors": { "hrv_trend": "...", "sleep_quality": "...", "decision_fatigue": "..." },
"computed_at": "ISO 8601 UTC"
}Produced by Persona Mirror Drafting, after mask selection (Persona Contextual Masks).
{
"message_id": "string",
"mask_applied": "string — see Persona Contextual Masks catalog",
"draft_text": "string",
"style_consistency_score": "0-1",
"status": "pending_review | approved | edited | rejected"
}All schemas are versioned. A breaking change to any schema requires a version bump and a documented migration path — components should never silently assume a schema shape has stayed constant across a deployment upgrade. See Prompt Specification Standard for the equivalent versioning policy on prompts.
A reference architecture for emotionally-aware business automation.
Designed and maintained by Ciprian Ștefan Pleșca (Stefano D'Angelo) · LocalPulse Research
Home · Architecture · Design Philosophy · Five Pillars · Roadmap · Glossary & FAQ
"Sentinel does not lie." — engineering constraint, not just intention. See Design Philosophy for how this principle is enforced architecturally rather than merely stated.
Repository: github.com/Ciprian-LocalPulse/the-sentinel-protocol · License: MIT · © 2026 Ciprian Ștefan Pleșca