Raw Quartz Logo Optimized 150x150

Unified Emotion State Packet (UESP) v1.0.0

Canonical transaction record for emotional reasoning events under HEART governance

What is UESP?

The Unified Emotion State Packet (UESP) is the foundational data structure for all emotional reasoning transactions in HEART-compliant systems. Every time an AI system processes human emotional input, it generates a UESP capturing the complete reasoning chain from input to output.

UESP enables:

  • Auditability — Complete reconstruction of emotional reasoning decisions
  • Accountability — Traceable chain from inference to responsible party
  • Compliance Verification — Real-time Φ score validation
  • Forensic Analysis — Evidence-grade records for legal proceedings

Schema Reference

Code Block (styled):

 
 
$id: https://heartaifoundation.org/schemas/uesp/v1.0.0

Note: This URI serves as the canonical identifier for UESP v1.0.0. JSON Schema validators should reference this URI for compliance verification.

Packet Structure

Every UESP contains five required components:


Component 1: Identification

FieldTypeDescription
uesp_idUUIDUnique identifier for this packet
uesp_versionStringSchema version (e.g., “1.0.0”)
timestampDateTimeISO 8601 generation timestamp
emotion_idStringEmotionID fingerprint linking to audit chain

Component 2: Emotion State

FieldTypeDescription
primary_codeStringEmotional Codex code (e.g., “SHA-002”)
family_codeStringEmotion family (e.g., “FAM-SHA”)
intensityNumber0-1 intensity score
confidenceNumber0-1 classification confidence
blend_statesArrayBlended emotion codes
cultural_contextStringCultural modifier code

Component 3: Reasoning Trace

FieldTypeDescription
input_hashStringSHA-256 hash of input text
processing_stagesArrayMEC components invoked
decision_pathStringHuman-readable reasoning explanation
fallback_invokedBooleanWhether HEI fallback was used

Component 4: Validation

FieldTypeDescription
heart_compliantBooleanOverall compliance status
phi_scoreNumberFET Φ score for this transaction
phi_componentsObjectIndividual R, C, T, A scores
axiom_complianceArrayList of satisfied axioms (A1-A7)
flagsArrayActive warning flags

Component 5: HVC Signature (for certified systems)

FieldTypeDescription
signatureStringEd25519 signature (base64)
signed_atDateTimeSignature timestamp
signed_by_fingerprintStringSHA-256 of signing key

Example UESP

Code Block:

 
 
json
{
  "uesp_id": "550e8400-e29b-41d4-a716-446655440000",
  "uesp_version": "1.0.0",
  "timestamp": "2026-01-13T14:32:00Z",
  "emotion_id": "user321-shame-20260113-a31b2",
  "emotion_state": {
    "primary_code": "SHA-002",
    "family_code": "FAM-SHA",
    "intensity": 0.72,
    "confidence": 0.89,
    "blend_states": ["SHA+FEA"],
    "cultural_context": "US-M-N"
  },
  "reasoning_trace": {
    "input_hash": "e3b0c44298fc1c149afbf4c8996fb924...",
    "processing_stages": ["EIL", "ESIL", "ERIS", "FEC"],
    "decision_path": "Input contains self-critical language patterns consistent with shame family. Blend with fear detected through uncertainty markers.",
    "fallback_invoked": false
  },
  "validation": {
    "heart_compliant": true,
    "phi_score": 0.87,
    "phi_components": {
      "recognition": 0.89,
      "coherence": 0.88,
      "transparency": 0.92,
      "alignment": 0.87
    },
    "axiom_compliance": ["A1", "A2", "A3", "A4", "A5", "A6", "A7"],
    "flags": []
  }
}

Reasoning Trace

Complete auditability of every emotional inference

FieldDescription
input_hashSHA-256 of input enabling verification without storing raw data
processing_stagesOrdered list of stages executed (e.g., EIL → ESIL → ERIS → FEC)
decision_pathHuman-readable summary of reasoning logic
fallback_invokedWhether recovery mechanisms were triggered
fallback_reasonWhy fallback was necessary (low confidence, ambiguous signals)

Example decision path:

“Primary shame detected via self-referential negative language; fear blend from uncertainty markers; JP cultural modifier applied for indirect expression pattern”

Quick Nav

Scroll to Top