|
Download tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-3.md from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 4.6 kB
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-3.md
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-3.md
-
curl -L -o MILESTONE-3.md https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/reverse/abdelstark__guts.8876fcf/environment/docs/MILESTONE-3.md
4.6 kB
Milestone 3: Collaboration Features
Status: Completed Started: 2025-12-21 Completed: 2025-12-21
Overview
Milestone 3 implements the collaboration features that enable developers to work together on decentralized repositories. This includes Pull Requests, Issues, Comments, and Code Review infrastructure.
Goals
- Pull Request System: Create, review, and merge code changes
- Issue Tracking: Track bugs, features, and tasks
- Comments & Discussions: Enable threaded conversations on PRs and Issues
- P2P Replication: Synchronize collaboration data across nodes
New Crate: guts-collaboration
Data Models
Pull Request
Issue
Comment
Review
API Endpoints
Pull Requests
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/repos/{owner}/{name}/pulls |
List pull requests |
| POST | /api/repos/{owner}/{name}/pulls |
Create pull request |
| GET | /api/repos/{owner}/{name}/pulls/{number} |
Get pull request |
| PATCH | /api/repos/{owner}/{name}/pulls/{number} |
Update pull request |
| POST | /api/repos/{owner}/{name}/pulls/{number}/merge |
Merge pull request |
| GET | /api/repos/{owner}/{name}/pulls/{number}/comments |
List PR comments |
| POST | /api/repos/{owner}/{name}/pulls/{number}/comments |
Add PR comment |
| GET | /api/repos/{owner}/{name}/pulls/{number}/reviews |
List reviews |
| POST | /api/repos/{owner}/{name}/pulls/{number}/reviews |
Submit review |
Issues
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/repos/{owner}/{name}/issues |
List issues |
| POST | /api/repos/{owner}/{name}/issues |
Create issue |
| GET | /api/repos/{owner}/{name}/issues/{number} |
Get issue |
| PATCH | /api/repos/{owner}/{name}/issues/{number} |
Update issue |
| GET | /api/repos/{owner}/{name}/issues/{number}/comments |
List comments |
| POST | /api/repos/{owner}/{name}/issues/{number}/comments |
Add comment |
P2P Message Types
New message types for collaboration data replication:
CLI Commands
Phase 1: Core Types (guts-collaboration crate)
- Create crate structure
- Implement
PullRequesttype with state machine - Implement
Issuetype with state machine - Implement
Commenttype - Implement
Reviewtype - Implement
Labeltype - Create
CollaborationStorefor in-memory storage - Add comprehensive unit tests
Phase 2: API Integration (guts-node)
- Add
guts-collaborationdependency - Integrate
CollaborationStoreintoAppState - Implement PR endpoints
- Implement Issue endpoints
- Implement Comment endpoints
- Implement Review endpoints
- Add API integration tests
Phase 3: P2P Replication (guts-p2p)
- Add collaboration message types to P2P protocol
- Implement collaboration event broadcasting
- Implement collaboration sync protocol
- Handle concurrent updates and conflicts
- Add P2P integration tests
Phase 4: CLI Commands (guts-cli)
- Add
prsubcommand with list/create/show/merge/close - Add
issuesubcommand with list/create/show/close/reopen - Add
commentsubcommand with add - Add HTTP client for API communication
Phase 5: E2E Testing
- Create multi-node collaboration test
- Test PR workflow across nodes
- Test issue synchronization
- Test comment replication
- Test conflict resolution
Success Criteria
- Create and manage pull requests via API
- Create and manage issues via API
- Add comments to PRs and issues
- Submit reviews on pull requests
- P2P replication of collaboration data across nodes
- CLI commands for common operations
- E2E test passing for multi-node collaboration
Dependencies
guts-types: Core types (Identity, ObjectId)guts-storage: Object storage (for diff generation)guts-p2p: P2P networking layerserde: Serializationthiserror: Error handling
Future Considerations
These features are out of scope for Milestone 3 but should be considered:
- Diff Generation: Generate diffs between commits for code review UI
- Merge Conflict Resolution: Handle merge conflicts in PRs
- Notifications: Real-time notifications for PR/Issue updates
- Mentions: @-mentions in comments and descriptions
- Assignees: Assign users to PRs and issues
- Milestones: Group issues into milestones
- Projects: Kanban-style project boards