|
| 1 | +# UI-TARS-desktop RFCs |
| 2 | + |
| 3 | +Most changes including bug fixes and documentation improvements can be handled through standard GitHub pull requests. However, substantial technical changes requiring cross-platform considerations (Windows/macOS/Linux) should follow this RFC process to ensure systematic design review. |
| 4 | + |
| 5 | +## When RFC is Required |
| 6 | + |
| 7 | +Consider initiating an RFC for changes involving: |
| 8 | +- Architectural modifications |
| 9 | +- Native API integrations |
| 10 | +- Cross-platform behavior changes |
| 11 | +- Major performance optimizations |
| 12 | +- Security-sensitive implementations |
| 13 | +- Breaking API changes |
| 14 | + |
| 15 | +## RFC Lifecycle |
| 16 | + |
| 17 | +### 1. Pre-Discussion |
| 18 | +- Open a GitHub Discussion thread for initial concept validation |
| 19 | +- Identify core maintainers (@mention platform specialists) |
| 20 | + |
| 21 | +### 2. Draft Submission |
| 22 | +1. Fork https://github.com/bytedance/UI-TARS-desktop |
| 23 | +2. Copy `rfcs/template.md` to `rfcs/drafts/000-feature-name.md` |
| 24 | +3. Submit draft PR with [WIP] prefix |
| 25 | + |
| 26 | +### 3. Technical Review Phase |
| 27 | +- Platform leads review for: |
| 28 | + - Windows compatibility |
| 29 | + - macOS security implications |
| 30 | + - Linux packaging impacts |
| 31 | +- Required checklist completion: |
| 32 | + - [ ] Performance analysis |
| 33 | + - [ ] Cross-platform testing strategy |
| 34 | + - [ ] Error handling documentation |
| 35 | + - [ ] Binary size impact |
| 36 | + |
| 37 | +### 4. Final Comment Period |
| 38 | +- Freeze feature scope |
| 39 | +- Address final review comments |
| 40 | +- Require 2/3 maintainer approvals (including at least one platform specialist) |
| 41 | + |
| 42 | +### 5. Implementation Tracking |
| 43 | +- Upon acceptance: |
| 44 | + - Create tracking issue with platform-specific tasks |
| 45 | + - Label with target version milestone |
| 46 | + - Assign platform implementation owners |
| 47 | + |
| 48 | +### Status Transitions |
| 49 | +```mermaid |
| 50 | +graph TD |
| 51 | + A[Draft] -->|PR Submitted| B(Review) |
| 52 | + B -->|Approved| C[Accepted] |
| 53 | + B -->|Rejected| D[Archived] |
| 54 | + C -->|Implementation| E[Implemented] |
| 55 | + C -->|No activity in 30d| F[Stalled] |
| 56 | + F -->|Resumed| C |
| 57 | +``` |
| 58 | + |
| 59 | +## Key Modifications from Original Process |
| 60 | +1. Added platform specialist review requirements |
| 61 | +2. Extended review period for cross-platform analysis |
| 62 | +3. Mandatory platform-specific checklists |
| 63 | +4. Implementation tracking with ownership assignments |
| 64 | +5. Stalled state for resource management |
| 65 | +6. Visual workflow diagram |
| 66 | + |
| 67 | +## Implementation Rules |
| 68 | +- RFC authors receive implementation priority |
| 69 | +- Platform-specific implementations must include: |
| 70 | + - Windows: MSI installer compatibility tests |
| 71 | + - macOS: Notarization validation |
| 72 | + - Linux: Snap/Flatpak packaging checks |
| 73 | +- Binary size monitoring required for native modules |
| 74 | + |
| 75 | +## References |
| 76 | +Inspired by: |
| 77 | +- [Electron RFC Process](https://www.electronjs.org/blog/rfc-process) |
| 78 | +- [React Native Architecture Decisions](https://github.com/react-native-community/discussions-and-proposals) |
0 commit comments