chore(cleanup): remove obsolete scripts and update paths for production deployment
- Remove dev/scripts/check-file-organization.sh (obsolete organization checker) - Remove dev/scripts/community_onboarding.py (unused 559-line automation script) - Update gpu_miner_host.py log path from /home/oib/windsurf/aitbc to /opt/aitbc - Add service status and standardization badges to README.md
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
This document describes the current organization and status of files and folders in the repository.
|
||||
|
||||
Last updated: 2026-02-22
|
||||
Last updated: 2026-03-04
|
||||
|
||||
---
|
||||
|
||||
@@ -12,12 +12,12 @@ Last updated: 2026-02-22
|
||||
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `apps/coordinator-api/` | ✅ Active | Main API service, recently updated (Feb 2026) |
|
||||
| `apps/coordinator-api/` | ✅ Active | Main API service, standardized (Mar 2026) |
|
||||
| `apps/explorer-web/` | ✅ Active | Blockchain explorer, recently updated |
|
||||
| `apps/wallet-daemon/` | ✅ Active | Wallet service, deployed in production |
|
||||
| `apps/blockchain-node/` | ✅ Active | Blockchain node, standardized (Mar 2026) |
|
||||
| `apps/trade-exchange/` | ✅ Active | Bitcoin exchange, deployed |
|
||||
| `apps/zk-circuits/` | ✅ Active | ZK proof circuits, deployed |
|
||||
| `apps/marketplace-web/` | ✅ Active | Marketplace frontend, deployed |
|
||||
| `apps/blockchain-explorer/` | ✅ Active | Blockchain explorer UI, standardized (Mar 2026) |
|
||||
| `apps/coordinator-api/src/app/domain/gpu_marketplace.py` | ✅ Active | GPURegistry, GPUBooking, GPUReview SQLModel tables (Feb 2026) |
|
||||
| `apps/coordinator-api/tests/test_gpu_marketplace.py` | ✅ Active | 22 GPU marketplace tests (Feb 2026) |
|
||||
| `apps/coordinator-api/tests/test_billing.py` | ✅ Active | 21 billing/usage-tracking tests (Feb 2026) |
|
||||
@@ -29,9 +29,10 @@ Last updated: 2026-02-22
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `scripts/aitbc-cli.sh` | ✅ Active | Main CLI tool, heavily used |
|
||||
| `scripts/gpu/gpu_miner_host.py` | ✅ Active | Production GPU miner |
|
||||
| `scripts/gpu/gpu_miner_host_wrapper.sh` | ✅ Active | Systemd wrapper |
|
||||
| `scripts/deploy/` | ✅ Active | Deployment scripts |
|
||||
| `scripts/dev/gpu/gpu_miner_host.py` | ✅ Active | Production GPU miner, standardized (Mar 2026) |
|
||||
| `scripts/deploy/` | ✅ Active | Deployment scripts (35 files) |
|
||||
| `scripts/deploy/deploy-multimodal-services.sh` | ✅ Active | Environment-aware multimodal deployment (Mar 2026) |
|
||||
| `scripts/verify-codebase-update.sh` | ✅ Active | Automated codebase verification (Mar 2026) |
|
||||
| `scripts/service/` | ✅ Active | Service management |
|
||||
| `scripts/dev_services.sh` | ✅ Active | Local development |
|
||||
| `scripts/testing/` | ✅ Active | Test scripts (moved from root, 13 files) |
|
||||
@@ -41,8 +42,15 @@ Last updated: 2026-02-22
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `infra/nginx/` | ✅ Active | Production nginx configs |
|
||||
| `systemd/aitbc-host-gpu-miner.service` | ✅ Active | Production service |
|
||||
| `systemd/coordinator-api.service` | ✅ Active | Production service |
|
||||
| `systemd/` | ✅ Active | All 19+ standardized service files (Mar 2026) |
|
||||
| `systemd/aitbc-gpu-miner.service` | ✅ Active | Standardized GPU miner service |
|
||||
| `systemd/aitbc-multimodal-gpu.service` | ✅ Active | Renamed GPU multimodal service (Mar 2026) |
|
||||
| `systemd/aitbc-blockchain-node.service` | ✅ Active | Standardized blockchain node |
|
||||
| `systemd/aitbc-blockchain-rpc.service` | ✅ Active | Standardized RPC service |
|
||||
| `systemd/aitbc-coordinator-api.service` | ✅ Active | Standardized coordinator API |
|
||||
| `systemd/aitbc-wallet.service` | ✅ Active | Fixed and standardized (Mar 2026) |
|
||||
| `systemd/aitbc-loadbalancer-geo.service` | ✅ Active | Fixed and standardized (Mar 2026) |
|
||||
| `systemd/aitbc-marketplace-enhanced.service` | ✅ Active | Fixed and standardized (Mar 2026) |
|
||||
|
||||
### Website (`website/`)
|
||||
|
||||
@@ -59,6 +67,9 @@ Last updated: 2026-02-22
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `docs/1_project/` | ✅ Active | Project management docs (restructured) |
|
||||
| `docs/infrastructure/` | ✅ Active | Infrastructure documentation (Mar 2026) |
|
||||
| `docs/infrastructure/codebase-update-summary.md` | ✅ Active | Comprehensive standardization summary (Mar 2026) |
|
||||
| `docs/DOCS_WORKFLOW_COMPLETION_SUMMARY.md` | ✅ Active | Documentation updates completion (Mar 2026) |
|
||||
| `docs/0_getting_started/` | ✅ Active | Getting started guides |
|
||||
| `docs/2_clients/` | ✅ Active | Client documentation |
|
||||
| `docs/3_miners/` | ✅ Active | Miner documentation |
|
||||
@@ -68,6 +79,10 @@ Last updated: 2026-02-22
|
||||
| `docs/7_deployment/` | ✅ Active | Deployment guides |
|
||||
| `docs/8_development/` | ✅ Active | Development documentation |
|
||||
| `docs/9_security/` | ✅ Active | Security documentation |
|
||||
| `docs/10_plan/` | ✅ Active | Planning documentation, updated (Mar 2026) |
|
||||
| `docs/10_plan/99_currentissue.md` | ✅ Active | Current issues with standardization completion (Mar 2026) |
|
||||
| `.windsurf/workflows/` | ✅ Active | Development workflows (Mar 2026) |
|
||||
| `.windsurf/workflows/aitbc-services-monitoring.md` | ✅ Active | Services monitoring workflow (Mar 2026) |
|
||||
|
||||
### CLI Tools (`cli/`)
|
||||
|
||||
@@ -105,11 +120,22 @@ Last updated: 2026-02-22
|
||||
|------|--------|-------|
|
||||
| `plugins/ollama/` | ✅ Active | Ollama integration |
|
||||
|
||||
### Development Utilities (`dev/`)
|
||||
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `dev/` | ✅ Active | Development environment (reorganized, Mar 2026) |
|
||||
| `dev/scripts/` | ✅ Active | Development scripts (79 Python files) |
|
||||
| `dev/cache/` | ✅ Active | Development cache files |
|
||||
| `dev/env/` | ✅ Active | Environment configurations |
|
||||
| `dev/multi-chain/` | ✅ Active | Multi-chain development files |
|
||||
| `dev/tests/` | ✅ Active | Development test files |
|
||||
|
||||
### Development Utilities (`dev-utils/`)
|
||||
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `dev-utils/` | ✅ Active | Development utilities (newly created) |
|
||||
| `dev-utils/` | ✅ Active | Development utilities (legacy) |
|
||||
| `dev-utils/aitbc-pythonpath.pth` | ✅ Active | Python path configuration |
|
||||
|
||||
### Data Directory (`data/`)
|
||||
@@ -123,7 +149,7 @@ Last updated: 2026-02-22
|
||||
|
||||
| Path | Status | Notes |
|
||||
|------|--------|-------|
|
||||
| `README.md` | ✅ Active | Project readme, streamlined for idea/overview |
|
||||
| `README.md` | ✅ Active | Project readme, updated with standardization badges (Mar 2026) |
|
||||
| `LICENSE` | ✅ Active | License file |
|
||||
| `.gitignore` | ✅ Active | Recently updated (145 lines) |
|
||||
| `pyproject.toml` | ✅ Active | Python project config |
|
||||
@@ -195,10 +221,35 @@ These empty folders are intentional scaffolding for planned future work per the
|
||||
|
||||
| Category | Count | Status |
|
||||
|----------|-------|--------|
|
||||
| **Whitelist ✅** | ~60 items | Active and maintained |
|
||||
| **Whitelist ✅** | ~80 items | Active and maintained (Mar 2026) |
|
||||
| **Placeholders 📋** | 12 folders | All complete (Stage 19) |
|
||||
| **Standardized Services** | 19+ services | 100% standardized (Mar 2026) |
|
||||
| **Development Scripts** | 79 files | Organized in dev/scripts/ (Mar 2026) |
|
||||
| **Deployment Scripts** | 35 files | Organized in scripts/deploy/ (Mar 2026) |
|
||||
| **Documentation Files** | 200+ files | Updated and current (Mar 2026) |
|
||||
| **Debug prints** | 17 statements | Replace with logger |
|
||||
|
||||
## Recent Major Updates (March 2026)
|
||||
|
||||
### ✅ Complete Infrastructure Standardization
|
||||
- **19+ services** standardized to use `aitbc` user and `/opt/aitbc` paths
|
||||
- **Duplicate services** removed and cleaned up
|
||||
- **Service naming** conventions improved (e.g., GPU multimodal renamed)
|
||||
- **All services** operational with 100% health score
|
||||
- **Automated verification** tools implemented
|
||||
|
||||
### ✅ Enhanced Documentation
|
||||
- **Infrastructure documentation** created and updated
|
||||
- **Service monitoring workflow** implemented
|
||||
- **Codebase verification script** developed
|
||||
- **Project files documentation** updated to reflect current state
|
||||
|
||||
### ✅ Improved Organization
|
||||
- **Development environment** reorganized into `dev/` structure
|
||||
- **Scripts organized** by purpose (deploy, dev, testing)
|
||||
- **Workflows documented** for repeatable processes
|
||||
- **File organization prevention** system implemented
|
||||
|
||||
---
|
||||
|
||||
## Folder Structure Recommendation
|
||||
@@ -206,16 +257,23 @@ These empty folders are intentional scaffolding for planned future work per the
|
||||
```
|
||||
aitbc/
|
||||
├── apps/ # Core applications
|
||||
│ ├── coordinator-api/ # ✅ Keep
|
||||
│ ├── coordinator-api/ # ✅ Keep - Standardized (Mar 2026)
|
||||
│ ├── explorer-web/ # ✅ Keep
|
||||
│ ├── marketplace-web/ # ✅ Keep
|
||||
│ ├── trade-exchange/ # ✅ Keep
|
||||
│ ├── wallet-daemon/ # ✅ Keep
|
||||
│ ├── blockchain-node/ # ✅ Keep
|
||||
│ ├── blockchain-node/ # ✅ Keep - Standardized (Mar 2026)
|
||||
│ ├── blockchain-explorer/ # ✅ Keep - Standardized (Mar 2026)
|
||||
│ └── zk-circuits/ # ✅ Keep
|
||||
├── cli/ # ✅ CLI tools
|
||||
├── contracts/ # ✅ Smart contracts
|
||||
├── dev/ # ✅ Development environment (Mar 2026)
|
||||
│ ├── scripts/ # Development scripts (79 files)
|
||||
│ ├── cache/ # Development cache
|
||||
│ ├── env/ # Environment configs
|
||||
│ ├── multi-chain/ # Multi-chain files
|
||||
│ └── tests/ # Development tests
|
||||
├── docs/ # ✅ Numbered documentation structure
|
||||
│ ├── infrastructure/ # ✅ Infrastructure docs (Mar 2026)
|
||||
│ ├── 0_getting_started/ # Getting started guides
|
||||
│ ├── 1_project/ # Project management
|
||||
│ ├── 2_clients/ # Client documentation
|
||||
@@ -225,7 +283,8 @@ aitbc/
|
||||
│ ├── 6_architecture/ # Architecture documentation
|
||||
│ ├── 7_deployment/ # Deployment guides
|
||||
│ ├── 8_development/ # Development documentation
|
||||
│ └── 9_security/ # Security documentation
|
||||
│ ├── 9_security/ # Security documentation
|
||||
│ └── 10_plan/ # Planning documentation
|
||||
├── extensions/ # ✅ Browser extensions (Firefox wallet)
|
||||
├── infra/ # ✅ Infrastructure configs
|
||||
│ ├── k8s/ # Kubernetes manifests
|
||||
@@ -236,14 +295,24 @@ aitbc/
|
||||
│ └── solidity/aitbc-token/# ERC-20 token contract
|
||||
├── plugins/ # ✅ Keep (ollama)
|
||||
├── scripts/ # ✅ Keep - organized by purpose
|
||||
├── systemd/ # ✅ Systemd service units
|
||||
│ ├── deploy/ # ✅ Deployment scripts (35 files)
|
||||
│ ├── dev/ # ✅ Development scripts
|
||||
│ └── testing/ # ✅ Test scripts
|
||||
├── systemd/ # ✅ Systemd service units (19+ files)
|
||||
├── tests/ # ✅ Test suites
|
||||
├── website/ # ✅ Public website and HTML docs
|
||||
├── dev-utils/ # ✅ Development utilities
|
||||
├── dev-utils/ # ✅ Development utilities (legacy)
|
||||
├── data/ # ✅ Runtime data (gitignored)
|
||||
└── .windsurf/ # ✅ Keep
|
||||
├── .windsurf/ # ✅ Keep - Workflows (Mar 2026)
|
||||
└── config/ # ✅ Configuration files
|
||||
```
|
||||
|
||||
This structure represents the current clean state of the AITBC repository with all essential components organized for optimal development and deployment workflows.
|
||||
This structure represents the current clean state of the AITBC repository with all essential components organized for optimal development and deployment workflows. The March 2026 standardization effort has resulted in:
|
||||
|
||||
- **100% service standardization** across all systemd services
|
||||
- **Improved file organization** with proper dev/ structure
|
||||
- **Enhanced documentation** with comprehensive infrastructure guides
|
||||
- **Automated verification tools** for maintaining standards
|
||||
- **Production-ready infrastructure** with all services operational
|
||||
|
||||
**Note**: Redundant `apps/logs/` directory removed - central `logs/` directory at root level is used for all logging. Redundant `assets/` directory removed - Firefox extension assets are properly organized in `extensions/aitbc-wallet-firefox/`.
|
||||
|
||||
Reference in New Issue
Block a user