Skip to content

Commit 240bfb8

Browse files
committed
feat: Clean up legacy files and add new tests for current codebase
- Move 131 legacy test files to _graveyard/2025-01-27/tests_legacy/ - Move tools/inventory/ to _graveyard/2025-01-27/tools_inventory_legacy/ - Clean up scripts/README.md with current script documentation - Add new tests for FastAPI backend and Streamlit frontend - Keep 24 current test files that are relevant to codebase - Add proper pytest configuration and fixtures This addresses the issue where DeepSeek review noted no tests, when actually there were 160+ test files but they were all for the old codebase.
1 parent e4c044c commit 240bfb8

159 files changed

Lines changed: 5766 additions & 102 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

HUONG_DAN_PUBLIC.md

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# 🚀 Hướng Dẫn Public Dự Án StillMe Trên GitHub
2+
3+
## Bước 1: Kiểm tra Repository Hiện Tại
4+
5+
Repository của bạn: `https://github.com/anhmtk/StillMe---Self-Evolving-AI-System`
6+
7+
## Bước 2: Public Repository (Quan Trọng Nhất!)
8+
9+
### Cách 1: Qua GitHub Web Interface (Đơn Giản Nhất)
10+
11+
1. **Mở trình duyệt**, truy cập: `https://github.com/anhmtk/StillMe---Self-Evolving-AI-System`
12+
13+
2. **Vào Settings**:
14+
- Click vào tab **"Settings"** ở trên cùng repository
15+
- Hoặc truy cập trực tiếp: `https://github.com/anhmtk/StillMe---Self-Evolving-AI-System/settings`
16+
17+
3. **Scroll xuống phần "Danger Zone"** (cuối trang)
18+
19+
4. **Click "Change visibility"** → Chọn **"Change to public"**
20+
21+
5. **Xác nhận**: Nhập tên repository: `StillMe---Self-Evolving-AI-System`
22+
23+
6. **Done!** Repository đã public ✨
24+
25+
### Cách 2: Qua GitHub CLI (Nếu có cài)
26+
27+
```bash
28+
gh repo edit anhmtk/StillMe---Self-Evolving-AI-System --visibility public
29+
```
30+
31+
## Bước 3: Tối Ưu Repository (Tùy Chọn Nhưng Nên Làm)
32+
33+
### 3.1. Thêm Topics (Tags)
34+
35+
1. Vào repository → Click **"Add topics"** hoặc icon 📌
36+
2. Thêm các topics sau:
37+
- `ai`
38+
- `self-evolving-ai`
39+
- `machine-learning`
40+
- `transparent-ai`
41+
- `ethical-ai`
42+
- `open-source`
43+
- `fastapi`
44+
- `streamlit`
45+
- `python`
46+
- `transparency`
47+
48+
### 3.2. Thêm Description
49+
50+
Description ngắn gọn (160 ký tự):
51+
```
52+
🧠 Self-Evolving AI System with Complete Ethical Transparency | 100% Open Source | AI learns & evolves daily | Community-controlled | Built with FastAPI + Streamlit
53+
```
54+
55+
### 3.3. Enable GitHub Discussions
56+
57+
1. Vào **Settings****General****Features**
58+
2. Check ✅ **"Discussions"**
59+
3. Click **"Set up discussions"**
60+
61+
### 3.4. Thêm Repository Topics Badge
62+
63+
Trong README, bạn có thể thêm:
64+
```markdown
65+
![GitHub](https://img.shields.io/github/license/anhmtk/StillMe---Self-Evolving-AI-System)
66+
![GitHub stars](https://img.shields.io/github/stars/anhmtk/StillMe---Self-Evolving-AI-System?style=social)
67+
![GitHub forks](https://img.shields.io/github/forks/anhmtk/StillMe---Self-Evolving-AI-System?style=social)
68+
```
69+
70+
## Bước 4: Tạo Release Đầu Tiên (Tùy Chọn)
71+
72+
1. Vào **"Releases"****"Create a new release"**
73+
2. Tag version: `v0.4.0` (hoặc `v0.1.0`)
74+
3. Release title: `StillMe v0.4 - Docker Setup & Enhanced README`
75+
4. Description:
76+
```
77+
## 🎉 First Public Release
78+
79+
- ✅ Core learning system
80+
- ✅ Hybrid learning (70/30 model)
81+
- ✅ Secure community voting
82+
- ✅ Docker 1-click setup
83+
- ✅ Comprehensive technical roadmap
84+
- ✅ Thought-provoking thought experiment section
85+
```
86+
87+
## Bước 5: Share & Promote
88+
89+
### 5.1. Social Media
90+
91+
```
92+
🔬 StillMe v0.4 - Self-Evolving AI với 100% Transparency
93+
94+
✅ Self-evolving AI học từ internet mỗi ngày
95+
✅ Hybrid learning system (70% AI, 30% Community)
96+
✅ Community voting với EthicsGuard
97+
✅ Technical roadmap rõ ràng: Vector DB + Meta-Learning
98+
✅ Thought experiment: "What if AI fixes itself?"
99+
100+
#OpenSource #AI #Transparency #EthicalAI
101+
102+
🔗 https://github.com/anhmtk/StillMe---Self-Evolving-AI-System
103+
```
104+
105+
### 5.2. Post trên Hacker News
106+
107+
Title: `StillMe - Self-Evolving AI System with Complete Ethical Transparency`
108+
109+
URL: `https://github.com/anhmtk/StillMe---Self-Evolving-AI-System`
110+
111+
### 5.3. Reddit Communities
112+
113+
- r/MachineLearning
114+
- r/artificial
115+
- r/opensource
116+
- r/Python
117+
118+
### 5.4. Twitter/X
119+
120+
Tweet ngắn gọn với hashtags:
121+
```
122+
🧠 Just open-sourced StillMe - Self-Evolving AI with 100% transparency
123+
124+
What if AI could learn from itself and improve? 🤔
125+
126+
#OpenSource #AI #Transparency
127+
128+
🔗 https://github.com/anhmtk/StillMe---Self-Evolving-AI-System
129+
```
130+
131+
## Bước 6: Monitor & Engage
132+
133+
### 6.1. Theo Dõi Metrics
134+
135+
- Stars, Forks, Watchers
136+
- GitHub Discussions participation
137+
- Issues & Pull Requests
138+
- Traffic analytics (Settings → Insights → Traffic)
139+
140+
### 6.2. Respond Promptly
141+
142+
- Answer questions trong Discussions
143+
- Review và merge Pull Requests
144+
- Fix bugs được report
145+
- Thank contributors
146+
147+
## Checklist Trước Khi Public
148+
149+
- [x] README đầy đủ và professional
150+
- [x] Code đã push lên GitHub
151+
- [x] Repository có description
152+
- [x] Topics đã được thêm
153+
- [x] GitHub Discussions enabled
154+
- [ ] License file có (MIT)
155+
- [ ] CONTRIBUTING.md (optional nhưng tốt)
156+
- [ ] .gitignore đã đúng (không commit secrets)
157+
158+
## ⚠️ Lưu Ý Quan Trọng
159+
160+
1. **Không commit API keys**: Đảm bảo `.env` trong `.gitignore`
161+
2. **Kiểm tra sensitive data**: Scan lại codebase trước khi public
162+
3. **README phải clear**: Người mới vào phải hiểu được project là gì
163+
4. **Be ready for feedback**: Có thể có người criticize, đó là bình thường!
164+
165+
## 🎯 Kết Quả Mong Đợi
166+
167+
Sau khi public:
168+
- ✅ Anyone có thể clone và sử dụng
169+
- ✅ Community có thể contribute
170+
- ✅ Được tìm thấy trên GitHub search
171+
- ✅ Có thể nhận stars và forks
172+
- ✅ Tăng visibility và credibility
173+
174+
---
175+
176+
**Good luck với việc public dự án! 🚀**
177+

RELEASE_NOTES_v0.4.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
## 🎉 First Public Release
2+
3+
StillMe v0.4 marks our first public release - a complete Self-Evolving AI System with 100% ethical transparency and community control.
4+
5+
## 🚀 What's New
6+
7+
### ✨ Core Features
8+
- **Self-Evolving AI System**: AI learns from internet daily and evolves through stages (Infant → Child → Adolescent → Adult)
9+
- **Hybrid Learning System**: 70% AI auto-approval + 30% community review
10+
- **Secure Community Voting**: Weighted trust voting with EthicsGuard (10 votes minimum, 70% approval threshold)
11+
- **Ethical Filtering**: Complete transparency into all ethical decisions and violations
12+
- **Real-time Dashboard**: Streamlit dashboard with evolution tracking, learning analytics, and community controls
13+
14+
### 🐳 Docker & Deployment
15+
- **One-Click Setup**: Docker Compose configuration for easy deployment
16+
- **Quick Start Scripts**: `quick-start.sh` (Linux/Mac) and `quick-start.ps1` (Windows)
17+
- **Production Ready**: Multi-stage Dockerfile optimized for production
18+
19+
### 📚 Documentation & Transparency
20+
- **Comprehensive README**: Complete project documentation with architecture diagrams
21+
- **Technical Roadmap**: Detailed roadmap with Vector DB and Meta-Learning milestones
22+
- **Founder Story**: Honest account of AI-assisted development journey
23+
- **Thought Experiment**: Provocative discussion about AI self-improvement
24+
- **Architecture Diagrams**: Mermaid diagrams showing system architecture and learning flow
25+
26+
### 🛡️ Security & Ethics
27+
- **EthicsGuard**: Automatic ethical compliance check before content approval
28+
- **Red-Team Agent**: Safety scanning for harmful content
29+
- **Weighted Trust Voting**: Community votes weighted by reviewer reputation
30+
- **Complete Audit Trail**: Full history of all learning decisions
31+
32+
## 📊 Technical Highlights
33+
34+
- **Backend**: FastAPI with async support
35+
- **Frontend**: Streamlit dashboard
36+
- **Database**: SQLite (current), Vector DB planned (v0.6)
37+
- **AI Models**: DeepSeek (primary), OpenAI (backup), Ollama (local)
38+
- **Smart Routing**: Intelligent routing between local and cloud AI
39+
40+
## 🗺️ Roadmap Preview
41+
42+
- **v0.5** (In Progress): Enhanced Metrics - Accuracy and retention tracking
43+
- **v0.6** (Planned): Long-term Memory - Vector DB integration with RAG
44+
- **v0.7** (Planned): Meta-Learning 1.0 - Curriculum Learning and Self-Optimization
45+
- **v0.8** (Research): AI Self-Improvement - Exploratory research phase
46+
- **v1.0** (Planned): Full Self-Improvement Loop
47+
48+
## 🚀 Quick Start
49+
50+
```bash
51+
# Clone repository
52+
git clone https://github.com/anhmtk/StillMe---Self-Evolving-AI-System.git
53+
cd StillMe---Self-Evolving-AI-System
54+
55+
# One-click setup (Linux/Mac)
56+
chmod +x quick-start.sh
57+
./quick-start.sh
58+
59+
# Or Windows PowerShell
60+
.\quick-start.ps1
61+
62+
# Or manually with Docker Compose
63+
docker-compose up -d
64+
```
65+
66+
**Access after startup:**
67+
- 📊 Dashboard: http://localhost:8501
68+
- 🔌 API: http://localhost:8000
69+
- 📚 API Docs: http://localhost:8000/docs
70+
71+
## 🤝 Contributing
72+
73+
We welcome contributions! See our [Contributing Guide](https://github.com/anhmtk/StillMe---Self-Evolving-AI-System/blob/main/CONTRIBUTING.md) and join [GitHub Discussions](https://github.com/anhmtk/StillMe---Self-Evolving-AI-System/discussions).
74+
75+
## 🙏 Acknowledgments
76+
77+
Built with AI assistance (Cursor AI, Grok, DeepSeek) - proving that vision + AI tools = possibility. Now we need your expertise to make StillMe great!
78+
79+
---
80+
81+
**This is just the beginning.** StillMe is a journey toward truly transparent, ethical, and community-controlled AI. Join us!
82+
83+
🔗 **Repository**: https://github.com/anhmtk/StillMe---Self-Evolving-AI-System
84+
💬 **Discussions**: https://github.com/anhmtk/StillMe---Self-Evolving-AI-System/discussions
85+

_current_tests_list.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
CURRENT TESTS TO KEEP:
2+
==================================================
3+
tests\test_batch2_http_io.py
4+
tests\test_batch3_templates_validation.py
5+
tests\test_chaos_tolerance.py
6+
tests\test_common_modules.py
7+
tests\test_connectivity.py
8+
tests\test_core_modules_mock.py
9+
tests\test_emotionsense_v1.py
10+
tests\test_gateway_architecture.py
11+
tests\test_identity_handler.py
12+
tests\test_identity_integration.py
13+
tests\test_integration_cross_module.py
14+
tests\test_internet_access.py
15+
tests\test_observability_export.py
16+
tests\test_performance_fixed.py
17+
tests\test_router_v9.py
18+
tests\test_security_ethics.py
19+
tests\test_unit_core_modules.py
20+
tests\test_web_access_v2.py
21+
tests\ethics\test_basic_ethics.py
22+
tests\legacy\test_dashboard_real_data.py
23+
tests\legacy\test_generated.py
24+
tests\safety\test_user_safety.py
25+
tests\seal_grade\conftest.py
26+
tests\security\test_basic_security.py

_graveyard/2025-01-27/MANIFEST.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Graveyard Manifest - 2025-01-27
2+
3+
## Purpose
4+
Archive legacy files from old codebase that are not relevant to current StillMe v2 (FastAPI + Streamlit) implementation.
5+
6+
## Items Archived
7+
8+
### 1. `tools_inventory_legacy/`
9+
- **Original location:** `tools/inventory/`
10+
- **Reason:** Legacy inventory tools for large codebase analysis (import_graph, ast_hash, duplicate detection) - not used in current codebase
11+
- **Files:** 11 Python files
12+
- **Status:** ✅ Archived
13+
14+
### 2. `tests_legacy/` (to be moved)
15+
- **Original location:** `tests/` (selected files)
16+
- **Reason:** Test files for old codebase (stillme_core, agent_dev, NicheRadar, api_server) - not relevant to FastAPI/Streamlit
17+
- **Status:** ⏳ Pending identification
18+
19+
## Notes
20+
- These files are kept in git history for reference
21+
- Do not delete from _graveyard without proper review
22+
- Can be permanently removed after 90 days if confirmed unused
23+

tests/calibrate_thresholds.py renamed to _graveyard/2025-01-27/tests_legacy/tests/calibrate_thresholds.py

File renamed without changes.

0 commit comments

Comments
 (0)