Future Thinking Engine (KYTREX) — LLM Constraint Graphs for Scenario Planning
ACTIVE
▸ core_thesis.log
CORE_THESIS
The solution: separate generation from validation. The LLM proposes, the system enforces physics.
LLM = PROPOSAL GENERATOR
SYSTEM = PHYSICS ENFORCER
▸ failure_modes.sys
FAILURE_MODES
[FM-001]COMBINATORIAL EXPLOSION
PROBLEM:
KYTREX:
[FM-002]GRANULARITY MISMATCH
PROBLEM:
KYTREX:
[FM-003]CYCLIC PARADOXES
PROBLEM:
KYTREX:
[FM-004]JSON STRUCTURAL BREAKS
PROBLEM:
KYTREX:
▸ ontology_map.sys
ONTOLOGY_MAP
BRIDGING_RULE
✗ INVALID
✓ VALID
●
MACRO_TREND
●
INDUSTRY_SHIFT
●
BUSINESS_MODEL
●
PRODUCT_FEATURE
●
EVENT
●
POLICY
▸CAUSES
▸ENABLES
▸CONSTRAINS
▸SUBSTITUTES
▸AMPLIFIES
▸CONTRADICTS
▸REQUIRES
▸ graph_explorer.svg
GRAPH_EXPLORER
▸ constraint_validator.ts
CONSTRAINT_VALIDATOR
INPUT
ONT✗
CYC✗
REF✗
OUTPUT
SAMPLE_LLM_OUTPUT
x1macro-trendx2product-featurex3event
x1 → x2enables
x2 → x3causes
x3 → x1amplifies
x2 → x99requires
STEP 1: ONTOLOGY CHECKFAIL
✗ Violation found: macro-trend → product-feature skips a layer — bridge via industry-shift required
↳REPAIR: Insert bridge node (industry-shift) between x1 and x2
✗ Violation found: product-feature → event is not an allowed transition
↳REPAIR: Remove illegal edge x2 → x3
STEP 2: CYCLE DETECTIONFAIL
✗ Violation found: Cycle detected — x3 → x1 closes a loop (x1 → x2 → x3 → x1)
↳REPAIR: Remove edge x3 → x1 to break the cycle
STEP 3: REFERENTIAL INTEGRITYFAIL
✗ Violation found: Node x99 does not exist in the graph
↳REPAIR: Remove edge x2 → x99 (dangling reference to x99)
4 violations → 4 repairs
✗
▸ process_flow.dat
PROCESS_FLOW
┌─────────────────┐
│ USER INPUT │
│ (scenario) │
└────────┬────────┘
│
▼
┌─────────────────┐
│ LLM GENERATOR │
│ ══════════════ │
│ Propose Nodes │
│ Propose Edges │
│ Suggest Types │
└────────┬────────┘
│
▼
┌─────────────────┐
│ CONSTRAINT │
│ VALIDATOR │
│ ══════════════ │
│ Ontology Check │
│ Cycle Detect │
│ Ref Integrity │
└────────┬────────┘
│
┌────┴────┐
▼ ▼
┌────────┐ ┌────────┐
│ GRAPH │ │SCENARIO│
│ STATE │ │ OUTPUT │
└────────┘ └────────┘