Skip to content

Commit 5ee6157

Browse files
gHashTagclaude
andcommitted
feat: Expand TechTree + add GitHub Pages health check protection
TechTree: - Expanded from 5 to 8 branches (32 total nodes) - Added AGENTS branch (IGLA Core, Tool Use, Long Context, Multi-Agent) - Added KNOWLEDGE branch (VSA, Knowledge Graph, Semantic Search, RAG) - Added DISTRIBUTED branch (Node Network, TVC Sharding, DePIN, Consensus) - Fixed grid alignment with 4 nodes per branch Protection: - Added pages-health-check.yml workflow - Runs every 15 minutes to check site health - Auto-triggers redeploy on 404 detection 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 19d7044 commit 5ee6157

3 files changed

Lines changed: 249 additions & 8 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Pages Health Check
2+
3+
on:
4+
schedule:
5+
- cron: '*/15 * * * *' # Every 15 minutes
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
actions: write
11+
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check site health
17+
id: health
18+
run: |
19+
max_retries=3
20+
retry_count=0
21+
22+
while [ $retry_count -lt $max_retries ]; do
23+
response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 https://ghashtag.github.io/trinity/)
24+
25+
if [ "$response" = "200" ]; then
26+
echo "Site is healthy (200 OK)"
27+
echo "status=healthy" >> $GITHUB_OUTPUT
28+
exit 0
29+
fi
30+
31+
echo "Attempt $((retry_count + 1)): Site returned $response"
32+
retry_count=$((retry_count + 1))
33+
34+
if [ $retry_count -lt $max_retries ]; then
35+
sleep 10
36+
fi
37+
done
38+
39+
echo "Site is unhealthy after $max_retries attempts"
40+
echo "status=unhealthy" >> $GITHUB_OUTPUT
41+
echo "http_code=$response" >> $GITHUB_OUTPUT
42+
exit 1
43+
44+
- name: Trigger redeploy on failure
45+
if: failure()
46+
uses: actions/github-script@v7
47+
with:
48+
script: |
49+
console.log('Site health check failed, triggering redeploy workflow...');
50+
51+
await github.rest.actions.createWorkflowDispatch({
52+
owner: context.repo.owner,
53+
repo: context.repo.repo,
54+
workflow_id: 'deploy-docs.yml',
55+
ref: 'main'
56+
});
57+
58+
console.log('Redeploy triggered successfully');

website/src/components/TechTree/techTreeData.ts

Lines changed: 186 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const techBranches: TechBranch[] = [
130130
status: 'done',
131131
branch: 'inference',
132132
prerequisites: ['inf-003'],
133-
unlocks: ['dep-003'],
133+
unlocks: ['dep-003', 'agent-001'],
134134
metrics: '8x throughput',
135135
x: 3,
136136
y: 1
@@ -242,7 +242,7 @@ export const techBranches: TechBranch[] = [
242242
status: 'done',
243243
branch: 'deployment',
244244
prerequisites: ['dep-003'],
245-
unlocks: [],
245+
unlocks: ['dist-001'],
246246
metrics: '< 50ms latency',
247247
x: 3,
248248
y: 3
@@ -287,10 +287,193 @@ export const techBranches: TechBranch[] = [
287287
status: 'locked',
288288
branch: 'hardware',
289289
prerequisites: ['hw-002'],
290-
unlocks: [],
290+
unlocks: ['hw-004'],
291291
metrics: '1000x efficiency',
292292
x: 2,
293293
y: 4
294+
},
295+
{
296+
id: 'hw-004',
297+
name: 'ASIC Design',
298+
description: 'Custom ternary chip design for maximum efficiency',
299+
status: 'locked',
300+
branch: 'hardware',
301+
prerequisites: ['hw-003'],
302+
unlocks: [],
303+
metrics: '10000x efficiency',
304+
x: 3,
305+
y: 4
306+
}
307+
]
308+
},
309+
{
310+
id: 'agents',
311+
name: 'AGENTS',
312+
color: '#FF1493',
313+
icon: '🤖',
314+
nodes: [
315+
{
316+
id: 'agent-001',
317+
name: 'IGLA Core',
318+
description: 'Instruction-based Generative Learning Architecture',
319+
status: 'done',
320+
branch: 'agents',
321+
prerequisites: ['inf-004'],
322+
unlocks: ['agent-002', 'agent-003'],
323+
metrics: 'v1.0 stable',
324+
x: 0,
325+
y: 5
326+
},
327+
{
328+
id: 'agent-002',
329+
name: 'Tool Use Engine',
330+
description: 'Local function calling and tool integration',
331+
status: 'done',
332+
branch: 'agents',
333+
prerequisites: ['agent-001'],
334+
unlocks: ['agent-004'],
335+
metrics: '50+ tools',
336+
x: 1,
337+
y: 5
338+
},
339+
{
340+
id: 'agent-003',
341+
name: 'Long Context',
342+
description: 'Unlimited history with adaptive context windows',
343+
status: 'done',
344+
branch: 'agents',
345+
prerequisites: ['agent-001'],
346+
unlocks: ['agent-004'],
347+
metrics: '∞ tokens',
348+
x: 2,
349+
y: 5
350+
},
351+
{
352+
id: 'agent-004',
353+
name: 'Multi-Agent',
354+
description: 'Coordinator + Specialist agent orchestration',
355+
status: 'in_progress',
356+
progress: 75,
357+
branch: 'agents',
358+
prerequisites: ['agent-002', 'agent-003'],
359+
unlocks: [],
360+
metrics: '8 specialists',
361+
x: 3,
362+
y: 5
363+
}
364+
]
365+
},
366+
{
367+
id: 'knowledge',
368+
name: 'KNOWLEDGE',
369+
color: '#00CED1',
370+
icon: '📚',
371+
nodes: [
372+
{
373+
id: 'know-001',
374+
name: 'VSA Core',
375+
description: 'Vector Symbolic Architecture with bind/bundle ops',
376+
status: 'done',
377+
branch: 'knowledge',
378+
prerequisites: [],
379+
unlocks: ['know-002'],
380+
metrics: '10K dims',
381+
x: 0,
382+
y: 6
383+
},
384+
{
385+
id: 'know-002',
386+
name: 'Knowledge Graph',
387+
description: 'Triple-based semantic networks with VSA encoding',
388+
status: 'done',
389+
branch: 'knowledge',
390+
prerequisites: ['know-001'],
391+
unlocks: ['know-003'],
392+
metrics: '1M triples',
393+
x: 1,
394+
y: 6
395+
},
396+
{
397+
id: 'know-003',
398+
name: 'Semantic Search',
399+
description: 'Cosine similarity search over hypervectors',
400+
status: 'done',
401+
branch: 'knowledge',
402+
prerequisites: ['know-002'],
403+
unlocks: ['know-004'],
404+
metrics: '<1ms query',
405+
x: 2,
406+
y: 6
407+
},
408+
{
409+
id: 'know-004',
410+
name: 'RAG Engine',
411+
description: 'Retrieval Augmented Generation with VSA',
412+
status: 'in_progress',
413+
progress: 80,
414+
branch: 'knowledge',
415+
prerequisites: ['know-003'],
416+
unlocks: [],
417+
metrics: '95% accuracy',
418+
x: 3,
419+
y: 6
420+
}
421+
]
422+
},
423+
{
424+
id: 'distributed',
425+
name: 'DISTRIBUTED',
426+
color: '#FFA500',
427+
icon: '🌐',
428+
nodes: [
429+
{
430+
id: 'dist-001',
431+
name: 'Node Network',
432+
description: 'Decentralized node discovery and routing',
433+
status: 'done',
434+
branch: 'distributed',
435+
prerequisites: ['dep-004'],
436+
unlocks: ['dist-002'],
437+
metrics: '1000+ nodes',
438+
x: 0,
439+
y: 7
440+
},
441+
{
442+
id: 'dist-002',
443+
name: 'TVC Sharding',
444+
description: 'Ternary Vector Computing distributed shards',
445+
status: 'in_progress',
446+
progress: 65,
447+
branch: 'distributed',
448+
prerequisites: ['dist-001'],
449+
unlocks: ['dist-003'],
450+
metrics: '256 shards',
451+
x: 1,
452+
y: 7
453+
},
454+
{
455+
id: 'dist-003',
456+
name: 'DePIN Network',
457+
description: 'Decentralized Physical Infrastructure with TRI rewards',
458+
status: 'locked',
459+
branch: 'distributed',
460+
prerequisites: ['dist-002'],
461+
unlocks: ['dist-004'],
462+
metrics: '$TRI mining',
463+
x: 2,
464+
y: 7
465+
},
466+
{
467+
id: 'dist-004',
468+
name: 'Global Consensus',
469+
description: 'Byzantine fault-tolerant consensus for ternary state',
470+
status: 'locked',
471+
branch: 'distributed',
472+
prerequisites: ['dist-003'],
473+
unlocks: [],
474+
metrics: '10K TPS',
475+
x: 3,
476+
y: 7
294477
}
295478
]
296479
}

website/src/components/sections/CalculatorSection.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { motion } from 'framer-motion'
44
import { useI18n } from '../../i18n/context'
55
import Section from '../Section'
66

7-
// GPU pricing data ($/hour) - Market prices Feb 2025 (RunPod, Fluence)
8-
// TFLOPS = FP16 Tensor Core performance
7+
// GPU pricing ($/hour) - RunPod market prices Feb 2025
8+
// TFLOPS = FP16 Tensor Core (dense, no sparsity) - NVIDIA official specs
99
const GPU_OPTIONS = [
10-
{ id: 'rtx4090', name: 'RTX 4090 (24GB)', price: 0.50, tflops: 330 }, // Best $/TFLOPS
10+
{ id: 'rtx4090', name: 'RTX 4090 (24GB)', price: 0.44, tflops: 330 }, // Best $/TFLOPS
1111
{ id: 'h100', name: 'NVIDIA H100 (80GB)', price: 2.85, tflops: 990 },
12-
{ id: 'l40s', name: 'NVIDIA L40S (48GB)', price: 1.0, tflops: 362 },
13-
{ id: 'a100', name: 'NVIDIA A100 (80GB)', price: 1.0, tflops: 312 },
12+
{ id: 'l40s', name: 'NVIDIA L40S (48GB)', price: 1.22, tflops: 362 },
13+
{ id: 'a100', name: 'NVIDIA A100 (80GB)', price: 1.89, tflops: 312 },
1414
]
1515

1616
// Mining mode calculations

0 commit comments

Comments
 (0)