jim800121chen fb7da5d180 chore(autoflow): migrate .autoflow/ 共享層文件至 docs/autoflow/
依 autoflow-agent workspace v2 設計把 PRD / 設計 / 架構 / 交付類
共享文件從個人層 .autoflow/(ignored)搬到 docs/autoflow/(進 git),
讓團隊可共享產品與架構文件,個人層只留 progress / review / testing 等
per-branch 筆記。

- 02-prd/        21 個檔(PRD、features、market-analysis 等)
- 03-design/     18 個檔(design-spec、wireframes、flows 等)
- 04-architecture/ 31 個檔(TDD、design-doc、ADR×14、API 規格等)
- 07-delivery/   3 個檔(project-summary、phase-0.6-handover、stage-deployment-setup)

合計 73 檔。原檔已從 .autoflow/ 移除(migration 工具執行 git mv,
但因 .autoflow/ 在 .gitignore 中、git 將此操作視為新增、無 rename history)。
2026-05-04 16:55:55 +08:00

231 lines
7.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 10. 開發範圍與階段 — visionA Cloud
> 父文件:[PRD.md](PRD.md)
---
## 10.1 三階段總覽
```
┌─────────────────────────────────────────────────────────────────┐
│ Phase 0本次 Phase 1 Phase 2+ │
│ 雛形 / 骨架 MVP外部早期採用 產品化(商業化) │
│ 2026 Q2 2026 Q3 2026 Q4+ │
│ │
│ • 跑得動 • 接真 Auth • Billing │
│ • 介面清楚 • 接真 DB • 轉檔整合(真) │
│ • 雙模式共存 • 接真 Storage • 多租戶 / 團隊 │
│ • 內部 FAE 測試 • 叢集功能 • 多區域部署 │
│ • local-tool 不動 • 圖片/影片推論 • 公開 API │
│ • Auth 是 stub • 外部 ~100 用戶 • 正式上線 │
└─────────────────────────────────────────────────────────────────┘
```
---
## 10.2 Phase 0本次雛形2026 Q2
### 10.2.1 目標
**一句話**visionA Cloud 的架構骨架 + 基本頁面 + API Server + Remote Proxy 跑得動,使用者能在瀏覽器完成「註冊 → 配對 → 推論」流程,但 Auth / DB / Storage 都是 stub。
### 10.2.2 範圍Scope
**必做P0**
- visionA-frontend 骨架 + P0 頁面(登入、註冊、首頁、裝置、模型、工作區、設定)
- visionA-backend `cmd/api-server`(對前端的 REST + WebSocket
- visionA-backend `cmd/remote-proxy`(從 POC 搬 relay升級 Pairing Token
- Pairing 流程端到端(至少手動編輯 local-tool config 能跑通)
- Camera 推論端到端(透過 tunnel
- 模型上傳local fs 實作 ObjectStorage 介面)
- 會員系統 **stub**in-memory AuthProvider
- SessionStore **in-memory 實作**
- ConverterClient **stub 實作**(讓前端流程可走完)
- 前端 `/clusters` 頁面預留(可顯示「即將推出」)
- i18n 繁中 + English沿用 local-tool
- 基本的 CI至少 unit test 跑得過)
**明確不做**
- 真 AuthJWT / OAuth / DB
- 真 DBPostgreSQL
- 真 S3 / MinIO
- 叢集推論 API只搬 `internal/cluster/` 模組)
- 儀表板時間軸與統計(只做快速開始版)
- 圖片 / 影片 / Batch 推論(只做 Camera
- 轉檔 API 真實對接
- Billing
- ObservabilityPrometheus / Grafana / Tracing
- 正式部署到雲端dev 環境能跑就好)
### 10.2.3 里程碑
| 週 | 里程碑 | 產出 |
|---|-------|------|
| W1-2 | 三方文件完成 | PRD、Design Spec、TDD 全部通過三方審閱 |
| W3 | 骨架搭起來 | monorepo 結構建好、兩個 binary 能啟動、前端能打開登入頁 |
| W4 | Auth stub + 前端 P0 頁面切換 | 能註冊 → 登入 → 看到空 dashboard |
| W5-6 | Pairing 流程 + Tunnel 重搬 | 用 test local-tool修改版 config能 pairing 成功 |
| W7 | Camera 推論跑通 | 至少一位 FAE 能遠端看到 Camera + overlay |
| W8 | 模型管理 + 上傳 | ObjectStorage 介面完成,上傳 `.nef` 可用 |
| W9 | 內部 FAE 測試 | 5+ FAE 完成端到端推論 |
| W10 | 修 bug + Phase 0 驗收 | 達成所有驗收條件,進入 Phase 1 規劃 |
### 10.2.4 Phase 0 TODO 總清單(匯整)
所有 Phase 0 留下的 TODO統一列在此處交給 Orchestrator 追蹤:
**Auth 相關**
- TODO-AUTH-01換 JWTAuthProvider
- TODO-AUTH-02DB schemausers / sessions
- TODO-AUTH-03Email 驗證流程
- TODO-AUTH-04密碼重設流程
- TODO-AUTH-05OAuthGoogle / GitHub
- TODO-AUTH-062FA
- TODO-AUTH-07密碼強度規則
- TODO-AUTH-08Rate limiting
- TODO-AUTH-09Account 刪除
- TODO-AUTH-10個人設定頁完整功能
- TODO-AUTH-11Role / Permission
- TODO-AUTH-12API Key 管理
**Storage 相關**
- TODO-STO-01S3/MinIO 實作
- TODO-STO-02Presigned URL 上傳
- TODO-STO-03模型版本管理
- TODO-STO-04檔案掃毒
**Session / Tunnel 相關**
- TODO-SESS-01Redis SessionStore 實作
- TODO-SESS-02Session Token rotation
- TODO-SESS-03Session 撤銷功能
- TODO-SESS-04多節點 remote-proxy + consistent hashing
- TODO-SESS-05Tunnel 斷線事件通知優化
**Pairing 相關**
- TODO-PAIR-01local-tool 內建 Pairing UI
- TODO-PAIR-02QR code 生成
- TODO-PAIR-03Pairing 成功後的使用者引導
**Converter 相關**
- TODO-CONV-01正式對接 converter API
- TODO-CONV-02Webhook 簽章驗證
- TODO-CONV-03轉檔進度 UX 優化
- TODO-CONV-04支援格式擴充初期只支援 ONNX
**功能擴充**
- TODO-FEAT-01圖片 / 影片 / Batch 推論
- TODO-FEAT-02叢集推論 API 實作與 UI
- TODO-FEAT-03儀表板時間軸與統計
- TODO-FEAT-04多 client 看同一推論的效能優化
**可觀測性**
- TODO-OBS-01Prometheus metrics
- TODO-OBS-02Grafana dashboard
- TODO-OBS-03OpenTelemetry tracing
- TODO-OBS-04Log 聚合ELK / Loki
**部署**
- TODO-DEP-01真的雲端部署staging + production
- TODO-DEP-02TLS 憑證
- TODO-DEP-03DNS / Subdomain
- TODO-DEP-04CDN前端
- TODO-DEP-05CI/CD pipeline
**商業化Phase 2**
- TODO-BIZ-01Billing 介面 + Stripe 整合
- TODO-BIZ-02定價方案設計
- TODO-BIZ-03Terms / Privacy Policy
- TODO-BIZ-04GDPR / 台灣個資法合規
---
## 10.3 Phase 1 MVP2026 Q3外部早期採用者
### 10.3.1 目標
- 接真 AuthJWT + DB
- 接真 StorageS3 或 MinIO
- 完成 Pairing、叢集、儀表板功能
- 部署到真的雲端環境
- 對外開放給 ~100 位早期採用者
### 10.3.2 主要交付
- 替換所有 Phase 0 stub 為真實作
- 叢集推論 UI + API
- 圖片 / 影片 / Batch 推論
- 真實部署staging + production
- CI/CD
- 基本 Observability
- User Story US-14 ~ US-23 全部完成
### 10.3.3 成功標準
- WAD >= 30
- Pairing 轉換率 > 60%
- 推論延遲 P95 < 400ms
- 系統 uptime > 99%
---
## 10.4 Phase 2+2026 Q4 起,產品化)
### 10.4.1 範圍
- 轉檔整合完成converter API 真實對接)
- BillingStripe
- 多租戶 / 團隊功能
- Multi-region 部署
- 公開 APIfor Mike 這類獨立開發者)
- Mobile appread-only看裝置狀態
- 合規文件Terms / Privacy / GDPR
- Marketing site 整合
### 10.4.2 成功標準
- MRR $5K+
- 付費用戶 50+
- NPS > 40
---
## 10.5 策略性路線圖Now / Next / Later
### Now本季Phase 0
- 雛形架構跑得動
- 內部 FAE 測試通過
- 介面契約穩定
### Next下季Phase 1 MVP
- 真實 Auth / DB / Storage
- 叢集推論產品化
- 部署到雲端
### Later6-12 個月Phase 2+
- 商業化 Billing
- 轉檔整合
- Mobile + 公開 API
- 多區域
---
## 連結
- 上一章:[成功指標](success-metrics.md)
- 下一章:[風險與相依](risks.md)
- 跳回:[PRD 索引](PRD.md)