chore: consolidate documentation — delete status/fix/progress cruft

Before: 335 tracked .md files; top level had 14 README-like docs;
docs/ contained ~234 files, most of them auto/LLM-generated status
reports (ALL_*_COMPLETE*, *_FIX*, DEPLOYMENT_*_FINAL*, etc.).

After: 132 tracked .md files. Repo now has exactly five top-level
docs: README.md, QUICKSTART.md, RUNBOOK.md, CONTRIBUTING.md,
CHANGELOG.md (moved up from docs/).

Keeper philosophy in docs/:
- API, CCIP (ops + security + receiver/router refs), Chainlist refs,
  compliance, deployment (guides not status), database connection,
  legal compliance, metamask integration, production checklist,
  tiered-architecture implementation/setup, reusable-components plan,
  token-mechanism doc, wrap-and-bridge operational reference, plus
  docs/specs/** and docs/api/ / docs/openapi/ trees.

Deleted (git history preserves provenance):
- All 'ALL_*_COMPLETE*' / '*_FIX*' / '*_FIXED*' / '*_FINAL*' /
  '*_STATUS*' / '*_PROGRESS*' / '*_SUMMARY*' files.
- BLOCKSCOUT_*_FIX / _CRASH / _INITIALIZATION / _SCHEMA / _YAML /
  _SKIP / _NEXT_STEPS / _START_AND_BUILD / _DATABASE_CREDENTIALS
  (the last contained passwords).
- CCIP_IMPLEMENTATION_* / CCIP_CURRENT_STATUS / CCIP_GAP_*
  (gap analyses are not a sustained reference).
- NPMPLUS_CREDENTIALS_GUIDE.md (contained creds).
- LETSENCRYPT_CONFIGURATION_GUIDE.md (contained creds; will be
  re-introduced as runbook content post-secrets-scrub).
- docs/diagnostic-reports/, docs/feature-flags/ (run-time artifacts).

README.md: dead links (START_HERE, README_DEPLOYMENT, COMPLETE_DEPLOYMENT,
DEPLOYMENT_COMPLETE_FINAL) replaced with links to the five canonical
top-level docs + docs/ index.
This commit is contained in:
2026-04-18 18:56:17 +00:00
parent e1c3b40cb0
commit 40c9af678f
205 changed files with 8 additions and 37633 deletions

View File

@@ -1,159 +0,0 @@
# Deployment Status Report
**Date:** December 24, 2025
**Status:****DEPLOYED AND RUNNING**
## Deployment Summary
### ✅ Successfully Deployed Components
1. **API Server**
- Status: ✅ Running
- PID: 166233
- Port: 8080
- Binary: `backend/bin/api-server` (15MB)
- Logs: `backend/logs/api-server.log`
2. **Build Status**
- ✅ Backend compiled successfully
- ✅ All dependencies resolved
- ✅ No compilation errors
3. **Route Configuration**
- ✅ Track 1 routes (public) - Working
- ✅ Track 2-4 routes (authenticated) - Configured
- ✅ Auth endpoints - Configured
- ✅ Feature flags endpoint - Working
4. **Component Verification**
- ✅ All 13 components verified
- ✅ 0 errors, 0 warnings
### ⚠️ Known Issues
1. **Database Connection**
- Status: ⚠️ Not connected
- Impact: Track 1 endpoints work (use RPC), Track 2-4 require database
- Solution: Set `DB_PASSWORD` environment variable and run `bash scripts/run-migration-0010.sh`
2. **Health Endpoint**
- Status: ⚠️ Returns degraded status (due to database)
- Impact: Health check shows database as unavailable
- Solution: Fix database connection
### ✅ Tested Endpoints
| Endpoint | Status | Notes |
|----------|--------|-------|
| `/health` | ⚠️ Degraded | Database unavailable |
| `/api/v1/features` | ✅ Working | Returns track level and features |
| `/api/v1/track1/blocks/latest` | ✅ Working | HTTP 200 |
| `/api/v1/track1/bridge/status` | ✅ Working | Returns bridge status |
| `/api/v1/auth/nonce` | ⚠️ DB-backed | Requires both a valid address and the `wallet_nonces` table created by `scripts/run-migration-0010.sh` |
| `/api/v1/track2/search` | ✅ Working | Correctly requires auth (401) |
### Environment Configuration
```bash
JWT_SECRET=test-secret-* (auto-generated)
RPC_URL=http://192.168.11.250:8545
CHAIN_ID=138
PORT=8080
DB_HOST=localhost
DB_USER=explorer
DB_PASSWORD=changeme (default, needs to be set)
DB_NAME=explorer
```
## Next Steps
### Immediate Actions
1. **Fix Database Connection**
```bash
export DB_PASSWORD='actual-password'
bash scripts/run-migration-0010.sh
```
2. **Restart Server with Database**
```bash
pkill -f api-server
export DB_PASSWORD='actual-password'
cd backend && ./bin/api-server
```
3. **Test Full Authentication Flow**
```bash
# Request nonce
curl -X POST http://localhost:8080/api/v1/auth/nonce \
-H 'Content-Type: application/json' \
-d '{"address":"0x1234567890123456789012345678901234567890"}'
# Authenticate (after signing)
curl -X POST http://localhost:8080/api/v1/auth/wallet \
-H 'Content-Type: application/json' \
-d '{"address":"...","signature":"...","nonce":"..."}'
```
If the response mentions `wallet_nonces` or the wallet popup shows `Nonce: undefined`, rerun `bash scripts/run-migration-0010.sh` and restart the backend before retrying.
### Production Deployment
1. **Set Strong JWT Secret**
```bash
export JWT_SECRET=$(openssl rand -hex 32)
```
2. **Configure Database**
- Set proper `DB_PASSWORD`
- Run migration helper: `bash scripts/run-migration-0010.sh`
- Verify connection: `bash scripts/check-database-connection.sh`
3. **Start as Service**
```bash
# Using systemd or supervisor
# Or use the deployment script:
bash scripts/deploy-and-test.sh
```
4. **Approve Users**
```bash
bash scripts/approve-user.sh <address> <track_level>
```
5. **Start Indexers** (optional)
```bash
cd backend/indexer
go run main.go
```
## Monitoring
### Server Logs
```bash
tail -f backend/logs/api-server.log
```
### Health Check
```bash
curl http://localhost:8080/health
```
### Feature Flags
```bash
curl http://localhost:8080/api/v1/features
```
## Architecture Status
- **Track 1 (Public RPC Gateway)**: ✅ Deployed and working
- **Track 2 (Indexed Explorer)**: ✅ Configured (needs database)
- **Track 3 (Analytics)**: ✅ Configured (needs database)
- **Track 4 (Operator)**: ✅ Configured (needs database)
- **Authentication**: ✅ Configured (needs database for nonce storage)
- **Feature Gating**: ✅ Working
## Conclusion
The tiered architecture has been successfully deployed. The API server is running and responding to requests. Track 1 endpoints (public RPC gateway) are fully functional. Track 2-4 endpoints are configured but require database connectivity for full functionality.
**Deployment Status: ✅ SUCCESSFUL**