| 
1 | 1 | # ***Jellyfish AI Library by Fossil Logic***  | 
2 | 2 | 
 
  | 
3 |  | -Jellyfish is a lightweight, portable AI library written in pure C with no external dependencies, purpose-built for embedded environments and trust-critical systems. Its architecture centers around transparent AI principles, using blockchain-inspired techniques to make all learning, memory, and reasoning fully auditable. Every interaction—input, decision, or output—is recorded as a cryptographically hashed block, creating an immutable, traceable chain of logic that preserves the system’s decision lineage. This enables developers to inspect exactly how and why the system reached a conclusion, down to the model, token, and rule used. The engine supports memory-based reasoning, adaptive learning from prior inputs, and automatic pruning of obsolete or conflicting knowledge, ensuring the system evolves without accumulating contradiction or noise. These features make Jellyfish a foundation for AI systems where verifiability, traceability, and long-term ethical transparency are non-negotiable.  | 
4 |  | - | 
5 |  | -## 🧠 `.jellyfish` File Example  | 
6 |  | - | 
7 |  | -This file defines a **Jellyfish mindset**, mapping named personalities to model chains (`.fish` files):  | 
8 |  | - | 
9 |  | -```ini  | 
10 |  | -model('core_logic') {  | 
11 |  | -  description: 'Fundamental AI reasoning and logic modules'  | 
12 |  | -  tags: ['core', 'logic', 'reasoning']  | 
13 |  | -  models: ['logic.fish', 'nlp.fish', 'ethics.fish']  | 
14 |  | -  priority: 1  | 
15 |  | -  confidence_threshold: 0.75  | 
16 |  | -  activation_condition: 'always'  | 
17 |  | -  source_uri: 'https://fossillogic.ai/models/core_logic'  | 
18 |  | -  origin_device_id: '00:1A:7D:DA:71:13'  | 
19 |  | -  version: '1.0.0'  | 
20 |  | -  content_hash: 'a3f5c7d89b4e1f23a567b9d0c1e2f3456789abcdef0123456789abcdef012345'  | 
21 |  | -  created_at: 1689004800  | 
22 |  | -  updated_at: 1689091200  | 
23 |  | -  trust_score: 0.98  | 
24 |  | -  immutable: 1  | 
25 |  | -  state_machine: 'logic_state_v1'  | 
26 |  | -}  | 
27 |  | - | 
28 |  | -model('persona_trump') {  | 
29 |  | -  description: 'Personality model for Donald Trump simulation'  | 
30 |  | -  tags: ['persona', 'politics', 'simulation']  | 
31 |  | -  models: ['trump_brain.fish', 'debate_logic.fish']  | 
32 |  | -  priority: 5  | 
33 |  | -  confidence_threshold: 0.6  | 
34 |  | -  activation_condition: 'user_request == "trump_mode"'  | 
35 |  | -  source_uri: 'https://fossillogic.ai/models/persona_trump'  | 
36 |  | -  origin_device_id: '00:1B:44:11:3A:B7'  | 
37 |  | -  version: '2.1.4'  | 
38 |  | -  content_hash: 'b1a2c3d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcdef0'  | 
39 |  | -  created_at: 1689000000  | 
40 |  | -  updated_at: 1689050000  | 
41 |  | -  trust_score: 0.85  | 
42 |  | -  immutable: 0  | 
43 |  | -  state_machine: 'persona_v2'  | 
44 |  | -}  | 
45 |  | -```  | 
 | 3 | +Jellyfish is the core engine of Truthful Intelligence, a lightweight AI library written in pure C with no external dependencies. Designed for embedded and trust-critical systems, it records every input, output, and decision as a cryptographically hashed block, forming a fully auditable chain of reasoning. With support for adaptive learning, memory-based inference, and automatic pruning, Jellyfish ensures transparent, verifiable AI behavior where every conclusion is traceable to its source.  | 
46 | 4 | 
 
  | 
47 |  | -* `mindset(name)` declares a named personality or capability.  | 
48 |  | -* `models` list refers to one or more `.fish` model files.  | 
49 |  | -* Optional attributes like `tags`, `priority`, and `activation_condition` allow selective and conditional loading.  | 
50 |  | - | 
51 |  | ----  | 
52 |  | - | 
53 |  | -## 🧠 `.fish` File Example  | 
54 |  | - | 
55 |  | -A `.fish` file stores learned associations (called *thought blocks*) in JSON format:  | 
56 |  | - | 
57 |  | -```json  | 
58 |  | -{  | 
59 |  | -  "signature": "JFS1",  | 
60 |  | -  "blocks": [  | 
61 |  | -    {  | 
62 |  | -      "input": "fire",  | 
63 |  | -      "output": "hot",  | 
64 |  | -      "hash": "b1946ac92492d2347c6235b4d2611184",  | 
65 |  | -      "timestamp": 1620000000,  | 
66 |  | -      "delta_ms": 0,  | 
67 |  | -      "duration_ms": 12,  | 
68 |  | -      "valid": 1,  | 
69 |  | -      "confidence": 0.98,  | 
70 |  | -      "usage_count": 5,  | 
71 |  | -      "device_id": "a1b2c3d4e5f6a7b8",  | 
72 |  | -      "signature": "00112233445566778899aabbccddeeff"  | 
73 |  | -    },  | 
74 |  | -    {  | 
75 |  | -      "input": "ice",  | 
76 |  | -      "output": "cold",  | 
77 |  | -      "hash": "e4da3b7fbbce2345d7772b0674a318d5",  | 
78 |  | -      "timestamp": 1620001000,  | 
79 |  | -      "delta_ms": 1000,  | 
80 |  | -      "duration_ms": 10,  | 
81 |  | -      "valid": 1,  | 
82 |  | -      "confidence": 0.95,  | 
83 |  | -      "usage_count": 3,  | 
84 |  | -      "device_id": "a1b2c3d4e5f6a7b8",  | 
85 |  | -      "signature": "00112233445566778899aabbccddeeff"  | 
86 |  | -    },  | 
87 |  | -    {  | 
88 |  | -      "input": "wind",  | 
89 |  | -      "output": "fast",  | 
90 |  | -      "hash": "1679091c5a880faf6fb5e6087eb1b2dc",  | 
91 |  | -      "timestamp": 1620002000,  | 
92 |  | -      "delta_ms": 1000,  | 
93 |  | -      "duration_ms": 8,  | 
94 |  | -      "valid": 1,  | 
95 |  | -      "confidence": 0.92,  | 
96 |  | -      "usage_count": 2,  | 
97 |  | -      "device_id": "a1b2c3d4e5f6a7b8",  | 
98 |  | -      "signature": "00112233445566778899aabbccddeeff"  | 
99 |  | -    }  | 
100 |  | -  ]  | 
101 |  | -}  | 
102 |  | -```  | 
 | 5 | +### Key Features  | 
 | 6 | + | 
 | 7 | +- **Cross-Platform**    | 
 | 8 | +  Runs reliably on Windows, macOS, Linux, and embedded systems.  | 
 | 9 | + | 
 | 10 | +- **Zero Dependencies**    | 
 | 11 | +  Written entirely in pure C for maximum portability, auditability, and minimal footprint.  | 
 | 12 | + | 
 | 13 | +- **Blockchain-Inspired Memory**    | 
 | 14 | +  Every input, output, and decision is stored as a cryptographically hashed block, creating a tamper-resistant, traceable chain of logic.  | 
103 | 15 | 
 
  | 
104 |  | -* `signature`: Identifies the file format version (`JFS1`).  | 
105 |  | -* Each `block` represents a learned input → output association, optionally timestamped for ordering or pruning.  | 
 | 16 | +- **Self-Pruning Engine**    | 
 | 17 | +  Automatically removes obsolete or conflicting data, preserving clarity and consistency over time.  | 
106 | 18 | 
 
  | 
107 |  | -## Key Features  | 
 | 19 | +- **Fully Auditable Reasoning**    | 
 | 20 | +  Supports forensic-level inspection of every decision, enabling ethical and transparent AI behavior.  | 
108 | 21 | 
 
  | 
109 |  | -- **Cross-Platform**: Runs consistently on Windows, macOS, and Linux.  | 
110 |  | -- **No External Dependencies**: Written in pure C for maximum portability and minimal footprint.  | 
111 |  | -- **Blockchain-Inspired Memory**: Stores each interaction as a cryptographically hashed block, forming a tamper-resistant chain for transparent and verifiable learning.  | 
112 |  | -- **Self-Pruning**: Automatically removes outdated or irrelevant data to maintain efficiency.  | 
113 |  | -- **Traceable Reasoning**: Every decision and memory is auditable, supporting trust-critical applications.  | 
114 |  | -- **Configurable and Modular**: Easily tailored for embedded, desktop, or custom AI projects.  | 
 | 22 | +- **Modular and Configurable**    | 
 | 23 | +  Built to be embedded, extended, or customized for Truthful Intelligence applications across any platform.  | 
115 | 24 | 
 
  | 
116 | 25 | ## Prerequisites  | 
117 | 26 | 
 
  | 
@@ -139,7 +48,7 @@ To get started with Jellyfish, ensure you have the following installed:  | 
139 | 48 |    # ======================  | 
140 | 49 |    [wrap-git]  | 
141 | 50 |    url = https://github.com/fossillogic/fossil-jellyfish.git  | 
142 |  | -   revision = v0.1.1  | 
 | 51 | +   revision = v0.1.2  | 
143 | 52 | 
 
  | 
144 | 53 |    [provide]  | 
145 | 54 |    fossil-jellyfish = fossil_fish_dep  | 
 | 
0 commit comments