@aleph-ai/tinyaleph 1.3.0 → 1.4.1

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.
package/docs/README.md CHANGED
@@ -82,6 +82,7 @@ So too can concepts be:
82
82
  | **Reduction Semantics** | Strong normalization with ⊕ operators |
83
83
  | **Lambda Translation** | τ: Terms → λ-expressions |
84
84
  | **Enochian Vocabulary** | 21-letter alphabet, prime basis, sedenions |
85
+ | **Observer Architecture** | SMF, PRSC, Temporal, Entanglement, Agency, Boundary, Safety layers |
85
86
 
86
87
  ---
87
88
 
@@ -171,6 +172,59 @@ console.log({
171
172
 
172
173
  ---
173
174
 
175
+ ## Observer Architecture
176
+
177
+ The library includes a modular observer architecture for building autonomous AI systems:
178
+
179
+ ```javascript
180
+ const {
181
+ SedenionMemoryField,
182
+ PRSCLayer,
183
+ TemporalLayer,
184
+ EntanglementLayer,
185
+ AgencyLayer,
186
+ BoundaryLayer,
187
+ SafetyLayer
188
+ } = require('@aleph-ai/tinyaleph');
189
+
190
+ // Create observer stack
191
+ const smf = new SedenionMemoryField({ dimension: 16 });
192
+ const prsc = new PRSCLayer();
193
+ const temporal = new TemporalLayer();
194
+
195
+ // Process input through the stack
196
+ smf.absorb([0.5, 0.3, 0.2]); // Encode semantic input
197
+ prsc.tick(0.01, smf); // Run oscillator dynamics
198
+ temporal.recordMoment({ smf: smf.state, coherence: prsc.coherence });
199
+
200
+ console.log('Coherence:', prsc.coherence);
201
+ console.log('Entropy:', smf.entropy());
202
+ ```
203
+
204
+ ### Architecture Layers
205
+
206
+ | Layer | Purpose | Key Classes |
207
+ |-------|---------|-------------|
208
+ | **SMF** | 16D semantic state space | `SedenionMemoryField`, `SMF_AXES`, `SMF_CODEBOOK` |
209
+ | **PRSC** | Prime resonance oscillators | `PRSCLayer`, `PrimeOscillator`, `EntanglementDetector` |
210
+ | **Temporal** | Time-aware pattern storage | `TemporalLayer`, `Moment`, `TemporalPatternDetector` |
211
+ | **Entanglement** | Concept binding | `EntanglementLayer`, `EntangledPair`, `Phrase` |
212
+ | **Agency** | Goal-directed attention | `AgencyLayer`, `AttentionFocus`, `Goal`, `Action` |
213
+ | **Boundary** | Input/output gating | `BoundaryLayer`, `ObjectivityGate`, `SensoryChannel` |
214
+ | **Safety** | Constraint enforcement | `SafetyLayer`, `SafetyConstraint`, `SafetyMonitor` |
215
+
216
+ ### Utility Modules
217
+
218
+ | Module | Purpose |
219
+ |--------|---------|
220
+ | `core/errors` | Browser-compatible event emitter, structured errors |
221
+ | `core/logger` | Configurable logging with levels |
222
+ | `telemetry/metrics` | Counter, Gauge, Histogram metrics |
223
+ | `transport` | WebSocket, SSE, Polling transports |
224
+ | `profiling` | RingBuffer, Timer, Profiler |
225
+
226
+ ---
227
+
174
228
  ## Formal Semantics
175
229
 
176
230
  The library implements a rigorous formal semantics layer based on model-theoretic foundations: