|
| 1 | +# Technical Reference (Production-Style Documentation) |
| 2 | + |
| 3 | +> This document follows common standards used in industrial software projects: system context, component contracts, operational runbook, non-functional requirements, and release gates. |
| 4 | +
|
| 5 | +## 1. System Context |
| 6 | + |
| 7 | +FANUC RISE consists of five technical planes: |
| 8 | +1. **Control plane**: APIs, auth, orchestration, RBAC. |
| 9 | +2. **Data plane**: telemetry ingestion, storage, query and aggregation. |
| 10 | +3. **Decision plane**: Shadow Council agents (Creator, Auditor, Accountant). |
| 11 | +4. **Execution plane**: HAL/FOCAS bridge, simulator fallback. |
| 12 | +5. **Experience plane**: dashboard/hub/fleet UX. |
| 13 | + |
| 14 | +## 2. Core Interfaces (contracts) |
| 15 | + |
| 16 | +### REST interfaces |
| 17 | +- `GET /api/health`: liveness/readiness summary. |
| 18 | +- `POST /api/manufacturing/request`: unified orchestration entrypoint. |
| 19 | +- `POST /conduct`: creative scenario endpoint. |
| 20 | +- `POST /optimize`: optimization endpoint with material context. |
| 21 | + |
| 22 | +### WebSocket interfaces |
| 23 | +- Primary machine-scoped stream: `/ws/telemetry/{machine_id}`. |
| 24 | +- Global fallback stream: `/ws/telemetry`. |
| 25 | + |
| 26 | +### Contract requirements |
| 27 | +- Payloads must include `timestamp`, machine identity, and typed telemetry fields. |
| 28 | +- Safety-related actions must include a machine-readable `reason_code`. |
| 29 | +- Backward compatibility policy: additive changes only for minor versions. |
| 30 | + |
| 31 | +## 3. Non-Functional Requirements (NFR) |
| 32 | + |
| 33 | +### Reliability |
| 34 | +- Circuit breaker in HAL path. |
| 35 | +- Simulator fallback when hardware path is degraded. |
| 36 | +- Explicit retry strategy for websocket reconnection. |
| 37 | + |
| 38 | +### Performance |
| 39 | +- Telemetry pipeline objective: p95 ingest->UI under 100ms in simulation. |
| 40 | +- API p95 latency budget defined per endpoint class (read/write/control). |
| 41 | + |
| 42 | +### Security |
| 43 | +- RBAC-scoped access for operator/engineer/admin roles. |
| 44 | +- Token-based authentication for control endpoints. |
| 45 | +- Audit logs for all policy-overridden or blocked actions. |
| 46 | + |
| 47 | +### Observability |
| 48 | +- Health, error rate, and throughput per subsystem. |
| 49 | +- Decision traces for AI + deterministic auditor outcomes. |
| 50 | +- Alerting for telemetry stalls and repeated fallback events. |
| 51 | + |
| 52 | +## 4. Safety Model (critical technical details) |
| 53 | + |
| 54 | +Safety is deterministic-first: |
| 55 | +1. Creator can propose only. |
| 56 | +2. Auditor validates against hard physics/policy limits. |
| 57 | +3. Accountant score is advisory and never bypasses constraints. |
| 58 | +4. Execution only after deterministic pass. |
| 59 | + |
| 60 | +**Important:** model confidence is not considered a safety signal; only policy conformance and measured machine state are valid safety gates. |
| 61 | + |
| 62 | +## 5. Data and Training Pipeline |
| 63 | + |
| 64 | +### Dataset minimum schema |
| 65 | +- `intent_text` |
| 66 | +- `machine_id` |
| 67 | +- `telemetry_window` |
| 68 | +- `candidate_actions` |
| 69 | +- `auditor_verdict` |
| 70 | +- `reason_codes` |
| 71 | +- `execution_outcome` |
| 72 | +- `economic_score` |
| 73 | + |
| 74 | +### Training pipeline stages |
| 75 | +1. Scenario generation (normal/fault/adversarial). |
| 76 | +2. Supervised fine-tuning dataset assembly. |
| 77 | +3. Preference/ranking dataset assembly. |
| 78 | +4. Offline benchmark and safety scoring. |
| 79 | +5. Shadow deployment with rejection telemetry. |
| 80 | + |
| 81 | +## 6. Release Readiness Checklist |
| 82 | + |
| 83 | +A release candidate is acceptable only if: |
| 84 | +- Dependency bootstrap script passes in clean environment. |
| 85 | +- API health/readiness checks pass. |
| 86 | +- Websocket primary/fallback behavior is validated. |
| 87 | +- Safety policy regression suite passes. |
| 88 | +- Documentation updates are complete and versioned. |
| 89 | + |
| 90 | +## 7. Recommended Documentation Set (for this repo) |
| 91 | + |
| 92 | +- `README.md`: entry-level setup and links. |
| 93 | +- `SYSTEM_ARCHITECTURE.md`: conceptual and flow architecture. |
| 94 | +- `FEATURE_IMPLEMENTATION_BLUEPRINT.md`: delivery execution plan. |
| 95 | +- `docs/TECHNICAL_REFERENCE.md` (this file): contracts, NFRs, runbook-grade guidance. |
0 commit comments