|
| 1 | +# FANUC RISE Feature Implementation Blueprint |
| 2 | + |
| 3 | +This document turns the project roadmaps into an executable delivery plan. It is meant to be used with: |
| 4 | +- `ROADMAP_TO_ARCHITECTURE.md` |
| 5 | +- `IMPLEMENTATION_STRATEGY_PHASE2.md` |
| 6 | +- `cms/theories/PROJECT_STATE_AND_ROADMAP.md` |
| 7 | +- `NEXT_STEPS_OVERVIEW.md` |
| 8 | + |
| 9 | +## 0) Roadmap Source Crosswalk (MD -> Implementation) |
| 10 | + |
| 11 | +| Source document | What it contributes | Implemented as track | |
| 12 | +|---|---|---| |
| 13 | +| `ROADMAP_TO_ARCHITECTURE.md` | Macro architecture phases and target platform shape | A, B, E | |
| 14 | +| `IMPLEMENTATION_STRATEGY_PHASE2.md` | Mid-phase delivery and integration sequencing | B, C, D | |
| 15 | +| `cms/theories/PROJECT_STATE_AND_ROADMAP.md` | Current-state inventory + quarterly objectives | A, C, E | |
| 16 | +| `NEXT_STEPS_OVERVIEW.md` | Tactical next actions and commercialization flow | C, D, E | |
| 17 | + |
| 18 | +This crosswalk exists so every roadmap statement is traceable to an engineering workstream. |
| 19 | + |
| 20 | +## 1) Dependency Baseline (must pass first) |
| 21 | + |
| 22 | +### Required runtime layers |
| 23 | +1. **Python backend** (FastAPI + orchestration + simulator/HAL) |
| 24 | +2. **Database** (PostgreSQL / TimescaleDB) |
| 25 | +3. **Optional cache/bus** (Redis) |
| 26 | +4. **Frontend clients** (React / Vue / dashboard HTML) |
| 27 | + |
| 28 | +### One-command bootstrap |
| 29 | +Use: |
| 30 | +```bash |
| 31 | +./tools/bootstrap_and_audit.sh |
| 32 | +``` |
| 33 | + |
| 34 | +The script creates `.venv`, installs Python deps, installs Node deps in all frontend workspaces, and prints npm/pip diagnostics. |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## 2) Feature Delivery Tracks (from MD roadmaps) |
| 39 | + |
| 40 | +## Track A — Hardware + HAL Reliability |
| 41 | +**Goal**: production-safe telemetry and command path. |
| 42 | + |
| 43 | +### A1. FOCAS bridge hardening |
| 44 | +- Implement circuit breaker retries + timeout budgets in HAL adapters. |
| 45 | +- Add machine profile registry (`Fanuc`, `Siemens`, `Mock`) to avoid hardcoded assumptions. |
| 46 | +- Acceptance: |
| 47 | + - Graceful degradation to simulator when hardware unavailable. |
| 48 | + - 0 unhandled exceptions on adapter disconnect/reconnect chaos test. |
| 49 | + |
| 50 | +### A2. Latency pipeline |
| 51 | +- Move high-frequency shared state to Redis streams or Arrow IPC. |
| 52 | +- Add p50/p95/p99 telemetry pipeline timing metrics. |
| 53 | +- Acceptance: |
| 54 | + - p95 ingestion-to-dashboard < 100ms in simulator load tests. |
| 55 | + |
| 56 | +## Track B — Shadow Council Safety Governance |
| 57 | +**Goal**: AI suggestions never bypass deterministic guardrails. |
| 58 | + |
| 59 | +### B1. Auditor policy engine |
| 60 | +- Encode hard constraints for load/vibration/thermal/curvature bounds. |
| 61 | +- Expose policy decisions + reasoning traces over API. |
| 62 | +- Acceptance: |
| 63 | + - Any violating proposal is blocked with explicit reasons. |
| 64 | + |
| 65 | +### B2. Creator + Accountant integration |
| 66 | +- Creator generates strategy candidates. |
| 67 | +- Accountant scores economics/time/risk. |
| 68 | +- Auditor performs final deterministic gate. |
| 69 | +- Acceptance: |
| 70 | + - Decision packet contains proposal, economics score, and pass/fail rationale. |
| 71 | + |
| 72 | +## Track C — Probability Canvas + Fleet UX |
| 73 | +**Goal**: roadmap-aligned multi-machine operations. |
| 74 | + |
| 75 | +### C1. Fleet switching |
| 76 | +- Keep machine-specific websocket route as primary (`/ws/telemetry/{machine_id}`) with fallback. |
| 77 | +- Add machine selector and persisted last-machine state. |
| 78 | +- Acceptance: |
| 79 | + - Operator can switch among 3+ machines without page refresh. |
| 80 | + |
| 81 | +### C2. Fleet health overview |
| 82 | +- Add hub-level card metrics (status, load trend, alert count) per machine. |
| 83 | +- Acceptance: |
| 84 | + - Hub view updates in near real-time and highlights critical nodes. |
| 85 | + |
| 86 | +## Track D — Simulator-to-LLM Training Loop |
| 87 | +**Goal**: improve model quality safely offline. |
| 88 | + |
| 89 | +### D1. Scenario generation service |
| 90 | +- Generate normal + fault scenarios (chatter, thermal drift, stall). |
| 91 | +- Persist traces in consistent schema. |
| 92 | + |
| 93 | +### D2. Dataset builder |
| 94 | +- Build SFT examples and pairwise preference data. |
| 95 | +- Include auditor verdicts and economics outcomes. |
| 96 | + |
| 97 | +### D3. Shadow deployment gate |
| 98 | +- Model can propose only; deterministic systems decide execution. |
| 99 | +- Acceptance: |
| 100 | + - Safety violation rate and rejection rate dashboards available. |
| 101 | + |
| 102 | +## Track E — Multi-site Cloud + ERP Integration |
| 103 | +**Goal**: roadmap Q2/Q3 scalability. |
| 104 | + |
| 105 | +### E1. Fleet registry + tenancy |
| 106 | +- Add site and machine tenancy boundaries. |
| 107 | +- Implement RBAC scoped by site/role. |
| 108 | + |
| 109 | +### E2. Event-driven sync |
| 110 | +- Broadcast relevant learnings across machines (with policy controls). |
| 111 | +- Acceptance: |
| 112 | + - Cross-machine strategy propagation with audit trail. |
| 113 | + |
| 114 | +--- |
| 115 | + |
| 116 | +## 3) Suggested Sprint Plan (12-week template) |
| 117 | + |
| 118 | +### Sprint 1-2 |
| 119 | +- Dependency baseline, CI checks, API health hardening. |
| 120 | +- Deliverables: repeatable local bootstrap, passing lints/checks. |
| 121 | + |
| 122 | +### Sprint 3-4 |
| 123 | +- HAL resiliency + telemetry latency instrumentation. |
| 124 | +- Deliverables: circuit breaker + latency dashboard. |
| 125 | + |
| 126 | +### Sprint 5-6 |
| 127 | +- Shadow Council decision packet + deterministic policy traceability. |
| 128 | +- Deliverables: pass/fail auditor API with reason codes. |
| 129 | + |
| 130 | +### Sprint 7-8 |
| 131 | +- Fleet UX (machine selector, hub rollup metrics, alerts). |
| 132 | +- Deliverables: live multi-node dashboard. |
| 133 | + |
| 134 | +### Sprint 9-10 |
| 135 | +- Simulator scenario generation + dataset pipeline. |
| 136 | +- Deliverables: exportable SFT/preference datasets. |
| 137 | + |
| 138 | +### Sprint 11-12 |
| 139 | +- Shadow deployment and go/no-go gates for pilot. |
| 140 | +- Deliverables: pilot checklist + rollback plan. |
| 141 | + |
| 142 | +--- |
| 143 | + |
| 144 | +## 4) Engineering Definition of Done |
| 145 | + |
| 146 | +A feature is done only if all conditions hold: |
| 147 | +1. Unit/integration checks pass. |
| 148 | +2. Feature has monitoring signals (health, latency, error rate). |
| 149 | +3. Auditor safety constraints are applied where relevant. |
| 150 | +4. Docs updated (README + architecture + API notes). |
| 151 | +5. Simulator regression scenarios pass. |
| 152 | + |
| 153 | +--- |
| 154 | + |
| 155 | +## 5) Immediate next actions |
| 156 | + |
| 157 | +1. Run `./tools/bootstrap_and_audit.sh`. |
| 158 | +2. Bring up backend and verify `/api/health` and websocket routes. |
| 159 | +3. Implement Fleet selector persistence in dashboard UI. |
| 160 | +4. Add Auditor reason-code schema and include in websocket payload. |
| 161 | +5. Create simulator dataset export command for SFT + preference data. |
| 162 | + |
| 163 | + |
| 164 | +## 6) Documentation Standards Used |
| 165 | + |
| 166 | +This blueprint follows documentation conventions commonly used in mature industrial software projects: |
| 167 | +- **Traceability**: each workstream references roadmap sources. |
| 168 | +- **Acceptance criteria**: every feature track has measurable outcomes. |
| 169 | +- **Operational readiness**: runability and fallback behavior are first-class requirements. |
| 170 | +- **Safety by design**: deterministic controls are explicit and mandatory. |
| 171 | +- **Lifecycle clarity**: includes implementation sequence, DoD, and immediate actions. |
| 172 | + |
| 173 | +For low-level operational and contract details, see `docs/TECHNICAL_REFERENCE.md`. |
| 174 | + |
| 175 | +Contributor workflow docs: |
| 176 | +- `docs/DEVELOPER_EDITING_GUIDE.md` |
| 177 | +- `docs/METHODOLOGY_OF_ANALOGY.md` |
| 178 | +- `docs/CODER_LEXICON.md` |
| 179 | + |
0 commit comments