@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/README.md +423 -12
- package/backends/cryptographic/index.js +455 -2
- package/core/beacon.js +735 -0
- package/core/crt-homology.js +1004 -0
- package/core/enochian-vocabulary.js +910 -0
- package/core/enochian.js +744 -0
- package/core/errors.js +587 -0
- package/core/hilbert.js +651 -1
- package/core/index.js +86 -1
- package/core/lambda.js +284 -33
- package/core/logger.js +350 -0
- package/core/prime.js +136 -1
- package/core/quaternion-semantics.js +623 -0
- package/core/reduction.js +391 -1
- package/core/rformer-crt.js +892 -0
- package/core/topology.js +655 -0
- package/docs/README.md +54 -0
- package/docs/design/PYTHON_PORT_DESIGN.md +1400 -0
- package/docs/reference/07-topology.md +257 -0
- package/docs/reference/08-observer.md +421 -0
- package/docs/reference/09-crt-homology.md +369 -0
- package/modular.js +231 -3
- package/package.json +1 -1
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:
|