the-project-who 4.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. the_project_who-4.5.0/LICENSE +21 -0
  2. the_project_who-4.5.0/PKG-INFO +327 -0
  3. the_project_who-4.5.0/README.md +289 -0
  4. the_project_who-4.5.0/pyproject.toml +54 -0
  5. the_project_who-4.5.0/setup.cfg +4 -0
  6. the_project_who-4.5.0/src/__init__.py +7 -0
  7. the_project_who-4.5.0/src/cli.py +987 -0
  8. the_project_who-4.5.0/src/config.py +190 -0
  9. the_project_who-4.5.0/src/engine/__init__.py +25 -0
  10. the_project_who-4.5.0/src/engine/arena.py +267 -0
  11. the_project_who-4.5.0/src/engine/composer.py +89 -0
  12. the_project_who-4.5.0/src/engine/evaluator.py +135 -0
  13. the_project_who-4.5.0/src/engine/explainability_engine.py +185 -0
  14. the_project_who-4.5.0/src/engine/oracle.py +82 -0
  15. the_project_who-4.5.0/src/engine/psych_insights.py +256 -0
  16. the_project_who-4.5.0/src/engine/simulator.py +80 -0
  17. the_project_who-4.5.0/src/engine/twin_chat.py +111 -0
  18. the_project_who-4.5.0/src/harvest/__init__.py +30 -0
  19. the_project_who-4.5.0/src/harvest/academic_harvester.py +139 -0
  20. the_project_who-4.5.0/src/harvest/cyber_footprint.py +229 -0
  21. the_project_who-4.5.0/src/harvest/dialogue_harvester.py +215 -0
  22. the_project_who-4.5.0/src/harvest/diarized_transcriber.py +128 -0
  23. the_project_who-4.5.0/src/harvest/document_ingestor.py +160 -0
  24. the_project_who-4.5.0/src/harvest/live_monitor.py +238 -0
  25. the_project_who-4.5.0/src/harvest/media_harvester.py +87 -0
  26. the_project_who-4.5.0/src/harvest/ocr_processor.py +116 -0
  27. the_project_who-4.5.0/src/harvest/social_osint.py +315 -0
  28. the_project_who-4.5.0/src/harvest/visual_harvester.py +82 -0
  29. the_project_who-4.5.0/src/harvest/web_harvester.py +132 -0
  30. the_project_who-4.5.0/src/learn/__init__.py +22 -0
  31. the_project_who-4.5.0/src/learn/academic_researcher.py +18 -0
  32. the_project_who-4.5.0/src/learn/autonomous_researcher.py +967 -0
  33. the_project_who-4.5.0/src/learn/chronomics.py +327 -0
  34. the_project_who-4.5.0/src/learn/feature_extractor.py +263 -0
  35. the_project_who-4.5.0/src/learn/prompt_optimizer.py +107 -0
  36. the_project_who-4.5.0/src/learn/skill_synthesizer.py +99 -0
  37. the_project_who-4.5.0/src/learn/topic_mapper.py +203 -0
  38. the_project_who-4.5.0/src/providers/__init__.py +19 -0
  39. the_project_who-4.5.0/src/providers/anthropic_provider.py +80 -0
  40. the_project_who-4.5.0/src/providers/base.py +55 -0
  41. the_project_who-4.5.0/src/providers/gemini_provider.py +194 -0
  42. the_project_who-4.5.0/src/providers/manager.py +192 -0
  43. the_project_who-4.5.0/src/providers/offline_provider.py +147 -0
  44. the_project_who-4.5.0/src/providers/openai_provider.py +162 -0
  45. the_project_who-4.5.0/src/utils/__init__.py +16 -0
  46. the_project_who-4.5.0/src/utils/entity_validator.py +95 -0
  47. the_project_who-4.5.0/src/utils/logger.py +92 -0
  48. the_project_who-4.5.0/src/utils/text_cleaner.py +206 -0
  49. the_project_who-4.5.0/src/vault/__init__.py +21 -0
  50. the_project_who-4.5.0/src/vault/graph_analytics.py +253 -0
  51. the_project_who-4.5.0/src/vault/graph_builder.py +261 -0
  52. the_project_who-4.5.0/src/vault/graph_store.py +209 -0
  53. the_project_who-4.5.0/src/vault/mindset_profiler.py +370 -0
  54. the_project_who-4.5.0/src/vault/social_graph.py +298 -0
  55. the_project_who-4.5.0/src/vault/vector_embedder.py +192 -0
  56. the_project_who-4.5.0/src/who_learn/__init__.py +20 -0
  57. the_project_who-4.5.0/src/who_learn/autonomous_researcher.py +17 -0
  58. the_project_who-4.5.0/tests/test_academic_agent.py +172 -0
  59. the_project_who-4.5.0/tests/test_cli.py +84 -0
  60. the_project_who-4.5.0/tests/test_engine.py +93 -0
  61. the_project_who-4.5.0/tests/test_entity_validator.py +51 -0
  62. the_project_who-4.5.0/tests/test_harvest.py +136 -0
  63. the_project_who-4.5.0/tests/test_innovations.py +214 -0
  64. the_project_who-4.5.0/tests/test_innovations_v2.py +91 -0
  65. the_project_who-4.5.0/tests/test_learn.py +93 -0
  66. the_project_who-4.5.0/tests/test_osint_v2.py +108 -0
  67. the_project_who-4.5.0/tests/test_vault.py +118 -0
  68. the_project_who-4.5.0/the_project_who.egg-info/PKG-INFO +327 -0
  69. the_project_who-4.5.0/the_project_who.egg-info/SOURCES.txt +71 -0
  70. the_project_who-4.5.0/the_project_who.egg-info/dependency_links.txt +1 -0
  71. the_project_who-4.5.0/the_project_who.egg-info/entry_points.txt +2 -0
  72. the_project_who-4.5.0/the_project_who.egg-info/requires.txt +29 -0
  73. the_project_who-4.5.0/the_project_who.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mucteba Özdemir (tilkiii)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,327 @@
1
+ Metadata-Version: 2.4
2
+ Name: the-project-who
3
+ Version: 4.5.0
4
+ Summary: Evidence-Based Cognitive Digital Twin & Behavioral Modeling Framework with Multimodal OSINT, Neo4j Graph Intelligence & ElizaOS Character Synthesis
5
+ Author: who?? core research team
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: typer>=0.12.0
11
+ Requires-Dist: rich>=13.0.0
12
+ Requires-Dist: pydantic>=2.6.0
13
+ Requires-Dist: python-dotenv>=1.0.0
14
+ Requires-Dist: httpx>=0.27.0
15
+ Requires-Dist: requests>=2.31.0
16
+ Requires-Dist: neo4j>=5.18.0
17
+ Requires-Dist: litellm>=1.35.0
18
+ Provides-Extra: ml
19
+ Requires-Dist: docling>=2.0.0; extra == "ml"
20
+ Requires-Dist: paddleocr>=2.7.0; extra == "ml"
21
+ Requires-Dist: whisperx>=3.1.0; extra == "ml"
22
+ Requires-Dist: bertopic>=0.16.0; extra == "ml"
23
+ Requires-Dist: dspy-ai>=2.4.0; extra == "ml"
24
+ Requires-Dist: chromadb>=0.4.24; extra == "ml"
25
+ Requires-Dist: networkx>=3.2.0; extra == "ml"
26
+ Requires-Dist: scikit-learn>=1.4.0; extra == "ml"
27
+ Requires-Dist: sentence-transformers>=2.5.0; extra == "ml"
28
+ Requires-Dist: yt-dlp>=2024.3.10; extra == "ml"
29
+ Requires-Dist: crawl4ai>=0.3.0; extra == "ml"
30
+ Requires-Dist: scholarly>=1.7.0; extra == "ml"
31
+ Requires-Dist: feedparser>=6.0.10; extra == "ml"
32
+ Provides-Extra: dev
33
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
34
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
35
+ Requires-Dist: black>=24.2.0; extra == "dev"
36
+ Requires-Dist: ruff>=0.3.0; extra == "dev"
37
+ Dynamic: license-file
38
+
39
+ <div align="center">
40
+
41
+ <img src="assets/who_banner.svg" alt="who?? Banner" width="100%"/>
42
+
43
+ <p align="center">
44
+ <strong>Evidence-Based Cognitive Digital Twin &amp; Behavioral Modeling Framework<br/>Powered by Multimodal Evidence Harvesting, Neo4j Graph Intelligence &amp; ElizaOS Synthesis</strong>
45
+ </p>
46
+
47
+ <p align="center">
48
+ <a href="pyproject.toml"><img src="https://img.shields.io/badge/version-4.5.0-blue.svg?style=for-the-badge" alt="Version 4.0.0"/></a>
49
+ <a href="https://python.org"><img src="https://img.shields.io/badge/python-3.10+-3776AB.svg?style=for-the-badge&logo=python&logoColor=white" alt="Python 3.10+"/></a>
50
+ <a href="tests/"><img src="https://img.shields.io/badge/tests-39%20passed-22c55e.svg?style=for-the-badge&logo=pytest&logoColor=white" alt="Tests"/></a>
51
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-eab308.svg?style=for-the-badge" alt="License MIT"/></a>
52
+ <a href="https://d3js.org"><img src="https://img.shields.io/badge/D3.js-Interactive%20Graph-F9A03C.svg?style=for-the-badge&logo=d3.js&logoColor=white" alt="D3.js"/></a>
53
+ <a href="https://neo4j.com"><img src="https://img.shields.io/badge/Neo4j-Graph%20Data%20Science-008CC1.svg?style=for-the-badge&logo=neo4j&logoColor=white" alt="Neo4j GDS"/></a>
54
+ <a href="https://trychroma.com"><img src="https://img.shields.io/badge/ChromaDB-Vector%20Memory-f97316.svg?style=for-the-badge" alt="ChromaDB"/></a>
55
+ <a href="https://maartengr.github.io/BERTopic/"><img src="https://img.shields.io/badge/BERTopic-Evolution-a855f7.svg?style=for-the-badge" alt="BERTopic"/></a>
56
+ <a href="https://elizaos.github.io/eliza/"><img src="https://img.shields.io/badge/ElizaOS-Standard-06b6d4.svg?style=for-the-badge" alt="ElizaOS"/></a>
57
+ </p>
58
+
59
+ <p align="center">
60
+ <a href="#quickstart">Quickstart</a> •
61
+ <a href="#core-architecture">Architecture</a> •
62
+ <a href="#7-layer-memory-architecture">7-Layer Memory</a> •
63
+ <a href="#scientific-rigor--epistemology">Scientific Rigor</a> •
64
+ <a href="#cli-command-reference">CLI Reference</a> •
65
+ <a href="#ecosystem--acknowledgements">Acknowledgements</a> •
66
+ <a href="#license">License</a>
67
+ </p>
68
+
69
+ ---
70
+
71
+ </div>
72
+
73
+ ## Overview
74
+
75
+ **`who??`** is a research-grade, target-agnostic open-source framework designed to construct **high-fidelity cognitive digital twins and evidence-based behavioral models** of **ANY** individual.
76
+
77
+ Instead of generic chatbot personas or hallucinated roleplay, `who??` builds an empirical replica grounded in a person's real-world footprint—their speech cadence, cognitive patterns, core philosophies, decision habits, and published discourse.
78
+
79
+ It adheres strictly to **epistemic honesty, probabilistic reasoning, and explicit uncertainty quantification**. Deterministic claims regarding hidden psychology are scientifically unfounded; instead, `who??` delivers calibrated behavioral forecasts with citation traces back to primary quotes and knowledge graph paths.
80
+
81
+ ### 🧠 Core Digital Twin Capabilities
82
+
83
+ 1. **High-Fidelity Cognitive Digital Twins (`who chat`):**
84
+ Synthesizes ElizaOS-standard `character.json` and deep mindset summaries. Supports dynamic tone toggling between formal keynote speeches and informal 1-on-1 dialogic registers.
85
+
86
+ 2. **Plausible Reaction & Scenario Simulation (`who simulate`, `who compose`):**
87
+ Simulates how the target would react to complex hypothetical dilemmas, counter-proposals, and invitations under explicit scenario assumptions, stress-tested with adversarial rejection models.
88
+
89
+ 3. **Multi-Agent Dialectical Swarm Arena (`who arena`):**
90
+ Pits two distinct cognitive digital twins against each other in structured, multi-turn debates on controversial topics—quantifying consensus convergence and irreconcilable ideological friction.
91
+
92
+ 4. **7-Layer Cognitive Memory Architecture:**
93
+ Integrates raw corpus evidence, ChromaDB semantic embeddings, Neo4j knowledge graphs with Graph Data Science (GDS PageRank & Louvain clusters), psycholinguistic markers (pronoun density, epistemic calibration), and BERTopic trajectory tracking.
94
+
95
+ 5. **Multi-Target Social Network Intelligence & D3.js Force Graphs (`who network`):**
96
+ Consolidates knowledge graphs across multiple individuals to identify shared bridge concepts, betweenness broker nodes, and mutual affiliations in an interactive D3.js force-directed visualizer.
97
+
98
+ 6. **Zero-Hallucination Evidence Grounding (Multimodal Harvester & OSINT):**
99
+ Feeds the digital twin using word-level speaker diarization (`WhisperX`), document hierarchy parsing (`Docling`), OCR (`PaddleOCR`), continuous RSS monitoring (`who monitor`), and multi-platform digital footprint reconnaissance (`who hunt`, `who cyber`) enforced by the **Strict Zero-Substitution Protocol**.
100
+
101
+ ---
102
+
103
+ ## Core Architecture
104
+
105
+ ```mermaid
106
+ flowchart TD
107
+ subgraph Layer1["1. Multimodal Harvester (who_harvest)"]
108
+ A1[Web & RSS Articles\ncrawl4ai / feedparser] --> INGEST[Corpus Normalizer]
109
+ A2[Documents & Slides\nDocling / PaddleOCR] --> INGEST
110
+ A3[Audio & Media\nyt-dlp / whisperX] --> INGEST
111
+ A4[Direct Chat Logs\nWhatsApp / Telegram / Zoom VTT / Email] --> INGEST
112
+ end
113
+
114
+ subgraph Layer2["2. Autonomous Learning (who_learn)"]
115
+ INGEST --> B1[Feature Extractor\nPronoun Ratios & Epistemic Calibration]
116
+ INGEST --> B2[Topic Mapper\nBERTopic Trajectory Evolution]
117
+ B1 & B2 --> B3[Autonomous Academic Researcher\narXiv / PubMed / Semantic Scholar]
118
+ B3 --> B4[Skill Synthesizer\ngenerated_mapping_skill.json]
119
+ B4 --> B5[DSPy Prompt Optimizer\nTuned Signatures & Pipelines]
120
+ end
121
+
122
+ subgraph Layer3["3. Multilayer Vault Store (who_vault)"]
123
+ INGEST --> C1[LightRAG Graph Builder]
124
+ C1 --> C2[(Neo4j Graph Database & GDS)]
125
+ C2 --> C3[Graph Analytics\nPageRank / Centrality / Louvain Clusters]
126
+ INGEST --> C4[(ChromaDB Vector Store\nMetadata Enriched Chunks)]
127
+ C3 & C4 & B4 --> C5[Cognitive Mindset Profiler\nElizaOS character.json & mindset_summary.md]
128
+ end
129
+
130
+ subgraph Layer4["4. Interactive Engine (who_engine)"]
131
+ C2 & C4 & C5 --> D1[Oracle Q&A Engine\nEvidence-Grounded]
132
+ C5 --> D2[Scenario Simulator\nProbabilistic Reactions]
133
+ C5 --> D3[Adversarial Composer\nRejection-Tested Outreach]
134
+ B3 & C5 --> D4[Psychological Insights\nAcademic DOI Citations]
135
+ C2 & C4 --> D5[Explainability Engine\nGraph Trace & Quote Calibration]
136
+ C5 --> D6[Profile Evaluator\nConsistency & Hallucination Rate]
137
+ C5 --> D7[Digital Twin Chat\nFormal Keynote vs Informal 1-on-1]
138
+ end
139
+ ```
140
+
141
+ ---
142
+
143
+ ## 7-Layer Memory Architecture
144
+
145
+ | Layer | Memory Layer Name | Technologies | Description |
146
+ | :---: | :--- | :--- | :--- |
147
+ | **1** | **Raw Corpus Memory** | Markdown, UTF-8 Normalizer | Raw diarized transcripts, scraped articles, Docling parsed trees, and dialogue context-response pairs. |
148
+ | **2** | **Semantic Embedding Memory** | ChromaDB, LiteLLM | Overlapping text chunks enriched with metadata tags (`source_type`, `visibility`, `speaker`). |
149
+ | **3** | **Knowledge Graph Memory** | Neo4j, Cypher, GDS, NetworkX | Persistent entity-concept graph featuring node versioning and primary quote evidence. |
150
+ | **4** | **Behavioral Signal Memory** | Statistical Lexical Parsers | Pronoun density ($I$ vs $we$ ratios), epistemic calibration ratio, and lexical diversity (TTR). |
151
+ | **5** | **Topic Evolution Memory** | BERTopic, TF-IDF Modeling | Temporal trajectory tracking classifying themes into emerging, persistent core, and abandoned topics. |
152
+ | **6** | **Cognitive Summary Memory** | ElizaOS Schema, Markdown | Synthesized `character.json`, `mindset_summary.md`, and evidence audit reports. |
153
+ | **7** | **Character Simulation Memory** | Dialogue State Tracking | Multi-turn contextual chat history supporting formal keynote vs informal 1-on-1 registers. |
154
+
155
+ ---
156
+
157
+ ## Scientific Rigor & Epistemology
158
+
159
+ `who??` enforces strict epistemological boundaries. Psychological and cognitive modeling can only be probabilistic, never deterministic.
160
+
161
+ ### Terminology Mapping Rules
162
+
163
+ | Forbidden Deterministic Phrasing | Enforced Probabilistic Formulation |
164
+ | :--- | :--- |
165
+ | *Determine exactly how the target thinks* | **Infer likely reasoning patterns from observed evidence** |
166
+ | *Exact psychological mapping* | **Evidence-based behavioral modeling** |
167
+ | *Predict future behavior* | **Simulate plausible reactions under explicit assumptions** |
168
+ | *Target definitely will...* | **The target is plausibly inclined to...** |
169
+ | *Proves that the target believes...* | **The data suggests a plausible alignment with...** |
170
+
171
+ ### Mandatory Output Phrasings
172
+ All conclusions generated by `who??` embed:
173
+ - `"Based on observed evidence from [Source X]..."`
174
+ - `"The data suggests a plausible alignment with [Pattern Y]..."`
175
+ - `"Confidence Score: X% (Derived from [N] supporting primary quotes)"`
176
+
177
+ ---
178
+
179
+ ## Quickstart
180
+
181
+ ### 1. Installation
182
+
183
+ #### Via PyPI (Recommended):
184
+ ```bash
185
+ pip install the-project-who
186
+ ```
187
+
188
+ #### From Source (Development):
189
+ ```bash
190
+ git clone https://github.com/tilkiii/the-project-who.git
191
+ cd the-project-who
192
+ pip install -r requirements.txt
193
+ pip install -e . --no-deps
194
+ ```
195
+
196
+ ### 2. Configuration (.env)
197
+ ```bash
198
+ cp .env.example .env
199
+ ```
200
+ `who??` features a multi-provider engine supporting any AI provider (Google Gemini, OpenAI, Claude, Groq, DeepSeek, OpenRouter, Ollama):
201
+ ```ini
202
+ # Google Gemini (Default recommended)
203
+ GEMINI_API_KEY=your_gemini_key_here
204
+
205
+ # Or other providers:
206
+ # OPENAI_API_KEY=your_openai_key
207
+ # ANTHROPIC_API_KEY=your_claude_key
208
+ # GROQ_API_KEY=your_groq_key
209
+ # DEEPSEEK_API_KEY=your_deepseek_key
210
+ ```
211
+
212
+ Verify your active AI provider setup at any time:
213
+ ```bash
214
+ who providers
215
+ ```
216
+ *(If no API keys are supplied, the framework automatically uses its resilient built-in local corpus synthesizer and deterministic epistemic modeling engine.)*
217
+
218
+ ---
219
+
220
+ ## CLI Command Reference
221
+
222
+ All CLI subcommands are available via `who` or `python main.py`:
223
+
224
+ ```bash
225
+ # 1. Harvest target public footprint, articles, PDFs, videos, and chat logs
226
+ who harvest --target "Target Name" --urls "https://example.com/article,https://youtube.com/watch?v=..." --docs-dir "/path/to/docs" --chat-logs "/path/to/chat.vtt"
227
+
228
+ # 2. Learn behavioral markers, model topic trajectories, and synthesize scientific skills
229
+ who learn --target "Target Name"
230
+
231
+ # 3. Inspect topic evolution, emergence, persistence, and abandonment
232
+ who topics --target "Target Name"
233
+
234
+ # 4. Construct Knowledge Graph, execute Neo4j GDS, embed ChromaDB, and synthesize ElizaOS character
235
+ who build-vault --target "Target Name"
236
+
237
+ # 5. Inspect Neo4j GDS PageRank, centrality, and community clusters
238
+ who graph --target "Target Name"
239
+
240
+ # 6. Export the complete Knowledge Graph to JSON
241
+ who graph-export --target "Target Name" --output "graph_export.json"
242
+
243
+ # 7. Audit profile consistency, citation validity, and hallucination rate
244
+ who evaluate-profile --target "Target Name"
245
+
246
+ # 8. Trace any claim back to primary quotes, Neo4j graph paths, and confidence scores
247
+ who explain --target "Target Name" --claim "Target rejects centralized governance"
248
+
249
+ # 9. Generate behavioral reports citing quotes and academic literature DOIs
250
+ who psych-insights --target "Target Name"
251
+
252
+ # 10. Evidence-grounded Q&A backed by Graph + Vector memory
253
+ who ask --target "Target Name" --prompt "What is Target's view on decentralized consensus?"
254
+
255
+ # 11. Simulate plausible reactions and counter-moves under explicit assumptions
256
+ who simulate --target "Target Name" --scenario "A consortium asks Target to endorse a closed-source protocol"
257
+
258
+ # 12. Compose hyper-tailored outreach letters with adversarial rejection stress-testing
259
+ who compose --target "Target Name" --goal "Invite Target to keynote on open consensus"
260
+
261
+ # 13. Interactive digital twin chat with formal/informal tone toggling
262
+ who chat --target "Target Name" --mode formal
263
+
264
+ # 14. Audit and inspect active and configured AI providers
265
+ who providers
266
+
267
+ # 15. Hunt username across 18+ major social platforms & ingest dossier
268
+ who hunt --target "Target Name" --username "handle"
269
+
270
+ # 16. Audit email address for DNS validity, burner status, passive profiles & breach exposure
271
+ who cyber --target "Target Name" --email "target@domain.com"
272
+
273
+ # 17. Build multi-target social network graph & generate interactive D3.js HTML visualization
274
+ who network --targets "Target A, Target B" --export-html
275
+
276
+ # 18. Monitor live feeds for anomalous updates or breaking statements
277
+ who monitor --target "Target Name" --feed-urls "https://example.com/rss"
278
+
279
+ # 19. Run multi-agent dialectical swarm arena debate between digital twins
280
+ who arena --target-a "Target A" --target-b "Target B" --topic "Centralized AI Regulation" --rounds 3
281
+ ```
282
+
283
+ ---
284
+
285
+ ## Ecosystem & Acknowledgements
286
+
287
+ `who??` stands upon the shoulders of remarkable open-source projects. We gratefully acknowledge and credit the following repositories and research teams:
288
+
289
+ | Repository | Project Name | License | Role in `who??` |
290
+ | :--- | :--- | :--- | :--- |
291
+ | [`unclecode/crawl4ai`](https://github.com/unclecode/crawl4ai) | Crawl4AI | Apache 2.0 | High-performance LLM-ready web crawling and markdown extraction |
292
+ | [`DS4SD/docling`](https://github.com/DS4SD/docling) | Docling (IBM) | MIT | Deep structured document parsing for PDFs, DOCX, PPTX, and tables |
293
+ | [`PaddlePaddle/PaddleOCR`](https://github.com/PaddlePaddle/PaddleOCR) | PaddleOCR | Apache 2.0 | Ultra-lightweight structured OCR for slides, scans, and infographics |
294
+ | [`m-bain/whisperX`](https://github.com/m-bain/whisperX) | WhisperX | BSD-2-Clause | High-speed STT with PyAnnote word-level speaker diarization |
295
+ | [`yt-dlp/yt-dlp`](https://github.com/yt-dlp/yt-dlp) | yt-dlp | Unlicense | Universal media and audio extraction across YouTube, podcasts, and Vimeo |
296
+ | [`MaartenGr/BERTopic`](https://github.com/MaartenGr/BERTopic) | BERTopic | MIT | Dynamic topic modeling, temporal evolution, and trajectory tracking |
297
+ | [`stanfordnlp/dspy`](https://github.com/stanfordnlp/dspy) | DSPy (Stanford) | MIT | Programmatic prompt optimization, compilation, and evaluation |
298
+ | [`BerriAI/litellm`](https://github.com/BerriAI/litellm) | LiteLLM | MIT | Unified interface for OpenAI, Anthropic, Gemini, Groq, Ollama, and vLLM |
299
+ | [`neo4j/neo4j`](https://github.com/neo4j/neo4j) | Neo4j & GDS | GPL/Commercial | Persistent enterprise knowledge graph, PageRank, and community detection |
300
+ | [`chroma-core/chroma`](https://github.com/chroma-core/chroma) | ChromaDB | Apache 2.0 | AI-native open-source embedding database for semantic vector retrieval |
301
+ | [`elizaOS/eliza`](https://github.com/elizaOS/eliza) | ElizaOS | MIT | Standardized open-source character specification for autonomous agents |
302
+
303
+ ---
304
+
305
+ ## Automated Test Suite
306
+
307
+ The framework includes a comprehensive test suite across all 4 modules:
308
+ ```bash
309
+ python -m pytest -v
310
+ ```
311
+ ```
312
+ ============================= 39 passed in 45.20s =============================
313
+ ```
314
+
315
+ ---
316
+
317
+ ## Author & Maintainer
318
+
319
+ - **Author:** [Mucteba Özdemir](https://github.com/tilkiii) (`@tilkiii`)
320
+ - **Repository:** [`https://github.com/tilkiii/who`](https://github.com/tilkiii/who)
321
+
322
+ ---
323
+
324
+ ## License
325
+
326
+ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
327
+ Copyright (c) 2026 Mucteba Özdemir (`tilkiii`).
@@ -0,0 +1,289 @@
1
+ <div align="center">
2
+
3
+ <img src="assets/who_banner.svg" alt="who?? Banner" width="100%"/>
4
+
5
+ <p align="center">
6
+ <strong>Evidence-Based Cognitive Digital Twin &amp; Behavioral Modeling Framework<br/>Powered by Multimodal Evidence Harvesting, Neo4j Graph Intelligence &amp; ElizaOS Synthesis</strong>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="pyproject.toml"><img src="https://img.shields.io/badge/version-4.5.0-blue.svg?style=for-the-badge" alt="Version 4.0.0"/></a>
11
+ <a href="https://python.org"><img src="https://img.shields.io/badge/python-3.10+-3776AB.svg?style=for-the-badge&logo=python&logoColor=white" alt="Python 3.10+"/></a>
12
+ <a href="tests/"><img src="https://img.shields.io/badge/tests-39%20passed-22c55e.svg?style=for-the-badge&logo=pytest&logoColor=white" alt="Tests"/></a>
13
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-eab308.svg?style=for-the-badge" alt="License MIT"/></a>
14
+ <a href="https://d3js.org"><img src="https://img.shields.io/badge/D3.js-Interactive%20Graph-F9A03C.svg?style=for-the-badge&logo=d3.js&logoColor=white" alt="D3.js"/></a>
15
+ <a href="https://neo4j.com"><img src="https://img.shields.io/badge/Neo4j-Graph%20Data%20Science-008CC1.svg?style=for-the-badge&logo=neo4j&logoColor=white" alt="Neo4j GDS"/></a>
16
+ <a href="https://trychroma.com"><img src="https://img.shields.io/badge/ChromaDB-Vector%20Memory-f97316.svg?style=for-the-badge" alt="ChromaDB"/></a>
17
+ <a href="https://maartengr.github.io/BERTopic/"><img src="https://img.shields.io/badge/BERTopic-Evolution-a855f7.svg?style=for-the-badge" alt="BERTopic"/></a>
18
+ <a href="https://elizaos.github.io/eliza/"><img src="https://img.shields.io/badge/ElizaOS-Standard-06b6d4.svg?style=for-the-badge" alt="ElizaOS"/></a>
19
+ </p>
20
+
21
+ <p align="center">
22
+ <a href="#quickstart">Quickstart</a> •
23
+ <a href="#core-architecture">Architecture</a> •
24
+ <a href="#7-layer-memory-architecture">7-Layer Memory</a> •
25
+ <a href="#scientific-rigor--epistemology">Scientific Rigor</a> •
26
+ <a href="#cli-command-reference">CLI Reference</a> •
27
+ <a href="#ecosystem--acknowledgements">Acknowledgements</a> •
28
+ <a href="#license">License</a>
29
+ </p>
30
+
31
+ ---
32
+
33
+ </div>
34
+
35
+ ## Overview
36
+
37
+ **`who??`** is a research-grade, target-agnostic open-source framework designed to construct **high-fidelity cognitive digital twins and evidence-based behavioral models** of **ANY** individual.
38
+
39
+ Instead of generic chatbot personas or hallucinated roleplay, `who??` builds an empirical replica grounded in a person's real-world footprint—their speech cadence, cognitive patterns, core philosophies, decision habits, and published discourse.
40
+
41
+ It adheres strictly to **epistemic honesty, probabilistic reasoning, and explicit uncertainty quantification**. Deterministic claims regarding hidden psychology are scientifically unfounded; instead, `who??` delivers calibrated behavioral forecasts with citation traces back to primary quotes and knowledge graph paths.
42
+
43
+ ### 🧠 Core Digital Twin Capabilities
44
+
45
+ 1. **High-Fidelity Cognitive Digital Twins (`who chat`):**
46
+ Synthesizes ElizaOS-standard `character.json` and deep mindset summaries. Supports dynamic tone toggling between formal keynote speeches and informal 1-on-1 dialogic registers.
47
+
48
+ 2. **Plausible Reaction & Scenario Simulation (`who simulate`, `who compose`):**
49
+ Simulates how the target would react to complex hypothetical dilemmas, counter-proposals, and invitations under explicit scenario assumptions, stress-tested with adversarial rejection models.
50
+
51
+ 3. **Multi-Agent Dialectical Swarm Arena (`who arena`):**
52
+ Pits two distinct cognitive digital twins against each other in structured, multi-turn debates on controversial topics—quantifying consensus convergence and irreconcilable ideological friction.
53
+
54
+ 4. **7-Layer Cognitive Memory Architecture:**
55
+ Integrates raw corpus evidence, ChromaDB semantic embeddings, Neo4j knowledge graphs with Graph Data Science (GDS PageRank & Louvain clusters), psycholinguistic markers (pronoun density, epistemic calibration), and BERTopic trajectory tracking.
56
+
57
+ 5. **Multi-Target Social Network Intelligence & D3.js Force Graphs (`who network`):**
58
+ Consolidates knowledge graphs across multiple individuals to identify shared bridge concepts, betweenness broker nodes, and mutual affiliations in an interactive D3.js force-directed visualizer.
59
+
60
+ 6. **Zero-Hallucination Evidence Grounding (Multimodal Harvester & OSINT):**
61
+ Feeds the digital twin using word-level speaker diarization (`WhisperX`), document hierarchy parsing (`Docling`), OCR (`PaddleOCR`), continuous RSS monitoring (`who monitor`), and multi-platform digital footprint reconnaissance (`who hunt`, `who cyber`) enforced by the **Strict Zero-Substitution Protocol**.
62
+
63
+ ---
64
+
65
+ ## Core Architecture
66
+
67
+ ```mermaid
68
+ flowchart TD
69
+ subgraph Layer1["1. Multimodal Harvester (who_harvest)"]
70
+ A1[Web & RSS Articles\ncrawl4ai / feedparser] --> INGEST[Corpus Normalizer]
71
+ A2[Documents & Slides\nDocling / PaddleOCR] --> INGEST
72
+ A3[Audio & Media\nyt-dlp / whisperX] --> INGEST
73
+ A4[Direct Chat Logs\nWhatsApp / Telegram / Zoom VTT / Email] --> INGEST
74
+ end
75
+
76
+ subgraph Layer2["2. Autonomous Learning (who_learn)"]
77
+ INGEST --> B1[Feature Extractor\nPronoun Ratios & Epistemic Calibration]
78
+ INGEST --> B2[Topic Mapper\nBERTopic Trajectory Evolution]
79
+ B1 & B2 --> B3[Autonomous Academic Researcher\narXiv / PubMed / Semantic Scholar]
80
+ B3 --> B4[Skill Synthesizer\ngenerated_mapping_skill.json]
81
+ B4 --> B5[DSPy Prompt Optimizer\nTuned Signatures & Pipelines]
82
+ end
83
+
84
+ subgraph Layer3["3. Multilayer Vault Store (who_vault)"]
85
+ INGEST --> C1[LightRAG Graph Builder]
86
+ C1 --> C2[(Neo4j Graph Database & GDS)]
87
+ C2 --> C3[Graph Analytics\nPageRank / Centrality / Louvain Clusters]
88
+ INGEST --> C4[(ChromaDB Vector Store\nMetadata Enriched Chunks)]
89
+ C3 & C4 & B4 --> C5[Cognitive Mindset Profiler\nElizaOS character.json & mindset_summary.md]
90
+ end
91
+
92
+ subgraph Layer4["4. Interactive Engine (who_engine)"]
93
+ C2 & C4 & C5 --> D1[Oracle Q&A Engine\nEvidence-Grounded]
94
+ C5 --> D2[Scenario Simulator\nProbabilistic Reactions]
95
+ C5 --> D3[Adversarial Composer\nRejection-Tested Outreach]
96
+ B3 & C5 --> D4[Psychological Insights\nAcademic DOI Citations]
97
+ C2 & C4 --> D5[Explainability Engine\nGraph Trace & Quote Calibration]
98
+ C5 --> D6[Profile Evaluator\nConsistency & Hallucination Rate]
99
+ C5 --> D7[Digital Twin Chat\nFormal Keynote vs Informal 1-on-1]
100
+ end
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 7-Layer Memory Architecture
106
+
107
+ | Layer | Memory Layer Name | Technologies | Description |
108
+ | :---: | :--- | :--- | :--- |
109
+ | **1** | **Raw Corpus Memory** | Markdown, UTF-8 Normalizer | Raw diarized transcripts, scraped articles, Docling parsed trees, and dialogue context-response pairs. |
110
+ | **2** | **Semantic Embedding Memory** | ChromaDB, LiteLLM | Overlapping text chunks enriched with metadata tags (`source_type`, `visibility`, `speaker`). |
111
+ | **3** | **Knowledge Graph Memory** | Neo4j, Cypher, GDS, NetworkX | Persistent entity-concept graph featuring node versioning and primary quote evidence. |
112
+ | **4** | **Behavioral Signal Memory** | Statistical Lexical Parsers | Pronoun density ($I$ vs $we$ ratios), epistemic calibration ratio, and lexical diversity (TTR). |
113
+ | **5** | **Topic Evolution Memory** | BERTopic, TF-IDF Modeling | Temporal trajectory tracking classifying themes into emerging, persistent core, and abandoned topics. |
114
+ | **6** | **Cognitive Summary Memory** | ElizaOS Schema, Markdown | Synthesized `character.json`, `mindset_summary.md`, and evidence audit reports. |
115
+ | **7** | **Character Simulation Memory** | Dialogue State Tracking | Multi-turn contextual chat history supporting formal keynote vs informal 1-on-1 registers. |
116
+
117
+ ---
118
+
119
+ ## Scientific Rigor & Epistemology
120
+
121
+ `who??` enforces strict epistemological boundaries. Psychological and cognitive modeling can only be probabilistic, never deterministic.
122
+
123
+ ### Terminology Mapping Rules
124
+
125
+ | Forbidden Deterministic Phrasing | Enforced Probabilistic Formulation |
126
+ | :--- | :--- |
127
+ | *Determine exactly how the target thinks* | **Infer likely reasoning patterns from observed evidence** |
128
+ | *Exact psychological mapping* | **Evidence-based behavioral modeling** |
129
+ | *Predict future behavior* | **Simulate plausible reactions under explicit assumptions** |
130
+ | *Target definitely will...* | **The target is plausibly inclined to...** |
131
+ | *Proves that the target believes...* | **The data suggests a plausible alignment with...** |
132
+
133
+ ### Mandatory Output Phrasings
134
+ All conclusions generated by `who??` embed:
135
+ - `"Based on observed evidence from [Source X]..."`
136
+ - `"The data suggests a plausible alignment with [Pattern Y]..."`
137
+ - `"Confidence Score: X% (Derived from [N] supporting primary quotes)"`
138
+
139
+ ---
140
+
141
+ ## Quickstart
142
+
143
+ ### 1. Installation
144
+
145
+ #### Via PyPI (Recommended):
146
+ ```bash
147
+ pip install the-project-who
148
+ ```
149
+
150
+ #### From Source (Development):
151
+ ```bash
152
+ git clone https://github.com/tilkiii/the-project-who.git
153
+ cd the-project-who
154
+ pip install -r requirements.txt
155
+ pip install -e . --no-deps
156
+ ```
157
+
158
+ ### 2. Configuration (.env)
159
+ ```bash
160
+ cp .env.example .env
161
+ ```
162
+ `who??` features a multi-provider engine supporting any AI provider (Google Gemini, OpenAI, Claude, Groq, DeepSeek, OpenRouter, Ollama):
163
+ ```ini
164
+ # Google Gemini (Default recommended)
165
+ GEMINI_API_KEY=your_gemini_key_here
166
+
167
+ # Or other providers:
168
+ # OPENAI_API_KEY=your_openai_key
169
+ # ANTHROPIC_API_KEY=your_claude_key
170
+ # GROQ_API_KEY=your_groq_key
171
+ # DEEPSEEK_API_KEY=your_deepseek_key
172
+ ```
173
+
174
+ Verify your active AI provider setup at any time:
175
+ ```bash
176
+ who providers
177
+ ```
178
+ *(If no API keys are supplied, the framework automatically uses its resilient built-in local corpus synthesizer and deterministic epistemic modeling engine.)*
179
+
180
+ ---
181
+
182
+ ## CLI Command Reference
183
+
184
+ All CLI subcommands are available via `who` or `python main.py`:
185
+
186
+ ```bash
187
+ # 1. Harvest target public footprint, articles, PDFs, videos, and chat logs
188
+ who harvest --target "Target Name" --urls "https://example.com/article,https://youtube.com/watch?v=..." --docs-dir "/path/to/docs" --chat-logs "/path/to/chat.vtt"
189
+
190
+ # 2. Learn behavioral markers, model topic trajectories, and synthesize scientific skills
191
+ who learn --target "Target Name"
192
+
193
+ # 3. Inspect topic evolution, emergence, persistence, and abandonment
194
+ who topics --target "Target Name"
195
+
196
+ # 4. Construct Knowledge Graph, execute Neo4j GDS, embed ChromaDB, and synthesize ElizaOS character
197
+ who build-vault --target "Target Name"
198
+
199
+ # 5. Inspect Neo4j GDS PageRank, centrality, and community clusters
200
+ who graph --target "Target Name"
201
+
202
+ # 6. Export the complete Knowledge Graph to JSON
203
+ who graph-export --target "Target Name" --output "graph_export.json"
204
+
205
+ # 7. Audit profile consistency, citation validity, and hallucination rate
206
+ who evaluate-profile --target "Target Name"
207
+
208
+ # 8. Trace any claim back to primary quotes, Neo4j graph paths, and confidence scores
209
+ who explain --target "Target Name" --claim "Target rejects centralized governance"
210
+
211
+ # 9. Generate behavioral reports citing quotes and academic literature DOIs
212
+ who psych-insights --target "Target Name"
213
+
214
+ # 10. Evidence-grounded Q&A backed by Graph + Vector memory
215
+ who ask --target "Target Name" --prompt "What is Target's view on decentralized consensus?"
216
+
217
+ # 11. Simulate plausible reactions and counter-moves under explicit assumptions
218
+ who simulate --target "Target Name" --scenario "A consortium asks Target to endorse a closed-source protocol"
219
+
220
+ # 12. Compose hyper-tailored outreach letters with adversarial rejection stress-testing
221
+ who compose --target "Target Name" --goal "Invite Target to keynote on open consensus"
222
+
223
+ # 13. Interactive digital twin chat with formal/informal tone toggling
224
+ who chat --target "Target Name" --mode formal
225
+
226
+ # 14. Audit and inspect active and configured AI providers
227
+ who providers
228
+
229
+ # 15. Hunt username across 18+ major social platforms & ingest dossier
230
+ who hunt --target "Target Name" --username "handle"
231
+
232
+ # 16. Audit email address for DNS validity, burner status, passive profiles & breach exposure
233
+ who cyber --target "Target Name" --email "target@domain.com"
234
+
235
+ # 17. Build multi-target social network graph & generate interactive D3.js HTML visualization
236
+ who network --targets "Target A, Target B" --export-html
237
+
238
+ # 18. Monitor live feeds for anomalous updates or breaking statements
239
+ who monitor --target "Target Name" --feed-urls "https://example.com/rss"
240
+
241
+ # 19. Run multi-agent dialectical swarm arena debate between digital twins
242
+ who arena --target-a "Target A" --target-b "Target B" --topic "Centralized AI Regulation" --rounds 3
243
+ ```
244
+
245
+ ---
246
+
247
+ ## Ecosystem & Acknowledgements
248
+
249
+ `who??` stands upon the shoulders of remarkable open-source projects. We gratefully acknowledge and credit the following repositories and research teams:
250
+
251
+ | Repository | Project Name | License | Role in `who??` |
252
+ | :--- | :--- | :--- | :--- |
253
+ | [`unclecode/crawl4ai`](https://github.com/unclecode/crawl4ai) | Crawl4AI | Apache 2.0 | High-performance LLM-ready web crawling and markdown extraction |
254
+ | [`DS4SD/docling`](https://github.com/DS4SD/docling) | Docling (IBM) | MIT | Deep structured document parsing for PDFs, DOCX, PPTX, and tables |
255
+ | [`PaddlePaddle/PaddleOCR`](https://github.com/PaddlePaddle/PaddleOCR) | PaddleOCR | Apache 2.0 | Ultra-lightweight structured OCR for slides, scans, and infographics |
256
+ | [`m-bain/whisperX`](https://github.com/m-bain/whisperX) | WhisperX | BSD-2-Clause | High-speed STT with PyAnnote word-level speaker diarization |
257
+ | [`yt-dlp/yt-dlp`](https://github.com/yt-dlp/yt-dlp) | yt-dlp | Unlicense | Universal media and audio extraction across YouTube, podcasts, and Vimeo |
258
+ | [`MaartenGr/BERTopic`](https://github.com/MaartenGr/BERTopic) | BERTopic | MIT | Dynamic topic modeling, temporal evolution, and trajectory tracking |
259
+ | [`stanfordnlp/dspy`](https://github.com/stanfordnlp/dspy) | DSPy (Stanford) | MIT | Programmatic prompt optimization, compilation, and evaluation |
260
+ | [`BerriAI/litellm`](https://github.com/BerriAI/litellm) | LiteLLM | MIT | Unified interface for OpenAI, Anthropic, Gemini, Groq, Ollama, and vLLM |
261
+ | [`neo4j/neo4j`](https://github.com/neo4j/neo4j) | Neo4j & GDS | GPL/Commercial | Persistent enterprise knowledge graph, PageRank, and community detection |
262
+ | [`chroma-core/chroma`](https://github.com/chroma-core/chroma) | ChromaDB | Apache 2.0 | AI-native open-source embedding database for semantic vector retrieval |
263
+ | [`elizaOS/eliza`](https://github.com/elizaOS/eliza) | ElizaOS | MIT | Standardized open-source character specification for autonomous agents |
264
+
265
+ ---
266
+
267
+ ## Automated Test Suite
268
+
269
+ The framework includes a comprehensive test suite across all 4 modules:
270
+ ```bash
271
+ python -m pytest -v
272
+ ```
273
+ ```
274
+ ============================= 39 passed in 45.20s =============================
275
+ ```
276
+
277
+ ---
278
+
279
+ ## Author & Maintainer
280
+
281
+ - **Author:** [Mucteba Özdemir](https://github.com/tilkiii) (`@tilkiii`)
282
+ - **Repository:** [`https://github.com/tilkiii/who`](https://github.com/tilkiii/who)
283
+
284
+ ---
285
+
286
+ ## License
287
+
288
+ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
289
+ Copyright (c) 2026 Mucteba Özdemir (`tilkiii`).