Add `synor deploy` command group for deploying web applications: - `synor deploy push` - upload project to Synor Hosting - `synor deploy init` - create synor.json configuration - `synor deploy list` - list all deployments - `synor deploy delete` - remove a deployment Features: - synor.json configuration parsing with build/routes/headers - Framework auto-detection (Next.js, Vite, Astro, Angular, SvelteKit) - Build command execution with install support - Multipart file upload to storage gateway - Deployment name validation with reserved word protection - Content type detection for 20+ MIME types Also adds Phase 9 milestone documentation and marks Synor Hosting as 100% complete in the roadmap.
168 lines
5.6 KiB
Markdown
168 lines
5.6 KiB
Markdown
# Synor Development Plan
|
|
|
|
> Structured milestone documentation for the Synor quantum-secure blockchain
|
|
|
|
## Phase Overview
|
|
|
|
| Phase | Name | Status | Progress | Milestones |
|
|
|-------|------|--------|----------|------------|
|
|
| 0 | Foundation | ✅ Complete | 100% | 2 |
|
|
| 1 | Node Integration | ✅ Complete | 100% | 2 |
|
|
| 2 | CLI Wallet | ✅ Complete | 100% | 2 |
|
|
| 3 | Network Bootstrap | ✅ Complete | 100% | 2 |
|
|
| 4 | Smart Contracts | ✅ Complete | 100% | 2 |
|
|
| 5 | Governance | ✅ Complete | 100% | 2 |
|
|
| 6 | Quality Assurance | ✅ Complete | 100% | 3 |
|
|
| 7 | Production Readiness | 🔄 In Progress | 85% | 3 |
|
|
| 8 | Synor Storage L2 | ✅ Complete | 100% | 3 |
|
|
| 9 | Synor Hosting | ✅ Complete | 100% | 3 |
|
|
|
|
## Phase 7 Breakdown
|
|
|
|
| Milestone | Status | Progress |
|
|
|-----------|--------|----------|
|
|
| Security Audit | ⏳ Pending | Requires external |
|
|
| Mainnet Launch | 🔒 Blocked | Awaiting 30-day testnet |
|
|
| Ecosystem | 🔄 In Progress | 85% |
|
|
|
|
### Ecosystem Components (Milestone 3)
|
|
|
|
| Component | Status | Notes |
|
|
|-----------|--------|-------|
|
|
| Web Wallet | 95% | QR, hardware, i18n complete |
|
|
| Desktop Wallet | 90% | System tray, auto-updates done |
|
|
| Mobile Wallet | 0% | Deferred to post-mainnet |
|
|
| Explorer Frontend | 100% | Full React app deployed |
|
|
| Documentation | 90% | 4 tutorials + exchange guide |
|
|
| API Gateway | 95% | Rate limiting operational |
|
|
| Exchange Integration | 80% | Comprehensive docs ready |
|
|
|
|
## Phase 8 Breakdown (Synor Storage L2)
|
|
|
|
| Milestone | Status | Progress |
|
|
|-----------|--------|----------|
|
|
| Storage Core | ✅ Complete | 100% |
|
|
| Storage Node | ✅ Complete | 100% |
|
|
| Storage Gateway | ✅ Complete | 100% |
|
|
|
|
### Storage Components
|
|
|
|
| Component | Status | Notes |
|
|
|-----------|--------|-------|
|
|
| Content Addressing (CID) | 100% | Blake3/SHA256 synor1... format |
|
|
| Chunker | 100% | Content-defined chunking |
|
|
| Erasure Coding | 100% | Reed-Solomon 10+4 |
|
|
| Storage Proofs | 100% | Merkle proof verification |
|
|
| Deal Management | 100% | On-chain deal lifecycle |
|
|
| Storage Node | 100% | P2P storage service |
|
|
| HTTP Gateway | 100% | Content retrieval API |
|
|
| Docker Deployment | 100% | 3-node cluster config |
|
|
|
|
## Phase 9 Breakdown (Synor Hosting)
|
|
|
|
| Milestone | Status | Progress |
|
|
|-----------|--------|----------|
|
|
| Hosting Core | ✅ Complete | 100% |
|
|
| Hosting Gateway | ✅ Complete | 100% |
|
|
| Hosting CLI | ✅ Complete | 100% |
|
|
|
|
### Hosting Components
|
|
|
|
| Component | Status | Notes |
|
|
|-----------|--------|-------|
|
|
| Name Registry | 100% | On-chain name→CID mapping |
|
|
| Domain Verification | 100% | CNAME/TXT DNS verification |
|
|
| Hosting Router | 100% | Host-based request routing |
|
|
| synor.json Config | 100% | SPA, redirects, headers |
|
|
| Hosting Gateway | 100% | Axum HTTP server |
|
|
| Rate Limiting | 100% | Token bucket algorithm |
|
|
| Cache Control | 100% | Immutable assets, SPA support |
|
|
| Docker Deployment | 100% | Caddy + wildcard HTTPS |
|
|
| CLI Deploy Command | 100% | `synor deploy push/init/list/delete` |
|
|
| Admin Dashboard | 0% | Web UI for management (deferred) |
|
|
|
|
## Directory Structure
|
|
|
|
```
|
|
docs/PLAN/
|
|
├── README.md (this file)
|
|
├── PHASE0-Foundation/
|
|
│ ├── 01-Milestone-01-CoreTypes.md
|
|
│ └── 01-Milestone-02-Cryptography.md
|
|
├── PHASE1-NodeIntegration/
|
|
│ ├── 01-Milestone-01-ServiceWiring.md
|
|
│ └── 01-Milestone-02-GenesisChain.md
|
|
├── PHASE2-CLIWallet/
|
|
│ ├── 01-Milestone-01-WalletCrypto.md
|
|
│ └── 01-Milestone-02-CLICommands.md
|
|
├── PHASE3-NetworkBootstrap/
|
|
│ ├── 01-Milestone-01-TestnetDeployment.md
|
|
│ └── 01-Milestone-02-NetworkHardening.md
|
|
├── PHASE4-SmartContracts/
|
|
│ ├── 01-Milestone-01-ContractSDK.md
|
|
│ └── 01-Milestone-02-ContractTooling.md
|
|
├── PHASE5-Governance/
|
|
│ ├── 01-Milestone-01-DAOLaunch.md
|
|
│ └── 01-Milestone-02-GovernanceFeatures.md
|
|
├── PHASE6-QualityAssurance/
|
|
│ ├── 01-Milestone-01-Benchmarks.md
|
|
│ ├── 01-Milestone-02-Testing.md
|
|
│ └── 01-Milestone-03-Optimization.md
|
|
├── PHASE7-ProductionReadiness/
|
|
│ ├── 01-Milestone-01-Security.md
|
|
│ ├── 01-Milestone-02-MainnetLaunch.md
|
|
│ └── 01-Milestone-03-Ecosystem.md
|
|
├── PHASE8-SynorStorageL2/
|
|
│ ├── 01-Milestone-01-StorageCore.md
|
|
│ ├── 01-Milestone-02-StorageNode.md
|
|
│ └── 01-Milestone-03-StorageGateway.md
|
|
├── PHASE9-SynorHosting/
|
|
│ ├── 01-Milestone-01-HostingCore.md
|
|
│ ├── 01-Milestone-02-HostingGateway.md
|
|
│ └── 01-Milestone-03-HostingCLI.md
|
|
```
|
|
|
|
## Validation Strategy
|
|
|
|
Each milestone includes:
|
|
- **Tasks**: Specific implementation requirements
|
|
- **Files**: Source files to create/modify
|
|
- **Validation Commands**: Commands to verify implementation
|
|
- **Validation Agents**: Automated agents for code review
|
|
- **Security Checks**: Security-specific validations
|
|
- **Compliance**: Regulatory compliance requirements
|
|
|
|
## Running Validations
|
|
|
|
```bash
|
|
# Run all unit tests
|
|
cargo test --workspace
|
|
|
|
# Run integration tests
|
|
cargo test --workspace --test '*'
|
|
|
|
# Run benchmarks
|
|
cargo bench --workspace
|
|
|
|
# Security audit with cargo-audit
|
|
cargo audit
|
|
|
|
# Code coverage
|
|
cargo tarpaulin --workspace --out Html
|
|
|
|
# Lint with clippy
|
|
cargo clippy --workspace -- -D warnings
|
|
```
|
|
|
|
## Agent-Based Validation
|
|
|
|
| Agent | Purpose | Trigger |
|
|
|-------|---------|---------|
|
|
| `code-reviewer` | Code quality and patterns | After milestone completion |
|
|
| `silent-failure-hunter` | Error handling validation | After error-related changes |
|
|
| `pr-test-analyzer` | Test coverage analysis | Before PR merge |
|
|
| `type-design-analyzer` | Type system validation | After type changes |
|
|
|
|
---
|
|
|
|
*Last updated: January 10, 2026*
|