Explore why reality unfolded this way.
Worldline is a causal reality exploration platform for researching how a situation formed, which actors shaped it, what alternative worlds were plausible, and how the current reality is shifting over time.
This repository contains the full-stack Worldline application:
FastAPIbackend for analysis, orchestration, and SSE streamingReact + Vitefrontend for search, workspace exploration, simulation replay, and Reality MemoryEmpathy Engineas the internal actor-cognition subsystem inside Worldline
Worldline is designed to move from:
query -> analysis -> simulation
into:
topic -> memory -> comparison -> evolution -> investigation
Current product capabilities include:
- search-first issue analysis
- multi-source context scraping and grounding
- causal actor network generation
- real-time SSE streaming for analysis and simulation
- interactive Reality Space and Actor Network views
- simulation replay and mitigation output
- local snapshot save, reopen, compare, and export
- Reality Memory with topic grouping, timelines, drift history, and topic briefs
Worldline is not a forecasting dashboard and not a generic chatbot.
It is a causal reasoning workspace that helps answer:
- Why did reality unfold this way?
- Which actors mattered most?
- What changed between one understanding state and another?
- How has this topic evolved over time?
- What is the latest state compared with the first known state?
The user starts with a query.
Worldline:
- gathers public signals
- verifies facts
- builds an initial world model
- proposes scenario directions
The user moves through:
OverviewReality SpaceActor NetworkEvidenceSimulation
The user can:
- save a local snapshot
- reopen a previous state without rerunning analysis
- compare two snapshots
- export comparison Markdown
Worldline groups snapshots into topic memory so users can inspect:
- topic history
- drift progression
- change milestones
- first vs latest state
- topic-level memory briefs
graph TD
User["User Query"] --> Analyze["/api/analyze-context"]
Analyze --> Scrape["Multi-source scraping"]
Analyze --> Verify["Fact grounding"]
Analyze --> World["World state construction"]
World --> UI["React workspace"]
UI --> Debate["/api/run-debate"]
Debate --> Stream["Round-by-round SSE stream"]
Stream --> Memory["Snapshots, compare, Reality Memory"]
- Backend:
Python,FastAPI,LiteLLM,CrewAI,SQLite,ChromaDB - Frontend:
React,Vite,Tailwind CSS,D3.js - Transport:
Server-Sent Events (SSE)
repo_github/
├─ api.py
├─ core/
├─ frontend/
├─ docs/
├─ tests/
├─ start_dev.py
└─ README.md
From this repository root:
py .\start_dev.pyThis starts:
- backend at
http://localhost:8000 - frontend at
http://localhost:5173
pip install -r requirements.txt
python api.pycd frontend
npm install
npm run devBackend regression suite:
py tests/test_blackbox.pyFrontend checks:
cd frontend
npm run lint
npm run buildThe UI direction is:
- light
- minimal
- modern
- research-oriented
Reality Memory is intended to feel like a living research history rather than a storage drawer.
- SSE formatting in
/api/run-debatemust remain stable. - Snapshot and memory flows are local-first and browser-based.
- The canvas interaction layer and graph exploration flows should be preserved carefully during frontend work.
- Worldline is the product name.
Empathy Engineis the subsystem name for actor cognition.
docs/WORLDLINE_ARCHITECTURE_V1.mddocs/WORLDLINE_CORE_V2.mddocs/WORLDLINE_V2_STATUS.mddocs/WORLDLINE_V3_BUILD_PLAN.mddocs/WORLDLINE_V3_FOUNDER_BRIEF.md
The current system already supports:
- Worldline workspace
- snapshot memory
- comparison flow
- topic memory
- memory storytelling
- memory landing dashboard
Worldline is now positioned as a memory-aware causal reality research product, with future roadmap room for alignment, validation, and continuous reality tracking.