⌬ Execution Architecture

Deterministic Intelligence Layer — Governance Pipeline & Component Boundaries

Interactive Diagram pan / zoom
SVG
USER BOUNDARY Admin UI localhost:5000 index.html User Panel /user-panel worker-facing JWT Auth HS256 · 24h expiry Roles: admin · domain_owner auditor · compliance · user SECURITY LAYER UnifiedSemanticEngine (USE) 6-layer manipulation detection block_threshold=0.35 · critical_floor=0.56 skip_manipulation=True for AI output DriftAligner hard block · soft nudge · pass TRCP-Phi κ · Dempster-Shafer DS session_health < 0.25 → drift_warning TRVC: graph · semantic · temporal vote Cross-Domain Enforcement data_category classifier (11 categories) domain_access_rules lookup default deny for sensitive domains RulesEngine DSL conditions: CONTAINS · MATCHES · IN actions: FLAG · REDACT · REFUSE · BLOCK fires on /api/query (canonical engine) active rules: PII · Injection · Malware Credential · Hallucination · Sanction GOVERNANCE PIPELINE TRCP-Phi κ Scoring Lane-A: Shannon entropy Lane-B: contradiction · Lane-C: overlap TRVC Consensus Vote graph(goal_overlap) · semantic(κ belief) temporal(1−USE) · NO_CONSENSUS → Chronicle Session Manager per-session memory · kappa baseline {id}_full_memory.json · resumeSession() Context Injection Tier1: session docs · Tier2: project · Tier3: CKG signal-gated · 2000-char budget KNOWLEDGE LAYER Ontology Layer 20 rules · EntityType · RelationType validate_triple() · get_allowed_relations() Main CKG global org knowledge · instance: default CompanyKnowledgeGraph · SYGON embeddings Domain CKGs per-domain knowledge instances Engineering Finance + custom domains Domain Registry domain_registry.db · access rules ALLOW/DENY per domain pair Tau Reasoning Engine policy violations · uncontrolled risks compliance gaps · dependency chains graph path traversal · ReasoningPath → /api/v1/ckg/reason CHRONOS: causal · temporal · counterfactual CKG Context Injection entities + answer → system prompt AI PROVIDER BOUNDARY Anthropic Mistral Cohere Gemini Intellect-3 Non-US providers preferred · keys in .env AUDIT BOUNDARY Aelthered Mirror per-user immutable ledger ED25519 signatures hash-chained · tamper-evident seals: flags · soft nudges · sessions Aelthered Chronicles aelthered.db · 8 event categories SHA-256 chain · background watchdog key rotation · tamper response EU AI Act compliant Compliance Engine 44 controls mapped GDPR · HIPAA · SOC2 · ISO27001 EU AI Act · auto-assess 24h GDPR erasure · 90-day retention SYGON Engine prominence · coherence · drift_stability territory_density · semantic drift · φ spiral drift alerts · SYGON dashboard AGL: Admissible Grounded Learning · readiness PERSISTENCE BOUNDARY taudil.db users · domains · rules settings · sessions aelthered.db audit chronicles hash chain ckg/*.json graph persistence entities · relations sygon state semantic engine 6 tables domain_registry.db · {id}_full_memory.json msg prompt query inject log events
Execution Flow User Panel Chat
live path
1. Message arrives
POST /api/user-panel/chat
2. USE check
manipulation detect
3. DriftAligner
block / nudge / pass
4. Cross-domain
category check
5. Mirror inject
session context
6. κ nudge check
kappa < 0.3 → nudge
7. Doc injection
Tier1/2/3 · 2000chr
8. CKG inject
entities + answer
9. AI provider
Mistral/Cohere/etc
10. USE (output)
skip_manipulation=T
11. Mirror seal
ED25519 signed
12. κ + TRVC
TRCP-Phi · consensus vote
USE block → 403 + reason Aligner hard block → 200 blocked:true Cross-domain → 200 blocked:true Rules BLOCK → status:BLOCKED Rules REDACT → data replaced TRVC NO_CONSENSUS → Chronicle