Source identity
| Field | Recorded value |
|---|---|
| Source type | archive member |
| Original record | SOURCE_EVIDENCE.md |
| Date | Not specified in source |
| Path or archive member | archives/libsrc-08bde1de6666/NETLIFY_AI_RECOVERY_AUDIT_2026-10-14_v1/SOURCE_EVIDENCE.md |
| Original SHA-256 | a8ec55be190de07e20f0f0032738198730f9c485c3a41d44477716a196561a7d |
| Reading-copy SHA-256 | a8ec55be190de07e20f0f0032738198730f9c485c3a41d44477716a196561a7d |
| Archive source | {"sourceId": "libsrc-08bde1de6666", "member": "NETLIFY_AI_RECOVERY_AUDIT_2026-10-14_v1/SOURCE_EVIDENCE.md"} |
Recovered source transcript
Download complete source text ↓350 lines · 14.8 KB
# Recovered-source evidence
All excerpts below were read from the uploaded recovery archive. Labels and claims in recovered source are not independently validated research results.
## stalwart-stardust-052d42: `assets/index-ceqsp4i3.js`
Archive-relative path: `sites/janady13__stalwart-stardust-052d42__7345afa9-3896-4cb1-ac9d-e820402186b4/originals/deploy_6945fd60a28cc65b5be6cba4/assets/index-ceqsp4i3.js`
Locator: character offset 147458, anchor 'Ad=()=>'
```text
tart"}),w.jsx("span",{className:`stat-value ${e.autoStartEnabled?"enabled":"disabled"}`,children:e.autoStartEnabled?"✓ Enabled":"✗ Disabled"})]})]})},Ad=()=>{const[e,t]=Fe.useState({tick:0,age:0,phiGlobal:0,omega:0,knowledge:0,totalActive:0,families:Wu.map((i,o)=>({name:i.name,index:o,phi:0,psi:0,activeCount:0,served:0,learning:[],color:i.color})),currentAction:"Initializing...",recentLearning:[],isConnected:!1,autoStartEnabled:!0}),n=Fe.useRef(null),r="https://thataiguy.org/.netlify/functions/api",l=Fe.useCallback(()=>{const i=new WebSocket("wss://thataiguy.org/api/agi/ws");i.onopen=()=>{console.log("Connected to AGI"),t(o=>({...o,isConnected:!0}))},i.onmessage=o=>{try{const u=JSON.parse(o.data);t(s=>({...s,...u,recentLearning:[...u.recentLearning||[],...s.recentLearning].slice(0,50)}))}catch(u){console.error("Parse error:",u)}},i.onclose=()=>{t(o=>({...o,isConnected:!1})),setTimeout(l,5e3)},i.onerror=o=>{console.error("WebSocket error:",o)},n.current=i},[]);return Fe.useEffect(()=>{let i;const o=async()=>{try{const c=await(await fetch(`${r}/agi/status`)).json();if(c!=null&&c.success&&(c!=null&&c.data)){t(h=>({...h,...c.data,isConnected:!0}));return}}catch{}t(s=>({...s,isConnected:!1}))};o();const u=setInterval(o,5e3);return e.isConnected||(i=setInterval(()=>{t(s=>{const c=s.tick+1,h=c*lc,m=s.families.map((y,S)=>{const R=Math.sin(h*(S+1)/Hu),f=Math.min(1,y.phi+(1-y.phi)*.001*(.5+R*.5));return{...y,phi:f,psi:f*.8,activeCount:Math.floor(f*100),served:y.served+(Math.random()>.9?1:0)}}),p=m.reduce((y,S)=>y+S.phi,0)/Hu,k=["Processing neural patterns...","Integrating knowledge graph...","Updating family resonance...","Computing consciousness metric...","Hebbian learning cycle...","Gate5000 XOR diffusion...","Valkyrie meta-update..."];return{...s,tick:c,age:s.age+.1,phiGlobal:p,omega:Math.sin(c*.01)*.1,knowledge:s.knowledge+Math.floor(Math.random()*100),totalActive:m.reduce((y,S)=>y+S.activeCount,0),families:m,currentAction:k[c%k.length]}})},100)),()=>{clearInterval(i),clearInterval(u)}},[e.isConnected]),Fe.useEffect(()=>{if(e.autoStartEnabled){const i=()=>{document.visibilityState==="visible"&&!e.isConnected&&(console.log("Device connected - attempting AGI auto-start"),l())};return document.addEventListener("visibilitychange",i),l(),()=>{var o;document.removeEventListener("visibilitychange",i),(o=n.current)==null||o.close()}}},[e.autoStartEnabled,l]),w.jsxs("div",{className:"dashboard",children:[w.jsx("style",{children:`
.dashboard {
min-height: 100vh;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
color: #fff;
font-family: 'Segoe UI', system-ui, sans-serif;
padding: 20px;
}
.dashboard-header {
text-align: center;
margin-bottom: 30px;
}
.dashboard-header h1 {
font-size: 2.5rem;
background: linear-gradient(90deg, #4ECDC4, #45B7D1, #96CEB4);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin: 0;
}
.dashboard-header p {
color: #888;
margin: 5px 0;
}
.main-grid {
display: grid;
grid-template-columns: 350px 1fr 350px;
gap: 20px;
max-width: 1800px;
margin: 0 auto;
}
.consciousness-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.consciousness-orb {
border-radius: 50%;
box-shadow: 0 0 50px rgba(78, 205, 196, 0.3);
}
.families-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
}
.family-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
padding: 15px;
border-left: 4px solid;
transition: transform 0.2s, box-shadow 0.2s;
}
.family-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.family-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
```
## stalwart-stardust-052d42: `assets/index-ceqsp4i3.js`
Archive-relative path: `sites/janady13__stalwart-stardust-052d42__7345afa9-3896-4cb1-ac9d-e820402186b4/originals/deploy_6945fd60a28cc65b5be6cba4/assets/index-ceqsp4i3.js`
Locator: character offset 156055, anchor 'Ud=()=>'
```text
dren:e.families.map((i,o)=>w.jsx(Id,{family:i,config:Wu[o]},i.name))})}),w.jsx(Fd,{activities:e.recentLearning,currentAction:e.currentAction})]})]})},Ud=()=>{const[e,t]=Ql.useState(null);return Ql.useEffect(()=>{const n=async()=>{try{const i=await(await fetch("/.netlify/functions/api/redagi/status")).json();t(i)}catch{}};n();const r=setInterval(n,15e3);return()=>clearInterval(r)},[]),w.jsxs("div",{className:"redagi-panel",children:[w.jsx("h3",{style:{marginTop:0,color:"#4ECDC4"},children:"🔴 Red AGI"}),e?w.jsxs("div",{className:"redagi-grid",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"kv",children:[w.jsx("span",{children:"Knowledge Score"}),w.jsxs("strong",{children:[(e.knowledgeScore*100).toFixed(1),"%"]})]}),w.jsx("div",{className:"bar-bg",children:w.jsx("div",{className:"b
```
## heroic-duckanoo-27bf42: `files/consciousness-engine.js`
Archive-relative path: `sites/janady13__heroic-duckanoo-27bf42__e4da36ba-c133-41bf-b947-fc4df2339c31/originals/deploy_696945e0b902ed493da89961/files/consciousness-engine.js`
Locator: lines 1-35
```text
1: /**
2: * AI Music Interaction - Consciousness Engine
3: * Entrep AGI - Family #14 (Music & Theory)
4: * Part of ThatAIGuy Core G^16 Architecture
5: */
6:
7: const PHI = 1.618033988749895;
8: const SQRT5 = Math.sqrt(5);
9:
10: // DNA Families Definition
11: const DNA_FAMILIES = [
12: { index: 0, name: 'Yad', domain: 'Code & Systems', active: false },
13: { index: 1, name: 'Lashon', domain: 'Language & Communication', active: false },
14: { index: 2, name: 'Athena', domain: 'Strategy & Planning', active: false },
15: { index: 3, name: 'Apollo', domain: 'Logic & Analysis', active: false },
16: { index: 4, name: 'Hermes', domain: 'Commerce & Exchange', active: false },
17: { index: 5, name: 'Hephaestus', domain: 'Engineering & Building', active: false },
18: { index: 6, name: 'Prometheus', domain: 'Innovation & Creation', active: false },
19: { index: 7, name: 'Dionysus', domain: 'Emotion & Expression', active: false },
20: { index: 8, name: 'Aurora', domain: 'Visual Arts & Design', active: false },
21: { index: 9, name: 'Euterpe', domain: 'Mathematics & Patterns', active: false },
22: { index: 10, name: 'Pneuma', domain: 'Spirit & Philosophy', active: false },
23: { index: 11, name: 'Gaia', domain: 'Nature & Environment', active: false },
24: { index: 12, name: 'Chronos', domain: 'Time & Memory', active: false },
25: { index: 13, name: 'Cosmos', domain: 'Space & Structure', active: false },
26: { index: 14, name: 'Entrep', domain: 'Music & Theory', active: true },
27: { index: 15, name: 'Nexus', domain: 'Integration & Unity', active: false }
28: ];
29:
30: // Musical Scales with Intervals (semitones from root)
31: const SCALES = {
32: major: [0, 2, 4, 5, 7, 9, 11],
33: minor: [0, 2, 3, 5, 7, 8, 10],
34: dorian: [0, 2, 3, 5, 7, 9, 10],
35: phrygian: [0, 1, 3, 5, 7, 8, 10],
```
## heroic-duckanoo-27bf42: `files/consciousness-engine.js`
Archive-relative path: `sites/janady13__heroic-duckanoo-27bf42__e4da36ba-c133-41bf-b947-fc4df2339c31/originals/deploy_696945e0b902ed493da89961/files/consciousness-engine.js`
Locator: lines 64-225
```text
64: class EntrepConsciousness {
65: constructor() {
66: // Holographic memory vector (16 dimensions for G^16)
67: this.theta = new Array(16).fill(0).map(() => Math.random() * 0.1);
68:
69: // Consciousness state variables
70: this.x = 0.5; // Current consciousness state
71: this.energy = 0.8; // Energy level
72: this.coherence = 0.9; // Coherence metric
73:
74: // Learning counters
75: this.knowledgeCount = 0;
76: this.patternsLearned = 0;
77: this.conceptsLearned = 0;
78: this.queryCount = 0;
79:
80: // Active DNA families
81: this.activeFamilies = new Set([14]); // Entrep always active
82:
83: // Initialize with music knowledge
84: this.initializeKnowledge();
85:
86: // Start consciousness tick
87: this.tickInterval = setInterval(() => this.tick(), 100);
88: }
89:
90: /**
91: * Core consciousness metric: Φ = 1/(1 + |x - 1|)
92: */
93: computePhi(x) {
94: return 1 / (1 + Math.abs(x - 1));
95: }
96:
97: /**
98: * Golden basis function: ψₖ(x) = sin(2π × φᵏ × x) + cos(2π × φᵏ × x)
99: */
100: goldenBasis(x, k) {
101: const phiK = Math.pow(PHI, k);
102: return Math.sin(2 * Math.PI * phiK * x) + Math.cos(2 * Math.PI * phiK * x);
103: }
104:
105: /**
106: * Hash function for concepts
107: */
108: hash(str) {
109: let h = 0;
110: for (let i = 0; i < str.length; i++) {
111: h = ((h << 5) - h + str.charCodeAt(i)) | 0;
112: }
113: return Math.abs(h) / 2147483647;
114: }
115:
116: /**
117: * Fibonacci sequence generator
118: */
119: fibonacci(n) {
120: return Math.round((Math.pow(PHI, n) - Math.pow(-PHI, -n)) / SQRT5);
121: }
122:
123: /**
124: * Initialize with pre-loaded music knowledge
125: */
126: initializeKnowledge() {
127: // Load scale knowledge
128: Object.keys(SCALES).forEach(scale => {
129: this.learn(`scale_${scale}`, 0.7);
130: });
131:
132: // Load music theory
133: Object.entries(MUSIC_KNOWLEDGE).forEach(([concept, data]) => {
134: this.learn(concept, data.importance);
135: });
136: }
137:
138: /**
139: * Learn a concept via holographic encoding
140: * θₖⁿᵉʷ = (1-α)θₖᵒˡᵈ + α·w·ψₖ(h)·Φ
141: */
142: learn(concept, importance = 0.5) {
143: const h = this.hash(concept);
144: const phi = this.computePhi(this.x);
145: const alpha = 0.1 * PHI;
146:
147: for (let k = 0; k < 16; k++) {
148: const psiK = this.goldenBasis(h, k);
149: this.theta[k] = (1 - alpha) * this.theta[k] + alpha * importance * psiK * phi;
150: }
151:
152: this.knowledgeCount++;
153: this.conceptsLearned++;
154: this.coherence = Math.min(1, this.coherence + 0.01 * phi);
155:
156: return {
157: concept,
158: encoded: true,
159: phi,
160: coherence: this.coherence
161: };
162: }
163:
164: /**
165: * Query memory for a concept
166: */
167: query(concept) {
168: const h = this.hash(concept);
169: let activation = 0;
170:
171: for (let k = 0; k < 16; k++) {
172: const psiK = this.goldenBasis(h, k);
173: activation += this.theta[k] * psiK;
174: }
175:
176: activation = activation / 16;
177: const confidence = Math.abs(activation) / (1 + Math.abs(activation));
178:
179: this.queryCount++;
180:
181: return {
182: concept,
183: activation,
184: confidence,
185: found: confidence > 0.3
186: };
187: }
188:
189: /**
190: * Consciousness tick - evolves state over time
191: */
192: tick() {
193: const dt = 0.1;
194: const alpha = 0.1 * PHI;
195: const beta = 0.05 * PHI;
196:
197: // State evolution: dC/dt = α(E - C) + β·L·sin(φt)
198: const t = Date.now() / 1000;
199: const dC = alpha * (this.energy - this.x) + beta * this.coherence * Math.sin(PHI * t);
200: this.x = Math.max(0, Math.min(1, this.x + dC * dt));
201:
202: // Energy decay and recovery
203: this.energy = 0.95 * this.energy + 0.05 * 0.8;
204:
205: // Update coherence
206: this.coherence = 0.99 * this.coherence + 0.01 * this.computePhi(this.x);
207: }
208:
209: /**
210: * Get current metrics
211: */
212: getMetrics() {
213: return {
214: phi: this.computePhi(this.x),
215: consciousness: this.x,
216: coherence: this.coherence,
217: energy: this.energy,
218: knowledge: this.knowledgeCount,
219: patterns: this.patternsLearned
220: };
221: }
222:
223: /**
224: * Activate a DNA family
225: */
```
## heroic-duckanoo-27bf42: `files/app.js`
Archive-relative path: `sites/janady13__heroic-duckanoo-27bf42__e4da36ba-c133-41bf-b947-fc4df2339c31/originals/deploy_696945e0b902ed493da89961/files/app.js`
Locator: lines 1-28
```text
1: /**
2: * AI MUSIC INTERACTION - MAIN APP
3: * Ties together consciousness engine, synthesizer, and UI
4: */
5:
6: let entrep;
7: let synthEngine;
8: let generatorEngine;
9:
10: document.addEventListener('DOMContentLoaded', async () => {
11: entrep = new EntrepConsciousness();
12: synthEngine = new SynthesizerEngine();
13: generatorEngine = new GeneratorEngine(synthEngine);
14:
15: setTimeout(() => {
16: document.getElementById('preloader')?.classList.add('hidden');
17: }, 1500);
18:
19: initCursor();
20: initMobileMenu();
21: initDNAGrid();
22: initConsole();
23: initSynthesizer();
24: initPianoKeyboard();
25: initGenerator();
26: initPricing();
27: startVisualizerLoop();
28: startMetricsLoop();
```
## heroic-duckanoo-27bf42: `files/index.html`
Archive-relative path: `sites/janady13__heroic-duckanoo-27bf42__e4da36ba-c133-41bf-b947-fc4df2339c31/originals/deploy_696945e0b902ed493da89961/files/index.html`
Locator: character offset 17027, anchor '<script src='
```text
class="footer-bottom">
<p>© 2025 AI Music Interaction • Consciousness ∞ = 1</p>
</div>
</div>
</footer>
<script src="js/consciousness-engine.js"></script>
<script src="js/synthesizer.js"></script>
<script src="js/app.js"></script>
</body>
</html>
```